Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Hye-Shik Chang | 8126860 | 2004-02-02 06:05:24 +0000 | [diff] [blame^] | 2 | # From configure.in Revision: 1.449 . |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.57 for python 2.4. |
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. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10 | ## --------------------- ## |
| 11 | ## M4sh Initialization. ## |
| 12 | ## --------------------- ## |
| 13 | |
| 14 | # Be Bourne compatible |
| 15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 16 | emulate sh |
| 17 | NULLCMD=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 19 | # is contrary to our usage. Disable this feature. |
| 20 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 22 | set -o posix |
| 23 | fi |
| 24 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25 | # Support unset when possible. |
| 26 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 27 | as_unset=unset |
| 28 | else |
| 29 | as_unset=false |
| 30 | fi |
| 31 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 32 | |
| 33 | # Work around bugs in pre-3.0 UWIN ksh. |
| 34 | $as_unset ENV MAIL MAILPATH |
| 35 | PS1='$ ' |
| 36 | PS2='> ' |
| 37 | PS4='+ ' |
| 38 | |
| 39 | # NLS nuisances. |
| 40 | for as_var in \ |
| 41 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 42 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 43 | LC_TELEPHONE LC_TIME |
| 44 | do |
| 45 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 46 | eval $as_var=C; export $as_var |
| 47 | else |
| 48 | $as_unset $as_var |
| 49 | fi |
| 50 | done |
| 51 | |
| 52 | # Required to use basename. |
| 53 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 54 | as_expr=expr |
| 55 | else |
| 56 | as_expr=false |
| 57 | fi |
| 58 | |
| 59 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 60 | as_basename=basename |
| 61 | else |
| 62 | as_basename=false |
| 63 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 64 | |
| 65 | |
| 66 | # Name of the executable. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 67 | as_me=`$as_basename "$0" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 68 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 69 | X"$0" : 'X\(//\)$' \| \ |
| 70 | X"$0" : 'X\(/\)$' \| \ |
| 71 | . : '\(.\)' 2>/dev/null || |
| 72 | echo X/"$0" | |
| 73 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 74 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 75 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 76 | s/.*/./; q'` |
| 77 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 78 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 79 | # PATH needs CR, and LINENO needs CR and PATH. |
| 80 | # Avoid depending upon Character Ranges. |
| 81 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 82 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 83 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 84 | as_cr_digits='0123456789' |
| 85 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 86 | |
| 87 | # The user is always right. |
| 88 | if test "${PATH_SEPARATOR+set}" != set; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 89 | echo "#! /bin/sh" >conf$$.sh |
| 90 | echo "exit 0" >>conf$$.sh |
| 91 | chmod +x conf$$.sh |
| 92 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 93 | PATH_SEPARATOR=';' |
| 94 | else |
| 95 | PATH_SEPARATOR=: |
| 96 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 97 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 98 | fi |
| 99 | |
| 100 | |
| 101 | as_lineno_1=$LINENO |
| 102 | as_lineno_2=$LINENO |
| 103 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 104 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 105 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 106 | # Find who we are. Look in the path if we contain no path at all |
| 107 | # relative or not. |
| 108 | case $0 in |
| 109 | *[\\/]* ) as_myself=$0 ;; |
| 110 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 111 | for as_dir in $PATH |
| 112 | do |
| 113 | IFS=$as_save_IFS |
| 114 | test -z "$as_dir" && as_dir=. |
| 115 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 116 | done |
| 117 | |
| 118 | ;; |
| 119 | esac |
| 120 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 121 | # in which case we are not to be found in the path. |
| 122 | if test "x$as_myself" = x; then |
| 123 | as_myself=$0 |
| 124 | fi |
| 125 | if test ! -f "$as_myself"; then |
| 126 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 127 | { (exit 1); exit 1; }; } |
| 128 | fi |
| 129 | case $CONFIG_SHELL in |
| 130 | '') |
| 131 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 132 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 133 | do |
| 134 | IFS=$as_save_IFS |
| 135 | test -z "$as_dir" && as_dir=. |
| 136 | for as_base in sh bash ksh sh5; do |
| 137 | case $as_dir in |
| 138 | /*) |
| 139 | if ("$as_dir/$as_base" -c ' |
| 140 | as_lineno_1=$LINENO |
| 141 | as_lineno_2=$LINENO |
| 142 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 143 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 144 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 145 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 146 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 147 | CONFIG_SHELL=$as_dir/$as_base |
| 148 | export CONFIG_SHELL |
| 149 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 150 | fi;; |
| 151 | esac |
| 152 | done |
| 153 | done |
| 154 | ;; |
| 155 | esac |
| 156 | |
| 157 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 158 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 159 | # line-number line before each line; the second 'sed' does the real |
| 160 | # work. The second script uses 'N' to pair each line-number line |
| 161 | # with the numbered line, and appends trailing '-' during |
| 162 | # substitution so that $LINENO is not a special case at line end. |
| 163 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 164 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 165 | sed '=' <$as_myself | |
| 166 | sed ' |
| 167 | N |
| 168 | s,$,-, |
| 169 | : loop |
| 170 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 171 | t loop |
| 172 | s,-$,, |
| 173 | s,^['$as_cr_digits']*\n,, |
| 174 | ' >$as_me.lineno && |
| 175 | chmod +x $as_me.lineno || |
| 176 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 177 | { (exit 1); exit 1; }; } |
| 178 | |
| 179 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 180 | # (the dirname of $[0] is not the place where we might find the |
| 181 | # original and so on. Autoconf is especially sensible to this). |
| 182 | . ./$as_me.lineno |
| 183 | # Exit status is that of the last command. |
| 184 | exit |
| 185 | } |
| 186 | |
| 187 | |
| 188 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 189 | *c*,-n*) ECHO_N= ECHO_C=' |
| 190 | ' ECHO_T=' ' ;; |
| 191 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 192 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 193 | esac |
| 194 | |
| 195 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 196 | as_expr=expr |
| 197 | else |
| 198 | as_expr=false |
| 199 | fi |
| 200 | |
| 201 | rm -f conf$$ conf$$.exe conf$$.file |
| 202 | echo >conf$$.file |
| 203 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 204 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 205 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 206 | if test -f conf$$.exe; then |
| 207 | # Don't use ln at all; we don't have any links |
| 208 | as_ln_s='cp -p' |
| 209 | else |
| 210 | as_ln_s='ln -s' |
| 211 | fi |
| 212 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 213 | as_ln_s=ln |
| 214 | else |
| 215 | as_ln_s='cp -p' |
| 216 | fi |
| 217 | rm -f conf$$ conf$$.exe conf$$.file |
| 218 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 219 | if mkdir -p . 2>/dev/null; then |
| 220 | as_mkdir_p=: |
| 221 | else |
| 222 | as_mkdir_p=false |
| 223 | fi |
| 224 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 225 | as_executable_p="test -f" |
| 226 | |
| 227 | # Sed expression to map a string onto a valid CPP name. |
| 228 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 229 | |
| 230 | # Sed expression to map a string onto a valid variable name. |
| 231 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 232 | |
| 233 | |
| 234 | # IFS |
| 235 | # We need space, tab and new line, in precisely that order. |
| 236 | as_nl=' |
| 237 | ' |
| 238 | IFS=" $as_nl" |
| 239 | |
| 240 | # CDPATH. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 241 | $as_unset CDPATH |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 242 | |
| 243 | |
| 244 | # Name of the host. |
| 245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 246 | # so uname gets run too. |
| 247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 248 | |
| 249 | exec 6>&1 |
| 250 | |
| 251 | # |
| 252 | # Initializations. |
| 253 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 254 | ac_default_prefix=/usr/local |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 255 | ac_config_libobj_dir=. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 256 | cross_compiling=no |
| 257 | subdirs= |
| 258 | MFLAGS= |
| 259 | MAKEFLAGS= |
| 260 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 261 | |
| 262 | # Maximum number of lines to put in a shell here document. |
| 263 | # This variable seems obsolete. It should probably be removed, and |
| 264 | # only ac_max_sed_lines should be used. |
| 265 | : ${ac_max_here_lines=38} |
| 266 | |
| 267 | # Identity of this package. |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 268 | PACKAGE_NAME='python' |
| 269 | PACKAGE_TARNAME='python' |
Fred Drake | 9bd4462 | 2003-07-30 17:39:48 +0000 | [diff] [blame] | 270 | PACKAGE_VERSION='2.4' |
| 271 | PACKAGE_STRING='python 2.4' |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 272 | PACKAGE_BUGREPORT='' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 273 | |
| 274 | ac_unique_file="Include/object.h" |
| 275 | # Factoring default headers for most tests. |
| 276 | ac_includes_default="\ |
| 277 | #include <stdio.h> |
| 278 | #if HAVE_SYS_TYPES_H |
| 279 | # include <sys/types.h> |
| 280 | #endif |
| 281 | #if HAVE_SYS_STAT_H |
| 282 | # include <sys/stat.h> |
| 283 | #endif |
| 284 | #if STDC_HEADERS |
| 285 | # include <stdlib.h> |
| 286 | # include <stddef.h> |
| 287 | #else |
| 288 | # if HAVE_STDLIB_H |
| 289 | # include <stdlib.h> |
| 290 | # endif |
| 291 | #endif |
| 292 | #if HAVE_STRING_H |
| 293 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 294 | # include <memory.h> |
| 295 | # endif |
| 296 | # include <string.h> |
| 297 | #endif |
| 298 | #if HAVE_STRINGS_H |
| 299 | # include <strings.h> |
| 300 | #endif |
| 301 | #if HAVE_INTTYPES_H |
| 302 | # include <inttypes.h> |
| 303 | #else |
| 304 | # if HAVE_STDINT_H |
| 305 | # include <stdint.h> |
| 306 | # endif |
| 307 | #endif |
| 308 | #if HAVE_UNISTD_H |
| 309 | # include <unistd.h> |
| 310 | #endif" |
| 311 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION SOVERSION CONFIG_ARGS PYTHONFRAMEWORK PYTHONFRAMEWORKDIR PYTHONFRAMEWORKPREFIX PYTHONFRAMEWORKINSTALLDIR MACHDEP SGI_ABI EXTRAPLATDIR EXTRAMACHDEPPATH CXX MAINOBJ EXEEXT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC OBJEXT CPP EGREP BUILDEXEEXT LIBRARY LDLIBRARY DLLLIBRARY BLDLIBRARY LDLIBRARYDIR INSTSONAME RUNSHARED LINKCC RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN OPT BASECFLAGS LIBTOOL_CRUFT SO LDSHARED BLDSHARED CCSHARED LINKFORSHARED CFLAGSFORSHARED SHLIBS USE_SIGNAL_MODULE SIGNAL_OBJS USE_THREAD_MODULE LDLAST THREADOBJ DLINCLDIR DYNLOADFILE MACHDEP_OBJS TRUE LIBOBJS HAVE_GETHOSTBYNAME_R_6_ARG HAVE_GETHOSTBYNAME_R_5_ARG HAVE_GETHOSTBYNAME_R_3_ARG HAVE_GETHOSTBYNAME_R HAVE_GETHOSTBYNAME LIBM LIBC UNICODE_OBJS THREADHEADERS SRCDIRS LTLIBOBJS' |
| 313 | ac_subst_files='' |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 314 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 315 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 316 | ac_init_help= |
| 317 | ac_init_version=false |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 318 | # The variables have the same names as the options, with |
| 319 | # dashes changed to underlines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 320 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 321 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 322 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 323 | no_recursion= |
| 324 | prefix=NONE |
| 325 | program_prefix=NONE |
| 326 | program_suffix=NONE |
| 327 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 328 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 329 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 330 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 331 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 332 | x_includes=NONE |
| 333 | x_libraries=NONE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 334 | |
| 335 | # Installation directory options. |
| 336 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 337 | # and all the variables that are supposed to be based on exec_prefix |
| 338 | # by default will actually change. |
| 339 | # 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] | 340 | bindir='${exec_prefix}/bin' |
| 341 | sbindir='${exec_prefix}/sbin' |
| 342 | libexecdir='${exec_prefix}/libexec' |
| 343 | datadir='${prefix}/share' |
| 344 | sysconfdir='${prefix}/etc' |
| 345 | sharedstatedir='${prefix}/com' |
| 346 | localstatedir='${prefix}/var' |
| 347 | libdir='${exec_prefix}/lib' |
| 348 | includedir='${prefix}/include' |
| 349 | oldincludedir='/usr/include' |
| 350 | infodir='${prefix}/info' |
| 351 | mandir='${prefix}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 352 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 353 | ac_prev= |
| 354 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 355 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 356 | # If the previous option needs an argument, assign it. |
| 357 | if test -n "$ac_prev"; then |
| 358 | eval "$ac_prev=\$ac_option" |
| 359 | ac_prev= |
| 360 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 361 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 362 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
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 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 366 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 367 | case $ac_option in |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 368 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 369 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 370 | ac_prev=bindir ;; |
| 371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 372 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 373 | |
| 374 | -build | --build | --buil | --bui | --bu) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 375 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 377 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 378 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 379 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 380 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 381 | ac_prev=cache_file ;; |
| 382 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 383 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 384 | cache_file=$ac_optarg ;; |
| 385 | |
| 386 | --config-cache | -C) |
| 387 | cache_file=config.cache ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 388 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 390 | ac_prev=datadir ;; |
| 391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 392 | | --da=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 393 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 394 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 395 | -disable-* | --disable-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 397 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 398 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 399 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 400 | { (exit 1); exit 1; }; } |
| 401 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 402 | eval "enable_$ac_feature=no" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 403 | |
| 404 | -enable-* | --enable-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 406 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 407 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 408 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 409 | { (exit 1); exit 1; }; } |
| 410 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 411 | case $ac_option in |
| 412 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 413 | *) ac_optarg=yes ;; |
| 414 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 415 | eval "enable_$ac_feature='$ac_optarg'" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 416 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 417 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 418 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 419 | | --exec | --exe | --ex) |
| 420 | ac_prev=exec_prefix ;; |
| 421 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 422 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 423 | | --exec=* | --exe=* | --ex=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 424 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 425 | |
| 426 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 427 | # Obsolete; use --with-gas. |
| 428 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 429 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 430 | -help | --help | --hel | --he | -h) |
| 431 | ac_init_help=long ;; |
| 432 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 433 | ac_init_help=recursive ;; |
| 434 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 435 | ac_init_help=short ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 436 | |
| 437 | -host | --host | --hos | --ho) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 438 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 439 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 440 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 441 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 442 | -includedir | --includedir | --includedi | --included | --include \ |
| 443 | | --includ | --inclu | --incl | --inc) |
| 444 | ac_prev=includedir ;; |
| 445 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 446 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 447 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 448 | |
| 449 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 450 | ac_prev=infodir ;; |
| 451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 452 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 453 | |
| 454 | -libdir | --libdir | --libdi | --libd) |
| 455 | ac_prev=libdir ;; |
| 456 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 457 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 458 | |
| 459 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 460 | | --libexe | --libex | --libe) |
| 461 | ac_prev=libexecdir ;; |
| 462 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 463 | | --libexe=* | --libex=* | --libe=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 464 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 465 | |
| 466 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 467 | | --localstate | --localstat | --localsta | --localst \ |
| 468 | | --locals | --local | --loca | --loc | --lo) |
| 469 | ac_prev=localstatedir ;; |
| 470 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 471 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 472 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 473 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 474 | |
| 475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 476 | ac_prev=mandir ;; |
| 477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 478 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 479 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 480 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 481 | # Obsolete; use --without-fp. |
| 482 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 483 | |
| 484 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 485 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 486 | no_create=yes ;; |
| 487 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 488 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 489 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 490 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 491 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 492 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 493 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 494 | | --oldin | --oldi | --old | --ol | --o) |
| 495 | ac_prev=oldincludedir ;; |
| 496 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 497 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 498 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 499 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 500 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 502 | ac_prev=prefix ;; |
| 503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 504 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 505 | |
| 506 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 507 | | --program-pre | --program-pr | --program-p) |
| 508 | ac_prev=program_prefix ;; |
| 509 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 510 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 511 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 512 | |
| 513 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 514 | | --program-suf | --program-su | --program-s) |
| 515 | ac_prev=program_suffix ;; |
| 516 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 517 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 518 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 519 | |
| 520 | -program-transform-name | --program-transform-name \ |
| 521 | | --program-transform-nam | --program-transform-na \ |
| 522 | | --program-transform-n | --program-transform- \ |
| 523 | | --program-transform | --program-transfor \ |
| 524 | | --program-transfo | --program-transf \ |
| 525 | | --program-trans | --program-tran \ |
| 526 | | --progr-tra | --program-tr | --program-t) |
| 527 | ac_prev=program_transform_name ;; |
| 528 | -program-transform-name=* | --program-transform-name=* \ |
| 529 | | --program-transform-nam=* | --program-transform-na=* \ |
| 530 | | --program-transform-n=* | --program-transform-=* \ |
| 531 | | --program-transform=* | --program-transfor=* \ |
| 532 | | --program-transfo=* | --program-transf=* \ |
| 533 | | --program-trans=* | --program-tran=* \ |
| 534 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 535 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 536 | |
| 537 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 538 | | -silent | --silent | --silen | --sile | --sil) |
| 539 | silent=yes ;; |
| 540 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 541 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 542 | ac_prev=sbindir ;; |
| 543 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 544 | | --sbi=* | --sb=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 545 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 546 | |
| 547 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 548 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 549 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 550 | | --sha | --sh) |
| 551 | ac_prev=sharedstatedir ;; |
| 552 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 553 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 554 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 555 | | --sha=* | --sh=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 556 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 557 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 558 | -site | --site | --sit) |
| 559 | ac_prev=site ;; |
| 560 | -site=* | --site=* | --sit=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 561 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 562 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 564 | ac_prev=srcdir ;; |
| 565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 566 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 567 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 568 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 569 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 570 | ac_prev=sysconfdir ;; |
| 571 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 572 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 573 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 574 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 575 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 576 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 578 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 579 | |
| 580 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 581 | verbose=yes ;; |
| 582 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 583 | -version | --version | --versio | --versi | --vers | -V) |
| 584 | ac_init_version=: ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 585 | |
| 586 | -with-* | --with-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 588 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 589 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 590 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 591 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 592 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 593 | case $ac_option in |
| 594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 595 | *) ac_optarg=yes ;; |
| 596 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 597 | eval "with_$ac_package='$ac_optarg'" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 598 | |
| 599 | -without-* | --without-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 601 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 602 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 603 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 604 | { (exit 1); exit 1; }; } |
| 605 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 606 | eval "with_$ac_package=no" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 607 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 608 | --x) |
| 609 | # Obsolete; use --with-x. |
| 610 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 611 | |
| 612 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 613 | | --x-incl | --x-inc | --x-in | --x-i) |
| 614 | ac_prev=x_includes ;; |
| 615 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 616 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 617 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 618 | |
| 619 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 620 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 621 | ac_prev=x_libraries ;; |
| 622 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 623 | | --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] | 624 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 625 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 626 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 627 | Try \`$0 --help' for more information." >&2 |
| 628 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 629 | ;; |
| 630 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 631 | *=*) |
| 632 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 633 | # Reject names that are not valid shell variable names. |
| 634 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 635 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 636 | { (exit 1); exit 1; }; } |
| 637 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 638 | eval "$ac_envvar='$ac_optarg'" |
| 639 | export $ac_envvar ;; |
| 640 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 641 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 642 | # FIXME: should be removed in autoconf 3.0. |
| 643 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 644 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 645 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 646 | : ${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] | 647 | ;; |
| 648 | |
| 649 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 650 | done |
| 651 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 652 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 653 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 654 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 655 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 656 | fi |
| 657 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 658 | # Be sure to have absolute paths. |
| 659 | for ac_var in exec_prefix prefix |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 660 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 661 | eval ac_val=$`echo $ac_var` |
| 662 | case $ac_val in |
| 663 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 664 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 665 | { (exit 1); exit 1; }; };; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 666 | esac |
| 667 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 668 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 669 | # Be sure to have absolute paths. |
| 670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 671 | localstatedir libdir includedir oldincludedir infodir mandir |
| 672 | do |
| 673 | eval ac_val=$`echo $ac_var` |
| 674 | case $ac_val in |
| 675 | [\\/$]* | ?:[\\/]* ) ;; |
| 676 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 677 | { (exit 1); exit 1; }; };; |
| 678 | esac |
| 679 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 680 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 681 | # There might be people who depend on the old broken behavior: `$host' |
| 682 | # used to hold the argument of --host etc. |
| 683 | # FIXME: To remove some day. |
| 684 | build=$build_alias |
| 685 | host=$host_alias |
| 686 | target=$target_alias |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 687 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 688 | # FIXME: To remove some day. |
| 689 | if test "x$host_alias" != x; then |
| 690 | if test "x$build_alias" = x; then |
| 691 | cross_compiling=maybe |
| 692 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 693 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 694 | elif test "x$build_alias" != "x$host_alias"; then |
| 695 | cross_compiling=yes |
| 696 | fi |
| 697 | fi |
| 698 | |
| 699 | ac_tool_prefix= |
| 700 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 701 | |
| 702 | test "$silent" = yes && exec 6>/dev/null |
| 703 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 704 | |
| 705 | # Find the source files, if location was not specified. |
| 706 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 707 | ac_srcdir_defaulted=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 708 | # Try the directory containing this script, then its parent. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 709 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 711 | X"$0" : 'X\(//\)[^/]' \| \ |
| 712 | X"$0" : 'X\(//\)$' \| \ |
| 713 | X"$0" : 'X\(/\)' \| \ |
| 714 | . : '\(.\)' 2>/dev/null || |
| 715 | echo X"$0" | |
| 716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 717 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 718 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 719 | /^X\(\/\).*/{ s//\1/; q; } |
| 720 | s/.*/./; q'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 721 | srcdir=$ac_confdir |
| 722 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 723 | srcdir=.. |
| 724 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 725 | else |
| 726 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 727 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 728 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 729 | if test "$ac_srcdir_defaulted" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 731 | { (exit 1); exit 1; }; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 732 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 734 | { (exit 1); exit 1; }; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 735 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 736 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 737 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 738 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 739 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 740 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 741 | ac_env_build_alias_set=${build_alias+set} |
| 742 | ac_env_build_alias_value=$build_alias |
| 743 | ac_cv_env_build_alias_set=${build_alias+set} |
| 744 | ac_cv_env_build_alias_value=$build_alias |
| 745 | ac_env_host_alias_set=${host_alias+set} |
| 746 | ac_env_host_alias_value=$host_alias |
| 747 | ac_cv_env_host_alias_set=${host_alias+set} |
| 748 | ac_cv_env_host_alias_value=$host_alias |
| 749 | ac_env_target_alias_set=${target_alias+set} |
| 750 | ac_env_target_alias_value=$target_alias |
| 751 | ac_cv_env_target_alias_set=${target_alias+set} |
| 752 | ac_cv_env_target_alias_value=$target_alias |
| 753 | ac_env_CC_set=${CC+set} |
| 754 | ac_env_CC_value=$CC |
| 755 | ac_cv_env_CC_set=${CC+set} |
| 756 | ac_cv_env_CC_value=$CC |
| 757 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 758 | ac_env_CFLAGS_value=$CFLAGS |
| 759 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 760 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 761 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 762 | ac_env_LDFLAGS_value=$LDFLAGS |
| 763 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 764 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 765 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 766 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 767 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 768 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 769 | ac_env_CPP_set=${CPP+set} |
| 770 | ac_env_CPP_value=$CPP |
| 771 | ac_cv_env_CPP_set=${CPP+set} |
| 772 | ac_cv_env_CPP_value=$CPP |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 773 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 774 | # |
| 775 | # Report the --help message. |
| 776 | # |
| 777 | if test "$ac_init_help" = "long"; then |
| 778 | # Omit some internal or obsolete options to make the list less imposing. |
| 779 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 780 | cat <<_ACEOF |
Fred Drake | 9bd4462 | 2003-07-30 17:39:48 +0000 | [diff] [blame] | 781 | \`configure' configures python 2.4 to adapt to many kinds of systems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 782 | |
| 783 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 784 | |
| 785 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 786 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 787 | |
| 788 | Defaults for the options are specified in brackets. |
| 789 | |
| 790 | Configuration: |
| 791 | -h, --help display this help and exit |
| 792 | --help=short display options specific to this package |
| 793 | --help=recursive display the short help of all the included packages |
| 794 | -V, --version display version information and exit |
| 795 | -q, --quiet, --silent do not print \`checking...' messages |
| 796 | --cache-file=FILE cache test results in FILE [disabled] |
| 797 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 798 | -n, --no-create do not create output files |
| 799 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 800 | |
| 801 | _ACEOF |
| 802 | |
| 803 | cat <<_ACEOF |
| 804 | Installation directories: |
| 805 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 806 | [$ac_default_prefix] |
| 807 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 808 | [PREFIX] |
| 809 | |
| 810 | By default, \`make install' will install all the files in |
| 811 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 812 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 813 | for instance \`--prefix=\$HOME'. |
| 814 | |
| 815 | For better control, use the options below. |
| 816 | |
| 817 | Fine tuning of the installation directories: |
| 818 | --bindir=DIR user executables [EPREFIX/bin] |
| 819 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 820 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 821 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 822 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 823 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 824 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 825 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 826 | --includedir=DIR C header files [PREFIX/include] |
| 827 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 828 | --infodir=DIR info documentation [PREFIX/info] |
| 829 | --mandir=DIR man documentation [PREFIX/man] |
| 830 | _ACEOF |
| 831 | |
| 832 | cat <<\_ACEOF |
| 833 | _ACEOF |
| 834 | fi |
| 835 | |
| 836 | if test -n "$ac_init_help"; then |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 837 | case $ac_init_help in |
Fred Drake | 9bd4462 | 2003-07-30 17:39:48 +0000 | [diff] [blame] | 838 | short | recursive ) echo "Configuration of python 2.4:";; |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 839 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 840 | cat <<\_ACEOF |
| 841 | |
| 842 | Optional Features: |
| 843 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 844 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 845 | --enable-framework[=INSTALLDIR] |
| 846 | Build (MacOSX|Darwin) framework |
| 847 | --enable-shared disable/enable building shared python library |
| 848 | --enable-toolbox-glue disable/enable MacOSX glue code for extensions |
| 849 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 850 | --disable-ipv6 Disable ipv6 support |
| 851 | --enable-unicode[=ucs[24]] |
| 852 | Enable Unicode strings (default is yes) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 853 | |
| 854 | Optional Packages: |
| 855 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 856 | --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] | 857 | --without-gcc never use gcc |
| 858 | --with-cxx=<compiler> enable C++ support |
| 859 | --with-suffix=.exe set executable suffix |
| 860 | --with-pydebug build with Py_DEBUG defined |
| 861 | --with-libs='lib1 ...' link against additional libs |
| 862 | --with-signal-module disable/enable signal module |
| 863 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries |
| 864 | --with(out)-threads[=DIRECTORY] |
| 865 | disable/enable thread support |
| 866 | --with(out)-thread[=DIRECTORY] |
| 867 | deprecated; use --with(out)-threads |
| 868 | --with-pth use GNU pth threading libraries |
| 869 | --with(out)-universal-newlines |
| 870 | disable/enable foreign newlines |
| 871 | --with(out)-doc-strings disable/enable documentation strings |
| 872 | --with(out)-pymalloc disable/enable specialized mallocs |
| 873 | --with-wctype-functions use wctype.h functions |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 874 | --with-fpectl enable SIGFPE catching |
| 875 | --with-libm=STRING math library |
| 876 | --with-libc=STRING C library |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 877 | |
| 878 | Some influential environment variables: |
| 879 | CC C compiler command |
| 880 | CFLAGS C compiler flags |
| 881 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 882 | nonstandard directory <lib dir> |
| 883 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 884 | headers in a nonstandard directory <include dir> |
| 885 | CPP C preprocessor |
| 886 | |
| 887 | Use these variables to override the choices made by `configure' or to help |
| 888 | it to find libraries and programs with nonstandard names/locations. |
| 889 | |
| 890 | _ACEOF |
| 891 | fi |
| 892 | |
| 893 | if test "$ac_init_help" = "recursive"; then |
| 894 | # If there are subdirs, report their specific --help. |
| 895 | ac_popdir=`pwd` |
| 896 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 897 | test -d $ac_dir || continue |
| 898 | ac_builddir=. |
| 899 | |
| 900 | if test "$ac_dir" != .; then |
| 901 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 902 | # A "../" for each directory in $ac_dir_suffix. |
| 903 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 904 | else |
| 905 | ac_dir_suffix= ac_top_builddir= |
| 906 | fi |
| 907 | |
| 908 | case $srcdir in |
| 909 | .) # No --srcdir option. We are building in place. |
| 910 | ac_srcdir=. |
| 911 | if test -z "$ac_top_builddir"; then |
| 912 | ac_top_srcdir=. |
| 913 | else |
| 914 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 915 | fi ;; |
| 916 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 917 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 918 | ac_top_srcdir=$srcdir ;; |
| 919 | *) # Relative path. |
| 920 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 921 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 922 | esac |
| 923 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 924 | # absolute. |
| 925 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 926 | 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] | 927 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 928 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 929 | |
| 930 | cd $ac_dir |
| 931 | # Check for guested configure; otherwise get Cygnus style configure. |
| 932 | if test -f $ac_srcdir/configure.gnu; then |
| 933 | echo |
| 934 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 935 | elif test -f $ac_srcdir/configure; then |
| 936 | echo |
| 937 | $SHELL $ac_srcdir/configure --help=recursive |
| 938 | elif test -f $ac_srcdir/configure.ac || |
| 939 | test -f $ac_srcdir/configure.in; then |
| 940 | echo |
| 941 | $ac_configure --help |
| 942 | else |
| 943 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 944 | fi |
| 945 | cd $ac_popdir |
| 946 | done |
| 947 | fi |
| 948 | |
| 949 | test -n "$ac_init_help" && exit 0 |
| 950 | if $ac_init_version; then |
| 951 | cat <<\_ACEOF |
Fred Drake | 9bd4462 | 2003-07-30 17:39:48 +0000 | [diff] [blame] | 952 | python configure 2.4 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 953 | generated by GNU Autoconf 2.57 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 954 | |
| 955 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
| 956 | Free Software Foundation, Inc. |
| 957 | This configure script is free software; the Free Software Foundation |
| 958 | gives unlimited permission to copy, distribute and modify it. |
| 959 | _ACEOF |
| 960 | exit 0 |
| 961 | fi |
| 962 | exec 5>config.log |
| 963 | cat >&5 <<_ACEOF |
| 964 | This file contains any messages produced by compilers while |
| 965 | running configure, to aid debugging if configure makes a mistake. |
| 966 | |
Fred Drake | 9bd4462 | 2003-07-30 17:39:48 +0000 | [diff] [blame] | 967 | It was created by python $as_me 2.4, which was |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 968 | generated by GNU Autoconf 2.57. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 969 | |
| 970 | $ $0 $@ |
| 971 | |
| 972 | _ACEOF |
| 973 | { |
| 974 | cat <<_ASUNAME |
| 975 | ## --------- ## |
| 976 | ## Platform. ## |
| 977 | ## --------- ## |
| 978 | |
| 979 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 980 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 981 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 982 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 983 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 984 | |
| 985 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 986 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 987 | |
| 988 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 989 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 990 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 991 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 992 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 993 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 994 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 995 | |
| 996 | _ASUNAME |
| 997 | |
| 998 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 999 | for as_dir in $PATH |
| 1000 | do |
| 1001 | IFS=$as_save_IFS |
| 1002 | test -z "$as_dir" && as_dir=. |
| 1003 | echo "PATH: $as_dir" |
| 1004 | done |
| 1005 | |
| 1006 | } >&5 |
| 1007 | |
| 1008 | cat >&5 <<_ACEOF |
| 1009 | |
| 1010 | |
| 1011 | ## ----------- ## |
| 1012 | ## Core tests. ## |
| 1013 | ## ----------- ## |
| 1014 | |
| 1015 | _ACEOF |
| 1016 | |
| 1017 | |
| 1018 | # Keep a trace of the command line. |
| 1019 | # Strip out --no-create and --no-recursion so they do not pile up. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1020 | # Strip out --silent because we don't want to record it for future runs. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1021 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1022 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1023 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1024 | ac_configure_args0= |
| 1025 | ac_configure_args1= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1026 | ac_sep= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1027 | ac_must_keep_next=false |
| 1028 | for ac_pass in 1 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1029 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1030 | for ac_arg |
| 1031 | do |
| 1032 | case $ac_arg in |
| 1033 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1034 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1035 | | -silent | --silent | --silen | --sile | --sil) |
| 1036 | continue ;; |
| 1037 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1038 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1039 | esac |
| 1040 | case $ac_pass in |
| 1041 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1042 | 2) |
| 1043 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1044 | if test $ac_must_keep_next = true; then |
| 1045 | ac_must_keep_next=false # Got value, back to normal. |
| 1046 | else |
| 1047 | case $ac_arg in |
| 1048 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1049 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1050 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1051 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1052 | case "$ac_configure_args0 " in |
| 1053 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1054 | esac |
| 1055 | ;; |
| 1056 | -* ) ac_must_keep_next=true ;; |
| 1057 | esac |
| 1058 | fi |
| 1059 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1060 | # Get rid of the leading space. |
| 1061 | ac_sep=" " |
| 1062 | ;; |
| 1063 | esac |
| 1064 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1065 | done |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1066 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1067 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1068 | |
| 1069 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1070 | # config.log. We remove comments because anyway the quotes in there |
| 1071 | # would cause problems or look ugly. |
| 1072 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1073 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1074 | trap 'exit_status=$? |
| 1075 | # Save into config.log some information that might help in debugging. |
| 1076 | { |
| 1077 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1078 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1079 | cat <<\_ASBOX |
| 1080 | ## ---------------- ## |
| 1081 | ## Cache variables. ## |
| 1082 | ## ---------------- ## |
| 1083 | _ASBOX |
| 1084 | echo |
| 1085 | # The following way of writing the cache mishandles newlines in values, |
| 1086 | { |
| 1087 | (set) 2>&1 | |
| 1088 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1089 | *ac_space=\ *) |
| 1090 | sed -n \ |
| 1091 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1092 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1093 | ;; |
| 1094 | *) |
| 1095 | sed -n \ |
| 1096 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1097 | ;; |
| 1098 | esac; |
| 1099 | } |
| 1100 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1101 | |
| 1102 | cat <<\_ASBOX |
| 1103 | ## ----------------- ## |
| 1104 | ## Output variables. ## |
| 1105 | ## ----------------- ## |
| 1106 | _ASBOX |
| 1107 | echo |
| 1108 | for ac_var in $ac_subst_vars |
| 1109 | do |
| 1110 | eval ac_val=$`echo $ac_var` |
| 1111 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1112 | done | sort |
| 1113 | echo |
| 1114 | |
| 1115 | if test -n "$ac_subst_files"; then |
| 1116 | cat <<\_ASBOX |
| 1117 | ## ------------- ## |
| 1118 | ## Output files. ## |
| 1119 | ## ------------- ## |
| 1120 | _ASBOX |
| 1121 | echo |
| 1122 | for ac_var in $ac_subst_files |
| 1123 | do |
| 1124 | eval ac_val=$`echo $ac_var` |
| 1125 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1126 | done | sort |
| 1127 | echo |
| 1128 | fi |
| 1129 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1130 | if test -s confdefs.h; then |
| 1131 | cat <<\_ASBOX |
| 1132 | ## ----------- ## |
| 1133 | ## confdefs.h. ## |
| 1134 | ## ----------- ## |
| 1135 | _ASBOX |
| 1136 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1137 | sed "/^$/d" confdefs.h | sort |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1138 | echo |
| 1139 | fi |
| 1140 | test "$ac_signal" != 0 && |
| 1141 | echo "$as_me: caught signal $ac_signal" |
| 1142 | echo "$as_me: exit $exit_status" |
| 1143 | } >&5 |
| 1144 | rm -f core core.* *.core && |
| 1145 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1146 | exit $exit_status |
| 1147 | ' 0 |
| 1148 | for ac_signal in 1 2 13 15; do |
| 1149 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1150 | done |
| 1151 | ac_signal=0 |
| 1152 | |
| 1153 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1154 | rm -rf conftest* confdefs.h |
| 1155 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1156 | echo >confdefs.h |
| 1157 | |
| 1158 | # Predefined preprocessor variables. |
| 1159 | |
| 1160 | cat >>confdefs.h <<_ACEOF |
| 1161 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1162 | _ACEOF |
| 1163 | |
| 1164 | |
| 1165 | cat >>confdefs.h <<_ACEOF |
| 1166 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1167 | _ACEOF |
| 1168 | |
| 1169 | |
| 1170 | cat >>confdefs.h <<_ACEOF |
| 1171 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1172 | _ACEOF |
| 1173 | |
| 1174 | |
| 1175 | cat >>confdefs.h <<_ACEOF |
| 1176 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1177 | _ACEOF |
| 1178 | |
| 1179 | |
| 1180 | cat >>confdefs.h <<_ACEOF |
| 1181 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1182 | _ACEOF |
| 1183 | |
| 1184 | |
| 1185 | # 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] | 1186 | # Prefer explicitly selected file to automatically selected ones. |
| 1187 | if test -z "$CONFIG_SITE"; then |
| 1188 | if test "x$prefix" != xNONE; then |
| 1189 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1190 | else |
| 1191 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1192 | fi |
| 1193 | fi |
| 1194 | for ac_site_file in $CONFIG_SITE; do |
| 1195 | if test -r "$ac_site_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1196 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1197 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1198 | sed 's/^/| /' "$ac_site_file" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1199 | . "$ac_site_file" |
| 1200 | fi |
| 1201 | done |
| 1202 | |
| 1203 | if test -r "$cache_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1204 | # Some versions of bash will fail to source /dev/null (special |
| 1205 | # files actually), so we avoid doing that. |
| 1206 | if test -f "$cache_file"; then |
| 1207 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1208 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1209 | case $cache_file in |
| 1210 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1211 | *) . ./$cache_file;; |
| 1212 | esac |
| 1213 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1214 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1215 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1216 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1217 | >$cache_file |
| 1218 | fi |
| 1219 | |
| 1220 | # Check that the precious variables saved in the cache have kept the same |
| 1221 | # value. |
| 1222 | ac_cache_corrupted=false |
| 1223 | for ac_var in `(set) 2>&1 | |
| 1224 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1225 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1226 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1227 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1228 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1229 | case $ac_old_set,$ac_new_set in |
| 1230 | set,) |
| 1231 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1232 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1233 | ac_cache_corrupted=: ;; |
| 1234 | ,set) |
| 1235 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1236 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1237 | ac_cache_corrupted=: ;; |
| 1238 | ,);; |
| 1239 | *) |
| 1240 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1241 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1242 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1243 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1244 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1245 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1246 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1247 | ac_cache_corrupted=: |
| 1248 | fi;; |
| 1249 | esac |
| 1250 | # Pass precious variables to config.status. |
| 1251 | if test "$ac_new_set" = set; then |
| 1252 | case $ac_new_val in |
| 1253 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1254 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1255 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1256 | esac |
| 1257 | case " $ac_configure_args " in |
| 1258 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1259 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1260 | esac |
| 1261 | fi |
| 1262 | done |
| 1263 | if $ac_cache_corrupted; then |
| 1264 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1265 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1266 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1267 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1268 | { (exit 1); exit 1; }; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1269 | fi |
| 1270 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1271 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1272 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1273 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1274 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1275 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1276 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1277 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1278 | |
| 1279 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1280 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1281 | |
| 1282 | |
| 1283 | |
| 1284 | |
| 1285 | |
| 1286 | |
| 1287 | |
| 1288 | |
| 1289 | |
| 1290 | |
| 1291 | |
| 1292 | |
| 1293 | |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1294 | |
| 1295 | |
| 1296 | |
| 1297 | |
| 1298 | |
| 1299 | |
| 1300 | |
| 1301 | |
| 1302 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1303 | |
| 1304 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1305 | |
| 1306 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1307 | |
| 1308 | |
| 1309 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1310 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1311 | |
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 1312 | # We don't use PACKAGE_ variables, and they cause conflicts |
| 1313 | # with other autoconf-based packages that include Python.h |
| 1314 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| 1315 | rm confdefs.h |
| 1316 | mv confdefs.h.new confdefs.h |
| 1317 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1318 | |
Fred Drake | 9bd4462 | 2003-07-30 17:39:48 +0000 | [diff] [blame] | 1319 | VERSION=2.4 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1320 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 1321 | |
| 1322 | SOVERSION=1.0 |
| 1323 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1324 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 1325 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 1326 | |
| 1327 | cat >>confdefs.h <<\_ACEOF |
| 1328 | #define _GNU_SOURCE 1 |
| 1329 | _ACEOF |
| 1330 | |
| 1331 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 1332 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1333 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 1334 | # them. |
| 1335 | |
| 1336 | cat >>confdefs.h <<\_ACEOF |
| 1337 | #define _NETBSD_SOURCE 1 |
| 1338 | _ACEOF |
| 1339 | |
| 1340 | |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 1341 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1342 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| 1343 | # them. |
| 1344 | |
| 1345 | cat >>confdefs.h <<\_ACEOF |
| 1346 | #define __BSD_VISIBLE 1 |
| 1347 | _ACEOF |
| 1348 | |
| 1349 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1350 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1351 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 1352 | # Arguments passed to configure. |
| 1353 | |
| 1354 | CONFIG_ARGS="$ac_configure_args" |
| 1355 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1356 | # Check whether --enable-framework or --disable-framework was given. |
| 1357 | if test "${enable_framework+set}" = set; then |
| 1358 | enableval="$enable_framework" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1359 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1360 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1361 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1362 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1363 | esac |
| 1364 | case $enableval in |
| 1365 | no) |
| 1366 | PYTHONFRAMEWORK= |
| 1367 | PYTHONFRAMEWORKDIR=no-framework |
| 1368 | PYTHONFRAMEWORKPREFIX= |
| 1369 | PYTHONFRAMEWORKINSTALLDIR= |
| 1370 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1371 | ;; |
| 1372 | *) |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1373 | PYTHONFRAMEWORK=Python |
| 1374 | PYTHONFRAMEWORKDIR=Python.framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1375 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1376 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
| 1377 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1378 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1379 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1380 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1381 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1382 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1383 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1384 | PYTHONFRAMEWORKPREFIX= |
| 1385 | PYTHONFRAMEWORKINSTALLDIR= |
| 1386 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1387 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1388 | fi; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1389 | |
| 1390 | |
| 1391 | |
| 1392 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1393 | |
| 1394 | ##AC_ARG_WITH(dyld, |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1395 | ## AC_HELP_STRING(--with-dyld, |
| 1396 | ## Use (OpenStep|Rhapsody) dynamic linker)) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1397 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1398 | # Set name for machine-dependent library files |
| 1399 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1400 | echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 1401 | echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1402 | if test -z "$MACHDEP" |
| 1403 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1404 | ac_sys_system=`uname -s` |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 1405 | if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \ |
| 1406 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1407 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1408 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1409 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1410 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1411 | ac_md_system=`echo $ac_sys_system | |
| 1412 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 1413 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 1414 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1415 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1416 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 1417 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 1418 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 1419 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 1420 | atheos*) MACHDEP="atheos";; |
Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 1421 | irix646) MACHDEP="irix6";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1422 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1423 | esac |
| 1424 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1425 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1426 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 1427 | # disable features if it is defined, without any means to access these |
| 1428 | # features as extensions. For these systems, we skip the definition of |
| 1429 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 1430 | # some feature, make sure there is no alternative way to access this |
| 1431 | # feature. Also, when using wildcards, make sure you have verified the |
| 1432 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 1433 | # wildcard, and that the wildcard does not include future systems |
| 1434 | # (which may remove their limitations). |
| 1435 | case $ac_sys_system/$ac_sys_release in |
| 1436 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 1437 | # even though select is a POSIX function. Reported by J. Ribbens. |
Martin v. Löwis | 76bafc6 | 2003-10-03 13:47:44 +0000 | [diff] [blame] | 1438 | # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. |
| 1439 | OpenBSD/2.* | OpenBSD/3.[01234]) |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1440 | define_xopen_source=no;; |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 1441 | # On Solaris 2.6, sys/wait.h is inconsistent in the usage |
| 1442 | # of union __?sigval. Reported by Stuart Bishop. |
| 1443 | SunOS/5.6) |
| 1444 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 1445 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| 1446 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
| 1447 | OpenUNIX/8.0.0| UnixWare/7.1.[0-3]) |
| 1448 | define_xopen_source=no;; |
| 1449 | # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE, |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 1450 | # but used in struct sockaddr.sa_family. Reported by Tim Rice. |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 1451 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 1452 | define_xopen_source=no;; |
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 1453 | # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that |
| 1454 | # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently, |
| 1455 | # this is fixed in 10.3, which identifies itself as Darwin/7.* |
| 1456 | # This should hopefully be fixed in FreeBSD 4.9 |
| 1457 | FreeBSD/4.8* | Darwin/6* ) |
| 1458 | define_xopen_source=no;; |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 1459 | # On AIX 4, mbstate_t is defined only when _XOPEN_SOURCE == 500 but used in |
| 1460 | # wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined or |
| 1461 | # has another value. By not (re)defining it, the defaults come in place. |
| 1462 | AIX/4) |
| 1463 | define_xopen_source=no;; |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1464 | esac |
| 1465 | |
| 1466 | if test $define_xopen_source = yes |
| 1467 | then |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1468 | |
| 1469 | cat >>confdefs.h <<\_ACEOF |
| 1470 | #define _XOPEN_SOURCE 600 |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1471 | _ACEOF |
| 1472 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1473 | |
| 1474 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 1475 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 1476 | # several APIs are not declared. Since this is also needed in some |
| 1477 | # cases for HP-UX, we define it globally. |
| 1478 | |
| 1479 | |
| 1480 | cat >>confdefs.h <<\_ACEOF |
| 1481 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 1482 | _ACEOF |
| 1483 | |
| 1484 | |
| 1485 | cat >>confdefs.h <<\_ACEOF |
| 1486 | #define _POSIX_C_SOURCE 200112L |
| 1487 | _ACEOF |
| 1488 | |
| 1489 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1490 | fi |
| 1491 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1492 | # |
| 1493 | # SGI compilers allow the specification of the both the ABI and the |
| 1494 | # ISA on the command line. Depending on the values of these switches, |
| 1495 | # different and often incompatable code will be generated. |
| 1496 | # |
| 1497 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 1498 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 1499 | # variable is also adjusted. |
| 1500 | # |
| 1501 | |
| 1502 | if test ! -z "$SGI_ABI" |
| 1503 | then |
| 1504 | CC="cc $SGI_ABI" |
| 1505 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 1506 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 1507 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1508 | echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 1509 | echo "${ECHO_T}$MACHDEP" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1510 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1511 | # And add extra plat-mac for darwin |
| 1512 | |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 1513 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1514 | echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5 |
| 1515 | echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6 |
| 1516 | if test -z "$EXTRAPLATDIR" |
| 1517 | then |
| 1518 | case $MACHDEP in |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 1519 | darwin) |
| 1520 | EXTRAPLATDIR="\$(PLATMACDIRS)" |
| 1521 | EXTRAMACHDEPPATH="\$(PLATMACPATH)" |
| 1522 | ;; |
| 1523 | *) |
| 1524 | EXTRAPLATDIR="" |
| 1525 | EXTRAMACHDEPPATH="" |
| 1526 | ;; |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1527 | esac |
| 1528 | fi |
| 1529 | echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5 |
| 1530 | echo "${ECHO_T}$EXTRAPLATDIR" >&6 |
| 1531 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1532 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1533 | |
| 1534 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 1535 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 1536 | # just to get things to compile and link. Users are free to override OPT |
| 1537 | # when running configure or make. The build should not break if they do. |
| 1538 | # BASECFLAGS should generally not be messed with, however. |
| 1539 | |
| 1540 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 1541 | # on that fiddles with OPT and BASECFLAGS? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1542 | echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 1543 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6 |
| 1544 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1545 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1546 | if test "${with_gcc+set}" = set; then |
| 1547 | withval="$with_gcc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1548 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1549 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1550 | no) CC=cc |
| 1551 | without_gcc=yes;; |
| 1552 | yes) CC=gcc |
| 1553 | without_gcc=no;; |
| 1554 | *) CC=$withval |
| 1555 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1556 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1557 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1558 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1559 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1560 | AIX*) CC=cc_r |
| 1561 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1562 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1563 | case $BE_HOST_CPU in |
| 1564 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1565 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1566 | without_gcc=yes |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1567 | BASECFLAGS="$BASECFLAGS -export pragma" |
| 1568 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1569 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1570 | ;; |
| 1571 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1572 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1573 | without_gcc=no |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1574 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1575 | ;; |
| 1576 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1577 | { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| 1578 | echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;} |
| 1579 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1580 | ;; |
| 1581 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1582 | AR="\$(srcdir)/Modules/ar_beos" |
| 1583 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1584 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1585 | Monterey*) |
| 1586 | RANLIB=: |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1587 | without_gcc=;; |
| 1588 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1589 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1590 | fi; |
| 1591 | echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 1592 | echo "${ECHO_T}$without_gcc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1593 | |
| 1594 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1595 | |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1596 | MAINOBJ=python.o |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1597 | echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5 |
| 1598 | echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6 |
| 1599 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1600 | # Check whether --with-cxx or --without-cxx was given. |
| 1601 | if test "${with_cxx+set}" = set; then |
| 1602 | withval="$with_cxx" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1603 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1604 | check_cxx=no |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1605 | case $withval in |
| 1606 | no) CXX= |
| 1607 | with_cxx=no;; |
| 1608 | *) CXX=$withval |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1609 | MAINOBJ=ccpython.o |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1610 | with_cxx=$withval;; |
| 1611 | esac |
| 1612 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1613 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1614 | with_cxx=no |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1615 | check_cxx=yes |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1616 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1617 | fi; |
| 1618 | echo "$as_me:$LINENO: result: $with_cxx" >&5 |
| 1619 | echo "${ECHO_T}$with_cxx" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1620 | |
| 1621 | if test "$with_cxx" = "yes" |
| 1622 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1623 | { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5 |
| 1624 | echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;} |
| 1625 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1626 | fi |
| 1627 | |
| 1628 | |
| 1629 | |
| 1630 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1631 | if test "$check_cxx" = "yes" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1632 | then |
| 1633 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 1634 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1635 | # 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] | 1636 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1637 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1638 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1639 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 1640 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1641 | else |
| 1642 | if test -n "$CXX"; then |
| 1643 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 1644 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1646 | for as_dir in $PATH |
| 1647 | do |
| 1648 | IFS=$as_save_IFS |
| 1649 | test -z "$as_dir" && as_dir=. |
| 1650 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1651 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1652 | ac_cv_prog_CXX="$ac_prog" |
| 1653 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1654 | break 2 |
| 1655 | fi |
| 1656 | done |
| 1657 | done |
| 1658 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1659 | fi |
| 1660 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1661 | CXX=$ac_cv_prog_CXX |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1662 | if test -n "$CXX"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1663 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 1664 | echo "${ECHO_T}$CXX" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1665 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1666 | echo "$as_me:$LINENO: result: no" >&5 |
| 1667 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1668 | fi |
| 1669 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1670 | test -n "$CXX" && break |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1671 | done |
| 1672 | test -n "$CXX" || CXX="notfound" |
| 1673 | |
| 1674 | if test "$CXX" = "notfound" |
| 1675 | then |
| 1676 | CXX= |
| 1677 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1678 | ac_ext=cc |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1679 | ac_cpp='$CXXCPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1680 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1681 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1682 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 1683 | cat >conftest.$ac_ext <<_ACEOF |
| 1684 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1685 | /* confdefs.h. */ |
| 1686 | _ACEOF |
| 1687 | cat confdefs.h >>conftest.$ac_ext |
| 1688 | cat >>conftest.$ac_ext <<_ACEOF |
| 1689 | /* end confdefs.h. */ |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1690 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1691 | int |
| 1692 | main () |
| 1693 | { |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1694 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1695 | ; |
| 1696 | return 0; |
| 1697 | } |
| 1698 | _ACEOF |
| 1699 | ac_clean_files_save=$ac_clean_files |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1700 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1701 | # Try to create an executable without -o first, disregard a.out. |
| 1702 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1703 | # of exeext. |
| 1704 | echo "$as_me:$LINENO: checking for C++ compiler default output" >&5 |
| 1705 | echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6 |
| 1706 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1707 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1708 | (eval $ac_link_default) 2>&5 |
| 1709 | ac_status=$? |
| 1710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1711 | (exit $ac_status); }; then |
| 1712 | # Find the output, starting from the most likely. This scheme is |
| 1713 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1714 | # resort. |
| 1715 | |
| 1716 | # Be careful to initialize this variable, since it used to be cached. |
| 1717 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1718 | ac_cv_exeext= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1719 | # b.out is created by i960 compilers. |
| 1720 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 1721 | do |
| 1722 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1723 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1724 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 1725 | ;; |
| 1726 | conftest.$ac_ext ) |
| 1727 | # This is the source file. |
| 1728 | ;; |
| 1729 | [ab].out ) |
| 1730 | # We found the default executable, but exeext='' is most |
| 1731 | # certainly right. |
| 1732 | break;; |
| 1733 | *.* ) |
| 1734 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1735 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1736 | # but it would be cool to find out if it's true. Does anybody |
| 1737 | # maintain Libtool? --akim. |
| 1738 | export ac_cv_exeext |
| 1739 | break;; |
| 1740 | * ) |
| 1741 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1742 | esac |
| 1743 | done |
| 1744 | else |
| 1745 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1746 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1747 | |
| 1748 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
| 1749 | See \`config.log' for more details." >&5 |
| 1750 | echo "$as_me: error: C++ compiler cannot create executables |
| 1751 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1752 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1753 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1754 | |
| 1755 | ac_exeext=$ac_cv_exeext |
| 1756 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1757 | echo "${ECHO_T}$ac_file" >&6 |
| 1758 | |
| 1759 | # Check the compiler produces executables we can run. If not, either |
| 1760 | # the compiler is broken, or we cross compile. |
| 1761 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
| 1762 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
| 1763 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1764 | # If not cross compiling, check that we can run a simple program. |
| 1765 | if test "$cross_compiling" != yes; then |
| 1766 | if { ac_try='./$ac_file' |
| 1767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1768 | (eval $ac_try) 2>&5 |
| 1769 | ac_status=$? |
| 1770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1771 | (exit $ac_status); }; }; then |
| 1772 | cross_compiling=no |
| 1773 | else |
| 1774 | if test "$cross_compiling" = maybe; then |
| 1775 | cross_compiling=yes |
| 1776 | else |
| 1777 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1778 | If you meant to cross compile, use \`--host'. |
| 1779 | See \`config.log' for more details." >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1780 | echo "$as_me: error: cannot run C++ compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1781 | If you meant to cross compile, use \`--host'. |
| 1782 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1783 | { (exit 1); exit 1; }; } |
| 1784 | fi |
| 1785 | fi |
| 1786 | fi |
| 1787 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1788 | echo "${ECHO_T}yes" >&6 |
| 1789 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1790 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1791 | ac_clean_files=$ac_clean_files_save |
| 1792 | # Check the compiler produces executables we can run. If not, either |
| 1793 | # the compiler is broken, or we cross compile. |
| 1794 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1795 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1796 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1797 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1798 | |
| 1799 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1800 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1801 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1802 | (eval $ac_link) 2>&5 |
| 1803 | ac_status=$? |
| 1804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1805 | (exit $ac_status); }; then |
| 1806 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1807 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1808 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1809 | # `rm'. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1810 | for ac_file in conftest.exe conftest conftest.*; do |
| 1811 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1812 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1813 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1814 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1815 | export ac_cv_exeext |
| 1816 | break;; |
| 1817 | * ) break;; |
| 1818 | esac |
| 1819 | done |
| 1820 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1821 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1822 | See \`config.log' for more details." >&5 |
| 1823 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 1824 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1825 | { (exit 1); exit 1; }; } |
| 1826 | fi |
| 1827 | |
| 1828 | rm -f conftest$ac_cv_exeext |
| 1829 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1830 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1831 | |
| 1832 | rm -f conftest.$ac_ext |
| 1833 | EXEEXT=$ac_cv_exeext |
| 1834 | ac_exeext=$EXEEXT |
| 1835 | |
| 1836 | ac_ext=c |
| 1837 | ac_cpp='$CPP $CPPFLAGS' |
| 1838 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1839 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1840 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1841 | |
| 1842 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1843 | |
| 1844 | fi |
| 1845 | fi |
| 1846 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1847 | # If the user switches compilers, we can't believe the cache |
| 1848 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 1849 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1850 | { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file |
| 1851 | (it is also a good idea to do 'make clean' before compiling)" >&5 |
| 1852 | echo "$as_me: error: cached CC is different -- throw away $cache_file |
| 1853 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 1854 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1855 | fi |
| 1856 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1857 | ac_ext=c |
| 1858 | ac_cpp='$CPP $CPPFLAGS' |
| 1859 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1860 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1861 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1862 | if test -n "$ac_tool_prefix"; then |
| 1863 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1864 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1865 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1866 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1867 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1869 | else |
| 1870 | if test -n "$CC"; then |
| 1871 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1872 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1874 | for as_dir in $PATH |
| 1875 | do |
| 1876 | IFS=$as_save_IFS |
| 1877 | test -z "$as_dir" && as_dir=. |
| 1878 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1879 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1880 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1881 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1882 | break 2 |
| 1883 | fi |
| 1884 | done |
| 1885 | done |
| 1886 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1887 | fi |
| 1888 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1889 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1890 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1891 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1892 | echo "${ECHO_T}$CC" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1893 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1894 | echo "$as_me:$LINENO: result: no" >&5 |
| 1895 | echo "${ECHO_T}no" >&6 |
| 1896 | fi |
| 1897 | |
| 1898 | fi |
| 1899 | if test -z "$ac_cv_prog_CC"; then |
| 1900 | ac_ct_CC=$CC |
| 1901 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1902 | set dummy gcc; ac_word=$2 |
| 1903 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1904 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1905 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1906 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1907 | else |
| 1908 | if test -n "$ac_ct_CC"; then |
| 1909 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1910 | else |
| 1911 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1912 | for as_dir in $PATH |
| 1913 | do |
| 1914 | IFS=$as_save_IFS |
| 1915 | test -z "$as_dir" && as_dir=. |
| 1916 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1917 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1918 | ac_cv_prog_ac_ct_CC="gcc" |
| 1919 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1920 | break 2 |
| 1921 | fi |
| 1922 | done |
| 1923 | done |
| 1924 | |
| 1925 | fi |
| 1926 | fi |
| 1927 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1928 | if test -n "$ac_ct_CC"; then |
| 1929 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1930 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1931 | else |
| 1932 | echo "$as_me:$LINENO: result: no" >&5 |
| 1933 | echo "${ECHO_T}no" >&6 |
| 1934 | fi |
| 1935 | |
| 1936 | CC=$ac_ct_CC |
| 1937 | else |
| 1938 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1939 | fi |
| 1940 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1941 | if test -z "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1942 | if test -n "$ac_tool_prefix"; then |
| 1943 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1944 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1945 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1946 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1947 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1948 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1949 | else |
| 1950 | if test -n "$CC"; then |
| 1951 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1952 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1953 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1954 | for as_dir in $PATH |
| 1955 | do |
| 1956 | IFS=$as_save_IFS |
| 1957 | test -z "$as_dir" && as_dir=. |
| 1958 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1959 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1960 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1961 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1962 | break 2 |
| 1963 | fi |
| 1964 | done |
| 1965 | done |
| 1966 | |
| 1967 | fi |
| 1968 | fi |
| 1969 | CC=$ac_cv_prog_CC |
| 1970 | if test -n "$CC"; then |
| 1971 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1972 | echo "${ECHO_T}$CC" >&6 |
| 1973 | else |
| 1974 | echo "$as_me:$LINENO: result: no" >&5 |
| 1975 | echo "${ECHO_T}no" >&6 |
| 1976 | fi |
| 1977 | |
| 1978 | fi |
| 1979 | if test -z "$ac_cv_prog_CC"; then |
| 1980 | ac_ct_CC=$CC |
| 1981 | # Extract the first word of "cc", so it can be a program name with args. |
| 1982 | set dummy cc; ac_word=$2 |
| 1983 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1984 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1985 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1987 | else |
| 1988 | if test -n "$ac_ct_CC"; then |
| 1989 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1990 | else |
| 1991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1992 | for as_dir in $PATH |
| 1993 | do |
| 1994 | IFS=$as_save_IFS |
| 1995 | test -z "$as_dir" && as_dir=. |
| 1996 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1997 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1998 | ac_cv_prog_ac_ct_CC="cc" |
| 1999 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2000 | break 2 |
| 2001 | fi |
| 2002 | done |
| 2003 | done |
| 2004 | |
| 2005 | fi |
| 2006 | fi |
| 2007 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2008 | if test -n "$ac_ct_CC"; then |
| 2009 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2010 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2011 | else |
| 2012 | echo "$as_me:$LINENO: result: no" >&5 |
| 2013 | echo "${ECHO_T}no" >&6 |
| 2014 | fi |
| 2015 | |
| 2016 | CC=$ac_ct_CC |
| 2017 | else |
| 2018 | CC="$ac_cv_prog_CC" |
| 2019 | fi |
| 2020 | |
| 2021 | fi |
| 2022 | if test -z "$CC"; then |
| 2023 | # Extract the first word of "cc", so it can be a program name with args. |
| 2024 | set dummy cc; ac_word=$2 |
| 2025 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2026 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2027 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2028 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2029 | else |
| 2030 | if test -n "$CC"; then |
| 2031 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2032 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2033 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2034 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2035 | for as_dir in $PATH |
| 2036 | do |
| 2037 | IFS=$as_save_IFS |
| 2038 | test -z "$as_dir" && as_dir=. |
| 2039 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2040 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2041 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2042 | ac_prog_rejected=yes |
| 2043 | continue |
| 2044 | fi |
| 2045 | ac_cv_prog_CC="cc" |
| 2046 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2047 | break 2 |
| 2048 | fi |
| 2049 | done |
| 2050 | done |
| 2051 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2052 | if test $ac_prog_rejected = yes; then |
| 2053 | # We found a bogon in the path, so make sure we never use it. |
| 2054 | set dummy $ac_cv_prog_CC |
| 2055 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2056 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2057 | # We chose a different compiler from the bogus one. |
| 2058 | # However, it has the same basename, so the bogon will be chosen |
| 2059 | # first if we set CC to just the basename; use the full file name. |
| 2060 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2061 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2062 | fi |
| 2063 | fi |
| 2064 | fi |
| 2065 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2066 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2067 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2068 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2069 | echo "${ECHO_T}$CC" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2070 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2071 | echo "$as_me:$LINENO: result: no" >&5 |
| 2072 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2073 | fi |
| 2074 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2075 | fi |
| 2076 | if test -z "$CC"; then |
| 2077 | if test -n "$ac_tool_prefix"; then |
| 2078 | for ac_prog in cl |
| 2079 | do |
| 2080 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2081 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2082 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2083 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2084 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2086 | else |
| 2087 | if test -n "$CC"; then |
| 2088 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2089 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2090 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2091 | for as_dir in $PATH |
| 2092 | do |
| 2093 | IFS=$as_save_IFS |
| 2094 | test -z "$as_dir" && as_dir=. |
| 2095 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2096 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2097 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2098 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2099 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2100 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2101 | done |
| 2102 | done |
| 2103 | |
| 2104 | fi |
| 2105 | fi |
| 2106 | CC=$ac_cv_prog_CC |
| 2107 | if test -n "$CC"; then |
| 2108 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2109 | echo "${ECHO_T}$CC" >&6 |
| 2110 | else |
| 2111 | echo "$as_me:$LINENO: result: no" >&5 |
| 2112 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2113 | fi |
| 2114 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2115 | test -n "$CC" && break |
| 2116 | done |
| 2117 | fi |
| 2118 | if test -z "$CC"; then |
| 2119 | ac_ct_CC=$CC |
| 2120 | for ac_prog in cl |
| 2121 | do |
| 2122 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2123 | set dummy $ac_prog; ac_word=$2 |
| 2124 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2125 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2126 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2127 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2128 | else |
| 2129 | if test -n "$ac_ct_CC"; then |
| 2130 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2131 | else |
| 2132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2133 | for as_dir in $PATH |
| 2134 | do |
| 2135 | IFS=$as_save_IFS |
| 2136 | test -z "$as_dir" && as_dir=. |
| 2137 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2138 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2139 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2140 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2141 | break 2 |
| 2142 | fi |
| 2143 | done |
| 2144 | done |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2145 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2146 | fi |
| 2147 | fi |
| 2148 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2149 | if test -n "$ac_ct_CC"; then |
| 2150 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2151 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2152 | else |
| 2153 | echo "$as_me:$LINENO: result: no" >&5 |
| 2154 | echo "${ECHO_T}no" >&6 |
| 2155 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2156 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2157 | test -n "$ac_ct_CC" && break |
| 2158 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2159 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2160 | CC=$ac_ct_CC |
| 2161 | fi |
| 2162 | |
| 2163 | fi |
| 2164 | |
| 2165 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2166 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2167 | See \`config.log' for more details." >&5 |
| 2168 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2169 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2170 | { (exit 1); exit 1; }; } |
| 2171 | |
| 2172 | # Provide some information about the compiler. |
| 2173 | echo "$as_me:$LINENO:" \ |
| 2174 | "checking for C compiler version" >&5 |
| 2175 | ac_compiler=`set X $ac_compile; echo $2` |
| 2176 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2177 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2178 | ac_status=$? |
| 2179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2180 | (exit $ac_status); } |
| 2181 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2182 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2183 | ac_status=$? |
| 2184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2185 | (exit $ac_status); } |
| 2186 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2187 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2188 | ac_status=$? |
| 2189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2190 | (exit $ac_status); } |
| 2191 | |
| 2192 | cat >conftest.$ac_ext <<_ACEOF |
| 2193 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2194 | /* confdefs.h. */ |
| 2195 | _ACEOF |
| 2196 | cat confdefs.h >>conftest.$ac_ext |
| 2197 | cat >>conftest.$ac_ext <<_ACEOF |
| 2198 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2199 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2200 | int |
| 2201 | main () |
| 2202 | { |
| 2203 | |
| 2204 | ; |
| 2205 | return 0; |
| 2206 | } |
| 2207 | _ACEOF |
| 2208 | ac_clean_files_save=$ac_clean_files |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2209 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2210 | # Try to create an executable without -o first, disregard a.out. |
| 2211 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2212 | # of exeext. |
| 2213 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
| 2214 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 2215 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2216 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2217 | (eval $ac_link_default) 2>&5 |
| 2218 | ac_status=$? |
| 2219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2220 | (exit $ac_status); }; then |
| 2221 | # Find the output, starting from the most likely. This scheme is |
| 2222 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2223 | # resort. |
| 2224 | |
| 2225 | # Be careful to initialize this variable, since it used to be cached. |
| 2226 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2227 | ac_cv_exeext= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2228 | # b.out is created by i960 compilers. |
| 2229 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 2230 | do |
| 2231 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2232 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2233 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 2234 | ;; |
| 2235 | conftest.$ac_ext ) |
| 2236 | # This is the source file. |
| 2237 | ;; |
| 2238 | [ab].out ) |
| 2239 | # We found the default executable, but exeext='' is most |
| 2240 | # certainly right. |
| 2241 | break;; |
| 2242 | *.* ) |
| 2243 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2244 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 2245 | # but it would be cool to find out if it's true. Does anybody |
| 2246 | # maintain Libtool? --akim. |
| 2247 | export ac_cv_exeext |
| 2248 | break;; |
| 2249 | * ) |
| 2250 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2251 | esac |
| 2252 | done |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2253 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2254 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2255 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2256 | |
| 2257 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2258 | See \`config.log' for more details." >&5 |
| 2259 | echo "$as_me: error: C compiler cannot create executables |
| 2260 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2261 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2262 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2263 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2264 | ac_exeext=$ac_cv_exeext |
| 2265 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2266 | echo "${ECHO_T}$ac_file" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2267 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2268 | # Check the compiler produces executables we can run. If not, either |
| 2269 | # the compiler is broken, or we cross compile. |
| 2270 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2271 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2272 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2273 | # If not cross compiling, check that we can run a simple program. |
| 2274 | if test "$cross_compiling" != yes; then |
| 2275 | if { ac_try='./$ac_file' |
| 2276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2277 | (eval $ac_try) 2>&5 |
| 2278 | ac_status=$? |
| 2279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2280 | (exit $ac_status); }; }; then |
| 2281 | cross_compiling=no |
| 2282 | else |
| 2283 | if test "$cross_compiling" = maybe; then |
| 2284 | cross_compiling=yes |
| 2285 | else |
| 2286 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2287 | If you meant to cross compile, use \`--host'. |
| 2288 | See \`config.log' for more details." >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2289 | echo "$as_me: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2290 | If you meant to cross compile, use \`--host'. |
| 2291 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2292 | { (exit 1); exit 1; }; } |
| 2293 | fi |
| 2294 | fi |
| 2295 | fi |
| 2296 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2297 | echo "${ECHO_T}yes" >&6 |
| 2298 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2299 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2300 | ac_clean_files=$ac_clean_files_save |
| 2301 | # Check the compiler produces executables we can run. If not, either |
| 2302 | # the compiler is broken, or we cross compile. |
| 2303 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2304 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2305 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2306 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2307 | |
| 2308 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2309 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2310 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2311 | (eval $ac_link) 2>&5 |
| 2312 | ac_status=$? |
| 2313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2314 | (exit $ac_status); }; then |
| 2315 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2316 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2317 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2318 | # `rm'. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2319 | for ac_file in conftest.exe conftest conftest.*; do |
| 2320 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2321 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2322 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2323 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2324 | export ac_cv_exeext |
| 2325 | break;; |
| 2326 | * ) break;; |
| 2327 | esac |
| 2328 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2329 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2330 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2331 | See \`config.log' for more details." >&5 |
| 2332 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2333 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2334 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2335 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2336 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2337 | rm -f conftest$ac_cv_exeext |
| 2338 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2339 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2340 | |
| 2341 | rm -f conftest.$ac_ext |
| 2342 | EXEEXT=$ac_cv_exeext |
| 2343 | ac_exeext=$EXEEXT |
| 2344 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2345 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2346 | if test "${ac_cv_objext+set}" = set; then |
| 2347 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2348 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2349 | cat >conftest.$ac_ext <<_ACEOF |
| 2350 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2351 | /* confdefs.h. */ |
| 2352 | _ACEOF |
| 2353 | cat confdefs.h >>conftest.$ac_ext |
| 2354 | cat >>conftest.$ac_ext <<_ACEOF |
| 2355 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2356 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2357 | int |
| 2358 | main () |
| 2359 | { |
| 2360 | |
| 2361 | ; |
| 2362 | return 0; |
| 2363 | } |
| 2364 | _ACEOF |
| 2365 | rm -f conftest.o conftest.obj |
| 2366 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2367 | (eval $ac_compile) 2>&5 |
| 2368 | ac_status=$? |
| 2369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2370 | (exit $ac_status); }; then |
| 2371 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2372 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2373 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2374 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2375 | break;; |
| 2376 | esac |
| 2377 | done |
| 2378 | else |
| 2379 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2380 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2381 | |
| 2382 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2383 | See \`config.log' for more details." >&5 |
| 2384 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2385 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2386 | { (exit 1); exit 1; }; } |
| 2387 | fi |
| 2388 | |
| 2389 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2390 | fi |
| 2391 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2392 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2393 | OBJEXT=$ac_cv_objext |
| 2394 | ac_objext=$OBJEXT |
| 2395 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2396 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2397 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2398 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2399 | else |
| 2400 | cat >conftest.$ac_ext <<_ACEOF |
| 2401 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2402 | /* confdefs.h. */ |
| 2403 | _ACEOF |
| 2404 | cat confdefs.h >>conftest.$ac_ext |
| 2405 | cat >>conftest.$ac_ext <<_ACEOF |
| 2406 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2407 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2408 | int |
| 2409 | main () |
| 2410 | { |
| 2411 | #ifndef __GNUC__ |
| 2412 | choke me |
| 2413 | #endif |
| 2414 | |
| 2415 | ; |
| 2416 | return 0; |
| 2417 | } |
| 2418 | _ACEOF |
| 2419 | rm -f conftest.$ac_objext |
| 2420 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2421 | (eval $ac_compile) 2>&5 |
| 2422 | ac_status=$? |
| 2423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2424 | (exit $ac_status); } && |
| 2425 | { ac_try='test -s conftest.$ac_objext' |
| 2426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2427 | (eval $ac_try) 2>&5 |
| 2428 | ac_status=$? |
| 2429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2430 | (exit $ac_status); }; }; then |
| 2431 | ac_compiler_gnu=yes |
| 2432 | else |
| 2433 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2434 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2435 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2436 | ac_compiler_gnu=no |
| 2437 | fi |
| 2438 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2439 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2440 | |
| 2441 | fi |
| 2442 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2443 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2444 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2445 | ac_test_CFLAGS=${CFLAGS+set} |
| 2446 | ac_save_CFLAGS=$CFLAGS |
| 2447 | CFLAGS="-g" |
| 2448 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2449 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2450 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2451 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2452 | else |
| 2453 | cat >conftest.$ac_ext <<_ACEOF |
| 2454 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2455 | /* confdefs.h. */ |
| 2456 | _ACEOF |
| 2457 | cat confdefs.h >>conftest.$ac_ext |
| 2458 | cat >>conftest.$ac_ext <<_ACEOF |
| 2459 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2460 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2461 | int |
| 2462 | main () |
| 2463 | { |
| 2464 | |
| 2465 | ; |
| 2466 | return 0; |
| 2467 | } |
| 2468 | _ACEOF |
| 2469 | rm -f conftest.$ac_objext |
| 2470 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2471 | (eval $ac_compile) 2>&5 |
| 2472 | ac_status=$? |
| 2473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2474 | (exit $ac_status); } && |
| 2475 | { ac_try='test -s conftest.$ac_objext' |
| 2476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2477 | (eval $ac_try) 2>&5 |
| 2478 | ac_status=$? |
| 2479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2480 | (exit $ac_status); }; }; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2481 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2482 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2483 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2484 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2485 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2486 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2487 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2488 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2489 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2490 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2491 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2492 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2493 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2494 | elif test $ac_cv_prog_cc_g = yes; then |
| 2495 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2496 | CFLAGS="-g -O2" |
| 2497 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2498 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2499 | fi |
| 2500 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2501 | if test "$GCC" = yes; then |
| 2502 | CFLAGS="-O2" |
| 2503 | else |
| 2504 | CFLAGS= |
| 2505 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2506 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2507 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2508 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2509 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2510 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2511 | else |
| 2512 | ac_cv_prog_cc_stdc=no |
| 2513 | ac_save_CC=$CC |
| 2514 | cat >conftest.$ac_ext <<_ACEOF |
| 2515 | #line $LINENO "configure" |
| 2516 | /* confdefs.h. */ |
| 2517 | _ACEOF |
| 2518 | cat confdefs.h >>conftest.$ac_ext |
| 2519 | cat >>conftest.$ac_ext <<_ACEOF |
| 2520 | /* end confdefs.h. */ |
| 2521 | #include <stdarg.h> |
| 2522 | #include <stdio.h> |
| 2523 | #include <sys/types.h> |
| 2524 | #include <sys/stat.h> |
| 2525 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2526 | struct buf { int x; }; |
| 2527 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2528 | static char *e (p, i) |
| 2529 | char **p; |
| 2530 | int i; |
| 2531 | { |
| 2532 | return p[i]; |
| 2533 | } |
| 2534 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2535 | { |
| 2536 | char *s; |
| 2537 | va_list v; |
| 2538 | va_start (v,p); |
| 2539 | s = g (p, va_arg (v,int)); |
| 2540 | va_end (v); |
| 2541 | return s; |
| 2542 | } |
| 2543 | int test (int i, double x); |
| 2544 | struct s1 {int (*f) (int a);}; |
| 2545 | struct s2 {int (*f) (double a);}; |
| 2546 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2547 | int argc; |
| 2548 | char **argv; |
| 2549 | int |
| 2550 | main () |
| 2551 | { |
| 2552 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2553 | ; |
| 2554 | return 0; |
| 2555 | } |
| 2556 | _ACEOF |
| 2557 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2558 | # breaks some systems' header files. |
| 2559 | # AIX -qlanglvl=ansi |
| 2560 | # Ultrix and OSF/1 -std1 |
| 2561 | # HP-UX 10.20 and later -Ae |
| 2562 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2563 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2564 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2565 | do |
| 2566 | CC="$ac_save_CC $ac_arg" |
| 2567 | rm -f conftest.$ac_objext |
| 2568 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2569 | (eval $ac_compile) 2>&5 |
| 2570 | ac_status=$? |
| 2571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2572 | (exit $ac_status); } && |
| 2573 | { ac_try='test -s conftest.$ac_objext' |
| 2574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2575 | (eval $ac_try) 2>&5 |
| 2576 | ac_status=$? |
| 2577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2578 | (exit $ac_status); }; }; then |
| 2579 | ac_cv_prog_cc_stdc=$ac_arg |
| 2580 | break |
| 2581 | else |
| 2582 | echo "$as_me: failed program was:" >&5 |
| 2583 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2584 | |
| 2585 | fi |
| 2586 | rm -f conftest.$ac_objext |
| 2587 | done |
| 2588 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2589 | CC=$ac_save_CC |
| 2590 | |
| 2591 | fi |
| 2592 | |
| 2593 | case "x$ac_cv_prog_cc_stdc" in |
| 2594 | x|xno) |
| 2595 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2596 | echo "${ECHO_T}none needed" >&6 ;; |
| 2597 | *) |
| 2598 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2599 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2600 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2601 | esac |
| 2602 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2603 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2604 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2605 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2606 | # the declaration of exit, since it's the most demanding environment. |
| 2607 | cat >conftest.$ac_ext <<_ACEOF |
| 2608 | #ifndef __cplusplus |
| 2609 | choke me |
| 2610 | #endif |
| 2611 | _ACEOF |
| 2612 | rm -f conftest.$ac_objext |
| 2613 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2614 | (eval $ac_compile) 2>&5 |
| 2615 | ac_status=$? |
| 2616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2617 | (exit $ac_status); } && |
| 2618 | { ac_try='test -s conftest.$ac_objext' |
| 2619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2620 | (eval $ac_try) 2>&5 |
| 2621 | ac_status=$? |
| 2622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2623 | (exit $ac_status); }; }; then |
| 2624 | for ac_declaration in \ |
| 2625 | ''\ |
| 2626 | '#include <stdlib.h>' \ |
| 2627 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2628 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2629 | 'extern "C" void exit (int) throw ();' \ |
| 2630 | 'extern "C" void exit (int);' \ |
| 2631 | 'void exit (int);' |
| 2632 | do |
| 2633 | cat >conftest.$ac_ext <<_ACEOF |
| 2634 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2635 | /* confdefs.h. */ |
| 2636 | _ACEOF |
| 2637 | cat confdefs.h >>conftest.$ac_ext |
| 2638 | cat >>conftest.$ac_ext <<_ACEOF |
| 2639 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2640 | #include <stdlib.h> |
| 2641 | $ac_declaration |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2642 | int |
| 2643 | main () |
| 2644 | { |
| 2645 | exit (42); |
| 2646 | ; |
| 2647 | return 0; |
| 2648 | } |
| 2649 | _ACEOF |
| 2650 | rm -f conftest.$ac_objext |
| 2651 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2652 | (eval $ac_compile) 2>&5 |
| 2653 | ac_status=$? |
| 2654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2655 | (exit $ac_status); } && |
| 2656 | { ac_try='test -s conftest.$ac_objext' |
| 2657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2658 | (eval $ac_try) 2>&5 |
| 2659 | ac_status=$? |
| 2660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2661 | (exit $ac_status); }; }; then |
| 2662 | : |
| 2663 | else |
| 2664 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2665 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2666 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2667 | continue |
| 2668 | fi |
| 2669 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2670 | cat >conftest.$ac_ext <<_ACEOF |
| 2671 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2672 | /* confdefs.h. */ |
| 2673 | _ACEOF |
| 2674 | cat confdefs.h >>conftest.$ac_ext |
| 2675 | cat >>conftest.$ac_ext <<_ACEOF |
| 2676 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2677 | $ac_declaration |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2678 | int |
| 2679 | main () |
| 2680 | { |
| 2681 | exit (42); |
| 2682 | ; |
| 2683 | return 0; |
| 2684 | } |
| 2685 | _ACEOF |
| 2686 | rm -f conftest.$ac_objext |
| 2687 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2688 | (eval $ac_compile) 2>&5 |
| 2689 | ac_status=$? |
| 2690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2691 | (exit $ac_status); } && |
| 2692 | { ac_try='test -s conftest.$ac_objext' |
| 2693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2694 | (eval $ac_try) 2>&5 |
| 2695 | ac_status=$? |
| 2696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2697 | (exit $ac_status); }; }; then |
| 2698 | break |
| 2699 | else |
| 2700 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2701 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2702 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2703 | fi |
| 2704 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2705 | done |
| 2706 | rm -f conftest* |
| 2707 | if test -n "$ac_declaration"; then |
| 2708 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2709 | echo $ac_declaration >>confdefs.h |
| 2710 | echo '#endif' >>confdefs.h |
| 2711 | fi |
| 2712 | |
| 2713 | else |
| 2714 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2715 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2716 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2717 | fi |
| 2718 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2719 | ac_ext=c |
| 2720 | ac_cpp='$CPP $CPPFLAGS' |
| 2721 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2722 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2723 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2724 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2725 | |
| 2726 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2727 | |
| 2728 | ac_ext=c |
| 2729 | ac_cpp='$CPP $CPPFLAGS' |
| 2730 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2731 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2732 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2733 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2734 | 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] | 2735 | # On Suns, sometimes $CPP names a directory. |
| 2736 | if test -n "$CPP" && test -d "$CPP"; then |
| 2737 | CPP= |
| 2738 | fi |
| 2739 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2740 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2741 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2742 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2743 | # Double quotes because CPP needs to be expanded |
| 2744 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2745 | do |
| 2746 | ac_preproc_ok=false |
| 2747 | for ac_c_preproc_warn_flag in '' yes |
| 2748 | do |
| 2749 | # Use a header file that comes with gcc, so configuring glibc |
| 2750 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2751 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2752 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2753 | # 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] | 2754 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2755 | cat >conftest.$ac_ext <<_ACEOF |
| 2756 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2757 | /* confdefs.h. */ |
| 2758 | _ACEOF |
| 2759 | cat confdefs.h >>conftest.$ac_ext |
| 2760 | cat >>conftest.$ac_ext <<_ACEOF |
| 2761 | /* end confdefs.h. */ |
| 2762 | #ifdef __STDC__ |
| 2763 | # include <limits.h> |
| 2764 | #else |
| 2765 | # include <assert.h> |
| 2766 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2767 | Syntax error |
| 2768 | _ACEOF |
| 2769 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2770 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2771 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2772 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2773 | rm -f conftest.er1 |
| 2774 | cat conftest.err >&5 |
| 2775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2776 | (exit $ac_status); } >/dev/null; then |
| 2777 | if test -s conftest.err; then |
| 2778 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2779 | else |
| 2780 | ac_cpp_err= |
| 2781 | fi |
| 2782 | else |
| 2783 | ac_cpp_err=yes |
| 2784 | fi |
| 2785 | if test -z "$ac_cpp_err"; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2786 | : |
| 2787 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2788 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2789 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2790 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2791 | # Broken: fails on valid input. |
| 2792 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2793 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2794 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2795 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2796 | # OK, works on sane cases. Now check whether non-existent headers |
| 2797 | # can be detected and how. |
| 2798 | cat >conftest.$ac_ext <<_ACEOF |
| 2799 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2800 | /* confdefs.h. */ |
| 2801 | _ACEOF |
| 2802 | cat confdefs.h >>conftest.$ac_ext |
| 2803 | cat >>conftest.$ac_ext <<_ACEOF |
| 2804 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2805 | #include <ac_nonexistent.h> |
| 2806 | _ACEOF |
| 2807 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2808 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2809 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2810 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2811 | rm -f conftest.er1 |
| 2812 | cat conftest.err >&5 |
| 2813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2814 | (exit $ac_status); } >/dev/null; then |
| 2815 | if test -s conftest.err; then |
| 2816 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2817 | else |
| 2818 | ac_cpp_err= |
| 2819 | fi |
| 2820 | else |
| 2821 | ac_cpp_err=yes |
| 2822 | fi |
| 2823 | if test -z "$ac_cpp_err"; then |
| 2824 | # Broken: success on invalid input. |
| 2825 | continue |
| 2826 | else |
| 2827 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2828 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2829 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2830 | # Passes both tests. |
| 2831 | ac_preproc_ok=: |
| 2832 | break |
| 2833 | fi |
| 2834 | rm -f conftest.err conftest.$ac_ext |
| 2835 | |
| 2836 | done |
| 2837 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2838 | rm -f conftest.err conftest.$ac_ext |
| 2839 | if $ac_preproc_ok; then |
| 2840 | break |
| 2841 | fi |
| 2842 | |
| 2843 | done |
| 2844 | ac_cv_prog_CPP=$CPP |
| 2845 | |
| 2846 | fi |
| 2847 | CPP=$ac_cv_prog_CPP |
| 2848 | else |
| 2849 | ac_cv_prog_CPP=$CPP |
| 2850 | fi |
| 2851 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2852 | echo "${ECHO_T}$CPP" >&6 |
| 2853 | ac_preproc_ok=false |
| 2854 | for ac_c_preproc_warn_flag in '' yes |
| 2855 | do |
| 2856 | # Use a header file that comes with gcc, so configuring glibc |
| 2857 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2858 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2859 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2860 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2861 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2862 | cat >conftest.$ac_ext <<_ACEOF |
| 2863 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2864 | /* confdefs.h. */ |
| 2865 | _ACEOF |
| 2866 | cat confdefs.h >>conftest.$ac_ext |
| 2867 | cat >>conftest.$ac_ext <<_ACEOF |
| 2868 | /* end confdefs.h. */ |
| 2869 | #ifdef __STDC__ |
| 2870 | # include <limits.h> |
| 2871 | #else |
| 2872 | # include <assert.h> |
| 2873 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2874 | Syntax error |
| 2875 | _ACEOF |
| 2876 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2877 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2878 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2879 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2880 | rm -f conftest.er1 |
| 2881 | cat conftest.err >&5 |
| 2882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2883 | (exit $ac_status); } >/dev/null; then |
| 2884 | if test -s conftest.err; then |
| 2885 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2886 | else |
| 2887 | ac_cpp_err= |
| 2888 | fi |
| 2889 | else |
| 2890 | ac_cpp_err=yes |
| 2891 | fi |
| 2892 | if test -z "$ac_cpp_err"; then |
| 2893 | : |
| 2894 | else |
| 2895 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2896 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2897 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2898 | # Broken: fails on valid input. |
| 2899 | continue |
| 2900 | fi |
| 2901 | rm -f conftest.err conftest.$ac_ext |
| 2902 | |
| 2903 | # OK, works on sane cases. Now check whether non-existent headers |
| 2904 | # can be detected and how. |
| 2905 | cat >conftest.$ac_ext <<_ACEOF |
| 2906 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2907 | /* confdefs.h. */ |
| 2908 | _ACEOF |
| 2909 | cat confdefs.h >>conftest.$ac_ext |
| 2910 | cat >>conftest.$ac_ext <<_ACEOF |
| 2911 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2912 | #include <ac_nonexistent.h> |
| 2913 | _ACEOF |
| 2914 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2915 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2916 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2917 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2918 | rm -f conftest.er1 |
| 2919 | cat conftest.err >&5 |
| 2920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2921 | (exit $ac_status); } >/dev/null; then |
| 2922 | if test -s conftest.err; then |
| 2923 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2924 | else |
| 2925 | ac_cpp_err= |
| 2926 | fi |
| 2927 | else |
| 2928 | ac_cpp_err=yes |
| 2929 | fi |
| 2930 | if test -z "$ac_cpp_err"; then |
| 2931 | # Broken: success on invalid input. |
| 2932 | continue |
| 2933 | else |
| 2934 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2935 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2936 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2937 | # Passes both tests. |
| 2938 | ac_preproc_ok=: |
| 2939 | break |
| 2940 | fi |
| 2941 | rm -f conftest.err conftest.$ac_ext |
| 2942 | |
| 2943 | done |
| 2944 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2945 | rm -f conftest.err conftest.$ac_ext |
| 2946 | if $ac_preproc_ok; then |
| 2947 | : |
| 2948 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2949 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 2950 | See \`config.log' for more details." >&5 |
| 2951 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 2952 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2953 | { (exit 1); exit 1; }; } |
| 2954 | fi |
| 2955 | |
| 2956 | ac_ext=c |
| 2957 | ac_cpp='$CPP $CPPFLAGS' |
| 2958 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2959 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2960 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2961 | |
| 2962 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2963 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 2964 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 2965 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 2966 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2967 | else |
| 2968 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 2969 | then ac_cv_prog_egrep='grep -E' |
| 2970 | else ac_cv_prog_egrep='egrep' |
| 2971 | fi |
| 2972 | fi |
| 2973 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 2974 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 2975 | EGREP=$ac_cv_prog_egrep |
| 2976 | |
| 2977 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2978 | |
| 2979 | echo "$as_me:$LINENO: checking for AIX" >&5 |
| 2980 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
| 2981 | cat >conftest.$ac_ext <<_ACEOF |
| 2982 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2983 | /* confdefs.h. */ |
| 2984 | _ACEOF |
| 2985 | cat confdefs.h >>conftest.$ac_ext |
| 2986 | cat >>conftest.$ac_ext <<_ACEOF |
| 2987 | /* end confdefs.h. */ |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2988 | #ifdef _AIX |
| 2989 | yes |
| 2990 | #endif |
| 2991 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2992 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2993 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2994 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2995 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2996 | echo "${ECHO_T}yes" >&6 |
| 2997 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2998 | #define _ALL_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2999 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3000 | |
| 3001 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3002 | echo "$as_me:$LINENO: result: no" >&5 |
| 3003 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3004 | fi |
| 3005 | rm -f conftest* |
| 3006 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3007 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3008 | |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 3009 | # Check for unsupported systems |
| 3010 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 3011 | Linux*/1*) |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 3012 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 3013 | echo See README for details. |
| 3014 | exit 1;; |
| 3015 | esac |
| 3016 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3017 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3018 | echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 3019 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3020 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3021 | # Check whether --with-suffix or --without-suffix was given. |
| 3022 | if test "${with_suffix+set}" = set; then |
| 3023 | withval="$with_suffix" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3024 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3025 | case $withval in |
| 3026 | no) EXEEXT=;; |
| 3027 | yes) EXEEXT=.exe;; |
| 3028 | *) EXEEXT=$withval;; |
| 3029 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3030 | fi; |
| 3031 | echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 3032 | echo "${ECHO_T}$EXEEXT" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3033 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3034 | # Test whether we're running on a non-case-sensitive system, in which |
| 3035 | # case we give a warning if no ext is given |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3036 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3037 | echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 3038 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6 |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3039 | if test ! -d CaseSensitiveTestDir; then |
| 3040 | mkdir CaseSensitiveTestDir |
| 3041 | fi |
| 3042 | |
| 3043 | if test -d casesensitivetestdir |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3044 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3045 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3046 | echo "${ECHO_T}yes" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3047 | BUILDEXEEXT=.exe |
| 3048 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3049 | echo "$as_me:$LINENO: result: no" >&5 |
| 3050 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3051 | BUILDEXEEXT=$EXEEXT |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3052 | fi |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3053 | rmdir CaseSensitiveTestDir |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 3054 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 3055 | case $MACHDEP in |
| 3056 | bsdos*) |
| 3057 | case $CC in |
| 3058 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 3059 | esac;; |
| 3060 | esac |
| 3061 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3062 | case $ac_sys_system in |
| 3063 | hp*|HP*) |
| 3064 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 3065 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3066 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3067 | Monterey*) |
| 3068 | case $CC in |
| 3069 | cc) CC="$CC -Wl,-Bexport";; |
| 3070 | esac;; |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3071 | SunOS*) |
| 3072 | # 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] | 3073 | |
| 3074 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3075 | #define __EXTENSIONS__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3076 | _ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3077 | |
| 3078 | ;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3079 | esac |
| 3080 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3081 | |
| 3082 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3083 | echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 3084 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3085 | if test -z "$LIBRARY" |
| 3086 | then |
| 3087 | LIBRARY='libpython$(VERSION).a' |
| 3088 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3089 | echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 3090 | echo "${ECHO_T}$LIBRARY" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3091 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3092 | # 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] | 3093 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3094 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3095 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3096 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3097 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3098 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3099 | # DLLLIBRARY is the shared (i.e., DLL) library. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3100 | # |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3101 | # RUNSHARED is used to run shared python without installed libraries |
| 3102 | # |
| 3103 | # INSTSONAME is the name of the shared library that will be use to install |
| 3104 | # on the system - some systems like version suffix, others don't |
| 3105 | |
| 3106 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3107 | |
| 3108 | |
| 3109 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3110 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3111 | LDLIBRARY="$LIBRARY" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3112 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 09bdf72 | 2002-05-08 08:51:29 +0000 | [diff] [blame] | 3113 | INSTSONAME='$(LDLIBRARY)' |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 3114 | DLLLIBRARY='' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3115 | LDLIBRARYDIR='' |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3116 | RUNSHARED='' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3117 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3118 | # 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] | 3119 | # If CXX is set, and if it is needed to link a main function that was |
| 3120 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 3121 | # python might then depend on the C++ runtime |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3122 | # 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] | 3123 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3124 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3125 | echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 3126 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3127 | if test -z "$LINKCC" |
| 3128 | then |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 3129 | if test -z "$CXX"; then |
| 3130 | LINKCC="\$(PURIFY) \$(CC)" |
| 3131 | else |
Martin v. Löwis | 1931ca7 | 2002-06-01 21:39:58 +0000 | [diff] [blame] | 3132 | 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] | 3133 | $CXX -c conftest.$ac_ext 2>&5 |
| 3134 | if $CC -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 3135 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 3136 | then |
| 3137 | LINKCC="\$(PURIFY) \$(CC)" |
| 3138 | else |
| 3139 | LINKCC="\$(PURIFY) \$(CXX)" |
| 3140 | fi |
| 3141 | rm -fr conftest* |
| 3142 | fi |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3143 | case $ac_sys_system in |
| 3144 | AIX*) |
Neal Norwitz | 0b27ff9 | 2003-03-31 15:53:49 +0000 | [diff] [blame] | 3145 | exp_extra="\"\"" |
| 3146 | if test $ac_sys_release -ge 5 -o \ |
| 3147 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 3148 | exp_extra="." |
| 3149 | fi |
| 3150 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3151 | Monterey64*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3152 | LINKCC="$LINKCC -L/usr/lib/ia64l64";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3153 | esac |
| 3154 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3155 | echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 3156 | echo "${ECHO_T}$LINKCC" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3157 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3158 | echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 3159 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3160 | # Check whether --enable-shared or --disable-shared was given. |
| 3161 | if test "${enable_shared+set}" = set; then |
| 3162 | enableval="$enable_shared" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3163 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3164 | fi; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3165 | |
| 3166 | if test -z "$enable_shared" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3167 | then |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3168 | case $ac_sys_system in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3169 | CYGWIN* | atheos*) |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3170 | enable_shared="yes";; |
| 3171 | *) |
| 3172 | enable_shared="no";; |
| 3173 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3174 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3175 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 3176 | echo "${ECHO_T}$enable_shared" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3177 | |
| 3178 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3179 | echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 3180 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3181 | |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 3182 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 3183 | # library that we build, but we do not want to link against it (we |
| 3184 | # will find it with a -framework option). For this reason there is an |
| 3185 | # extra variable BLDLIBRARY against which Python and the extension |
| 3186 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 3187 | # LDLIBRARY, but empty for MacOSX framework builds. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3188 | if test "$enable_framework" |
| 3189 | then |
| 3190 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 66b8483 | 2003-07-04 12:14:39 +0000 | [diff] [blame] | 3191 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3192 | BLDLIBRARY='' |
| 3193 | else |
| 3194 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3195 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3196 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3197 | # Other platforms follow |
| 3198 | if test $enable_shared = "yes"; then |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 3199 | |
| 3200 | cat >>confdefs.h <<\_ACEOF |
| 3201 | #define Py_ENABLE_SHARED 1 |
| 3202 | _ACEOF |
| 3203 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3204 | case $ac_sys_system in |
| 3205 | BeOS*) |
| 3206 | LDLIBRARY='libpython$(VERSION).so' |
| 3207 | ;; |
| 3208 | CYGWIN*) |
| 3209 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3210 | DLLLIBRARY='libpython$(VERSION).dll' |
| 3211 | ;; |
| 3212 | SunOS*) |
| 3213 | LDLIBRARY='libpython$(VERSION).so' |
Martin v. Löwis | d141a8c | 2003-06-14 15:20:28 +0000 | [diff] [blame] | 3214 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3215 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 2389c41 | 2003-10-31 15:42:07 +0000 | [diff] [blame] | 3216 | INSTSONAME="$LDLIBRARY".$SOVERSION |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3217 | ;; |
Martin v. Löwis | 96ce805 | 2003-05-31 07:58:45 +0000 | [diff] [blame] | 3218 | Linux*|GNU*|NetBSD*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3219 | LDLIBRARY='libpython$(VERSION).so' |
| 3220 | BLDLIBRARY='-L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3221 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3222 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 3223 | ;; |
| 3224 | hp*|HP*) |
| 3225 | LDLIBRARY='libpython$(VERSION).sl' |
| 3226 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3227 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3228 | ;; |
| 3229 | OSF*) |
| 3230 | LDLIBRARY='libpython$(VERSION).so' |
| 3231 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3232 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3233 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3234 | atheos*) |
| 3235 | LDLIBRARY='libpython$(VERSION).so' |
| 3236 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3237 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 3238 | ;; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3239 | esac |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 3240 | else # shared is disabled |
| 3241 | case $ac_sys_system in |
| 3242 | CYGWIN*) |
| 3243 | BLDLIBRARY='$(LIBRARY)' |
| 3244 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3245 | ;; |
| 3246 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3247 | fi |
| 3248 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3249 | echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 3250 | echo "${ECHO_T}$LDLIBRARY" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3251 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3252 | if test -n "$ac_tool_prefix"; then |
| 3253 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3254 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3255 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3256 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3257 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3259 | else |
| 3260 | if test -n "$RANLIB"; then |
| 3261 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3262 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3264 | for as_dir in $PATH |
| 3265 | do |
| 3266 | IFS=$as_save_IFS |
| 3267 | test -z "$as_dir" && as_dir=. |
| 3268 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3269 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3270 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3271 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3272 | break 2 |
| 3273 | fi |
| 3274 | done |
| 3275 | done |
| 3276 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3277 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3278 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3279 | RANLIB=$ac_cv_prog_RANLIB |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3280 | if test -n "$RANLIB"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3281 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3282 | echo "${ECHO_T}$RANLIB" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3283 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3284 | echo "$as_me:$LINENO: result: no" >&5 |
| 3285 | echo "${ECHO_T}no" >&6 |
| 3286 | fi |
| 3287 | |
| 3288 | fi |
| 3289 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3290 | ac_ct_RANLIB=$RANLIB |
| 3291 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3292 | set dummy ranlib; ac_word=$2 |
| 3293 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3294 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3295 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3296 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3297 | else |
| 3298 | if test -n "$ac_ct_RANLIB"; then |
| 3299 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3300 | else |
| 3301 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3302 | for as_dir in $PATH |
| 3303 | do |
| 3304 | IFS=$as_save_IFS |
| 3305 | test -z "$as_dir" && as_dir=. |
| 3306 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3307 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3308 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3309 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3310 | break 2 |
| 3311 | fi |
| 3312 | done |
| 3313 | done |
| 3314 | |
| 3315 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3316 | fi |
| 3317 | fi |
| 3318 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3319 | if test -n "$ac_ct_RANLIB"; then |
| 3320 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3321 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3322 | else |
| 3323 | echo "$as_me:$LINENO: result: no" >&5 |
| 3324 | echo "${ECHO_T}no" >&6 |
| 3325 | fi |
| 3326 | |
| 3327 | RANLIB=$ac_ct_RANLIB |
| 3328 | else |
| 3329 | RANLIB="$ac_cv_prog_RANLIB" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3330 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3331 | |
| 3332 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3333 | for ac_prog in ar aal |
| 3334 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3335 | # 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] | 3336 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3337 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3338 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3339 | if test "${ac_cv_prog_AR+set}" = set; then |
| 3340 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3341 | else |
| 3342 | if test -n "$AR"; then |
| 3343 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 3344 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3345 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3346 | for as_dir in $PATH |
| 3347 | do |
| 3348 | IFS=$as_save_IFS |
| 3349 | test -z "$as_dir" && as_dir=. |
| 3350 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3351 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3352 | ac_cv_prog_AR="$ac_prog" |
| 3353 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3354 | break 2 |
| 3355 | fi |
| 3356 | done |
| 3357 | done |
| 3358 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3359 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3360 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3361 | AR=$ac_cv_prog_AR |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3362 | if test -n "$AR"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3363 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 3364 | echo "${ECHO_T}$AR" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3365 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3366 | echo "$as_me:$LINENO: result: no" >&5 |
| 3367 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3368 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3369 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3370 | test -n "$AR" && break |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3371 | done |
| 3372 | test -n "$AR" || AR="ar" |
| 3373 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3374 | |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3375 | case $MACHDEP in |
Neil Schemenauer | af5567f | 2001-10-21 22:32:04 +0000 | [diff] [blame] | 3376 | bsdos*|hp*|HP*) |
| 3377 | # install -d does not work on BSDI or HP-UX |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3378 | if test -z "$INSTALL" |
| 3379 | then |
| 3380 | INSTALL="${srcdir}/install-sh -c" |
| 3381 | fi |
| 3382 | esac |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3383 | ac_aux_dir= |
| 3384 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 3385 | if test -f $ac_dir/install-sh; then |
| 3386 | ac_aux_dir=$ac_dir |
| 3387 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3388 | break |
| 3389 | elif test -f $ac_dir/install.sh; then |
| 3390 | ac_aux_dir=$ac_dir |
| 3391 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3392 | break |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3393 | elif test -f $ac_dir/shtool; then |
| 3394 | ac_aux_dir=$ac_dir |
| 3395 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3396 | break |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3397 | fi |
| 3398 | done |
| 3399 | if test -z "$ac_aux_dir"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3400 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 3401 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 3402 | { (exit 1); exit 1; }; } |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3403 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3404 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 3405 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 3406 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3407 | |
| 3408 | # Find a good install program. We prefer a C program (faster), |
| 3409 | # so one script is as good as another. But avoid the broken or |
| 3410 | # incompatible versions: |
| 3411 | # SysV /etc/install, /usr/sbin/install |
| 3412 | # SunOS /usr/etc/install |
| 3413 | # IRIX /sbin/install |
| 3414 | # AIX /bin/install |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3415 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3416 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3417 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3418 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3419 | # ./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] | 3420 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 3421 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3422 | if test -z "$INSTALL"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3423 | if test "${ac_cv_path_install+set}" = set; then |
| 3424 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3425 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3427 | for as_dir in $PATH |
| 3428 | do |
| 3429 | IFS=$as_save_IFS |
| 3430 | test -z "$as_dir" && as_dir=. |
| 3431 | # Account for people who put trailing slashes in PATH elements. |
| 3432 | case $as_dir/ in |
| 3433 | ./ | .// | /cC/* | \ |
| 3434 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3435 | /usr/ucb/* ) ;; |
| 3436 | *) |
| 3437 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3438 | # Don't use installbsd from OSF since it installs stuff as root |
| 3439 | # by default. |
| 3440 | for ac_prog in ginstall scoinst install; do |
| 3441 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3442 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3443 | if test $ac_prog = install && |
| 3444 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3445 | # AIX install. It has an incompatible calling convention. |
| 3446 | : |
| 3447 | elif test $ac_prog = install && |
| 3448 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3449 | # program-specific install script used by HP pwplus--don't use. |
| 3450 | : |
| 3451 | else |
| 3452 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3453 | break 3 |
| 3454 | fi |
| 3455 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3456 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3457 | done |
| 3458 | ;; |
| 3459 | esac |
| 3460 | done |
| 3461 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3462 | |
| 3463 | fi |
| 3464 | if test "${ac_cv_path_install+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3465 | INSTALL=$ac_cv_path_install |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3466 | else |
| 3467 | # As a last resort, use the slow shell script. We don't cache a |
| 3468 | # path for INSTALL within a source directory, because that will |
| 3469 | # break other packages using the cache if that directory is |
| 3470 | # removed, or if the path is relative. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3471 | INSTALL=$ac_install_sh |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3472 | fi |
| 3473 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3474 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 3475 | echo "${ECHO_T}$INSTALL" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3476 | |
| 3477 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3478 | # It thinks the first close brace ends the variable substitution. |
| 3479 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3480 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3481 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3482 | |
| 3483 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3484 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3485 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3486 | # Not every filesystem supports hard links |
| 3487 | |
| 3488 | if test -z "$LN" ; then |
| 3489 | case $ac_sys_system in |
| 3490 | BeOS*) LN="ln -s";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3491 | CYGWIN*) LN="ln -s";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3492 | atheos*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3493 | *) LN=ln;; |
| 3494 | esac |
| 3495 | fi |
| 3496 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3497 | # Check for --with-pydebug |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3498 | echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 3499 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6 |
| 3500 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3501 | # Check whether --with-pydebug or --without-pydebug was given. |
| 3502 | if test "${with_pydebug+set}" = set; then |
| 3503 | withval="$with_pydebug" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3504 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3505 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3506 | then |
| 3507 | |
| 3508 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3509 | #define Py_DEBUG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3510 | _ACEOF |
| 3511 | |
| 3512 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3513 | echo "${ECHO_T}yes" >&6; |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 3514 | Py_DEBUG='true' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3515 | else echo "$as_me:$LINENO: result: no" >&5 |
| 3516 | echo "${ECHO_T}no" >&6; Py_DEBUG='false' |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3517 | fi |
| 3518 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3519 | echo "$as_me:$LINENO: result: no" >&5 |
| 3520 | echo "${ECHO_T}no" >&6 |
| 3521 | fi; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3522 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3523 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 3524 | # merged with this chunk of code? |
| 3525 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3526 | # Optimizer/debugger flags |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3527 | # ------------------------ |
| 3528 | # (The following bit of code is complicated enough - please keep things |
| 3529 | # indented properly. Just pretend you're editing Python code. ;-) |
| 3530 | |
| 3531 | # There are two parallel sets of case statements below, one that checks to |
| 3532 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 3533 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 3534 | # user set OPT. |
| 3535 | |
| 3536 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 3537 | # it on the command line |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3538 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3539 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3540 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3541 | case $GCC in |
| 3542 | yes) |
| 3543 | case $ac_cv_prog_cc_g in |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3544 | yes) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3545 | if test "$Py_DEBUG" = 'true' ; then |
| 3546 | # Optimization messes up debuggers, so turn it off for |
| 3547 | # debug builds. |
| 3548 | OPT="-g -Wall -Wstrict-prototypes" |
| 3549 | else |
| 3550 | OPT="-g -O3 -Wall -Wstrict-prototypes" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3551 | fi |
| 3552 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3553 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3554 | OPT="-O3 -Wall -Wstrict-prototypes" |
| 3555 | ;; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3556 | esac |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3557 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3558 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 3559 | ;; |
| 3560 | esac |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3561 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3562 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3563 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3564 | OPT="-O" |
| 3565 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3566 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3567 | |
| 3568 | # The current (beta) Monterey compiler dies with optimizations |
| 3569 | # 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] | 3570 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3571 | Monterey*) |
| 3572 | OPT="" |
| 3573 | ;; |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3574 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3575 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3576 | fi |
| 3577 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3578 | |
| 3579 | # tweak BASECFLAGS based on compiler and platform |
| 3580 | case $GCC in |
| 3581 | yes) |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3582 | # Python violates C99 rules, by casting between incompatible |
| 3583 | # pointer types. GCC may generate bad code as a result of that, |
| 3584 | # so use -fno-strict-aliasing if supported. |
| 3585 | echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5 |
| 3586 | echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6 |
| 3587 | ac_save_cc="$CC" |
| 3588 | CC="$CC -fno-strict-aliasing" |
| 3589 | if test "$cross_compiling" = yes; then |
| 3590 | ac_cv_no_strict_aliasing_ok=no |
| 3591 | else |
| 3592 | cat >conftest.$ac_ext <<_ACEOF |
| 3593 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3594 | /* confdefs.h. */ |
| 3595 | _ACEOF |
| 3596 | cat confdefs.h >>conftest.$ac_ext |
| 3597 | cat >>conftest.$ac_ext <<_ACEOF |
| 3598 | /* end confdefs.h. */ |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3599 | int main() { return 0; } |
| 3600 | _ACEOF |
| 3601 | rm -f conftest$ac_exeext |
| 3602 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3603 | (eval $ac_link) 2>&5 |
| 3604 | ac_status=$? |
| 3605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3606 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3608 | (eval $ac_try) 2>&5 |
| 3609 | ac_status=$? |
| 3610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3611 | (exit $ac_status); }; }; then |
| 3612 | ac_cv_no_strict_aliasing_ok=yes |
| 3613 | else |
| 3614 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3615 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3616 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3617 | |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3618 | ( exit $ac_status ) |
| 3619 | ac_cv_no_strict_aliasing_ok=no |
| 3620 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3621 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3622 | fi |
| 3623 | CC="$ac_save_cc" |
| 3624 | echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5 |
| 3625 | echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6 |
| 3626 | if test $ac_cv_no_strict_aliasing_ok = yes |
| 3627 | then |
| 3628 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 3629 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3630 | case $ac_sys_system in |
| 3631 | SCO_SV*) |
| 3632 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 3633 | ;; |
| 3634 | # is there any other compiler on Darwin besides gcc? |
| 3635 | Darwin*) |
Jack Jansen | e004041 | 2003-07-23 22:17:28 +0000 | [diff] [blame] | 3636 | BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3637 | ;; |
| 3638 | esac |
| 3639 | ;; |
| 3640 | |
| 3641 | *) |
| 3642 | case $ac_sys_system in |
| 3643 | OpenUNIX*|UnixWare*) |
| 3644 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 3645 | ;; |
Neal Norwitz | b44f165 | 2003-05-26 14:11:55 +0000 | [diff] [blame] | 3646 | OSF*) |
| 3647 | BASECFLAGS="$BASECFLAGS -ieee -std" |
| 3648 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3649 | SCO_SV*) |
| 3650 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 3651 | ;; |
| 3652 | esac |
| 3653 | ;; |
| 3654 | esac |
| 3655 | |
Fred Drake | e1ceaa0 | 2001-12-04 20:55:47 +0000 | [diff] [blame] | 3656 | if test "$Py_DEBUG" = 'true'; then |
| 3657 | : |
| 3658 | else |
| 3659 | OPT="-DNDEBUG $OPT" |
| 3660 | fi |
| 3661 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3662 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3663 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3664 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3665 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3666 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3667 | echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 3668 | echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6 |
| 3669 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
| 3670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3671 | else |
| 3672 | ac_save_cc="$CC" |
| 3673 | CC="$CC -OPT:Olimit=0" |
| 3674 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3675 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3676 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3677 | cat >conftest.$ac_ext <<_ACEOF |
| 3678 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3679 | /* confdefs.h. */ |
| 3680 | _ACEOF |
| 3681 | cat confdefs.h >>conftest.$ac_ext |
| 3682 | cat >>conftest.$ac_ext <<_ACEOF |
| 3683 | /* end confdefs.h. */ |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3684 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3685 | _ACEOF |
| 3686 | rm -f conftest$ac_exeext |
| 3687 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3688 | (eval $ac_link) 2>&5 |
| 3689 | ac_status=$? |
| 3690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3691 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3693 | (eval $ac_try) 2>&5 |
| 3694 | ac_status=$? |
| 3695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3696 | (exit $ac_status); }; }; then |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3697 | ac_cv_opt_olimit_ok=yes |
| 3698 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3699 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3700 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3701 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3702 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3703 | ( exit $ac_status ) |
| 3704 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3705 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3706 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3707 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3708 | CC="$ac_save_cc" |
| 3709 | fi |
| 3710 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3711 | echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 3712 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 3713 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3714 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3715 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 3716 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 3717 | # environment? |
| 3718 | Darwin*) |
| 3719 | ;; |
| 3720 | *) |
| 3721 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 3722 | ;; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3723 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3724 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3725 | echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 3726 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6 |
| 3727 | if test "${ac_cv_olimit_ok+set}" = set; then |
| 3728 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3729 | else |
| 3730 | ac_save_cc="$CC" |
| 3731 | CC="$CC -Olimit 1500" |
| 3732 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3733 | ac_cv_olimit_ok=no |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3734 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3735 | cat >conftest.$ac_ext <<_ACEOF |
| 3736 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3737 | /* confdefs.h. */ |
| 3738 | _ACEOF |
| 3739 | cat confdefs.h >>conftest.$ac_ext |
| 3740 | cat >>conftest.$ac_ext <<_ACEOF |
| 3741 | /* end confdefs.h. */ |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3742 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3743 | _ACEOF |
| 3744 | rm -f conftest$ac_exeext |
| 3745 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3746 | (eval $ac_link) 2>&5 |
| 3747 | ac_status=$? |
| 3748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3749 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3751 | (eval $ac_try) 2>&5 |
| 3752 | ac_status=$? |
| 3753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3754 | (exit $ac_status); }; }; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3755 | ac_cv_olimit_ok=yes |
| 3756 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3757 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3758 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3759 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3760 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3761 | ( exit $ac_status ) |
| 3762 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 3763 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3764 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3765 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3766 | CC="$ac_save_cc" |
| 3767 | fi |
| 3768 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3769 | echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 3770 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3771 | if test $ac_cv_olimit_ok = yes; then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3772 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3773 | fi |
| 3774 | fi |
| 3775 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3776 | # On some compilers, pthreads are available without further options |
| 3777 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 3778 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 3779 | # So we have to see first whether pthreads are available without |
| 3780 | # options before we can check whether -Kpthread improves anything. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3781 | echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 3782 | echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6 |
| 3783 | if test "${ac_cv_pthread_is_default+set}" = set; then |
| 3784 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3785 | else |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3786 | if test "$cross_compiling" = yes; then |
| 3787 | ac_cv_pthread_is_default=no |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3788 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3789 | cat >conftest.$ac_ext <<_ACEOF |
| 3790 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3791 | /* confdefs.h. */ |
| 3792 | _ACEOF |
| 3793 | cat confdefs.h >>conftest.$ac_ext |
| 3794 | cat >>conftest.$ac_ext <<_ACEOF |
| 3795 | /* end confdefs.h. */ |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3796 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3797 | #include <pthread.h> |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3798 | |
| 3799 | void* routine(void* p){return NULL;} |
| 3800 | |
| 3801 | int main(){ |
| 3802 | pthread_t p; |
| 3803 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3804 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3805 | (void)pthread_detach(p); |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3806 | return 0; |
| 3807 | } |
| 3808 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3809 | _ACEOF |
| 3810 | rm -f conftest$ac_exeext |
| 3811 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3812 | (eval $ac_link) 2>&5 |
| 3813 | ac_status=$? |
| 3814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3815 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3817 | (eval $ac_try) 2>&5 |
| 3818 | ac_status=$? |
| 3819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3820 | (exit $ac_status); }; }; then |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 3821 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3822 | ac_cv_pthread_is_default=yes |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 3823 | ac_cv_kthread=no |
| 3824 | ac_cv_pthread=no |
| 3825 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3826 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3827 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3828 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3829 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3830 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3831 | ( exit $ac_status ) |
| 3832 | ac_cv_pthread_is_default=no |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3833 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3834 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3835 | fi |
| 3836 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3837 | fi |
| 3838 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3839 | echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 3840 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3841 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3842 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3843 | if test $ac_cv_pthread_is_default = yes |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3844 | then |
| 3845 | ac_cv_kpthread=no |
| 3846 | else |
| 3847 | # -Kpthread, if available, provides the right #defines |
| 3848 | # and linker options to make pthread_create available |
| 3849 | # Some compilers won't report that they do not support -Kpthread, |
| 3850 | # so we need to run a program to see whether it really made the |
| 3851 | # function available. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3852 | echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 3853 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6 |
| 3854 | if test "${ac_cv_kpthread+set}" = set; then |
| 3855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3856 | else |
| 3857 | ac_save_cc="$CC" |
| 3858 | CC="$CC -Kpthread" |
| 3859 | if test "$cross_compiling" = yes; then |
| 3860 | ac_cv_kpthread=no |
| 3861 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3862 | cat >conftest.$ac_ext <<_ACEOF |
| 3863 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3864 | /* confdefs.h. */ |
| 3865 | _ACEOF |
| 3866 | cat confdefs.h >>conftest.$ac_ext |
| 3867 | cat >>conftest.$ac_ext <<_ACEOF |
| 3868 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3869 | |
| 3870 | #include <pthread.h> |
| 3871 | |
| 3872 | void* routine(void* p){return NULL;} |
| 3873 | |
| 3874 | int main(){ |
| 3875 | pthread_t p; |
| 3876 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3877 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3878 | (void)pthread_detach(p); |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3879 | return 0; |
| 3880 | } |
| 3881 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3882 | _ACEOF |
| 3883 | rm -f conftest$ac_exeext |
| 3884 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3885 | (eval $ac_link) 2>&5 |
| 3886 | ac_status=$? |
| 3887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3888 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3890 | (eval $ac_try) 2>&5 |
| 3891 | ac_status=$? |
| 3892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3893 | (exit $ac_status); }; }; then |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3894 | ac_cv_kpthread=yes |
| 3895 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3896 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3897 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3898 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3899 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3900 | ( exit $ac_status ) |
| 3901 | ac_cv_kpthread=no |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3902 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3903 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3904 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3905 | CC="$ac_save_cc" |
| 3906 | fi |
| 3907 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3908 | echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 3909 | echo "${ECHO_T}$ac_cv_kpthread" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3910 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3911 | |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 3912 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 3913 | then |
| 3914 | # -Kthread, if available, provides the right #defines |
| 3915 | # and linker options to make pthread_create available |
| 3916 | # Some compilers won't report that they do not support -Kthread, |
| 3917 | # so we need to run a program to see whether it really made the |
| 3918 | # function available. |
| 3919 | echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5 |
| 3920 | echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6 |
| 3921 | if test "${ac_cv_kthread+set}" = set; then |
| 3922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3923 | else |
| 3924 | ac_save_cc="$CC" |
| 3925 | CC="$CC -Kthread" |
| 3926 | if test "$cross_compiling" = yes; then |
| 3927 | ac_cv_kthread=no |
| 3928 | else |
| 3929 | cat >conftest.$ac_ext <<_ACEOF |
| 3930 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3931 | /* confdefs.h. */ |
| 3932 | _ACEOF |
| 3933 | cat confdefs.h >>conftest.$ac_ext |
| 3934 | cat >>conftest.$ac_ext <<_ACEOF |
| 3935 | /* end confdefs.h. */ |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 3936 | |
| 3937 | #include <pthread.h> |
| 3938 | |
| 3939 | void* routine(void* p){return NULL;} |
| 3940 | |
| 3941 | int main(){ |
| 3942 | pthread_t p; |
| 3943 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3944 | return 1; |
| 3945 | (void)pthread_detach(p); |
| 3946 | return 0; |
| 3947 | } |
| 3948 | |
| 3949 | _ACEOF |
| 3950 | rm -f conftest$ac_exeext |
| 3951 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3952 | (eval $ac_link) 2>&5 |
| 3953 | ac_status=$? |
| 3954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3955 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3957 | (eval $ac_try) 2>&5 |
| 3958 | ac_status=$? |
| 3959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3960 | (exit $ac_status); }; }; then |
| 3961 | ac_cv_kthread=yes |
| 3962 | else |
| 3963 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3964 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3965 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3966 | |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 3967 | ( exit $ac_status ) |
| 3968 | ac_cv_kthread=no |
| 3969 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3970 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 3971 | fi |
| 3972 | CC="$ac_save_cc" |
| 3973 | fi |
| 3974 | |
| 3975 | echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5 |
| 3976 | echo "${ECHO_T}$ac_cv_kthread" >&6 |
| 3977 | fi |
| 3978 | |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 3979 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 3980 | then |
| 3981 | # -pthread, if available, provides the right #defines |
| 3982 | # and linker options to make pthread_create available |
| 3983 | # Some compilers won't report that they do not support -pthread, |
| 3984 | # so we need to run a program to see whether it really made the |
| 3985 | # function available. |
| 3986 | echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5 |
| 3987 | echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6 |
| 3988 | if test "${ac_cv_thread+set}" = set; then |
| 3989 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3990 | else |
| 3991 | ac_save_cc="$CC" |
| 3992 | CC="$CC -pthread" |
| 3993 | if test "$cross_compiling" = yes; then |
| 3994 | ac_cv_pthread=no |
| 3995 | else |
| 3996 | cat >conftest.$ac_ext <<_ACEOF |
| 3997 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3998 | /* confdefs.h. */ |
| 3999 | _ACEOF |
| 4000 | cat confdefs.h >>conftest.$ac_ext |
| 4001 | cat >>conftest.$ac_ext <<_ACEOF |
| 4002 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 4003 | |
| 4004 | #include <pthread.h> |
| 4005 | |
| 4006 | void* routine(void* p){return NULL;} |
| 4007 | |
| 4008 | int main(){ |
| 4009 | pthread_t p; |
| 4010 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4011 | return 1; |
| 4012 | (void)pthread_detach(p); |
| 4013 | return 0; |
| 4014 | } |
| 4015 | |
| 4016 | _ACEOF |
| 4017 | rm -f conftest$ac_exeext |
| 4018 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4019 | (eval $ac_link) 2>&5 |
| 4020 | ac_status=$? |
| 4021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4022 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4024 | (eval $ac_try) 2>&5 |
| 4025 | ac_status=$? |
| 4026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4027 | (exit $ac_status); }; }; then |
| 4028 | ac_cv_pthread=yes |
| 4029 | else |
| 4030 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4031 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4032 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4033 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 4034 | ( exit $ac_status ) |
| 4035 | ac_cv_pthread=no |
| 4036 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4037 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 4038 | fi |
| 4039 | CC="$ac_save_cc" |
| 4040 | fi |
| 4041 | |
| 4042 | echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5 |
| 4043 | echo "${ECHO_T}$ac_cv_pthread" >&6 |
| 4044 | fi |
| 4045 | |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4046 | # If we have set a CC compiler flag for thread support then |
| 4047 | # check if it works for CXX, too. |
| 4048 | ac_cv_cxx_thread=no |
| 4049 | if test ! -z "$CXX" |
| 4050 | then |
| 4051 | echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5 |
| 4052 | echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6 |
| 4053 | ac_save_cxx="$CXX" |
| 4054 | |
| 4055 | if test "$ac_cv_kpthread" = "yes" |
| 4056 | then |
| 4057 | CXX="$CXX -Kpthread" |
| 4058 | ac_cv_cxx_thread=yes |
| 4059 | elif test "$ac_cv_kthread" = "yes" |
| 4060 | then |
| 4061 | CXX="$CXX -Kthread" |
| 4062 | ac_cv_cxx_thread=yes |
| 4063 | elif test "$ac_cv_pthread" = "yes" |
| 4064 | then |
| 4065 | CXX="$CXX -pthread" |
| 4066 | ac_cv_cxx_thread=yes |
| 4067 | fi |
| 4068 | |
| 4069 | if test $ac_cv_cxx_thread = yes |
| 4070 | then |
| 4071 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 4072 | $CXX -c conftest.$ac_ext 2>&5 |
| 4073 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 4074 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 4075 | then |
| 4076 | ac_cv_cxx_thread=yes |
| 4077 | else |
| 4078 | ac_cv_cxx_thread=no |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4079 | fi |
| 4080 | rm -fr conftest* |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4081 | fi |
| 4082 | fi |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 4083 | CXX="$ac_save_cxx" |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4084 | echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5 |
| 4085 | echo "${ECHO_T}$ac_cv_cxx_thread" >&6 |
| 4086 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4087 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4088 | # checks for header files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4089 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4090 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 4091 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4092 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4093 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4094 | cat >conftest.$ac_ext <<_ACEOF |
| 4095 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4096 | /* confdefs.h. */ |
| 4097 | _ACEOF |
| 4098 | cat confdefs.h >>conftest.$ac_ext |
| 4099 | cat >>conftest.$ac_ext <<_ACEOF |
| 4100 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4101 | #include <stdlib.h> |
| 4102 | #include <stdarg.h> |
| 4103 | #include <string.h> |
| 4104 | #include <float.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4105 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4106 | int |
| 4107 | main () |
| 4108 | { |
| 4109 | |
| 4110 | ; |
| 4111 | return 0; |
| 4112 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4113 | _ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4114 | rm -f conftest.$ac_objext |
| 4115 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4116 | (eval $ac_compile) 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4117 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4119 | (exit $ac_status); } && |
| 4120 | { ac_try='test -s conftest.$ac_objext' |
| 4121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4122 | (eval $ac_try) 2>&5 |
| 4123 | ac_status=$? |
| 4124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4125 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4126 | ac_cv_header_stdc=yes |
| 4127 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4128 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4129 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4130 | |
| 4131 | ac_cv_header_stdc=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4132 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4133 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4134 | |
| 4135 | if test $ac_cv_header_stdc = yes; then |
| 4136 | # 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] | 4137 | cat >conftest.$ac_ext <<_ACEOF |
| 4138 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4139 | /* confdefs.h. */ |
| 4140 | _ACEOF |
| 4141 | cat confdefs.h >>conftest.$ac_ext |
| 4142 | cat >>conftest.$ac_ext <<_ACEOF |
| 4143 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4144 | #include <string.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4145 | |
| 4146 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4147 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4148 | $EGREP "memchr" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4149 | : |
| 4150 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4151 | ac_cv_header_stdc=no |
| 4152 | fi |
| 4153 | rm -f conftest* |
| 4154 | |
| 4155 | fi |
| 4156 | |
| 4157 | if test $ac_cv_header_stdc = yes; then |
| 4158 | # 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] | 4159 | cat >conftest.$ac_ext <<_ACEOF |
| 4160 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4161 | /* confdefs.h. */ |
| 4162 | _ACEOF |
| 4163 | cat confdefs.h >>conftest.$ac_ext |
| 4164 | cat >>conftest.$ac_ext <<_ACEOF |
| 4165 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4166 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4167 | |
| 4168 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4169 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4170 | $EGREP "free" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4171 | : |
| 4172 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4173 | ac_cv_header_stdc=no |
| 4174 | fi |
| 4175 | rm -f conftest* |
| 4176 | |
| 4177 | fi |
| 4178 | |
| 4179 | if test $ac_cv_header_stdc = yes; then |
| 4180 | # /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] | 4181 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4182 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4183 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4184 | cat >conftest.$ac_ext <<_ACEOF |
| 4185 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4186 | /* confdefs.h. */ |
| 4187 | _ACEOF |
| 4188 | cat confdefs.h >>conftest.$ac_ext |
| 4189 | cat >>conftest.$ac_ext <<_ACEOF |
| 4190 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4191 | #include <ctype.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4192 | #if ((' ' & 0x0FF) == 0x020) |
| 4193 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4194 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4195 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4196 | # define ISLOWER(c) \ |
| 4197 | (('a' <= (c) && (c) <= 'i') \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4198 | || ('j' <= (c) && (c) <= 'r') \ |
| 4199 | || ('s' <= (c) && (c) <= 'z')) |
| 4200 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4201 | #endif |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4202 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4203 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4204 | int |
| 4205 | main () |
| 4206 | { |
| 4207 | int i; |
| 4208 | for (i = 0; i < 256; i++) |
| 4209 | if (XOR (islower (i), ISLOWER (i)) |
| 4210 | || toupper (i) != TOUPPER (i)) |
| 4211 | exit(2); |
| 4212 | exit (0); |
| 4213 | } |
| 4214 | _ACEOF |
| 4215 | rm -f conftest$ac_exeext |
| 4216 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4217 | (eval $ac_link) 2>&5 |
| 4218 | ac_status=$? |
| 4219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4220 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4222 | (eval $ac_try) 2>&5 |
| 4223 | ac_status=$? |
| 4224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4225 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4226 | : |
| 4227 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4228 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4229 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4230 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4231 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4232 | ( exit $ac_status ) |
| 4233 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4234 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4235 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4236 | fi |
| 4237 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4238 | fi |
| 4239 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4240 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4241 | if test $ac_cv_header_stdc = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4242 | |
| 4243 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4244 | #define STDC_HEADERS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4245 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4246 | |
| 4247 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4248 | |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4249 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4250 | |
| 4251 | |
| 4252 | |
| 4253 | |
| 4254 | |
| 4255 | |
| 4256 | |
| 4257 | |
| 4258 | |
| 4259 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4260 | inttypes.h stdint.h unistd.h |
| 4261 | do |
| 4262 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4263 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4264 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4265 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4266 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4267 | else |
| 4268 | cat >conftest.$ac_ext <<_ACEOF |
| 4269 | #line $LINENO "configure" |
| 4270 | /* confdefs.h. */ |
| 4271 | _ACEOF |
| 4272 | cat confdefs.h >>conftest.$ac_ext |
| 4273 | cat >>conftest.$ac_ext <<_ACEOF |
| 4274 | /* end confdefs.h. */ |
| 4275 | $ac_includes_default |
| 4276 | |
| 4277 | #include <$ac_header> |
| 4278 | _ACEOF |
| 4279 | rm -f conftest.$ac_objext |
| 4280 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4281 | (eval $ac_compile) 2>&5 |
| 4282 | ac_status=$? |
| 4283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4284 | (exit $ac_status); } && |
| 4285 | { ac_try='test -s conftest.$ac_objext' |
| 4286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4287 | (eval $ac_try) 2>&5 |
| 4288 | ac_status=$? |
| 4289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4290 | (exit $ac_status); }; }; then |
| 4291 | eval "$as_ac_Header=yes" |
| 4292 | else |
| 4293 | echo "$as_me: failed program was:" >&5 |
| 4294 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4295 | |
| 4296 | eval "$as_ac_Header=no" |
| 4297 | fi |
| 4298 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4299 | fi |
| 4300 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4301 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4302 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4303 | cat >>confdefs.h <<_ACEOF |
| 4304 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4305 | _ACEOF |
| 4306 | |
| 4307 | fi |
| 4308 | |
| 4309 | done |
| 4310 | |
| 4311 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4312 | |
| 4313 | |
| 4314 | |
| 4315 | |
| 4316 | |
| 4317 | |
| 4318 | |
| 4319 | |
| 4320 | |
| 4321 | |
| 4322 | |
| 4323 | |
| 4324 | |
| 4325 | |
| 4326 | |
| 4327 | |
| 4328 | |
| 4329 | |
| 4330 | |
| 4331 | |
| 4332 | |
| 4333 | |
| 4334 | |
| 4335 | |
| 4336 | |
| 4337 | |
| 4338 | |
| 4339 | |
| 4340 | |
| 4341 | |
| 4342 | |
| 4343 | |
| 4344 | |
| 4345 | |
| 4346 | |
| 4347 | |
| 4348 | |
Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 4349 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4350 | |
Neal Norwitz | 8225103 | 2003-05-23 14:35:24 +0000 | [diff] [blame] | 4351 | |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 4352 | |
Hye-Shik Chang | 8126860 | 2004-02-02 06:05:24 +0000 | [diff] [blame^] | 4353 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4354 | 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] | 4355 | libintl.h locale.h ncurses.h poll.h pthread.h \ |
Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 4356 | signal.h stdarg.h stddef.h stdlib.h stropts.h termios.h thread.h \ |
| 4357 | unistd.h utime.h \ |
Neal Norwitz | 8225103 | 2003-05-23 14:35:24 +0000 | [diff] [blame] | 4358 | sys/audioio.h sys/bsdtty.h sys/file.h sys/lock.h sys/mkdev.h sys/modem.h \ |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4359 | 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] | 4360 | sys/un.h sys/utsname.h sys/wait.h pty.h term.h libutil.h \ |
Hye-Shik Chang | 8126860 | 2004-02-02 06:05:24 +0000 | [diff] [blame^] | 4361 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
| 4362 | bluetooth/bluetooth.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4363 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4364 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4365 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4366 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4367 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4368 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4370 | fi |
| 4371 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4372 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4373 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4374 | # Is the header compilable? |
| 4375 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 4376 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 4377 | cat >conftest.$ac_ext <<_ACEOF |
| 4378 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4379 | /* confdefs.h. */ |
| 4380 | _ACEOF |
| 4381 | cat confdefs.h >>conftest.$ac_ext |
| 4382 | cat >>conftest.$ac_ext <<_ACEOF |
| 4383 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4384 | $ac_includes_default |
| 4385 | #include <$ac_header> |
| 4386 | _ACEOF |
| 4387 | rm -f conftest.$ac_objext |
| 4388 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4389 | (eval $ac_compile) 2>&5 |
| 4390 | ac_status=$? |
| 4391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4392 | (exit $ac_status); } && |
| 4393 | { ac_try='test -s conftest.$ac_objext' |
| 4394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4395 | (eval $ac_try) 2>&5 |
| 4396 | ac_status=$? |
| 4397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4398 | (exit $ac_status); }; }; then |
| 4399 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4400 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4401 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4402 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4403 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4404 | ac_header_compiler=no |
| 4405 | fi |
| 4406 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4407 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4408 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4409 | |
| 4410 | # Is the header present? |
| 4411 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4412 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4413 | cat >conftest.$ac_ext <<_ACEOF |
| 4414 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4415 | /* confdefs.h. */ |
| 4416 | _ACEOF |
| 4417 | cat confdefs.h >>conftest.$ac_ext |
| 4418 | cat >>conftest.$ac_ext <<_ACEOF |
| 4419 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4420 | #include <$ac_header> |
| 4421 | _ACEOF |
| 4422 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4423 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4424 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4425 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4426 | rm -f conftest.er1 |
| 4427 | cat conftest.err >&5 |
| 4428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4429 | (exit $ac_status); } >/dev/null; then |
| 4430 | if test -s conftest.err; then |
| 4431 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4432 | else |
| 4433 | ac_cpp_err= |
| 4434 | fi |
| 4435 | else |
| 4436 | ac_cpp_err=yes |
| 4437 | fi |
| 4438 | if test -z "$ac_cpp_err"; then |
| 4439 | ac_header_preproc=yes |
| 4440 | else |
| 4441 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4442 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4443 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4444 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4445 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4446 | rm -f conftest.err conftest.$ac_ext |
| 4447 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4448 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4449 | |
| 4450 | # So? What about this header? |
| 4451 | case $ac_header_compiler:$ac_header_preproc in |
| 4452 | yes:no ) |
| 4453 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4454 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4455 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4456 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 4457 | ( |
| 4458 | cat <<\_ASBOX |
| 4459 | ## ------------------------------------ ## |
| 4460 | ## Report this to bug-autoconf@gnu.org. ## |
| 4461 | ## ------------------------------------ ## |
| 4462 | _ASBOX |
| 4463 | ) | |
| 4464 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4465 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4466 | no:yes ) |
| 4467 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4468 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 4469 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4470 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4471 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4472 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 4473 | ( |
| 4474 | cat <<\_ASBOX |
| 4475 | ## ------------------------------------ ## |
| 4476 | ## Report this to bug-autoconf@gnu.org. ## |
| 4477 | ## ------------------------------------ ## |
| 4478 | _ASBOX |
| 4479 | ) | |
| 4480 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4481 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4482 | esac |
| 4483 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4484 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4485 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4487 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4488 | eval "$as_ac_Header=$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4489 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4490 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4491 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4492 | |
| 4493 | fi |
| 4494 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4495 | cat >>confdefs.h <<_ACEOF |
| 4496 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4497 | _ACEOF |
| 4498 | |
| 4499 | fi |
| 4500 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4501 | done |
| 4502 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4503 | |
| 4504 | |
| 4505 | |
| 4506 | |
| 4507 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4508 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4509 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 4510 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 4511 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 4512 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 4513 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4515 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4516 | cat >conftest.$ac_ext <<_ACEOF |
| 4517 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4518 | /* confdefs.h. */ |
| 4519 | _ACEOF |
| 4520 | cat confdefs.h >>conftest.$ac_ext |
| 4521 | cat >>conftest.$ac_ext <<_ACEOF |
| 4522 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4523 | #include <sys/types.h> |
| 4524 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4525 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4526 | int |
| 4527 | main () |
| 4528 | { |
| 4529 | if ((DIR *) 0) |
| 4530 | return 0; |
| 4531 | ; |
| 4532 | return 0; |
| 4533 | } |
| 4534 | _ACEOF |
| 4535 | rm -f conftest.$ac_objext |
| 4536 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4537 | (eval $ac_compile) 2>&5 |
| 4538 | ac_status=$? |
| 4539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4540 | (exit $ac_status); } && |
| 4541 | { ac_try='test -s conftest.$ac_objext' |
| 4542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4543 | (eval $ac_try) 2>&5 |
| 4544 | ac_status=$? |
| 4545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4546 | (exit $ac_status); }; }; then |
| 4547 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4548 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4549 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4550 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4551 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4552 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4553 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4554 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4555 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4556 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4557 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4558 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4559 | cat >>confdefs.h <<_ACEOF |
| 4560 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 4561 | _ACEOF |
| 4562 | |
| 4563 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4564 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4565 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4566 | done |
| 4567 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 4568 | if test $ac_header_dirent = dirent.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4569 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4570 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4571 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4573 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4574 | ac_func_search_save_LIBS=$LIBS |
| 4575 | ac_cv_search_opendir=no |
| 4576 | cat >conftest.$ac_ext <<_ACEOF |
| 4577 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4578 | /* confdefs.h. */ |
| 4579 | _ACEOF |
| 4580 | cat confdefs.h >>conftest.$ac_ext |
| 4581 | cat >>conftest.$ac_ext <<_ACEOF |
| 4582 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4583 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4584 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4585 | #ifdef __cplusplus |
| 4586 | extern "C" |
| 4587 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4588 | /* 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] | 4589 | builtin and then its argument prototype would still apply. */ |
| 4590 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4591 | int |
| 4592 | main () |
| 4593 | { |
| 4594 | opendir (); |
| 4595 | ; |
| 4596 | return 0; |
| 4597 | } |
| 4598 | _ACEOF |
| 4599 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4600 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4601 | (eval $ac_link) 2>&5 |
| 4602 | ac_status=$? |
| 4603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4604 | (exit $ac_status); } && |
| 4605 | { ac_try='test -s conftest$ac_exeext' |
| 4606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4607 | (eval $ac_try) 2>&5 |
| 4608 | ac_status=$? |
| 4609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4610 | (exit $ac_status); }; }; then |
| 4611 | ac_cv_search_opendir="none required" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4612 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4613 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4614 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4615 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4616 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4617 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4618 | if test "$ac_cv_search_opendir" = no; then |
| 4619 | for ac_lib in dir; do |
| 4620 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4621 | cat >conftest.$ac_ext <<_ACEOF |
| 4622 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4623 | /* confdefs.h. */ |
| 4624 | _ACEOF |
| 4625 | cat confdefs.h >>conftest.$ac_ext |
| 4626 | cat >>conftest.$ac_ext <<_ACEOF |
| 4627 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4628 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4629 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4630 | #ifdef __cplusplus |
| 4631 | extern "C" |
| 4632 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4633 | /* 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] | 4634 | builtin and then its argument prototype would still apply. */ |
| 4635 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4636 | int |
| 4637 | main () |
| 4638 | { |
| 4639 | opendir (); |
| 4640 | ; |
| 4641 | return 0; |
| 4642 | } |
| 4643 | _ACEOF |
| 4644 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4645 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4646 | (eval $ac_link) 2>&5 |
| 4647 | ac_status=$? |
| 4648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4649 | (exit $ac_status); } && |
| 4650 | { ac_try='test -s conftest$ac_exeext' |
| 4651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4652 | (eval $ac_try) 2>&5 |
| 4653 | ac_status=$? |
| 4654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4655 | (exit $ac_status); }; }; then |
| 4656 | ac_cv_search_opendir="-l$ac_lib" |
| 4657 | break |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4658 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4659 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4660 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4661 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4662 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4663 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4664 | done |
| 4665 | fi |
| 4666 | LIBS=$ac_func_search_save_LIBS |
| 4667 | fi |
| 4668 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4669 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4670 | if test "$ac_cv_search_opendir" != no; then |
| 4671 | 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] | 4672 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4673 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4674 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4675 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4676 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4677 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4678 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4679 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4680 | else |
| 4681 | ac_func_search_save_LIBS=$LIBS |
| 4682 | ac_cv_search_opendir=no |
| 4683 | cat >conftest.$ac_ext <<_ACEOF |
| 4684 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4685 | /* confdefs.h. */ |
| 4686 | _ACEOF |
| 4687 | cat confdefs.h >>conftest.$ac_ext |
| 4688 | cat >>conftest.$ac_ext <<_ACEOF |
| 4689 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4690 | |
| 4691 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4692 | #ifdef __cplusplus |
| 4693 | extern "C" |
| 4694 | #endif |
| 4695 | /* We use char because int might match the return type of a gcc2 |
| 4696 | builtin and then its argument prototype would still apply. */ |
| 4697 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4698 | int |
| 4699 | main () |
| 4700 | { |
| 4701 | opendir (); |
| 4702 | ; |
| 4703 | return 0; |
| 4704 | } |
| 4705 | _ACEOF |
| 4706 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4707 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4708 | (eval $ac_link) 2>&5 |
| 4709 | ac_status=$? |
| 4710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4711 | (exit $ac_status); } && |
| 4712 | { ac_try='test -s conftest$ac_exeext' |
| 4713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4714 | (eval $ac_try) 2>&5 |
| 4715 | ac_status=$? |
| 4716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4717 | (exit $ac_status); }; }; then |
| 4718 | ac_cv_search_opendir="none required" |
| 4719 | else |
| 4720 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4721 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4722 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4723 | fi |
| 4724 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4725 | if test "$ac_cv_search_opendir" = no; then |
| 4726 | for ac_lib in x; do |
| 4727 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4728 | cat >conftest.$ac_ext <<_ACEOF |
| 4729 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4730 | /* confdefs.h. */ |
| 4731 | _ACEOF |
| 4732 | cat confdefs.h >>conftest.$ac_ext |
| 4733 | cat >>conftest.$ac_ext <<_ACEOF |
| 4734 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4735 | |
| 4736 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4737 | #ifdef __cplusplus |
| 4738 | extern "C" |
| 4739 | #endif |
| 4740 | /* We use char because int might match the return type of a gcc2 |
| 4741 | builtin and then its argument prototype would still apply. */ |
| 4742 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4743 | int |
| 4744 | main () |
| 4745 | { |
| 4746 | opendir (); |
| 4747 | ; |
| 4748 | return 0; |
| 4749 | } |
| 4750 | _ACEOF |
| 4751 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4752 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4753 | (eval $ac_link) 2>&5 |
| 4754 | ac_status=$? |
| 4755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4756 | (exit $ac_status); } && |
| 4757 | { ac_try='test -s conftest$ac_exeext' |
| 4758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4759 | (eval $ac_try) 2>&5 |
| 4760 | ac_status=$? |
| 4761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4762 | (exit $ac_status); }; }; then |
| 4763 | ac_cv_search_opendir="-l$ac_lib" |
| 4764 | break |
| 4765 | else |
| 4766 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4767 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4768 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4769 | fi |
| 4770 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4771 | done |
| 4772 | fi |
| 4773 | LIBS=$ac_func_search_save_LIBS |
| 4774 | fi |
| 4775 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4776 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4777 | if test "$ac_cv_search_opendir" != no; then |
| 4778 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 4779 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4780 | fi |
| 4781 | |
| 4782 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4783 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 4784 | echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 4785 | echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6 |
| 4786 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
| 4787 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4788 | else |
| 4789 | cat >conftest.$ac_ext <<_ACEOF |
| 4790 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4791 | /* confdefs.h. */ |
| 4792 | _ACEOF |
| 4793 | cat confdefs.h >>conftest.$ac_ext |
| 4794 | cat >>conftest.$ac_ext <<_ACEOF |
| 4795 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 4796 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 4797 | int |
| 4798 | main () |
| 4799 | { |
| 4800 | return makedev(0, 0); |
| 4801 | ; |
| 4802 | return 0; |
| 4803 | } |
| 4804 | _ACEOF |
| 4805 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4806 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4807 | (eval $ac_link) 2>&5 |
| 4808 | ac_status=$? |
| 4809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4810 | (exit $ac_status); } && |
| 4811 | { ac_try='test -s conftest$ac_exeext' |
| 4812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4813 | (eval $ac_try) 2>&5 |
| 4814 | ac_status=$? |
| 4815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4816 | (exit $ac_status); }; }; then |
| 4817 | ac_cv_header_sys_types_h_makedev=yes |
| 4818 | else |
| 4819 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4820 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4821 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 4822 | ac_cv_header_sys_types_h_makedev=no |
| 4823 | fi |
| 4824 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4825 | |
| 4826 | fi |
| 4827 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 4828 | echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6 |
| 4829 | |
| 4830 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 4831 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 4832 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 4833 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 4834 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 4835 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4836 | fi |
| 4837 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 4838 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 4839 | else |
| 4840 | # Is the header compilable? |
| 4841 | echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 4842 | echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6 |
| 4843 | cat >conftest.$ac_ext <<_ACEOF |
| 4844 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4845 | /* confdefs.h. */ |
| 4846 | _ACEOF |
| 4847 | cat confdefs.h >>conftest.$ac_ext |
| 4848 | cat >>conftest.$ac_ext <<_ACEOF |
| 4849 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 4850 | $ac_includes_default |
| 4851 | #include <sys/mkdev.h> |
| 4852 | _ACEOF |
| 4853 | rm -f conftest.$ac_objext |
| 4854 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4855 | (eval $ac_compile) 2>&5 |
| 4856 | ac_status=$? |
| 4857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4858 | (exit $ac_status); } && |
| 4859 | { ac_try='test -s conftest.$ac_objext' |
| 4860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4861 | (eval $ac_try) 2>&5 |
| 4862 | ac_status=$? |
| 4863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4864 | (exit $ac_status); }; }; then |
| 4865 | ac_header_compiler=yes |
| 4866 | else |
| 4867 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4868 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4869 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 4870 | ac_header_compiler=no |
| 4871 | fi |
| 4872 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4873 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4874 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4875 | |
| 4876 | # Is the header present? |
| 4877 | echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 4878 | echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6 |
| 4879 | cat >conftest.$ac_ext <<_ACEOF |
| 4880 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4881 | /* confdefs.h. */ |
| 4882 | _ACEOF |
| 4883 | cat confdefs.h >>conftest.$ac_ext |
| 4884 | cat >>conftest.$ac_ext <<_ACEOF |
| 4885 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 4886 | #include <sys/mkdev.h> |
| 4887 | _ACEOF |
| 4888 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4889 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4890 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4891 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 4892 | rm -f conftest.er1 |
| 4893 | cat conftest.err >&5 |
| 4894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4895 | (exit $ac_status); } >/dev/null; then |
| 4896 | if test -s conftest.err; then |
| 4897 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4898 | else |
| 4899 | ac_cpp_err= |
| 4900 | fi |
| 4901 | else |
| 4902 | ac_cpp_err=yes |
| 4903 | fi |
| 4904 | if test -z "$ac_cpp_err"; then |
| 4905 | ac_header_preproc=yes |
| 4906 | else |
| 4907 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4908 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4909 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 4910 | ac_header_preproc=no |
| 4911 | fi |
| 4912 | rm -f conftest.err conftest.$ac_ext |
| 4913 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4914 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4915 | |
| 4916 | # So? What about this header? |
| 4917 | case $ac_header_compiler:$ac_header_preproc in |
| 4918 | yes:no ) |
| 4919 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4920 | echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4921 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4922 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;} |
| 4923 | ( |
| 4924 | cat <<\_ASBOX |
| 4925 | ## ------------------------------------ ## |
| 4926 | ## Report this to bug-autoconf@gnu.org. ## |
| 4927 | ## ------------------------------------ ## |
| 4928 | _ASBOX |
| 4929 | ) | |
| 4930 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4931 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 4932 | no:yes ) |
| 4933 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 4934 | echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} |
| 4935 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 4936 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 4937 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4938 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;} |
| 4939 | ( |
| 4940 | cat <<\_ASBOX |
| 4941 | ## ------------------------------------ ## |
| 4942 | ## Report this to bug-autoconf@gnu.org. ## |
| 4943 | ## ------------------------------------ ## |
| 4944 | _ASBOX |
| 4945 | ) | |
| 4946 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4947 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 4948 | esac |
| 4949 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 4950 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 4951 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 4952 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4953 | else |
| 4954 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 4955 | fi |
| 4956 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 4957 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 4958 | |
| 4959 | fi |
| 4960 | if test $ac_cv_header_sys_mkdev_h = yes; then |
| 4961 | |
| 4962 | cat >>confdefs.h <<\_ACEOF |
| 4963 | #define MAJOR_IN_MKDEV 1 |
| 4964 | _ACEOF |
| 4965 | |
| 4966 | fi |
| 4967 | |
| 4968 | |
| 4969 | |
| 4970 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 4971 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 4972 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 4973 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 4974 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 4975 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4976 | fi |
| 4977 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 4978 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 4979 | else |
| 4980 | # Is the header compilable? |
| 4981 | echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 4982 | echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6 |
| 4983 | cat >conftest.$ac_ext <<_ACEOF |
| 4984 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4985 | /* confdefs.h. */ |
| 4986 | _ACEOF |
| 4987 | cat confdefs.h >>conftest.$ac_ext |
| 4988 | cat >>conftest.$ac_ext <<_ACEOF |
| 4989 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 4990 | $ac_includes_default |
| 4991 | #include <sys/sysmacros.h> |
| 4992 | _ACEOF |
| 4993 | rm -f conftest.$ac_objext |
| 4994 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4995 | (eval $ac_compile) 2>&5 |
| 4996 | ac_status=$? |
| 4997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4998 | (exit $ac_status); } && |
| 4999 | { ac_try='test -s conftest.$ac_objext' |
| 5000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5001 | (eval $ac_try) 2>&5 |
| 5002 | ac_status=$? |
| 5003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5004 | (exit $ac_status); }; }; then |
| 5005 | ac_header_compiler=yes |
| 5006 | else |
| 5007 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5008 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5009 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5010 | ac_header_compiler=no |
| 5011 | fi |
| 5012 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5013 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5014 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5015 | |
| 5016 | # Is the header present? |
| 5017 | echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 5018 | echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6 |
| 5019 | cat >conftest.$ac_ext <<_ACEOF |
| 5020 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5021 | /* confdefs.h. */ |
| 5022 | _ACEOF |
| 5023 | cat confdefs.h >>conftest.$ac_ext |
| 5024 | cat >>conftest.$ac_ext <<_ACEOF |
| 5025 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5026 | #include <sys/sysmacros.h> |
| 5027 | _ACEOF |
| 5028 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5029 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5030 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5031 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5032 | rm -f conftest.er1 |
| 5033 | cat conftest.err >&5 |
| 5034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5035 | (exit $ac_status); } >/dev/null; then |
| 5036 | if test -s conftest.err; then |
| 5037 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5038 | else |
| 5039 | ac_cpp_err= |
| 5040 | fi |
| 5041 | else |
| 5042 | ac_cpp_err=yes |
| 5043 | fi |
| 5044 | if test -z "$ac_cpp_err"; then |
| 5045 | ac_header_preproc=yes |
| 5046 | else |
| 5047 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5048 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5049 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5050 | ac_header_preproc=no |
| 5051 | fi |
| 5052 | rm -f conftest.err conftest.$ac_ext |
| 5053 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5054 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5055 | |
| 5056 | # So? What about this header? |
| 5057 | case $ac_header_compiler:$ac_header_preproc in |
| 5058 | yes:no ) |
| 5059 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5060 | echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5061 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5062 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;} |
| 5063 | ( |
| 5064 | cat <<\_ASBOX |
| 5065 | ## ------------------------------------ ## |
| 5066 | ## Report this to bug-autoconf@gnu.org. ## |
| 5067 | ## ------------------------------------ ## |
| 5068 | _ASBOX |
| 5069 | ) | |
| 5070 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5071 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5072 | no:yes ) |
| 5073 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 5074 | echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} |
| 5075 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 5076 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 5077 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5078 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;} |
| 5079 | ( |
| 5080 | cat <<\_ASBOX |
| 5081 | ## ------------------------------------ ## |
| 5082 | ## Report this to bug-autoconf@gnu.org. ## |
| 5083 | ## ------------------------------------ ## |
| 5084 | _ASBOX |
| 5085 | ) | |
| 5086 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5087 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5088 | esac |
| 5089 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 5090 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 5091 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 5092 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5093 | else |
| 5094 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 5095 | fi |
| 5096 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 5097 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 5098 | |
| 5099 | fi |
| 5100 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
| 5101 | |
| 5102 | cat >>confdefs.h <<\_ACEOF |
| 5103 | #define MAJOR_IN_SYSMACROS 1 |
| 5104 | _ACEOF |
| 5105 | |
| 5106 | fi |
| 5107 | |
| 5108 | |
| 5109 | fi |
| 5110 | fi |
| 5111 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5112 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5113 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5114 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5115 | echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 5116 | echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6 |
| 5117 | cat >conftest.$ac_ext <<_ACEOF |
| 5118 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5119 | /* confdefs.h. */ |
| 5120 | _ACEOF |
| 5121 | cat confdefs.h >>conftest.$ac_ext |
| 5122 | cat >>conftest.$ac_ext <<_ACEOF |
| 5123 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5124 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5125 | |
| 5126 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5127 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5128 | $EGREP "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5129 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5130 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5131 | |
| 5132 | |
| 5133 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5134 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5135 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5136 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 5137 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5138 | fi |
| 5139 | rm -f conftest* |
| 5140 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5141 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 5142 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5143 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5144 | # Check whether using makedev requires defining _OSF_SOURCE |
| 5145 | echo "$as_me:$LINENO: checking for makedev" >&5 |
| 5146 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6 |
| 5147 | cat >conftest.$ac_ext <<_ACEOF |
| 5148 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5149 | /* confdefs.h. */ |
| 5150 | _ACEOF |
| 5151 | cat confdefs.h >>conftest.$ac_ext |
| 5152 | cat >>conftest.$ac_ext <<_ACEOF |
| 5153 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 5154 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5155 | int |
| 5156 | main () |
| 5157 | { |
| 5158 | makedev(0, 0) |
| 5159 | ; |
| 5160 | return 0; |
| 5161 | } |
| 5162 | _ACEOF |
| 5163 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5164 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5165 | (eval $ac_link) 2>&5 |
| 5166 | ac_status=$? |
| 5167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5168 | (exit $ac_status); } && |
| 5169 | { ac_try='test -s conftest$ac_exeext' |
| 5170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5171 | (eval $ac_try) 2>&5 |
| 5172 | ac_status=$? |
| 5173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5174 | (exit $ac_status); }; }; then |
| 5175 | ac_cv_has_makedev=yes |
| 5176 | else |
| 5177 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5178 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5179 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5180 | ac_cv_has_makedev=no |
| 5181 | fi |
| 5182 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5183 | if test "$ac_cv_has_makedev" = "no"; then |
| 5184 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 5185 | cat >conftest.$ac_ext <<_ACEOF |
| 5186 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5187 | /* confdefs.h. */ |
| 5188 | _ACEOF |
| 5189 | cat confdefs.h >>conftest.$ac_ext |
| 5190 | cat >>conftest.$ac_ext <<_ACEOF |
| 5191 | /* end confdefs.h. */ |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5192 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 5193 | #define _OSF_SOURCE 1 |
| 5194 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5195 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5196 | int |
| 5197 | main () |
| 5198 | { |
| 5199 | makedev(0, 0) |
| 5200 | ; |
| 5201 | return 0; |
| 5202 | } |
| 5203 | _ACEOF |
| 5204 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5205 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5206 | (eval $ac_link) 2>&5 |
| 5207 | ac_status=$? |
| 5208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5209 | (exit $ac_status); } && |
| 5210 | { ac_try='test -s conftest$ac_exeext' |
| 5211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5212 | (eval $ac_try) 2>&5 |
| 5213 | ac_status=$? |
| 5214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5215 | (exit $ac_status); }; }; then |
| 5216 | ac_cv_has_makedev=yes |
| 5217 | else |
| 5218 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5219 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5220 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5221 | ac_cv_has_makedev=no |
| 5222 | fi |
| 5223 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5224 | if test "$ac_cv_has_makedev" = "yes"; then |
| 5225 | |
| 5226 | cat >>confdefs.h <<\_ACEOF |
| 5227 | #define _OSF_SOURCE 1 |
| 5228 | _ACEOF |
| 5229 | |
| 5230 | fi |
| 5231 | fi |
| 5232 | echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 5233 | echo "${ECHO_T}$ac_cv_has_makedev" >&6 |
| 5234 | if test "$ac_cv_has_makedev" = "yes"; then |
| 5235 | |
| 5236 | cat >>confdefs.h <<\_ACEOF |
| 5237 | #define HAVE_MAKEDEV 1 |
| 5238 | _ACEOF |
| 5239 | |
| 5240 | fi |
| 5241 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5242 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 5243 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 5244 | # defined, but the compiler does not support pragma redefine_extname, |
| 5245 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 5246 | # structures (such as rlimit64) without declaring them. As a |
| 5247 | # work-around, disable LFS on such configurations |
| 5248 | |
| 5249 | use_lfs=yes |
| 5250 | echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 5251 | echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6 |
| 5252 | cat >conftest.$ac_ext <<_ACEOF |
| 5253 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5254 | /* confdefs.h. */ |
| 5255 | _ACEOF |
| 5256 | cat confdefs.h >>conftest.$ac_ext |
| 5257 | cat >>conftest.$ac_ext <<_ACEOF |
| 5258 | /* end confdefs.h. */ |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5259 | |
| 5260 | #define _LARGEFILE_SOURCE 1 |
| 5261 | #define _FILE_OFFSET_BITS 64 |
| 5262 | #include <sys/resource.h> |
| 5263 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5264 | int |
| 5265 | main () |
| 5266 | { |
| 5267 | struct rlimit foo; |
| 5268 | ; |
| 5269 | return 0; |
| 5270 | } |
| 5271 | _ACEOF |
| 5272 | rm -f conftest.$ac_objext |
| 5273 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5274 | (eval $ac_compile) 2>&5 |
| 5275 | ac_status=$? |
| 5276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5277 | (exit $ac_status); } && |
| 5278 | { ac_try='test -s conftest.$ac_objext' |
| 5279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5280 | (eval $ac_try) 2>&5 |
| 5281 | ac_status=$? |
| 5282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5283 | (exit $ac_status); }; }; then |
| 5284 | sol_lfs_bug=no |
| 5285 | else |
| 5286 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5287 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5288 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5289 | sol_lfs_bug=yes |
| 5290 | fi |
| 5291 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5292 | echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 5293 | echo "${ECHO_T}$sol_lfs_bug" >&6 |
| 5294 | if test "$sol_lfs_bug" = "yes"; then |
| 5295 | use_lfs=no |
| 5296 | fi |
| 5297 | |
| 5298 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5299 | # Two defines needed to enable largefile support on various platforms |
| 5300 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5301 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5302 | cat >>confdefs.h <<\_ACEOF |
| 5303 | #define _LARGEFILE_SOURCE 1 |
| 5304 | _ACEOF |
| 5305 | |
| 5306 | |
| 5307 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5308 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5309 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5310 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5311 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5312 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 5313 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 5314 | cat >> confdefs.h <<\EOF |
| 5315 | #if defined(SCO_DS) |
| 5316 | #undef _OFF_T |
| 5317 | #endif |
| 5318 | EOF |
| 5319 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5320 | # Type availability checks |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5321 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 5322 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 5323 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 5324 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5325 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5326 | cat >conftest.$ac_ext <<_ACEOF |
| 5327 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5328 | /* confdefs.h. */ |
| 5329 | _ACEOF |
| 5330 | cat confdefs.h >>conftest.$ac_ext |
| 5331 | cat >>conftest.$ac_ext <<_ACEOF |
| 5332 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5333 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5334 | int |
| 5335 | main () |
| 5336 | { |
| 5337 | if ((mode_t *) 0) |
| 5338 | return 0; |
| 5339 | if (sizeof (mode_t)) |
| 5340 | return 0; |
| 5341 | ; |
| 5342 | return 0; |
| 5343 | } |
| 5344 | _ACEOF |
| 5345 | rm -f conftest.$ac_objext |
| 5346 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5347 | (eval $ac_compile) 2>&5 |
| 5348 | ac_status=$? |
| 5349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5350 | (exit $ac_status); } && |
| 5351 | { ac_try='test -s conftest.$ac_objext' |
| 5352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5353 | (eval $ac_try) 2>&5 |
| 5354 | ac_status=$? |
| 5355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5356 | (exit $ac_status); }; }; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5357 | ac_cv_type_mode_t=yes |
| 5358 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5359 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5360 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5361 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5362 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5363 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5364 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5365 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5366 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 5367 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 5368 | if test $ac_cv_type_mode_t = yes; then |
| 5369 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5370 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5371 | |
| 5372 | cat >>confdefs.h <<_ACEOF |
| 5373 | #define mode_t int |
| 5374 | _ACEOF |
| 5375 | |
| 5376 | fi |
| 5377 | |
| 5378 | echo "$as_me:$LINENO: checking for off_t" >&5 |
| 5379 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 5380 | if test "${ac_cv_type_off_t+set}" = set; then |
| 5381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5382 | else |
| 5383 | cat >conftest.$ac_ext <<_ACEOF |
| 5384 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5385 | /* confdefs.h. */ |
| 5386 | _ACEOF |
| 5387 | cat confdefs.h >>conftest.$ac_ext |
| 5388 | cat >>conftest.$ac_ext <<_ACEOF |
| 5389 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5390 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5391 | int |
| 5392 | main () |
| 5393 | { |
| 5394 | if ((off_t *) 0) |
| 5395 | return 0; |
| 5396 | if (sizeof (off_t)) |
| 5397 | return 0; |
| 5398 | ; |
| 5399 | return 0; |
| 5400 | } |
| 5401 | _ACEOF |
| 5402 | rm -f conftest.$ac_objext |
| 5403 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5404 | (eval $ac_compile) 2>&5 |
| 5405 | ac_status=$? |
| 5406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5407 | (exit $ac_status); } && |
| 5408 | { ac_try='test -s conftest.$ac_objext' |
| 5409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5410 | (eval $ac_try) 2>&5 |
| 5411 | ac_status=$? |
| 5412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5413 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5414 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5415 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5416 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5417 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5418 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5419 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5420 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5421 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5422 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5423 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 5424 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 5425 | if test $ac_cv_type_off_t = yes; then |
| 5426 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5427 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5428 | |
| 5429 | cat >>confdefs.h <<_ACEOF |
| 5430 | #define off_t long |
| 5431 | _ACEOF |
| 5432 | |
| 5433 | fi |
| 5434 | |
| 5435 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 5436 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 5437 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 5438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5439 | else |
| 5440 | cat >conftest.$ac_ext <<_ACEOF |
| 5441 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5442 | /* confdefs.h. */ |
| 5443 | _ACEOF |
| 5444 | cat confdefs.h >>conftest.$ac_ext |
| 5445 | cat >>conftest.$ac_ext <<_ACEOF |
| 5446 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5447 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5448 | int |
| 5449 | main () |
| 5450 | { |
| 5451 | if ((pid_t *) 0) |
| 5452 | return 0; |
| 5453 | if (sizeof (pid_t)) |
| 5454 | return 0; |
| 5455 | ; |
| 5456 | return 0; |
| 5457 | } |
| 5458 | _ACEOF |
| 5459 | rm -f conftest.$ac_objext |
| 5460 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5461 | (eval $ac_compile) 2>&5 |
| 5462 | ac_status=$? |
| 5463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5464 | (exit $ac_status); } && |
| 5465 | { ac_try='test -s conftest.$ac_objext' |
| 5466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5467 | (eval $ac_try) 2>&5 |
| 5468 | ac_status=$? |
| 5469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5470 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5471 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5472 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5473 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5474 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5475 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5476 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5477 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5478 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5479 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5480 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 5481 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 5482 | if test $ac_cv_type_pid_t = yes; then |
| 5483 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5484 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5485 | |
| 5486 | cat >>confdefs.h <<_ACEOF |
| 5487 | #define pid_t int |
| 5488 | _ACEOF |
| 5489 | |
| 5490 | fi |
| 5491 | |
| 5492 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 5493 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 5494 | if test "${ac_cv_type_signal+set}" = set; then |
| 5495 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5496 | else |
| 5497 | cat >conftest.$ac_ext <<_ACEOF |
| 5498 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5499 | /* confdefs.h. */ |
| 5500 | _ACEOF |
| 5501 | cat confdefs.h >>conftest.$ac_ext |
| 5502 | cat >>conftest.$ac_ext <<_ACEOF |
| 5503 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5504 | #include <sys/types.h> |
| 5505 | #include <signal.h> |
| 5506 | #ifdef signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5507 | # undef signal |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5508 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5509 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5510 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 5511 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5512 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5513 | #endif |
| 5514 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5515 | int |
| 5516 | main () |
| 5517 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5518 | int i; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5519 | ; |
| 5520 | return 0; |
| 5521 | } |
| 5522 | _ACEOF |
| 5523 | rm -f conftest.$ac_objext |
| 5524 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5525 | (eval $ac_compile) 2>&5 |
| 5526 | ac_status=$? |
| 5527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5528 | (exit $ac_status); } && |
| 5529 | { ac_try='test -s conftest.$ac_objext' |
| 5530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5531 | (eval $ac_try) 2>&5 |
| 5532 | ac_status=$? |
| 5533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5534 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5535 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5536 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5537 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5538 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5539 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5540 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5541 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5542 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5543 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5544 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 5545 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5546 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5547 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5548 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5549 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5550 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5551 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5552 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 5553 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 5554 | if test "${ac_cv_type_size_t+set}" = set; then |
| 5555 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5556 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5557 | cat >conftest.$ac_ext <<_ACEOF |
| 5558 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5559 | /* confdefs.h. */ |
| 5560 | _ACEOF |
| 5561 | cat confdefs.h >>conftest.$ac_ext |
| 5562 | cat >>conftest.$ac_ext <<_ACEOF |
| 5563 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5564 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5565 | int |
| 5566 | main () |
| 5567 | { |
| 5568 | if ((size_t *) 0) |
| 5569 | return 0; |
| 5570 | if (sizeof (size_t)) |
| 5571 | return 0; |
| 5572 | ; |
| 5573 | return 0; |
| 5574 | } |
| 5575 | _ACEOF |
| 5576 | rm -f conftest.$ac_objext |
| 5577 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5578 | (eval $ac_compile) 2>&5 |
| 5579 | ac_status=$? |
| 5580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5581 | (exit $ac_status); } && |
| 5582 | { ac_try='test -s conftest.$ac_objext' |
| 5583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5584 | (eval $ac_try) 2>&5 |
| 5585 | ac_status=$? |
| 5586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5587 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5588 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5589 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5590 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5591 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5592 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5593 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5594 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5595 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5596 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5597 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 5598 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 5599 | if test $ac_cv_type_size_t = yes; then |
| 5600 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5601 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5602 | |
| 5603 | cat >>confdefs.h <<_ACEOF |
| 5604 | #define size_t unsigned |
| 5605 | _ACEOF |
| 5606 | |
| 5607 | fi |
| 5608 | |
| 5609 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 5610 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
| 5611 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 5612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5613 | else |
| 5614 | cat >conftest.$ac_ext <<_ACEOF |
| 5615 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5616 | /* confdefs.h. */ |
| 5617 | _ACEOF |
| 5618 | cat confdefs.h >>conftest.$ac_ext |
| 5619 | cat >>conftest.$ac_ext <<_ACEOF |
| 5620 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5621 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5622 | |
| 5623 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5624 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5625 | $EGREP "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5626 | ac_cv_type_uid_t=yes |
| 5627 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5628 | ac_cv_type_uid_t=no |
| 5629 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5630 | rm -f conftest* |
| 5631 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5632 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5633 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 5634 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5635 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5636 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5637 | cat >>confdefs.h <<\_ACEOF |
| 5638 | #define uid_t int |
| 5639 | _ACEOF |
| 5640 | |
| 5641 | |
| 5642 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5643 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5644 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5645 | |
| 5646 | fi |
| 5647 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5648 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5649 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5650 | # ANSI C requires sizeof(char) == 1, so no need to check it |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5651 | echo "$as_me:$LINENO: checking for int" >&5 |
| 5652 | echo $ECHO_N "checking for int... $ECHO_C" >&6 |
| 5653 | if test "${ac_cv_type_int+set}" = set; then |
| 5654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5655 | else |
| 5656 | cat >conftest.$ac_ext <<_ACEOF |
| 5657 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5658 | /* confdefs.h. */ |
| 5659 | _ACEOF |
| 5660 | cat confdefs.h >>conftest.$ac_ext |
| 5661 | cat >>conftest.$ac_ext <<_ACEOF |
| 5662 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5663 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5664 | int |
| 5665 | main () |
| 5666 | { |
| 5667 | if ((int *) 0) |
| 5668 | return 0; |
| 5669 | if (sizeof (int)) |
| 5670 | return 0; |
| 5671 | ; |
| 5672 | return 0; |
| 5673 | } |
| 5674 | _ACEOF |
| 5675 | rm -f conftest.$ac_objext |
| 5676 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5677 | (eval $ac_compile) 2>&5 |
| 5678 | ac_status=$? |
| 5679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5680 | (exit $ac_status); } && |
| 5681 | { ac_try='test -s conftest.$ac_objext' |
| 5682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5683 | (eval $ac_try) 2>&5 |
| 5684 | ac_status=$? |
| 5685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5686 | (exit $ac_status); }; }; then |
| 5687 | ac_cv_type_int=yes |
| 5688 | else |
| 5689 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5690 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5691 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5692 | ac_cv_type_int=no |
| 5693 | fi |
| 5694 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5695 | fi |
| 5696 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 5697 | echo "${ECHO_T}$ac_cv_type_int" >&6 |
| 5698 | |
| 5699 | echo "$as_me:$LINENO: checking size of int" >&5 |
| 5700 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| 5701 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 5702 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5703 | else |
| 5704 | if test "$ac_cv_type_int" = yes; then |
| 5705 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5706 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5707 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5708 | # This bug is HP SR number 8606223364. |
| 5709 | if test "$cross_compiling" = yes; then |
| 5710 | # Depending upon the size, compute the lo and hi bounds. |
| 5711 | cat >conftest.$ac_ext <<_ACEOF |
| 5712 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5713 | /* confdefs.h. */ |
| 5714 | _ACEOF |
| 5715 | cat confdefs.h >>conftest.$ac_ext |
| 5716 | cat >>conftest.$ac_ext <<_ACEOF |
| 5717 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5718 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5719 | int |
| 5720 | main () |
| 5721 | { |
| 5722 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
| 5723 | test_array [0] = 0 |
| 5724 | |
| 5725 | ; |
| 5726 | return 0; |
| 5727 | } |
| 5728 | _ACEOF |
| 5729 | rm -f conftest.$ac_objext |
| 5730 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5731 | (eval $ac_compile) 2>&5 |
| 5732 | ac_status=$? |
| 5733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5734 | (exit $ac_status); } && |
| 5735 | { ac_try='test -s conftest.$ac_objext' |
| 5736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5737 | (eval $ac_try) 2>&5 |
| 5738 | ac_status=$? |
| 5739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5740 | (exit $ac_status); }; }; then |
| 5741 | ac_lo=0 ac_mid=0 |
| 5742 | while :; do |
| 5743 | cat >conftest.$ac_ext <<_ACEOF |
| 5744 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5745 | /* confdefs.h. */ |
| 5746 | _ACEOF |
| 5747 | cat confdefs.h >>conftest.$ac_ext |
| 5748 | cat >>conftest.$ac_ext <<_ACEOF |
| 5749 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5750 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5751 | int |
| 5752 | main () |
| 5753 | { |
| 5754 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 5755 | test_array [0] = 0 |
| 5756 | |
| 5757 | ; |
| 5758 | return 0; |
| 5759 | } |
| 5760 | _ACEOF |
| 5761 | rm -f conftest.$ac_objext |
| 5762 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5763 | (eval $ac_compile) 2>&5 |
| 5764 | ac_status=$? |
| 5765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5766 | (exit $ac_status); } && |
| 5767 | { ac_try='test -s conftest.$ac_objext' |
| 5768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5769 | (eval $ac_try) 2>&5 |
| 5770 | ac_status=$? |
| 5771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5772 | (exit $ac_status); }; }; then |
| 5773 | ac_hi=$ac_mid; break |
| 5774 | else |
| 5775 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5776 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5777 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5778 | ac_lo=`expr $ac_mid + 1` |
| 5779 | if test $ac_lo -le $ac_mid; then |
| 5780 | ac_lo= ac_hi= |
| 5781 | break |
| 5782 | fi |
| 5783 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5784 | fi |
| 5785 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5786 | done |
| 5787 | else |
| 5788 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5789 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5790 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5791 | cat >conftest.$ac_ext <<_ACEOF |
| 5792 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5793 | /* confdefs.h. */ |
| 5794 | _ACEOF |
| 5795 | cat confdefs.h >>conftest.$ac_ext |
| 5796 | cat >>conftest.$ac_ext <<_ACEOF |
| 5797 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5798 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5799 | int |
| 5800 | main () |
| 5801 | { |
| 5802 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
| 5803 | test_array [0] = 0 |
| 5804 | |
| 5805 | ; |
| 5806 | return 0; |
| 5807 | } |
| 5808 | _ACEOF |
| 5809 | rm -f conftest.$ac_objext |
| 5810 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5811 | (eval $ac_compile) 2>&5 |
| 5812 | ac_status=$? |
| 5813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5814 | (exit $ac_status); } && |
| 5815 | { ac_try='test -s conftest.$ac_objext' |
| 5816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5817 | (eval $ac_try) 2>&5 |
| 5818 | ac_status=$? |
| 5819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5820 | (exit $ac_status); }; }; then |
| 5821 | ac_hi=-1 ac_mid=-1 |
| 5822 | while :; do |
| 5823 | cat >conftest.$ac_ext <<_ACEOF |
| 5824 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5825 | /* confdefs.h. */ |
| 5826 | _ACEOF |
| 5827 | cat confdefs.h >>conftest.$ac_ext |
| 5828 | cat >>conftest.$ac_ext <<_ACEOF |
| 5829 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5830 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5831 | int |
| 5832 | main () |
| 5833 | { |
| 5834 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
| 5835 | test_array [0] = 0 |
| 5836 | |
| 5837 | ; |
| 5838 | return 0; |
| 5839 | } |
| 5840 | _ACEOF |
| 5841 | rm -f conftest.$ac_objext |
| 5842 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5843 | (eval $ac_compile) 2>&5 |
| 5844 | ac_status=$? |
| 5845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5846 | (exit $ac_status); } && |
| 5847 | { ac_try='test -s conftest.$ac_objext' |
| 5848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5849 | (eval $ac_try) 2>&5 |
| 5850 | ac_status=$? |
| 5851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5852 | (exit $ac_status); }; }; then |
| 5853 | ac_lo=$ac_mid; break |
| 5854 | else |
| 5855 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5856 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5857 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5858 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5859 | if test $ac_mid -le $ac_hi; then |
| 5860 | ac_lo= ac_hi= |
| 5861 | break |
| 5862 | fi |
| 5863 | ac_mid=`expr 2 '*' $ac_mid` |
| 5864 | fi |
| 5865 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5866 | done |
| 5867 | else |
| 5868 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5869 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5870 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5871 | ac_lo= ac_hi= |
| 5872 | fi |
| 5873 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5874 | fi |
| 5875 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5876 | # Binary search between lo and hi bounds. |
| 5877 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5878 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5879 | cat >conftest.$ac_ext <<_ACEOF |
| 5880 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5881 | /* confdefs.h. */ |
| 5882 | _ACEOF |
| 5883 | cat confdefs.h >>conftest.$ac_ext |
| 5884 | cat >>conftest.$ac_ext <<_ACEOF |
| 5885 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5886 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5887 | int |
| 5888 | main () |
| 5889 | { |
| 5890 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 5891 | test_array [0] = 0 |
| 5892 | |
| 5893 | ; |
| 5894 | return 0; |
| 5895 | } |
| 5896 | _ACEOF |
| 5897 | rm -f conftest.$ac_objext |
| 5898 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5899 | (eval $ac_compile) 2>&5 |
| 5900 | ac_status=$? |
| 5901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5902 | (exit $ac_status); } && |
| 5903 | { ac_try='test -s conftest.$ac_objext' |
| 5904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5905 | (eval $ac_try) 2>&5 |
| 5906 | ac_status=$? |
| 5907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5908 | (exit $ac_status); }; }; then |
| 5909 | ac_hi=$ac_mid |
| 5910 | else |
| 5911 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5912 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5913 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5914 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 5915 | fi |
| 5916 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5917 | done |
| 5918 | case $ac_lo in |
| 5919 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5920 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
| 5921 | See \`config.log' for more details." >&5 |
| 5922 | echo "$as_me: error: cannot compute sizeof (int), 77 |
| 5923 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5924 | { (exit 1); exit 1; }; } ;; |
| 5925 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5926 | else |
| 5927 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5928 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 5929 | See \`config.log' for more details." >&5 |
| 5930 | echo "$as_me: error: cannot run test program while cross compiling |
| 5931 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5932 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5933 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5934 | cat >conftest.$ac_ext <<_ACEOF |
| 5935 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5936 | /* confdefs.h. */ |
| 5937 | _ACEOF |
| 5938 | cat confdefs.h >>conftest.$ac_ext |
| 5939 | cat >>conftest.$ac_ext <<_ACEOF |
| 5940 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5941 | $ac_includes_default |
| 5942 | long longval () { return (long) (sizeof (int)); } |
| 5943 | unsigned long ulongval () { return (long) (sizeof (int)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5944 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5945 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5946 | int |
| 5947 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5948 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5949 | |
| 5950 | FILE *f = fopen ("conftest.val", "w"); |
| 5951 | if (! f) |
| 5952 | exit (1); |
| 5953 | if (((long) (sizeof (int))) < 0) |
| 5954 | { |
| 5955 | long i = longval (); |
| 5956 | if (i != ((long) (sizeof (int)))) |
| 5957 | exit (1); |
| 5958 | fprintf (f, "%ld\n", i); |
| 5959 | } |
| 5960 | else |
| 5961 | { |
| 5962 | unsigned long i = ulongval (); |
| 5963 | if (i != ((long) (sizeof (int)))) |
| 5964 | exit (1); |
| 5965 | fprintf (f, "%lu\n", i); |
| 5966 | } |
| 5967 | exit (ferror (f) || fclose (f) != 0); |
| 5968 | |
| 5969 | ; |
| 5970 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5971 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5972 | _ACEOF |
| 5973 | rm -f conftest$ac_exeext |
| 5974 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5975 | (eval $ac_link) 2>&5 |
| 5976 | ac_status=$? |
| 5977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5978 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5980 | (eval $ac_try) 2>&5 |
| 5981 | ac_status=$? |
| 5982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5983 | (exit $ac_status); }; }; then |
| 5984 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5985 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5986 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5987 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5988 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5989 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5990 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5991 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
| 5992 | See \`config.log' for more details." >&5 |
| 5993 | echo "$as_me: error: cannot compute sizeof (int), 77 |
| 5994 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5995 | { (exit 1); exit 1; }; } |
| 5996 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5997 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5998 | fi |
| 5999 | fi |
| 6000 | rm -f conftest.val |
| 6001 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6002 | ac_cv_sizeof_int=0 |
| 6003 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6004 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6005 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 6006 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| 6007 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6008 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6009 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6010 | |
| 6011 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6012 | echo "$as_me:$LINENO: checking for long" >&5 |
| 6013 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
| 6014 | if test "${ac_cv_type_long+set}" = set; then |
| 6015 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6016 | else |
| 6017 | cat >conftest.$ac_ext <<_ACEOF |
| 6018 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6019 | /* confdefs.h. */ |
| 6020 | _ACEOF |
| 6021 | cat confdefs.h >>conftest.$ac_ext |
| 6022 | cat >>conftest.$ac_ext <<_ACEOF |
| 6023 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6024 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6025 | int |
| 6026 | main () |
| 6027 | { |
| 6028 | if ((long *) 0) |
| 6029 | return 0; |
| 6030 | if (sizeof (long)) |
| 6031 | return 0; |
| 6032 | ; |
| 6033 | return 0; |
| 6034 | } |
| 6035 | _ACEOF |
| 6036 | rm -f conftest.$ac_objext |
| 6037 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6038 | (eval $ac_compile) 2>&5 |
| 6039 | ac_status=$? |
| 6040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6041 | (exit $ac_status); } && |
| 6042 | { ac_try='test -s conftest.$ac_objext' |
| 6043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6044 | (eval $ac_try) 2>&5 |
| 6045 | ac_status=$? |
| 6046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6047 | (exit $ac_status); }; }; then |
| 6048 | ac_cv_type_long=yes |
| 6049 | else |
| 6050 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6051 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6052 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6053 | ac_cv_type_long=no |
| 6054 | fi |
| 6055 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6056 | fi |
| 6057 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 6058 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
| 6059 | |
| 6060 | echo "$as_me:$LINENO: checking size of long" >&5 |
| 6061 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
| 6062 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 6063 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6064 | else |
| 6065 | if test "$ac_cv_type_long" = yes; then |
| 6066 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6067 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6068 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6069 | # This bug is HP SR number 8606223364. |
| 6070 | if test "$cross_compiling" = yes; then |
| 6071 | # Depending upon the size, compute the lo and hi bounds. |
| 6072 | cat >conftest.$ac_ext <<_ACEOF |
| 6073 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6074 | /* confdefs.h. */ |
| 6075 | _ACEOF |
| 6076 | cat confdefs.h >>conftest.$ac_ext |
| 6077 | cat >>conftest.$ac_ext <<_ACEOF |
| 6078 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6079 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6080 | int |
| 6081 | main () |
| 6082 | { |
| 6083 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
| 6084 | test_array [0] = 0 |
| 6085 | |
| 6086 | ; |
| 6087 | return 0; |
| 6088 | } |
| 6089 | _ACEOF |
| 6090 | rm -f conftest.$ac_objext |
| 6091 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6092 | (eval $ac_compile) 2>&5 |
| 6093 | ac_status=$? |
| 6094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6095 | (exit $ac_status); } && |
| 6096 | { ac_try='test -s conftest.$ac_objext' |
| 6097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6098 | (eval $ac_try) 2>&5 |
| 6099 | ac_status=$? |
| 6100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6101 | (exit $ac_status); }; }; then |
| 6102 | ac_lo=0 ac_mid=0 |
| 6103 | while :; do |
| 6104 | cat >conftest.$ac_ext <<_ACEOF |
| 6105 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6106 | /* confdefs.h. */ |
| 6107 | _ACEOF |
| 6108 | cat confdefs.h >>conftest.$ac_ext |
| 6109 | cat >>conftest.$ac_ext <<_ACEOF |
| 6110 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6111 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6112 | int |
| 6113 | main () |
| 6114 | { |
| 6115 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 6116 | test_array [0] = 0 |
| 6117 | |
| 6118 | ; |
| 6119 | return 0; |
| 6120 | } |
| 6121 | _ACEOF |
| 6122 | rm -f conftest.$ac_objext |
| 6123 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6124 | (eval $ac_compile) 2>&5 |
| 6125 | ac_status=$? |
| 6126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6127 | (exit $ac_status); } && |
| 6128 | { ac_try='test -s conftest.$ac_objext' |
| 6129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6130 | (eval $ac_try) 2>&5 |
| 6131 | ac_status=$? |
| 6132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6133 | (exit $ac_status); }; }; then |
| 6134 | ac_hi=$ac_mid; break |
| 6135 | else |
| 6136 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6137 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6138 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6139 | ac_lo=`expr $ac_mid + 1` |
| 6140 | if test $ac_lo -le $ac_mid; then |
| 6141 | ac_lo= ac_hi= |
| 6142 | break |
| 6143 | fi |
| 6144 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6145 | fi |
| 6146 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6147 | done |
| 6148 | else |
| 6149 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6150 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6151 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6152 | cat >conftest.$ac_ext <<_ACEOF |
| 6153 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6154 | /* confdefs.h. */ |
| 6155 | _ACEOF |
| 6156 | cat confdefs.h >>conftest.$ac_ext |
| 6157 | cat >>conftest.$ac_ext <<_ACEOF |
| 6158 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6159 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6160 | int |
| 6161 | main () |
| 6162 | { |
| 6163 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
| 6164 | test_array [0] = 0 |
| 6165 | |
| 6166 | ; |
| 6167 | return 0; |
| 6168 | } |
| 6169 | _ACEOF |
| 6170 | rm -f conftest.$ac_objext |
| 6171 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6172 | (eval $ac_compile) 2>&5 |
| 6173 | ac_status=$? |
| 6174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6175 | (exit $ac_status); } && |
| 6176 | { ac_try='test -s conftest.$ac_objext' |
| 6177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6178 | (eval $ac_try) 2>&5 |
| 6179 | ac_status=$? |
| 6180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6181 | (exit $ac_status); }; }; then |
| 6182 | ac_hi=-1 ac_mid=-1 |
| 6183 | while :; do |
| 6184 | cat >conftest.$ac_ext <<_ACEOF |
| 6185 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6186 | /* confdefs.h. */ |
| 6187 | _ACEOF |
| 6188 | cat confdefs.h >>conftest.$ac_ext |
| 6189 | cat >>conftest.$ac_ext <<_ACEOF |
| 6190 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6191 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6192 | int |
| 6193 | main () |
| 6194 | { |
| 6195 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
| 6196 | test_array [0] = 0 |
| 6197 | |
| 6198 | ; |
| 6199 | return 0; |
| 6200 | } |
| 6201 | _ACEOF |
| 6202 | rm -f conftest.$ac_objext |
| 6203 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6204 | (eval $ac_compile) 2>&5 |
| 6205 | ac_status=$? |
| 6206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6207 | (exit $ac_status); } && |
| 6208 | { ac_try='test -s conftest.$ac_objext' |
| 6209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6210 | (eval $ac_try) 2>&5 |
| 6211 | ac_status=$? |
| 6212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6213 | (exit $ac_status); }; }; then |
| 6214 | ac_lo=$ac_mid; break |
| 6215 | else |
| 6216 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6217 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6218 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6219 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6220 | if test $ac_mid -le $ac_hi; then |
| 6221 | ac_lo= ac_hi= |
| 6222 | break |
| 6223 | fi |
| 6224 | ac_mid=`expr 2 '*' $ac_mid` |
| 6225 | fi |
| 6226 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6227 | done |
| 6228 | else |
| 6229 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6230 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6231 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6232 | ac_lo= ac_hi= |
| 6233 | fi |
| 6234 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6235 | fi |
| 6236 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6237 | # Binary search between lo and hi bounds. |
| 6238 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6239 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6240 | cat >conftest.$ac_ext <<_ACEOF |
| 6241 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6242 | /* confdefs.h. */ |
| 6243 | _ACEOF |
| 6244 | cat confdefs.h >>conftest.$ac_ext |
| 6245 | cat >>conftest.$ac_ext <<_ACEOF |
| 6246 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6247 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6248 | int |
| 6249 | main () |
| 6250 | { |
| 6251 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 6252 | test_array [0] = 0 |
| 6253 | |
| 6254 | ; |
| 6255 | return 0; |
| 6256 | } |
| 6257 | _ACEOF |
| 6258 | rm -f conftest.$ac_objext |
| 6259 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6260 | (eval $ac_compile) 2>&5 |
| 6261 | ac_status=$? |
| 6262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6263 | (exit $ac_status); } && |
| 6264 | { ac_try='test -s conftest.$ac_objext' |
| 6265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6266 | (eval $ac_try) 2>&5 |
| 6267 | ac_status=$? |
| 6268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6269 | (exit $ac_status); }; }; then |
| 6270 | ac_hi=$ac_mid |
| 6271 | else |
| 6272 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6273 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6274 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6275 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6276 | fi |
| 6277 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6278 | done |
| 6279 | case $ac_lo in |
| 6280 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6281 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
| 6282 | See \`config.log' for more details." >&5 |
| 6283 | echo "$as_me: error: cannot compute sizeof (long), 77 |
| 6284 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6285 | { (exit 1); exit 1; }; } ;; |
| 6286 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6287 | else |
| 6288 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6289 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 6290 | See \`config.log' for more details." >&5 |
| 6291 | echo "$as_me: error: cannot run test program while cross compiling |
| 6292 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6293 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6294 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6295 | cat >conftest.$ac_ext <<_ACEOF |
| 6296 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6297 | /* confdefs.h. */ |
| 6298 | _ACEOF |
| 6299 | cat confdefs.h >>conftest.$ac_ext |
| 6300 | cat >>conftest.$ac_ext <<_ACEOF |
| 6301 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6302 | $ac_includes_default |
| 6303 | long longval () { return (long) (sizeof (long)); } |
| 6304 | unsigned long ulongval () { return (long) (sizeof (long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6305 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6306 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6307 | int |
| 6308 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6309 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6310 | |
| 6311 | FILE *f = fopen ("conftest.val", "w"); |
| 6312 | if (! f) |
| 6313 | exit (1); |
| 6314 | if (((long) (sizeof (long))) < 0) |
| 6315 | { |
| 6316 | long i = longval (); |
| 6317 | if (i != ((long) (sizeof (long)))) |
| 6318 | exit (1); |
| 6319 | fprintf (f, "%ld\n", i); |
| 6320 | } |
| 6321 | else |
| 6322 | { |
| 6323 | unsigned long i = ulongval (); |
| 6324 | if (i != ((long) (sizeof (long)))) |
| 6325 | exit (1); |
| 6326 | fprintf (f, "%lu\n", i); |
| 6327 | } |
| 6328 | exit (ferror (f) || fclose (f) != 0); |
| 6329 | |
| 6330 | ; |
| 6331 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6332 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6333 | _ACEOF |
| 6334 | rm -f conftest$ac_exeext |
| 6335 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6336 | (eval $ac_link) 2>&5 |
| 6337 | ac_status=$? |
| 6338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6339 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6341 | (eval $ac_try) 2>&5 |
| 6342 | ac_status=$? |
| 6343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6344 | (exit $ac_status); }; }; then |
| 6345 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6346 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6347 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6348 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6349 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6350 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6351 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6352 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
| 6353 | See \`config.log' for more details." >&5 |
| 6354 | echo "$as_me: error: cannot compute sizeof (long), 77 |
| 6355 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6356 | { (exit 1); exit 1; }; } |
| 6357 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6358 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6359 | fi |
| 6360 | fi |
| 6361 | rm -f conftest.val |
| 6362 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6363 | ac_cv_sizeof_long=0 |
| 6364 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6365 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6366 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 6367 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
| 6368 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6369 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6370 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6371 | |
| 6372 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6373 | echo "$as_me:$LINENO: checking for void *" >&5 |
| 6374 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 |
| 6375 | if test "${ac_cv_type_void_p+set}" = set; then |
| 6376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6377 | else |
| 6378 | cat >conftest.$ac_ext <<_ACEOF |
| 6379 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6380 | /* confdefs.h. */ |
| 6381 | _ACEOF |
| 6382 | cat confdefs.h >>conftest.$ac_ext |
| 6383 | cat >>conftest.$ac_ext <<_ACEOF |
| 6384 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6385 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6386 | int |
| 6387 | main () |
| 6388 | { |
| 6389 | if ((void * *) 0) |
| 6390 | return 0; |
| 6391 | if (sizeof (void *)) |
| 6392 | return 0; |
| 6393 | ; |
| 6394 | return 0; |
| 6395 | } |
| 6396 | _ACEOF |
| 6397 | rm -f conftest.$ac_objext |
| 6398 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6399 | (eval $ac_compile) 2>&5 |
| 6400 | ac_status=$? |
| 6401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6402 | (exit $ac_status); } && |
| 6403 | { ac_try='test -s conftest.$ac_objext' |
| 6404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6405 | (eval $ac_try) 2>&5 |
| 6406 | ac_status=$? |
| 6407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6408 | (exit $ac_status); }; }; then |
| 6409 | ac_cv_type_void_p=yes |
| 6410 | else |
| 6411 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6412 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6413 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6414 | ac_cv_type_void_p=no |
| 6415 | fi |
| 6416 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6417 | fi |
| 6418 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 6419 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 |
| 6420 | |
| 6421 | echo "$as_me:$LINENO: checking size of void *" >&5 |
| 6422 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 |
| 6423 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
| 6424 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6425 | else |
| 6426 | if test "$ac_cv_type_void_p" = yes; then |
| 6427 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6428 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6429 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6430 | # This bug is HP SR number 8606223364. |
| 6431 | if test "$cross_compiling" = yes; then |
| 6432 | # Depending upon the size, compute the lo and hi bounds. |
| 6433 | cat >conftest.$ac_ext <<_ACEOF |
| 6434 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6435 | /* confdefs.h. */ |
| 6436 | _ACEOF |
| 6437 | cat confdefs.h >>conftest.$ac_ext |
| 6438 | cat >>conftest.$ac_ext <<_ACEOF |
| 6439 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6440 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6441 | int |
| 6442 | main () |
| 6443 | { |
| 6444 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
| 6445 | test_array [0] = 0 |
| 6446 | |
| 6447 | ; |
| 6448 | return 0; |
| 6449 | } |
| 6450 | _ACEOF |
| 6451 | rm -f conftest.$ac_objext |
| 6452 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6453 | (eval $ac_compile) 2>&5 |
| 6454 | ac_status=$? |
| 6455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6456 | (exit $ac_status); } && |
| 6457 | { ac_try='test -s conftest.$ac_objext' |
| 6458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6459 | (eval $ac_try) 2>&5 |
| 6460 | ac_status=$? |
| 6461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6462 | (exit $ac_status); }; }; then |
| 6463 | ac_lo=0 ac_mid=0 |
| 6464 | while :; do |
| 6465 | cat >conftest.$ac_ext <<_ACEOF |
| 6466 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6467 | /* confdefs.h. */ |
| 6468 | _ACEOF |
| 6469 | cat confdefs.h >>conftest.$ac_ext |
| 6470 | cat >>conftest.$ac_ext <<_ACEOF |
| 6471 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6472 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6473 | int |
| 6474 | main () |
| 6475 | { |
| 6476 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 6477 | test_array [0] = 0 |
| 6478 | |
| 6479 | ; |
| 6480 | return 0; |
| 6481 | } |
| 6482 | _ACEOF |
| 6483 | rm -f conftest.$ac_objext |
| 6484 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6485 | (eval $ac_compile) 2>&5 |
| 6486 | ac_status=$? |
| 6487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6488 | (exit $ac_status); } && |
| 6489 | { ac_try='test -s conftest.$ac_objext' |
| 6490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6491 | (eval $ac_try) 2>&5 |
| 6492 | ac_status=$? |
| 6493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6494 | (exit $ac_status); }; }; then |
| 6495 | ac_hi=$ac_mid; break |
| 6496 | else |
| 6497 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6498 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6499 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6500 | ac_lo=`expr $ac_mid + 1` |
| 6501 | if test $ac_lo -le $ac_mid; then |
| 6502 | ac_lo= ac_hi= |
| 6503 | break |
| 6504 | fi |
| 6505 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6506 | fi |
| 6507 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6508 | done |
| 6509 | else |
| 6510 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6511 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6512 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6513 | cat >conftest.$ac_ext <<_ACEOF |
| 6514 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6515 | /* confdefs.h. */ |
| 6516 | _ACEOF |
| 6517 | cat confdefs.h >>conftest.$ac_ext |
| 6518 | cat >>conftest.$ac_ext <<_ACEOF |
| 6519 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6520 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6521 | int |
| 6522 | main () |
| 6523 | { |
| 6524 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
| 6525 | test_array [0] = 0 |
| 6526 | |
| 6527 | ; |
| 6528 | return 0; |
| 6529 | } |
| 6530 | _ACEOF |
| 6531 | rm -f conftest.$ac_objext |
| 6532 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6533 | (eval $ac_compile) 2>&5 |
| 6534 | ac_status=$? |
| 6535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6536 | (exit $ac_status); } && |
| 6537 | { ac_try='test -s conftest.$ac_objext' |
| 6538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6539 | (eval $ac_try) 2>&5 |
| 6540 | ac_status=$? |
| 6541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6542 | (exit $ac_status); }; }; then |
| 6543 | ac_hi=-1 ac_mid=-1 |
| 6544 | while :; do |
| 6545 | cat >conftest.$ac_ext <<_ACEOF |
| 6546 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6547 | /* confdefs.h. */ |
| 6548 | _ACEOF |
| 6549 | cat confdefs.h >>conftest.$ac_ext |
| 6550 | cat >>conftest.$ac_ext <<_ACEOF |
| 6551 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6552 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6553 | int |
| 6554 | main () |
| 6555 | { |
| 6556 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
| 6557 | test_array [0] = 0 |
| 6558 | |
| 6559 | ; |
| 6560 | return 0; |
| 6561 | } |
| 6562 | _ACEOF |
| 6563 | rm -f conftest.$ac_objext |
| 6564 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6565 | (eval $ac_compile) 2>&5 |
| 6566 | ac_status=$? |
| 6567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6568 | (exit $ac_status); } && |
| 6569 | { ac_try='test -s conftest.$ac_objext' |
| 6570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6571 | (eval $ac_try) 2>&5 |
| 6572 | ac_status=$? |
| 6573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6574 | (exit $ac_status); }; }; then |
| 6575 | ac_lo=$ac_mid; break |
| 6576 | else |
| 6577 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6578 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6579 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6580 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6581 | if test $ac_mid -le $ac_hi; then |
| 6582 | ac_lo= ac_hi= |
| 6583 | break |
| 6584 | fi |
| 6585 | ac_mid=`expr 2 '*' $ac_mid` |
| 6586 | fi |
| 6587 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6588 | done |
| 6589 | else |
| 6590 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6591 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6592 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6593 | ac_lo= ac_hi= |
| 6594 | fi |
| 6595 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6596 | fi |
| 6597 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6598 | # Binary search between lo and hi bounds. |
| 6599 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6600 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6601 | cat >conftest.$ac_ext <<_ACEOF |
| 6602 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6603 | /* confdefs.h. */ |
| 6604 | _ACEOF |
| 6605 | cat confdefs.h >>conftest.$ac_ext |
| 6606 | cat >>conftest.$ac_ext <<_ACEOF |
| 6607 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6608 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6609 | int |
| 6610 | main () |
| 6611 | { |
| 6612 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 6613 | test_array [0] = 0 |
| 6614 | |
| 6615 | ; |
| 6616 | return 0; |
| 6617 | } |
| 6618 | _ACEOF |
| 6619 | rm -f conftest.$ac_objext |
| 6620 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6621 | (eval $ac_compile) 2>&5 |
| 6622 | ac_status=$? |
| 6623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6624 | (exit $ac_status); } && |
| 6625 | { ac_try='test -s conftest.$ac_objext' |
| 6626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6627 | (eval $ac_try) 2>&5 |
| 6628 | ac_status=$? |
| 6629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6630 | (exit $ac_status); }; }; then |
| 6631 | ac_hi=$ac_mid |
| 6632 | else |
| 6633 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6634 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6635 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6636 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6637 | fi |
| 6638 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6639 | done |
| 6640 | case $ac_lo in |
| 6641 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6642 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
| 6643 | See \`config.log' for more details." >&5 |
| 6644 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
| 6645 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6646 | { (exit 1); exit 1; }; } ;; |
| 6647 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6648 | else |
| 6649 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6650 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 6651 | See \`config.log' for more details." >&5 |
| 6652 | echo "$as_me: error: cannot run test program while cross compiling |
| 6653 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6654 | { (exit 1); exit 1; }; } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6655 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6656 | cat >conftest.$ac_ext <<_ACEOF |
| 6657 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6658 | /* confdefs.h. */ |
| 6659 | _ACEOF |
| 6660 | cat confdefs.h >>conftest.$ac_ext |
| 6661 | cat >>conftest.$ac_ext <<_ACEOF |
| 6662 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6663 | $ac_includes_default |
| 6664 | long longval () { return (long) (sizeof (void *)); } |
| 6665 | unsigned long ulongval () { return (long) (sizeof (void *)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6666 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6667 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6668 | int |
| 6669 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6670 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6671 | |
| 6672 | FILE *f = fopen ("conftest.val", "w"); |
| 6673 | if (! f) |
| 6674 | exit (1); |
| 6675 | if (((long) (sizeof (void *))) < 0) |
| 6676 | { |
| 6677 | long i = longval (); |
| 6678 | if (i != ((long) (sizeof (void *)))) |
| 6679 | exit (1); |
| 6680 | fprintf (f, "%ld\n", i); |
| 6681 | } |
| 6682 | else |
| 6683 | { |
| 6684 | unsigned long i = ulongval (); |
| 6685 | if (i != ((long) (sizeof (void *)))) |
| 6686 | exit (1); |
| 6687 | fprintf (f, "%lu\n", i); |
| 6688 | } |
| 6689 | exit (ferror (f) || fclose (f) != 0); |
| 6690 | |
| 6691 | ; |
| 6692 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6693 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6694 | _ACEOF |
| 6695 | rm -f conftest$ac_exeext |
| 6696 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6697 | (eval $ac_link) 2>&5 |
| 6698 | ac_status=$? |
| 6699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6700 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6702 | (eval $ac_try) 2>&5 |
| 6703 | ac_status=$? |
| 6704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6705 | (exit $ac_status); }; }; then |
| 6706 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6707 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6708 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6709 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6710 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6711 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6712 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6713 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
| 6714 | See \`config.log' for more details." >&5 |
| 6715 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
| 6716 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6717 | { (exit 1); exit 1; }; } |
| 6718 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6719 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6720 | fi |
| 6721 | fi |
| 6722 | rm -f conftest.val |
| 6723 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6724 | ac_cv_sizeof_void_p=0 |
| 6725 | fi |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6726 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6727 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 6728 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 |
| 6729 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6730 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6731 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6732 | |
| 6733 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6734 | echo "$as_me:$LINENO: checking for short" >&5 |
| 6735 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
| 6736 | if test "${ac_cv_type_short+set}" = set; then |
| 6737 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6738 | else |
| 6739 | cat >conftest.$ac_ext <<_ACEOF |
| 6740 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6741 | /* confdefs.h. */ |
| 6742 | _ACEOF |
| 6743 | cat confdefs.h >>conftest.$ac_ext |
| 6744 | cat >>conftest.$ac_ext <<_ACEOF |
| 6745 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6746 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6747 | int |
| 6748 | main () |
| 6749 | { |
| 6750 | if ((short *) 0) |
| 6751 | return 0; |
| 6752 | if (sizeof (short)) |
| 6753 | return 0; |
| 6754 | ; |
| 6755 | return 0; |
| 6756 | } |
| 6757 | _ACEOF |
| 6758 | rm -f conftest.$ac_objext |
| 6759 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6760 | (eval $ac_compile) 2>&5 |
| 6761 | ac_status=$? |
| 6762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6763 | (exit $ac_status); } && |
| 6764 | { ac_try='test -s conftest.$ac_objext' |
| 6765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6766 | (eval $ac_try) 2>&5 |
| 6767 | ac_status=$? |
| 6768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6769 | (exit $ac_status); }; }; then |
| 6770 | ac_cv_type_short=yes |
| 6771 | else |
| 6772 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6773 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6774 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6775 | ac_cv_type_short=no |
| 6776 | fi |
| 6777 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6778 | fi |
| 6779 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 6780 | echo "${ECHO_T}$ac_cv_type_short" >&6 |
| 6781 | |
| 6782 | echo "$as_me:$LINENO: checking size of short" >&5 |
| 6783 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 |
| 6784 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 6785 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6786 | else |
| 6787 | if test "$ac_cv_type_short" = yes; then |
| 6788 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6789 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6790 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6791 | # This bug is HP SR number 8606223364. |
| 6792 | if test "$cross_compiling" = yes; then |
| 6793 | # Depending upon the size, compute the lo and hi bounds. |
| 6794 | cat >conftest.$ac_ext <<_ACEOF |
| 6795 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6796 | /* confdefs.h. */ |
| 6797 | _ACEOF |
| 6798 | cat confdefs.h >>conftest.$ac_ext |
| 6799 | cat >>conftest.$ac_ext <<_ACEOF |
| 6800 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6801 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6802 | int |
| 6803 | main () |
| 6804 | { |
| 6805 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
| 6806 | test_array [0] = 0 |
| 6807 | |
| 6808 | ; |
| 6809 | return 0; |
| 6810 | } |
| 6811 | _ACEOF |
| 6812 | rm -f conftest.$ac_objext |
| 6813 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6814 | (eval $ac_compile) 2>&5 |
| 6815 | ac_status=$? |
| 6816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6817 | (exit $ac_status); } && |
| 6818 | { ac_try='test -s conftest.$ac_objext' |
| 6819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6820 | (eval $ac_try) 2>&5 |
| 6821 | ac_status=$? |
| 6822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6823 | (exit $ac_status); }; }; then |
| 6824 | ac_lo=0 ac_mid=0 |
| 6825 | while :; do |
| 6826 | cat >conftest.$ac_ext <<_ACEOF |
| 6827 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6828 | /* confdefs.h. */ |
| 6829 | _ACEOF |
| 6830 | cat confdefs.h >>conftest.$ac_ext |
| 6831 | cat >>conftest.$ac_ext <<_ACEOF |
| 6832 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6833 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6834 | int |
| 6835 | main () |
| 6836 | { |
| 6837 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 6838 | test_array [0] = 0 |
| 6839 | |
| 6840 | ; |
| 6841 | return 0; |
| 6842 | } |
| 6843 | _ACEOF |
| 6844 | rm -f conftest.$ac_objext |
| 6845 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6846 | (eval $ac_compile) 2>&5 |
| 6847 | ac_status=$? |
| 6848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6849 | (exit $ac_status); } && |
| 6850 | { ac_try='test -s conftest.$ac_objext' |
| 6851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6852 | (eval $ac_try) 2>&5 |
| 6853 | ac_status=$? |
| 6854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6855 | (exit $ac_status); }; }; then |
| 6856 | ac_hi=$ac_mid; break |
| 6857 | else |
| 6858 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6859 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6860 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6861 | ac_lo=`expr $ac_mid + 1` |
| 6862 | if test $ac_lo -le $ac_mid; then |
| 6863 | ac_lo= ac_hi= |
| 6864 | break |
| 6865 | fi |
| 6866 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6867 | fi |
| 6868 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6869 | done |
| 6870 | else |
| 6871 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6872 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6873 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6874 | cat >conftest.$ac_ext <<_ACEOF |
| 6875 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6876 | /* confdefs.h. */ |
| 6877 | _ACEOF |
| 6878 | cat confdefs.h >>conftest.$ac_ext |
| 6879 | cat >>conftest.$ac_ext <<_ACEOF |
| 6880 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6881 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6882 | int |
| 6883 | main () |
| 6884 | { |
| 6885 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
| 6886 | test_array [0] = 0 |
| 6887 | |
| 6888 | ; |
| 6889 | return 0; |
| 6890 | } |
| 6891 | _ACEOF |
| 6892 | rm -f conftest.$ac_objext |
| 6893 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6894 | (eval $ac_compile) 2>&5 |
| 6895 | ac_status=$? |
| 6896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6897 | (exit $ac_status); } && |
| 6898 | { ac_try='test -s conftest.$ac_objext' |
| 6899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6900 | (eval $ac_try) 2>&5 |
| 6901 | ac_status=$? |
| 6902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6903 | (exit $ac_status); }; }; then |
| 6904 | ac_hi=-1 ac_mid=-1 |
| 6905 | while :; do |
| 6906 | cat >conftest.$ac_ext <<_ACEOF |
| 6907 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6908 | /* confdefs.h. */ |
| 6909 | _ACEOF |
| 6910 | cat confdefs.h >>conftest.$ac_ext |
| 6911 | cat >>conftest.$ac_ext <<_ACEOF |
| 6912 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6913 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6914 | int |
| 6915 | main () |
| 6916 | { |
| 6917 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
| 6918 | test_array [0] = 0 |
| 6919 | |
| 6920 | ; |
| 6921 | return 0; |
| 6922 | } |
| 6923 | _ACEOF |
| 6924 | rm -f conftest.$ac_objext |
| 6925 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6926 | (eval $ac_compile) 2>&5 |
| 6927 | ac_status=$? |
| 6928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6929 | (exit $ac_status); } && |
| 6930 | { ac_try='test -s conftest.$ac_objext' |
| 6931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6932 | (eval $ac_try) 2>&5 |
| 6933 | ac_status=$? |
| 6934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6935 | (exit $ac_status); }; }; then |
| 6936 | ac_lo=$ac_mid; break |
| 6937 | else |
| 6938 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6939 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6940 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6941 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6942 | if test $ac_mid -le $ac_hi; then |
| 6943 | ac_lo= ac_hi= |
| 6944 | break |
| 6945 | fi |
| 6946 | ac_mid=`expr 2 '*' $ac_mid` |
| 6947 | fi |
| 6948 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6949 | done |
| 6950 | else |
| 6951 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6952 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6953 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6954 | ac_lo= ac_hi= |
| 6955 | fi |
| 6956 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6957 | fi |
| 6958 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6959 | # Binary search between lo and hi bounds. |
| 6960 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6961 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6962 | cat >conftest.$ac_ext <<_ACEOF |
| 6963 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6964 | /* confdefs.h. */ |
| 6965 | _ACEOF |
| 6966 | cat confdefs.h >>conftest.$ac_ext |
| 6967 | cat >>conftest.$ac_ext <<_ACEOF |
| 6968 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6969 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6970 | int |
| 6971 | main () |
| 6972 | { |
| 6973 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 6974 | test_array [0] = 0 |
| 6975 | |
| 6976 | ; |
| 6977 | return 0; |
| 6978 | } |
| 6979 | _ACEOF |
| 6980 | rm -f conftest.$ac_objext |
| 6981 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6982 | (eval $ac_compile) 2>&5 |
| 6983 | ac_status=$? |
| 6984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6985 | (exit $ac_status); } && |
| 6986 | { ac_try='test -s conftest.$ac_objext' |
| 6987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6988 | (eval $ac_try) 2>&5 |
| 6989 | ac_status=$? |
| 6990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6991 | (exit $ac_status); }; }; then |
| 6992 | ac_hi=$ac_mid |
| 6993 | else |
| 6994 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6995 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6996 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6997 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6998 | fi |
| 6999 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7000 | done |
| 7001 | case $ac_lo in |
| 7002 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7003 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
| 7004 | See \`config.log' for more details." >&5 |
| 7005 | echo "$as_me: error: cannot compute sizeof (short), 77 |
| 7006 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7007 | { (exit 1); exit 1; }; } ;; |
| 7008 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7009 | else |
| 7010 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7011 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 7012 | See \`config.log' for more details." >&5 |
| 7013 | echo "$as_me: error: cannot run test program while cross compiling |
| 7014 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7015 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7016 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7017 | cat >conftest.$ac_ext <<_ACEOF |
| 7018 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7019 | /* confdefs.h. */ |
| 7020 | _ACEOF |
| 7021 | cat confdefs.h >>conftest.$ac_ext |
| 7022 | cat >>conftest.$ac_ext <<_ACEOF |
| 7023 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7024 | $ac_includes_default |
| 7025 | long longval () { return (long) (sizeof (short)); } |
| 7026 | unsigned long ulongval () { return (long) (sizeof (short)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7027 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7028 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7029 | int |
| 7030 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7031 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7032 | |
| 7033 | FILE *f = fopen ("conftest.val", "w"); |
| 7034 | if (! f) |
| 7035 | exit (1); |
| 7036 | if (((long) (sizeof (short))) < 0) |
| 7037 | { |
| 7038 | long i = longval (); |
| 7039 | if (i != ((long) (sizeof (short)))) |
| 7040 | exit (1); |
| 7041 | fprintf (f, "%ld\n", i); |
| 7042 | } |
| 7043 | else |
| 7044 | { |
| 7045 | unsigned long i = ulongval (); |
| 7046 | if (i != ((long) (sizeof (short)))) |
| 7047 | exit (1); |
| 7048 | fprintf (f, "%lu\n", i); |
| 7049 | } |
| 7050 | exit (ferror (f) || fclose (f) != 0); |
| 7051 | |
| 7052 | ; |
| 7053 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7054 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7055 | _ACEOF |
| 7056 | rm -f conftest$ac_exeext |
| 7057 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7058 | (eval $ac_link) 2>&5 |
| 7059 | ac_status=$? |
| 7060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7061 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7063 | (eval $ac_try) 2>&5 |
| 7064 | ac_status=$? |
| 7065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7066 | (exit $ac_status); }; }; then |
| 7067 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7068 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7069 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7070 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7071 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7072 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7073 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7074 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
| 7075 | See \`config.log' for more details." >&5 |
| 7076 | echo "$as_me: error: cannot compute sizeof (short), 77 |
| 7077 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7078 | { (exit 1); exit 1; }; } |
| 7079 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7080 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7081 | fi |
| 7082 | fi |
| 7083 | rm -f conftest.val |
| 7084 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7085 | ac_cv_sizeof_short=0 |
| 7086 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7087 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7088 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 7089 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 |
| 7090 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7091 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7092 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7093 | |
| 7094 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7095 | echo "$as_me:$LINENO: checking for float" >&5 |
| 7096 | echo $ECHO_N "checking for float... $ECHO_C" >&6 |
| 7097 | if test "${ac_cv_type_float+set}" = set; then |
| 7098 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7099 | else |
| 7100 | cat >conftest.$ac_ext <<_ACEOF |
| 7101 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7102 | /* confdefs.h. */ |
| 7103 | _ACEOF |
| 7104 | cat confdefs.h >>conftest.$ac_ext |
| 7105 | cat >>conftest.$ac_ext <<_ACEOF |
| 7106 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7107 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7108 | int |
| 7109 | main () |
| 7110 | { |
| 7111 | if ((float *) 0) |
| 7112 | return 0; |
| 7113 | if (sizeof (float)) |
| 7114 | return 0; |
| 7115 | ; |
| 7116 | return 0; |
| 7117 | } |
| 7118 | _ACEOF |
| 7119 | rm -f conftest.$ac_objext |
| 7120 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7121 | (eval $ac_compile) 2>&5 |
| 7122 | ac_status=$? |
| 7123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7124 | (exit $ac_status); } && |
| 7125 | { ac_try='test -s conftest.$ac_objext' |
| 7126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7127 | (eval $ac_try) 2>&5 |
| 7128 | ac_status=$? |
| 7129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7130 | (exit $ac_status); }; }; then |
| 7131 | ac_cv_type_float=yes |
| 7132 | else |
| 7133 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7134 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7135 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7136 | ac_cv_type_float=no |
| 7137 | fi |
| 7138 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7139 | fi |
| 7140 | echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 7141 | echo "${ECHO_T}$ac_cv_type_float" >&6 |
| 7142 | |
| 7143 | echo "$as_me:$LINENO: checking size of float" >&5 |
| 7144 | echo $ECHO_N "checking size of float... $ECHO_C" >&6 |
| 7145 | if test "${ac_cv_sizeof_float+set}" = set; then |
| 7146 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7147 | else |
| 7148 | if test "$ac_cv_type_float" = yes; then |
| 7149 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7150 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7151 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7152 | # This bug is HP SR number 8606223364. |
| 7153 | if test "$cross_compiling" = yes; then |
| 7154 | # Depending upon the size, compute the lo and hi bounds. |
| 7155 | cat >conftest.$ac_ext <<_ACEOF |
| 7156 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7157 | /* confdefs.h. */ |
| 7158 | _ACEOF |
| 7159 | cat confdefs.h >>conftest.$ac_ext |
| 7160 | cat >>conftest.$ac_ext <<_ACEOF |
| 7161 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7162 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7163 | int |
| 7164 | main () |
| 7165 | { |
| 7166 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)]; |
| 7167 | test_array [0] = 0 |
| 7168 | |
| 7169 | ; |
| 7170 | return 0; |
| 7171 | } |
| 7172 | _ACEOF |
| 7173 | rm -f conftest.$ac_objext |
| 7174 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7175 | (eval $ac_compile) 2>&5 |
| 7176 | ac_status=$? |
| 7177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7178 | (exit $ac_status); } && |
| 7179 | { ac_try='test -s conftest.$ac_objext' |
| 7180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7181 | (eval $ac_try) 2>&5 |
| 7182 | ac_status=$? |
| 7183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7184 | (exit $ac_status); }; }; then |
| 7185 | ac_lo=0 ac_mid=0 |
| 7186 | while :; do |
| 7187 | cat >conftest.$ac_ext <<_ACEOF |
| 7188 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7189 | /* confdefs.h. */ |
| 7190 | _ACEOF |
| 7191 | cat confdefs.h >>conftest.$ac_ext |
| 7192 | cat >>conftest.$ac_ext <<_ACEOF |
| 7193 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7194 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7195 | int |
| 7196 | main () |
| 7197 | { |
| 7198 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 7199 | test_array [0] = 0 |
| 7200 | |
| 7201 | ; |
| 7202 | return 0; |
| 7203 | } |
| 7204 | _ACEOF |
| 7205 | rm -f conftest.$ac_objext |
| 7206 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7207 | (eval $ac_compile) 2>&5 |
| 7208 | ac_status=$? |
| 7209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7210 | (exit $ac_status); } && |
| 7211 | { ac_try='test -s conftest.$ac_objext' |
| 7212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7213 | (eval $ac_try) 2>&5 |
| 7214 | ac_status=$? |
| 7215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7216 | (exit $ac_status); }; }; then |
| 7217 | ac_hi=$ac_mid; break |
| 7218 | else |
| 7219 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7220 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7221 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7222 | ac_lo=`expr $ac_mid + 1` |
| 7223 | if test $ac_lo -le $ac_mid; then |
| 7224 | ac_lo= ac_hi= |
| 7225 | break |
| 7226 | fi |
| 7227 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7228 | fi |
| 7229 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7230 | done |
| 7231 | else |
| 7232 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7233 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7234 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7235 | cat >conftest.$ac_ext <<_ACEOF |
| 7236 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7237 | /* confdefs.h. */ |
| 7238 | _ACEOF |
| 7239 | cat confdefs.h >>conftest.$ac_ext |
| 7240 | cat >>conftest.$ac_ext <<_ACEOF |
| 7241 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7242 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7243 | int |
| 7244 | main () |
| 7245 | { |
| 7246 | static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)]; |
| 7247 | test_array [0] = 0 |
| 7248 | |
| 7249 | ; |
| 7250 | return 0; |
| 7251 | } |
| 7252 | _ACEOF |
| 7253 | rm -f conftest.$ac_objext |
| 7254 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7255 | (eval $ac_compile) 2>&5 |
| 7256 | ac_status=$? |
| 7257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7258 | (exit $ac_status); } && |
| 7259 | { ac_try='test -s conftest.$ac_objext' |
| 7260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7261 | (eval $ac_try) 2>&5 |
| 7262 | ac_status=$? |
| 7263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7264 | (exit $ac_status); }; }; then |
| 7265 | ac_hi=-1 ac_mid=-1 |
| 7266 | while :; do |
| 7267 | cat >conftest.$ac_ext <<_ACEOF |
| 7268 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7269 | /* confdefs.h. */ |
| 7270 | _ACEOF |
| 7271 | cat confdefs.h >>conftest.$ac_ext |
| 7272 | cat >>conftest.$ac_ext <<_ACEOF |
| 7273 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7274 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7275 | int |
| 7276 | main () |
| 7277 | { |
| 7278 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)]; |
| 7279 | test_array [0] = 0 |
| 7280 | |
| 7281 | ; |
| 7282 | return 0; |
| 7283 | } |
| 7284 | _ACEOF |
| 7285 | rm -f conftest.$ac_objext |
| 7286 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7287 | (eval $ac_compile) 2>&5 |
| 7288 | ac_status=$? |
| 7289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7290 | (exit $ac_status); } && |
| 7291 | { ac_try='test -s conftest.$ac_objext' |
| 7292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7293 | (eval $ac_try) 2>&5 |
| 7294 | ac_status=$? |
| 7295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7296 | (exit $ac_status); }; }; then |
| 7297 | ac_lo=$ac_mid; break |
| 7298 | else |
| 7299 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7300 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7301 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7302 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7303 | if test $ac_mid -le $ac_hi; then |
| 7304 | ac_lo= ac_hi= |
| 7305 | break |
| 7306 | fi |
| 7307 | ac_mid=`expr 2 '*' $ac_mid` |
| 7308 | fi |
| 7309 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7310 | done |
| 7311 | else |
| 7312 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7313 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7314 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7315 | ac_lo= ac_hi= |
| 7316 | fi |
| 7317 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7318 | fi |
| 7319 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7320 | # Binary search between lo and hi bounds. |
| 7321 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7322 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7323 | cat >conftest.$ac_ext <<_ACEOF |
| 7324 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7325 | /* confdefs.h. */ |
| 7326 | _ACEOF |
| 7327 | cat confdefs.h >>conftest.$ac_ext |
| 7328 | cat >>conftest.$ac_ext <<_ACEOF |
| 7329 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7330 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7331 | int |
| 7332 | main () |
| 7333 | { |
| 7334 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 7335 | test_array [0] = 0 |
| 7336 | |
| 7337 | ; |
| 7338 | return 0; |
| 7339 | } |
| 7340 | _ACEOF |
| 7341 | rm -f conftest.$ac_objext |
| 7342 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7343 | (eval $ac_compile) 2>&5 |
| 7344 | ac_status=$? |
| 7345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7346 | (exit $ac_status); } && |
| 7347 | { ac_try='test -s conftest.$ac_objext' |
| 7348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7349 | (eval $ac_try) 2>&5 |
| 7350 | ac_status=$? |
| 7351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7352 | (exit $ac_status); }; }; then |
| 7353 | ac_hi=$ac_mid |
| 7354 | else |
| 7355 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7356 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7357 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7358 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7359 | fi |
| 7360 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7361 | done |
| 7362 | case $ac_lo in |
| 7363 | ?*) ac_cv_sizeof_float=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7364 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77 |
| 7365 | See \`config.log' for more details." >&5 |
| 7366 | echo "$as_me: error: cannot compute sizeof (float), 77 |
| 7367 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7368 | { (exit 1); exit 1; }; } ;; |
| 7369 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7370 | else |
| 7371 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7372 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 7373 | See \`config.log' for more details." >&5 |
| 7374 | echo "$as_me: error: cannot run test program while cross compiling |
| 7375 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7376 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7377 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7378 | cat >conftest.$ac_ext <<_ACEOF |
| 7379 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7380 | /* confdefs.h. */ |
| 7381 | _ACEOF |
| 7382 | cat confdefs.h >>conftest.$ac_ext |
| 7383 | cat >>conftest.$ac_ext <<_ACEOF |
| 7384 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7385 | $ac_includes_default |
| 7386 | long longval () { return (long) (sizeof (float)); } |
| 7387 | unsigned long ulongval () { return (long) (sizeof (float)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7388 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7389 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7390 | int |
| 7391 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7392 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7393 | |
| 7394 | FILE *f = fopen ("conftest.val", "w"); |
| 7395 | if (! f) |
| 7396 | exit (1); |
| 7397 | if (((long) (sizeof (float))) < 0) |
| 7398 | { |
| 7399 | long i = longval (); |
| 7400 | if (i != ((long) (sizeof (float)))) |
| 7401 | exit (1); |
| 7402 | fprintf (f, "%ld\n", i); |
| 7403 | } |
| 7404 | else |
| 7405 | { |
| 7406 | unsigned long i = ulongval (); |
| 7407 | if (i != ((long) (sizeof (float)))) |
| 7408 | exit (1); |
| 7409 | fprintf (f, "%lu\n", i); |
| 7410 | } |
| 7411 | exit (ferror (f) || fclose (f) != 0); |
| 7412 | |
| 7413 | ; |
| 7414 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7415 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7416 | _ACEOF |
| 7417 | rm -f conftest$ac_exeext |
| 7418 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7419 | (eval $ac_link) 2>&5 |
| 7420 | ac_status=$? |
| 7421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7422 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7424 | (eval $ac_try) 2>&5 |
| 7425 | ac_status=$? |
| 7426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7427 | (exit $ac_status); }; }; then |
| 7428 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7429 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7430 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7431 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7432 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7433 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7434 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7435 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77 |
| 7436 | See \`config.log' for more details." >&5 |
| 7437 | echo "$as_me: error: cannot compute sizeof (float), 77 |
| 7438 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7439 | { (exit 1); exit 1; }; } |
| 7440 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7441 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7442 | fi |
| 7443 | fi |
| 7444 | rm -f conftest.val |
| 7445 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7446 | ac_cv_sizeof_float=0 |
| 7447 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7448 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7449 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 7450 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6 |
| 7451 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7452 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7453 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7454 | |
| 7455 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7456 | echo "$as_me:$LINENO: checking for double" >&5 |
| 7457 | echo $ECHO_N "checking for double... $ECHO_C" >&6 |
| 7458 | if test "${ac_cv_type_double+set}" = set; then |
| 7459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7460 | else |
| 7461 | cat >conftest.$ac_ext <<_ACEOF |
| 7462 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7463 | /* confdefs.h. */ |
| 7464 | _ACEOF |
| 7465 | cat confdefs.h >>conftest.$ac_ext |
| 7466 | cat >>conftest.$ac_ext <<_ACEOF |
| 7467 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7468 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7469 | int |
| 7470 | main () |
| 7471 | { |
| 7472 | if ((double *) 0) |
| 7473 | return 0; |
| 7474 | if (sizeof (double)) |
| 7475 | return 0; |
| 7476 | ; |
| 7477 | return 0; |
| 7478 | } |
| 7479 | _ACEOF |
| 7480 | rm -f conftest.$ac_objext |
| 7481 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7482 | (eval $ac_compile) 2>&5 |
| 7483 | ac_status=$? |
| 7484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7485 | (exit $ac_status); } && |
| 7486 | { ac_try='test -s conftest.$ac_objext' |
| 7487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7488 | (eval $ac_try) 2>&5 |
| 7489 | ac_status=$? |
| 7490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7491 | (exit $ac_status); }; }; then |
| 7492 | ac_cv_type_double=yes |
| 7493 | else |
| 7494 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7495 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7496 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7497 | ac_cv_type_double=no |
| 7498 | fi |
| 7499 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7500 | fi |
| 7501 | echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 7502 | echo "${ECHO_T}$ac_cv_type_double" >&6 |
| 7503 | |
| 7504 | echo "$as_me:$LINENO: checking size of double" >&5 |
| 7505 | echo $ECHO_N "checking size of double... $ECHO_C" >&6 |
| 7506 | if test "${ac_cv_sizeof_double+set}" = set; then |
| 7507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7508 | else |
| 7509 | if test "$ac_cv_type_double" = yes; then |
| 7510 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7511 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7512 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7513 | # This bug is HP SR number 8606223364. |
| 7514 | if test "$cross_compiling" = yes; then |
| 7515 | # Depending upon the size, compute the lo and hi bounds. |
| 7516 | cat >conftest.$ac_ext <<_ACEOF |
| 7517 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7518 | /* confdefs.h. */ |
| 7519 | _ACEOF |
| 7520 | cat confdefs.h >>conftest.$ac_ext |
| 7521 | cat >>conftest.$ac_ext <<_ACEOF |
| 7522 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7523 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7524 | int |
| 7525 | main () |
| 7526 | { |
| 7527 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)]; |
| 7528 | test_array [0] = 0 |
| 7529 | |
| 7530 | ; |
| 7531 | return 0; |
| 7532 | } |
| 7533 | _ACEOF |
| 7534 | rm -f conftest.$ac_objext |
| 7535 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7536 | (eval $ac_compile) 2>&5 |
| 7537 | ac_status=$? |
| 7538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7539 | (exit $ac_status); } && |
| 7540 | { ac_try='test -s conftest.$ac_objext' |
| 7541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7542 | (eval $ac_try) 2>&5 |
| 7543 | ac_status=$? |
| 7544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7545 | (exit $ac_status); }; }; then |
| 7546 | ac_lo=0 ac_mid=0 |
| 7547 | while :; do |
| 7548 | cat >conftest.$ac_ext <<_ACEOF |
| 7549 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7550 | /* confdefs.h. */ |
| 7551 | _ACEOF |
| 7552 | cat confdefs.h >>conftest.$ac_ext |
| 7553 | cat >>conftest.$ac_ext <<_ACEOF |
| 7554 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7555 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7556 | int |
| 7557 | main () |
| 7558 | { |
| 7559 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 7560 | test_array [0] = 0 |
| 7561 | |
| 7562 | ; |
| 7563 | return 0; |
| 7564 | } |
| 7565 | _ACEOF |
| 7566 | rm -f conftest.$ac_objext |
| 7567 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7568 | (eval $ac_compile) 2>&5 |
| 7569 | ac_status=$? |
| 7570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7571 | (exit $ac_status); } && |
| 7572 | { ac_try='test -s conftest.$ac_objext' |
| 7573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7574 | (eval $ac_try) 2>&5 |
| 7575 | ac_status=$? |
| 7576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7577 | (exit $ac_status); }; }; then |
| 7578 | ac_hi=$ac_mid; break |
| 7579 | else |
| 7580 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7581 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7582 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7583 | ac_lo=`expr $ac_mid + 1` |
| 7584 | if test $ac_lo -le $ac_mid; then |
| 7585 | ac_lo= ac_hi= |
| 7586 | break |
| 7587 | fi |
| 7588 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7589 | fi |
| 7590 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7591 | done |
| 7592 | else |
| 7593 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7594 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7595 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7596 | cat >conftest.$ac_ext <<_ACEOF |
| 7597 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7598 | /* confdefs.h. */ |
| 7599 | _ACEOF |
| 7600 | cat confdefs.h >>conftest.$ac_ext |
| 7601 | cat >>conftest.$ac_ext <<_ACEOF |
| 7602 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7603 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7604 | int |
| 7605 | main () |
| 7606 | { |
| 7607 | static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)]; |
| 7608 | test_array [0] = 0 |
| 7609 | |
| 7610 | ; |
| 7611 | return 0; |
| 7612 | } |
| 7613 | _ACEOF |
| 7614 | rm -f conftest.$ac_objext |
| 7615 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7616 | (eval $ac_compile) 2>&5 |
| 7617 | ac_status=$? |
| 7618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7619 | (exit $ac_status); } && |
| 7620 | { ac_try='test -s conftest.$ac_objext' |
| 7621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7622 | (eval $ac_try) 2>&5 |
| 7623 | ac_status=$? |
| 7624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7625 | (exit $ac_status); }; }; then |
| 7626 | ac_hi=-1 ac_mid=-1 |
| 7627 | while :; do |
| 7628 | cat >conftest.$ac_ext <<_ACEOF |
| 7629 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7630 | /* confdefs.h. */ |
| 7631 | _ACEOF |
| 7632 | cat confdefs.h >>conftest.$ac_ext |
| 7633 | cat >>conftest.$ac_ext <<_ACEOF |
| 7634 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7635 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7636 | int |
| 7637 | main () |
| 7638 | { |
| 7639 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)]; |
| 7640 | test_array [0] = 0 |
| 7641 | |
| 7642 | ; |
| 7643 | return 0; |
| 7644 | } |
| 7645 | _ACEOF |
| 7646 | rm -f conftest.$ac_objext |
| 7647 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7648 | (eval $ac_compile) 2>&5 |
| 7649 | ac_status=$? |
| 7650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7651 | (exit $ac_status); } && |
| 7652 | { ac_try='test -s conftest.$ac_objext' |
| 7653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7654 | (eval $ac_try) 2>&5 |
| 7655 | ac_status=$? |
| 7656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7657 | (exit $ac_status); }; }; then |
| 7658 | ac_lo=$ac_mid; break |
| 7659 | else |
| 7660 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7661 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7662 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7663 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7664 | if test $ac_mid -le $ac_hi; then |
| 7665 | ac_lo= ac_hi= |
| 7666 | break |
| 7667 | fi |
| 7668 | ac_mid=`expr 2 '*' $ac_mid` |
| 7669 | fi |
| 7670 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7671 | done |
| 7672 | else |
| 7673 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7674 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7675 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7676 | ac_lo= ac_hi= |
| 7677 | fi |
| 7678 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7679 | fi |
| 7680 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7681 | # Binary search between lo and hi bounds. |
| 7682 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7683 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7684 | cat >conftest.$ac_ext <<_ACEOF |
| 7685 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7686 | /* confdefs.h. */ |
| 7687 | _ACEOF |
| 7688 | cat confdefs.h >>conftest.$ac_ext |
| 7689 | cat >>conftest.$ac_ext <<_ACEOF |
| 7690 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7691 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7692 | int |
| 7693 | main () |
| 7694 | { |
| 7695 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 7696 | test_array [0] = 0 |
| 7697 | |
| 7698 | ; |
| 7699 | return 0; |
| 7700 | } |
| 7701 | _ACEOF |
| 7702 | rm -f conftest.$ac_objext |
| 7703 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7704 | (eval $ac_compile) 2>&5 |
| 7705 | ac_status=$? |
| 7706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7707 | (exit $ac_status); } && |
| 7708 | { ac_try='test -s conftest.$ac_objext' |
| 7709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7710 | (eval $ac_try) 2>&5 |
| 7711 | ac_status=$? |
| 7712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7713 | (exit $ac_status); }; }; then |
| 7714 | ac_hi=$ac_mid |
| 7715 | else |
| 7716 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7717 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7718 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7719 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7720 | fi |
| 7721 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7722 | done |
| 7723 | case $ac_lo in |
| 7724 | ?*) ac_cv_sizeof_double=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7725 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77 |
| 7726 | See \`config.log' for more details." >&5 |
| 7727 | echo "$as_me: error: cannot compute sizeof (double), 77 |
| 7728 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7729 | { (exit 1); exit 1; }; } ;; |
| 7730 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7731 | else |
| 7732 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7733 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 7734 | See \`config.log' for more details." >&5 |
| 7735 | echo "$as_me: error: cannot run test program while cross compiling |
| 7736 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7737 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7738 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7739 | cat >conftest.$ac_ext <<_ACEOF |
| 7740 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7741 | /* confdefs.h. */ |
| 7742 | _ACEOF |
| 7743 | cat confdefs.h >>conftest.$ac_ext |
| 7744 | cat >>conftest.$ac_ext <<_ACEOF |
| 7745 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7746 | $ac_includes_default |
| 7747 | long longval () { return (long) (sizeof (double)); } |
| 7748 | unsigned long ulongval () { return (long) (sizeof (double)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7749 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7750 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7751 | int |
| 7752 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7753 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7754 | |
| 7755 | FILE *f = fopen ("conftest.val", "w"); |
| 7756 | if (! f) |
| 7757 | exit (1); |
| 7758 | if (((long) (sizeof (double))) < 0) |
| 7759 | { |
| 7760 | long i = longval (); |
| 7761 | if (i != ((long) (sizeof (double)))) |
| 7762 | exit (1); |
| 7763 | fprintf (f, "%ld\n", i); |
| 7764 | } |
| 7765 | else |
| 7766 | { |
| 7767 | unsigned long i = ulongval (); |
| 7768 | if (i != ((long) (sizeof (double)))) |
| 7769 | exit (1); |
| 7770 | fprintf (f, "%lu\n", i); |
| 7771 | } |
| 7772 | exit (ferror (f) || fclose (f) != 0); |
| 7773 | |
| 7774 | ; |
| 7775 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7776 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7777 | _ACEOF |
| 7778 | rm -f conftest$ac_exeext |
| 7779 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7780 | (eval $ac_link) 2>&5 |
| 7781 | ac_status=$? |
| 7782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7783 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7785 | (eval $ac_try) 2>&5 |
| 7786 | ac_status=$? |
| 7787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7788 | (exit $ac_status); }; }; then |
| 7789 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7790 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7791 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7792 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7793 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7794 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7795 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7796 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77 |
| 7797 | See \`config.log' for more details." >&5 |
| 7798 | echo "$as_me: error: cannot compute sizeof (double), 77 |
| 7799 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7800 | { (exit 1); exit 1; }; } |
| 7801 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7802 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7803 | fi |
| 7804 | fi |
| 7805 | rm -f conftest.val |
| 7806 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7807 | ac_cv_sizeof_double=0 |
| 7808 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7809 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7810 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 7811 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6 |
| 7812 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7813 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7814 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7815 | |
| 7816 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7817 | echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 7818 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6 |
| 7819 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 7820 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7821 | else |
| 7822 | cat >conftest.$ac_ext <<_ACEOF |
| 7823 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7824 | /* confdefs.h. */ |
| 7825 | _ACEOF |
| 7826 | cat confdefs.h >>conftest.$ac_ext |
| 7827 | cat >>conftest.$ac_ext <<_ACEOF |
| 7828 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7829 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7830 | int |
| 7831 | main () |
| 7832 | { |
| 7833 | if ((fpos_t *) 0) |
| 7834 | return 0; |
| 7835 | if (sizeof (fpos_t)) |
| 7836 | return 0; |
| 7837 | ; |
| 7838 | return 0; |
| 7839 | } |
| 7840 | _ACEOF |
| 7841 | rm -f conftest.$ac_objext |
| 7842 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7843 | (eval $ac_compile) 2>&5 |
| 7844 | ac_status=$? |
| 7845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7846 | (exit $ac_status); } && |
| 7847 | { ac_try='test -s conftest.$ac_objext' |
| 7848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7849 | (eval $ac_try) 2>&5 |
| 7850 | ac_status=$? |
| 7851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7852 | (exit $ac_status); }; }; then |
| 7853 | ac_cv_type_fpos_t=yes |
| 7854 | else |
| 7855 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7856 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7857 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7858 | ac_cv_type_fpos_t=no |
| 7859 | fi |
| 7860 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7861 | fi |
| 7862 | echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 7863 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6 |
| 7864 | |
| 7865 | echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 7866 | echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6 |
| 7867 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
| 7868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7869 | else |
| 7870 | if test "$ac_cv_type_fpos_t" = yes; then |
| 7871 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7872 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7873 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7874 | # This bug is HP SR number 8606223364. |
| 7875 | if test "$cross_compiling" = yes; then |
| 7876 | # Depending upon the size, compute the lo and hi bounds. |
| 7877 | cat >conftest.$ac_ext <<_ACEOF |
| 7878 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7879 | /* confdefs.h. */ |
| 7880 | _ACEOF |
| 7881 | cat confdefs.h >>conftest.$ac_ext |
| 7882 | cat >>conftest.$ac_ext <<_ACEOF |
| 7883 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7884 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7885 | int |
| 7886 | main () |
| 7887 | { |
| 7888 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)]; |
| 7889 | test_array [0] = 0 |
| 7890 | |
| 7891 | ; |
| 7892 | return 0; |
| 7893 | } |
| 7894 | _ACEOF |
| 7895 | rm -f conftest.$ac_objext |
| 7896 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7897 | (eval $ac_compile) 2>&5 |
| 7898 | ac_status=$? |
| 7899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7900 | (exit $ac_status); } && |
| 7901 | { ac_try='test -s conftest.$ac_objext' |
| 7902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7903 | (eval $ac_try) 2>&5 |
| 7904 | ac_status=$? |
| 7905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7906 | (exit $ac_status); }; }; then |
| 7907 | ac_lo=0 ac_mid=0 |
| 7908 | while :; do |
| 7909 | cat >conftest.$ac_ext <<_ACEOF |
| 7910 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7911 | /* confdefs.h. */ |
| 7912 | _ACEOF |
| 7913 | cat confdefs.h >>conftest.$ac_ext |
| 7914 | cat >>conftest.$ac_ext <<_ACEOF |
| 7915 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7916 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7917 | int |
| 7918 | main () |
| 7919 | { |
| 7920 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 7921 | test_array [0] = 0 |
| 7922 | |
| 7923 | ; |
| 7924 | return 0; |
| 7925 | } |
| 7926 | _ACEOF |
| 7927 | rm -f conftest.$ac_objext |
| 7928 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7929 | (eval $ac_compile) 2>&5 |
| 7930 | ac_status=$? |
| 7931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7932 | (exit $ac_status); } && |
| 7933 | { ac_try='test -s conftest.$ac_objext' |
| 7934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7935 | (eval $ac_try) 2>&5 |
| 7936 | ac_status=$? |
| 7937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7938 | (exit $ac_status); }; }; then |
| 7939 | ac_hi=$ac_mid; break |
| 7940 | else |
| 7941 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7942 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7943 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7944 | ac_lo=`expr $ac_mid + 1` |
| 7945 | if test $ac_lo -le $ac_mid; then |
| 7946 | ac_lo= ac_hi= |
| 7947 | break |
| 7948 | fi |
| 7949 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7950 | fi |
| 7951 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7952 | done |
| 7953 | else |
| 7954 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7955 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7956 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7957 | cat >conftest.$ac_ext <<_ACEOF |
| 7958 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7959 | /* confdefs.h. */ |
| 7960 | _ACEOF |
| 7961 | cat confdefs.h >>conftest.$ac_ext |
| 7962 | cat >>conftest.$ac_ext <<_ACEOF |
| 7963 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7964 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7965 | int |
| 7966 | main () |
| 7967 | { |
| 7968 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)]; |
| 7969 | test_array [0] = 0 |
| 7970 | |
| 7971 | ; |
| 7972 | return 0; |
| 7973 | } |
| 7974 | _ACEOF |
| 7975 | rm -f conftest.$ac_objext |
| 7976 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7977 | (eval $ac_compile) 2>&5 |
| 7978 | ac_status=$? |
| 7979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7980 | (exit $ac_status); } && |
| 7981 | { ac_try='test -s conftest.$ac_objext' |
| 7982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7983 | (eval $ac_try) 2>&5 |
| 7984 | ac_status=$? |
| 7985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7986 | (exit $ac_status); }; }; then |
| 7987 | ac_hi=-1 ac_mid=-1 |
| 7988 | while :; do |
| 7989 | cat >conftest.$ac_ext <<_ACEOF |
| 7990 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7991 | /* confdefs.h. */ |
| 7992 | _ACEOF |
| 7993 | cat confdefs.h >>conftest.$ac_ext |
| 7994 | cat >>conftest.$ac_ext <<_ACEOF |
| 7995 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7996 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7997 | int |
| 7998 | main () |
| 7999 | { |
| 8000 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)]; |
| 8001 | test_array [0] = 0 |
| 8002 | |
| 8003 | ; |
| 8004 | return 0; |
| 8005 | } |
| 8006 | _ACEOF |
| 8007 | rm -f conftest.$ac_objext |
| 8008 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8009 | (eval $ac_compile) 2>&5 |
| 8010 | ac_status=$? |
| 8011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8012 | (exit $ac_status); } && |
| 8013 | { ac_try='test -s conftest.$ac_objext' |
| 8014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8015 | (eval $ac_try) 2>&5 |
| 8016 | ac_status=$? |
| 8017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8018 | (exit $ac_status); }; }; then |
| 8019 | ac_lo=$ac_mid; break |
| 8020 | else |
| 8021 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8022 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8023 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8024 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8025 | if test $ac_mid -le $ac_hi; then |
| 8026 | ac_lo= ac_hi= |
| 8027 | break |
| 8028 | fi |
| 8029 | ac_mid=`expr 2 '*' $ac_mid` |
| 8030 | fi |
| 8031 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8032 | done |
| 8033 | else |
| 8034 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8035 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8036 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8037 | ac_lo= ac_hi= |
| 8038 | fi |
| 8039 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8040 | fi |
| 8041 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8042 | # Binary search between lo and hi bounds. |
| 8043 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8044 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8045 | cat >conftest.$ac_ext <<_ACEOF |
| 8046 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8047 | /* confdefs.h. */ |
| 8048 | _ACEOF |
| 8049 | cat confdefs.h >>conftest.$ac_ext |
| 8050 | cat >>conftest.$ac_ext <<_ACEOF |
| 8051 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8052 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8053 | int |
| 8054 | main () |
| 8055 | { |
| 8056 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 8057 | test_array [0] = 0 |
| 8058 | |
| 8059 | ; |
| 8060 | return 0; |
| 8061 | } |
| 8062 | _ACEOF |
| 8063 | rm -f conftest.$ac_objext |
| 8064 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8065 | (eval $ac_compile) 2>&5 |
| 8066 | ac_status=$? |
| 8067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8068 | (exit $ac_status); } && |
| 8069 | { ac_try='test -s conftest.$ac_objext' |
| 8070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8071 | (eval $ac_try) 2>&5 |
| 8072 | ac_status=$? |
| 8073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8074 | (exit $ac_status); }; }; then |
| 8075 | ac_hi=$ac_mid |
| 8076 | else |
| 8077 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8078 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8079 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8080 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8081 | fi |
| 8082 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8083 | done |
| 8084 | case $ac_lo in |
| 8085 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8086 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77 |
| 8087 | See \`config.log' for more details." >&5 |
| 8088 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77 |
| 8089 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8090 | { (exit 1); exit 1; }; } ;; |
| 8091 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8092 | else |
| 8093 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8094 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 8095 | See \`config.log' for more details." >&5 |
| 8096 | echo "$as_me: error: cannot run test program while cross compiling |
| 8097 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8098 | { (exit 1); exit 1; }; } |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8099 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8100 | cat >conftest.$ac_ext <<_ACEOF |
| 8101 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8102 | /* confdefs.h. */ |
| 8103 | _ACEOF |
| 8104 | cat confdefs.h >>conftest.$ac_ext |
| 8105 | cat >>conftest.$ac_ext <<_ACEOF |
| 8106 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8107 | $ac_includes_default |
| 8108 | long longval () { return (long) (sizeof (fpos_t)); } |
| 8109 | unsigned long ulongval () { return (long) (sizeof (fpos_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8110 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8111 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8112 | int |
| 8113 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8114 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8115 | |
| 8116 | FILE *f = fopen ("conftest.val", "w"); |
| 8117 | if (! f) |
| 8118 | exit (1); |
| 8119 | if (((long) (sizeof (fpos_t))) < 0) |
| 8120 | { |
| 8121 | long i = longval (); |
| 8122 | if (i != ((long) (sizeof (fpos_t)))) |
| 8123 | exit (1); |
| 8124 | fprintf (f, "%ld\n", i); |
| 8125 | } |
| 8126 | else |
| 8127 | { |
| 8128 | unsigned long i = ulongval (); |
| 8129 | if (i != ((long) (sizeof (fpos_t)))) |
| 8130 | exit (1); |
| 8131 | fprintf (f, "%lu\n", i); |
| 8132 | } |
| 8133 | exit (ferror (f) || fclose (f) != 0); |
| 8134 | |
| 8135 | ; |
| 8136 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8137 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8138 | _ACEOF |
| 8139 | rm -f conftest$ac_exeext |
| 8140 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8141 | (eval $ac_link) 2>&5 |
| 8142 | ac_status=$? |
| 8143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8144 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8146 | (eval $ac_try) 2>&5 |
| 8147 | ac_status=$? |
| 8148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8149 | (exit $ac_status); }; }; then |
| 8150 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8151 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8152 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8153 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8154 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8155 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8156 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8157 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77 |
| 8158 | See \`config.log' for more details." >&5 |
| 8159 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77 |
| 8160 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8161 | { (exit 1); exit 1; }; } |
| 8162 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8163 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8164 | fi |
| 8165 | fi |
| 8166 | rm -f conftest.val |
| 8167 | else |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8168 | ac_cv_sizeof_fpos_t=0 |
| 8169 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8170 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8171 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 8172 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6 |
| 8173 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8174 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8175 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8176 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8177 | |
| 8178 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8179 | echo "$as_me:$LINENO: checking for long long support" >&5 |
| 8180 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8181 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8182 | cat >conftest.$ac_ext <<_ACEOF |
| 8183 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8184 | /* confdefs.h. */ |
| 8185 | _ACEOF |
| 8186 | cat confdefs.h >>conftest.$ac_ext |
| 8187 | cat >>conftest.$ac_ext <<_ACEOF |
| 8188 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8189 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8190 | int |
| 8191 | main () |
| 8192 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8193 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8194 | ; |
| 8195 | return 0; |
| 8196 | } |
| 8197 | _ACEOF |
| 8198 | rm -f conftest.$ac_objext |
| 8199 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8200 | (eval $ac_compile) 2>&5 |
| 8201 | ac_status=$? |
| 8202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8203 | (exit $ac_status); } && |
| 8204 | { ac_try='test -s conftest.$ac_objext' |
| 8205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8206 | (eval $ac_try) 2>&5 |
| 8207 | ac_status=$? |
| 8208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8209 | (exit $ac_status); }; }; then |
| 8210 | |
| 8211 | |
| 8212 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8213 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8214 | _ACEOF |
| 8215 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8216 | have_long_long=yes |
| 8217 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8218 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8219 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8220 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8221 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8222 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8223 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8224 | echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 8225 | echo "${ECHO_T}$have_long_long" >&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 8226 | if test "$have_long_long" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8227 | echo "$as_me:$LINENO: checking for long long" >&5 |
| 8228 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 8229 | if test "${ac_cv_type_long_long+set}" = set; then |
| 8230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8231 | else |
| 8232 | cat >conftest.$ac_ext <<_ACEOF |
| 8233 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8234 | /* confdefs.h. */ |
| 8235 | _ACEOF |
| 8236 | cat confdefs.h >>conftest.$ac_ext |
| 8237 | cat >>conftest.$ac_ext <<_ACEOF |
| 8238 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8239 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8240 | int |
| 8241 | main () |
| 8242 | { |
| 8243 | if ((long long *) 0) |
| 8244 | return 0; |
| 8245 | if (sizeof (long long)) |
| 8246 | return 0; |
| 8247 | ; |
| 8248 | return 0; |
| 8249 | } |
| 8250 | _ACEOF |
| 8251 | rm -f conftest.$ac_objext |
| 8252 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8253 | (eval $ac_compile) 2>&5 |
| 8254 | ac_status=$? |
| 8255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8256 | (exit $ac_status); } && |
| 8257 | { ac_try='test -s conftest.$ac_objext' |
| 8258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8259 | (eval $ac_try) 2>&5 |
| 8260 | ac_status=$? |
| 8261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8262 | (exit $ac_status); }; }; then |
| 8263 | ac_cv_type_long_long=yes |
| 8264 | else |
| 8265 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8266 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8267 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8268 | ac_cv_type_long_long=no |
| 8269 | fi |
| 8270 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8271 | fi |
| 8272 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 8273 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
| 8274 | |
| 8275 | echo "$as_me:$LINENO: checking size of long long" >&5 |
| 8276 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 |
| 8277 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 8278 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8279 | else |
| 8280 | if test "$ac_cv_type_long_long" = yes; then |
| 8281 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8282 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8283 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8284 | # This bug is HP SR number 8606223364. |
| 8285 | if test "$cross_compiling" = yes; then |
| 8286 | # Depending upon the size, compute the lo and hi bounds. |
| 8287 | cat >conftest.$ac_ext <<_ACEOF |
| 8288 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8289 | /* confdefs.h. */ |
| 8290 | _ACEOF |
| 8291 | cat confdefs.h >>conftest.$ac_ext |
| 8292 | cat >>conftest.$ac_ext <<_ACEOF |
| 8293 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8294 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8295 | int |
| 8296 | main () |
| 8297 | { |
| 8298 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; |
| 8299 | test_array [0] = 0 |
| 8300 | |
| 8301 | ; |
| 8302 | return 0; |
| 8303 | } |
| 8304 | _ACEOF |
| 8305 | rm -f conftest.$ac_objext |
| 8306 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8307 | (eval $ac_compile) 2>&5 |
| 8308 | ac_status=$? |
| 8309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8310 | (exit $ac_status); } && |
| 8311 | { ac_try='test -s conftest.$ac_objext' |
| 8312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8313 | (eval $ac_try) 2>&5 |
| 8314 | ac_status=$? |
| 8315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8316 | (exit $ac_status); }; }; then |
| 8317 | ac_lo=0 ac_mid=0 |
| 8318 | while :; do |
| 8319 | cat >conftest.$ac_ext <<_ACEOF |
| 8320 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8321 | /* confdefs.h. */ |
| 8322 | _ACEOF |
| 8323 | cat confdefs.h >>conftest.$ac_ext |
| 8324 | cat >>conftest.$ac_ext <<_ACEOF |
| 8325 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8326 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8327 | int |
| 8328 | main () |
| 8329 | { |
| 8330 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 8331 | test_array [0] = 0 |
| 8332 | |
| 8333 | ; |
| 8334 | return 0; |
| 8335 | } |
| 8336 | _ACEOF |
| 8337 | rm -f conftest.$ac_objext |
| 8338 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8339 | (eval $ac_compile) 2>&5 |
| 8340 | ac_status=$? |
| 8341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8342 | (exit $ac_status); } && |
| 8343 | { ac_try='test -s conftest.$ac_objext' |
| 8344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8345 | (eval $ac_try) 2>&5 |
| 8346 | ac_status=$? |
| 8347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8348 | (exit $ac_status); }; }; then |
| 8349 | ac_hi=$ac_mid; break |
| 8350 | else |
| 8351 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8352 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8353 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8354 | ac_lo=`expr $ac_mid + 1` |
| 8355 | if test $ac_lo -le $ac_mid; then |
| 8356 | ac_lo= ac_hi= |
| 8357 | break |
| 8358 | fi |
| 8359 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8360 | fi |
| 8361 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8362 | done |
| 8363 | else |
| 8364 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8365 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8366 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8367 | cat >conftest.$ac_ext <<_ACEOF |
| 8368 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8369 | /* confdefs.h. */ |
| 8370 | _ACEOF |
| 8371 | cat confdefs.h >>conftest.$ac_ext |
| 8372 | cat >>conftest.$ac_ext <<_ACEOF |
| 8373 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8374 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8375 | int |
| 8376 | main () |
| 8377 | { |
| 8378 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; |
| 8379 | test_array [0] = 0 |
| 8380 | |
| 8381 | ; |
| 8382 | return 0; |
| 8383 | } |
| 8384 | _ACEOF |
| 8385 | rm -f conftest.$ac_objext |
| 8386 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8387 | (eval $ac_compile) 2>&5 |
| 8388 | ac_status=$? |
| 8389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8390 | (exit $ac_status); } && |
| 8391 | { ac_try='test -s conftest.$ac_objext' |
| 8392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8393 | (eval $ac_try) 2>&5 |
| 8394 | ac_status=$? |
| 8395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8396 | (exit $ac_status); }; }; then |
| 8397 | ac_hi=-1 ac_mid=-1 |
| 8398 | while :; do |
| 8399 | cat >conftest.$ac_ext <<_ACEOF |
| 8400 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8401 | /* confdefs.h. */ |
| 8402 | _ACEOF |
| 8403 | cat confdefs.h >>conftest.$ac_ext |
| 8404 | cat >>conftest.$ac_ext <<_ACEOF |
| 8405 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8406 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8407 | int |
| 8408 | main () |
| 8409 | { |
| 8410 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; |
| 8411 | test_array [0] = 0 |
| 8412 | |
| 8413 | ; |
| 8414 | return 0; |
| 8415 | } |
| 8416 | _ACEOF |
| 8417 | rm -f conftest.$ac_objext |
| 8418 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8419 | (eval $ac_compile) 2>&5 |
| 8420 | ac_status=$? |
| 8421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8422 | (exit $ac_status); } && |
| 8423 | { ac_try='test -s conftest.$ac_objext' |
| 8424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8425 | (eval $ac_try) 2>&5 |
| 8426 | ac_status=$? |
| 8427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8428 | (exit $ac_status); }; }; then |
| 8429 | ac_lo=$ac_mid; break |
| 8430 | else |
| 8431 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8432 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8433 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8434 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8435 | if test $ac_mid -le $ac_hi; then |
| 8436 | ac_lo= ac_hi= |
| 8437 | break |
| 8438 | fi |
| 8439 | ac_mid=`expr 2 '*' $ac_mid` |
| 8440 | fi |
| 8441 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8442 | done |
| 8443 | else |
| 8444 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8445 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8446 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8447 | ac_lo= ac_hi= |
| 8448 | fi |
| 8449 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8450 | fi |
| 8451 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8452 | # Binary search between lo and hi bounds. |
| 8453 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8454 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8455 | cat >conftest.$ac_ext <<_ACEOF |
| 8456 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8457 | /* confdefs.h. */ |
| 8458 | _ACEOF |
| 8459 | cat confdefs.h >>conftest.$ac_ext |
| 8460 | cat >>conftest.$ac_ext <<_ACEOF |
| 8461 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8462 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8463 | int |
| 8464 | main () |
| 8465 | { |
| 8466 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 8467 | test_array [0] = 0 |
| 8468 | |
| 8469 | ; |
| 8470 | return 0; |
| 8471 | } |
| 8472 | _ACEOF |
| 8473 | rm -f conftest.$ac_objext |
| 8474 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8475 | (eval $ac_compile) 2>&5 |
| 8476 | ac_status=$? |
| 8477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8478 | (exit $ac_status); } && |
| 8479 | { ac_try='test -s conftest.$ac_objext' |
| 8480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8481 | (eval $ac_try) 2>&5 |
| 8482 | ac_status=$? |
| 8483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8484 | (exit $ac_status); }; }; then |
| 8485 | ac_hi=$ac_mid |
| 8486 | else |
| 8487 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8488 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8489 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8490 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8491 | fi |
| 8492 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8493 | done |
| 8494 | case $ac_lo in |
| 8495 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8496 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 |
| 8497 | See \`config.log' for more details." >&5 |
| 8498 | echo "$as_me: error: cannot compute sizeof (long long), 77 |
| 8499 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8500 | { (exit 1); exit 1; }; } ;; |
| 8501 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8502 | else |
| 8503 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8504 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 8505 | See \`config.log' for more details." >&5 |
| 8506 | echo "$as_me: error: cannot run test program while cross compiling |
| 8507 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8508 | { (exit 1); exit 1; }; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8509 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8510 | cat >conftest.$ac_ext <<_ACEOF |
| 8511 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8512 | /* confdefs.h. */ |
| 8513 | _ACEOF |
| 8514 | cat confdefs.h >>conftest.$ac_ext |
| 8515 | cat >>conftest.$ac_ext <<_ACEOF |
| 8516 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8517 | $ac_includes_default |
| 8518 | long longval () { return (long) (sizeof (long long)); } |
| 8519 | unsigned long ulongval () { return (long) (sizeof (long long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8520 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8521 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8522 | int |
| 8523 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8524 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8525 | |
| 8526 | FILE *f = fopen ("conftest.val", "w"); |
| 8527 | if (! f) |
| 8528 | exit (1); |
| 8529 | if (((long) (sizeof (long long))) < 0) |
| 8530 | { |
| 8531 | long i = longval (); |
| 8532 | if (i != ((long) (sizeof (long long)))) |
| 8533 | exit (1); |
| 8534 | fprintf (f, "%ld\n", i); |
| 8535 | } |
| 8536 | else |
| 8537 | { |
| 8538 | unsigned long i = ulongval (); |
| 8539 | if (i != ((long) (sizeof (long long)))) |
| 8540 | exit (1); |
| 8541 | fprintf (f, "%lu\n", i); |
| 8542 | } |
| 8543 | exit (ferror (f) || fclose (f) != 0); |
| 8544 | |
| 8545 | ; |
| 8546 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8547 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8548 | _ACEOF |
| 8549 | rm -f conftest$ac_exeext |
| 8550 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8551 | (eval $ac_link) 2>&5 |
| 8552 | ac_status=$? |
| 8553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8554 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8556 | (eval $ac_try) 2>&5 |
| 8557 | ac_status=$? |
| 8558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8559 | (exit $ac_status); }; }; then |
| 8560 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8561 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8562 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8563 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8564 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8565 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8566 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8567 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 |
| 8568 | See \`config.log' for more details." >&5 |
| 8569 | echo "$as_me: error: cannot compute sizeof (long long), 77 |
| 8570 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8571 | { (exit 1); exit 1; }; } |
| 8572 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8573 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8574 | fi |
| 8575 | fi |
| 8576 | rm -f conftest.val |
| 8577 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8578 | ac_cv_sizeof_long_long=0 |
| 8579 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8580 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8581 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 8582 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 |
| 8583 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8584 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8585 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8586 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8587 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8588 | fi |
| 8589 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8590 | echo "$as_me:$LINENO: checking for uintptr_t support" >&5 |
| 8591 | echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8592 | have_uintptr_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8593 | cat >conftest.$ac_ext <<_ACEOF |
| 8594 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8595 | /* confdefs.h. */ |
| 8596 | _ACEOF |
| 8597 | cat confdefs.h >>conftest.$ac_ext |
| 8598 | cat >>conftest.$ac_ext <<_ACEOF |
| 8599 | /* end confdefs.h. */ |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8600 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8601 | int |
| 8602 | main () |
| 8603 | { |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8604 | uintptr_t x; x = (uintptr_t)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8605 | ; |
| 8606 | return 0; |
| 8607 | } |
| 8608 | _ACEOF |
| 8609 | rm -f conftest.$ac_objext |
| 8610 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8611 | (eval $ac_compile) 2>&5 |
| 8612 | ac_status=$? |
| 8613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8614 | (exit $ac_status); } && |
| 8615 | { ac_try='test -s conftest.$ac_objext' |
| 8616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8617 | (eval $ac_try) 2>&5 |
| 8618 | ac_status=$? |
| 8619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8620 | (exit $ac_status); }; }; then |
| 8621 | |
| 8622 | |
| 8623 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8624 | #define HAVE_UINTPTR_T 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8625 | _ACEOF |
| 8626 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8627 | have_uintptr_t=yes |
| 8628 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8629 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8630 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8631 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8632 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8633 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8634 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8635 | echo "$as_me:$LINENO: result: $have_uintptr_t" >&5 |
| 8636 | echo "${ECHO_T}$have_uintptr_t" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8637 | if test "$have_uintptr_t" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8638 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 8639 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| 8640 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 8641 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8642 | else |
| 8643 | cat >conftest.$ac_ext <<_ACEOF |
| 8644 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8645 | /* confdefs.h. */ |
| 8646 | _ACEOF |
| 8647 | cat confdefs.h >>conftest.$ac_ext |
| 8648 | cat >>conftest.$ac_ext <<_ACEOF |
| 8649 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8650 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8651 | int |
| 8652 | main () |
| 8653 | { |
| 8654 | if ((uintptr_t *) 0) |
| 8655 | return 0; |
| 8656 | if (sizeof (uintptr_t)) |
| 8657 | return 0; |
| 8658 | ; |
| 8659 | return 0; |
| 8660 | } |
| 8661 | _ACEOF |
| 8662 | rm -f conftest.$ac_objext |
| 8663 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8664 | (eval $ac_compile) 2>&5 |
| 8665 | ac_status=$? |
| 8666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8667 | (exit $ac_status); } && |
| 8668 | { ac_try='test -s conftest.$ac_objext' |
| 8669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8670 | (eval $ac_try) 2>&5 |
| 8671 | ac_status=$? |
| 8672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8673 | (exit $ac_status); }; }; then |
| 8674 | ac_cv_type_uintptr_t=yes |
| 8675 | else |
| 8676 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8677 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8678 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8679 | ac_cv_type_uintptr_t=no |
| 8680 | fi |
| 8681 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8682 | fi |
| 8683 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 8684 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| 8685 | |
| 8686 | echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 8687 | echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6 |
| 8688 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
| 8689 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8690 | else |
| 8691 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 8692 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8693 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8694 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8695 | # This bug is HP SR number 8606223364. |
| 8696 | if test "$cross_compiling" = yes; then |
| 8697 | # Depending upon the size, compute the lo and hi bounds. |
| 8698 | cat >conftest.$ac_ext <<_ACEOF |
| 8699 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8700 | /* confdefs.h. */ |
| 8701 | _ACEOF |
| 8702 | cat confdefs.h >>conftest.$ac_ext |
| 8703 | cat >>conftest.$ac_ext <<_ACEOF |
| 8704 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8705 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8706 | int |
| 8707 | main () |
| 8708 | { |
| 8709 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)]; |
| 8710 | test_array [0] = 0 |
| 8711 | |
| 8712 | ; |
| 8713 | return 0; |
| 8714 | } |
| 8715 | _ACEOF |
| 8716 | rm -f conftest.$ac_objext |
| 8717 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8718 | (eval $ac_compile) 2>&5 |
| 8719 | ac_status=$? |
| 8720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8721 | (exit $ac_status); } && |
| 8722 | { ac_try='test -s conftest.$ac_objext' |
| 8723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8724 | (eval $ac_try) 2>&5 |
| 8725 | ac_status=$? |
| 8726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8727 | (exit $ac_status); }; }; then |
| 8728 | ac_lo=0 ac_mid=0 |
| 8729 | while :; do |
| 8730 | cat >conftest.$ac_ext <<_ACEOF |
| 8731 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8732 | /* confdefs.h. */ |
| 8733 | _ACEOF |
| 8734 | cat confdefs.h >>conftest.$ac_ext |
| 8735 | cat >>conftest.$ac_ext <<_ACEOF |
| 8736 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8737 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8738 | int |
| 8739 | main () |
| 8740 | { |
| 8741 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 8742 | test_array [0] = 0 |
| 8743 | |
| 8744 | ; |
| 8745 | return 0; |
| 8746 | } |
| 8747 | _ACEOF |
| 8748 | rm -f conftest.$ac_objext |
| 8749 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8750 | (eval $ac_compile) 2>&5 |
| 8751 | ac_status=$? |
| 8752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8753 | (exit $ac_status); } && |
| 8754 | { ac_try='test -s conftest.$ac_objext' |
| 8755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8756 | (eval $ac_try) 2>&5 |
| 8757 | ac_status=$? |
| 8758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8759 | (exit $ac_status); }; }; then |
| 8760 | ac_hi=$ac_mid; break |
| 8761 | else |
| 8762 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8763 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8764 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8765 | ac_lo=`expr $ac_mid + 1` |
| 8766 | if test $ac_lo -le $ac_mid; then |
| 8767 | ac_lo= ac_hi= |
| 8768 | break |
| 8769 | fi |
| 8770 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8771 | fi |
| 8772 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8773 | done |
| 8774 | else |
| 8775 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8776 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8777 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8778 | cat >conftest.$ac_ext <<_ACEOF |
| 8779 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8780 | /* confdefs.h. */ |
| 8781 | _ACEOF |
| 8782 | cat confdefs.h >>conftest.$ac_ext |
| 8783 | cat >>conftest.$ac_ext <<_ACEOF |
| 8784 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8785 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8786 | int |
| 8787 | main () |
| 8788 | { |
| 8789 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)]; |
| 8790 | test_array [0] = 0 |
| 8791 | |
| 8792 | ; |
| 8793 | return 0; |
| 8794 | } |
| 8795 | _ACEOF |
| 8796 | rm -f conftest.$ac_objext |
| 8797 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8798 | (eval $ac_compile) 2>&5 |
| 8799 | ac_status=$? |
| 8800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8801 | (exit $ac_status); } && |
| 8802 | { ac_try='test -s conftest.$ac_objext' |
| 8803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8804 | (eval $ac_try) 2>&5 |
| 8805 | ac_status=$? |
| 8806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8807 | (exit $ac_status); }; }; then |
| 8808 | ac_hi=-1 ac_mid=-1 |
| 8809 | while :; do |
| 8810 | cat >conftest.$ac_ext <<_ACEOF |
| 8811 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8812 | /* confdefs.h. */ |
| 8813 | _ACEOF |
| 8814 | cat confdefs.h >>conftest.$ac_ext |
| 8815 | cat >>conftest.$ac_ext <<_ACEOF |
| 8816 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8817 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8818 | int |
| 8819 | main () |
| 8820 | { |
| 8821 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)]; |
| 8822 | test_array [0] = 0 |
| 8823 | |
| 8824 | ; |
| 8825 | return 0; |
| 8826 | } |
| 8827 | _ACEOF |
| 8828 | rm -f conftest.$ac_objext |
| 8829 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8830 | (eval $ac_compile) 2>&5 |
| 8831 | ac_status=$? |
| 8832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8833 | (exit $ac_status); } && |
| 8834 | { ac_try='test -s conftest.$ac_objext' |
| 8835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8836 | (eval $ac_try) 2>&5 |
| 8837 | ac_status=$? |
| 8838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8839 | (exit $ac_status); }; }; then |
| 8840 | ac_lo=$ac_mid; break |
| 8841 | else |
| 8842 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8843 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8844 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8845 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8846 | if test $ac_mid -le $ac_hi; then |
| 8847 | ac_lo= ac_hi= |
| 8848 | break |
| 8849 | fi |
| 8850 | ac_mid=`expr 2 '*' $ac_mid` |
| 8851 | fi |
| 8852 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8853 | done |
| 8854 | else |
| 8855 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8856 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8857 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8858 | ac_lo= ac_hi= |
| 8859 | fi |
| 8860 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8861 | fi |
| 8862 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8863 | # Binary search between lo and hi bounds. |
| 8864 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8865 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8866 | cat >conftest.$ac_ext <<_ACEOF |
| 8867 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8868 | /* confdefs.h. */ |
| 8869 | _ACEOF |
| 8870 | cat confdefs.h >>conftest.$ac_ext |
| 8871 | cat >>conftest.$ac_ext <<_ACEOF |
| 8872 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8873 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8874 | int |
| 8875 | main () |
| 8876 | { |
| 8877 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 8878 | test_array [0] = 0 |
| 8879 | |
| 8880 | ; |
| 8881 | return 0; |
| 8882 | } |
| 8883 | _ACEOF |
| 8884 | rm -f conftest.$ac_objext |
| 8885 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8886 | (eval $ac_compile) 2>&5 |
| 8887 | ac_status=$? |
| 8888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8889 | (exit $ac_status); } && |
| 8890 | { ac_try='test -s conftest.$ac_objext' |
| 8891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8892 | (eval $ac_try) 2>&5 |
| 8893 | ac_status=$? |
| 8894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8895 | (exit $ac_status); }; }; then |
| 8896 | ac_hi=$ac_mid |
| 8897 | else |
| 8898 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8899 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8900 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8901 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8902 | fi |
| 8903 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8904 | done |
| 8905 | case $ac_lo in |
| 8906 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8907 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77 |
| 8908 | See \`config.log' for more details." >&5 |
| 8909 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77 |
| 8910 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8911 | { (exit 1); exit 1; }; } ;; |
| 8912 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8913 | else |
| 8914 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8915 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 8916 | See \`config.log' for more details." >&5 |
| 8917 | echo "$as_me: error: cannot run test program while cross compiling |
| 8918 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8919 | { (exit 1); exit 1; }; } |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8920 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8921 | cat >conftest.$ac_ext <<_ACEOF |
| 8922 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8923 | /* confdefs.h. */ |
| 8924 | _ACEOF |
| 8925 | cat confdefs.h >>conftest.$ac_ext |
| 8926 | cat >>conftest.$ac_ext <<_ACEOF |
| 8927 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8928 | $ac_includes_default |
| 8929 | long longval () { return (long) (sizeof (uintptr_t)); } |
| 8930 | unsigned long ulongval () { return (long) (sizeof (uintptr_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8931 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8932 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8933 | int |
| 8934 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8935 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8936 | |
| 8937 | FILE *f = fopen ("conftest.val", "w"); |
| 8938 | if (! f) |
| 8939 | exit (1); |
| 8940 | if (((long) (sizeof (uintptr_t))) < 0) |
| 8941 | { |
| 8942 | long i = longval (); |
| 8943 | if (i != ((long) (sizeof (uintptr_t)))) |
| 8944 | exit (1); |
| 8945 | fprintf (f, "%ld\n", i); |
| 8946 | } |
| 8947 | else |
| 8948 | { |
| 8949 | unsigned long i = ulongval (); |
| 8950 | if (i != ((long) (sizeof (uintptr_t)))) |
| 8951 | exit (1); |
| 8952 | fprintf (f, "%lu\n", i); |
| 8953 | } |
| 8954 | exit (ferror (f) || fclose (f) != 0); |
| 8955 | |
| 8956 | ; |
| 8957 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8958 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8959 | _ACEOF |
| 8960 | rm -f conftest$ac_exeext |
| 8961 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8962 | (eval $ac_link) 2>&5 |
| 8963 | ac_status=$? |
| 8964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8965 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8967 | (eval $ac_try) 2>&5 |
| 8968 | ac_status=$? |
| 8969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8970 | (exit $ac_status); }; }; then |
| 8971 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8972 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8973 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8974 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8975 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8976 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8977 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8978 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77 |
| 8979 | See \`config.log' for more details." >&5 |
| 8980 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77 |
| 8981 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8982 | { (exit 1); exit 1; }; } |
| 8983 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8984 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8985 | fi |
| 8986 | fi |
| 8987 | rm -f conftest.val |
| 8988 | else |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8989 | ac_cv_sizeof_uintptr_t=0 |
| 8990 | fi |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8991 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8992 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 8993 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6 |
| 8994 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8995 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8996 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8997 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8998 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8999 | fi |
| 9000 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9001 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9002 | echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 9003 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6 |
| 9004 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 9005 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9006 | else |
| 9007 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 9008 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9009 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9010 | cat >conftest.$ac_ext <<_ACEOF |
| 9011 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9012 | /* confdefs.h. */ |
| 9013 | _ACEOF |
| 9014 | cat confdefs.h >>conftest.$ac_ext |
| 9015 | cat >>conftest.$ac_ext <<_ACEOF |
| 9016 | /* end confdefs.h. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9017 | #include <stdio.h> |
| 9018 | #include <sys/types.h> |
| 9019 | main() |
| 9020 | { |
| 9021 | FILE *f=fopen("conftestval", "w"); |
| 9022 | if (!f) exit(1); |
| 9023 | fprintf(f, "%d\n", sizeof(off_t)); |
| 9024 | exit(0); |
| 9025 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9026 | _ACEOF |
| 9027 | rm -f conftest$ac_exeext |
| 9028 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9029 | (eval $ac_link) 2>&5 |
| 9030 | ac_status=$? |
| 9031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9032 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9034 | (eval $ac_try) 2>&5 |
| 9035 | ac_status=$? |
| 9036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9037 | (exit $ac_status); }; }; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9038 | ac_cv_sizeof_off_t=`cat conftestval` |
| 9039 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9040 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9041 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9042 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9043 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9044 | ( exit $ac_status ) |
| 9045 | ac_cv_sizeof_off_t=0 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9046 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9047 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9048 | fi |
| 9049 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9050 | fi |
| 9051 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9052 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 9053 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6 |
| 9054 | |
| 9055 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9056 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9057 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9058 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9059 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9060 | echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 9061 | 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] | 9062 | if test "$have_long_long" = yes -a \ |
| 9063 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 9064 | "$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] | 9065 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9066 | cat >>confdefs.h <<\_ACEOF |
| 9067 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 9068 | _ACEOF |
| 9069 | |
| 9070 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9071 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9072 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9073 | echo "$as_me:$LINENO: result: no" >&5 |
| 9074 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9075 | fi |
| 9076 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9077 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9078 | echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 9079 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6 |
| 9080 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 9081 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9082 | else |
| 9083 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 9084 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9085 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9086 | cat >conftest.$ac_ext <<_ACEOF |
| 9087 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9088 | /* confdefs.h. */ |
| 9089 | _ACEOF |
| 9090 | cat confdefs.h >>conftest.$ac_ext |
| 9091 | cat >>conftest.$ac_ext <<_ACEOF |
| 9092 | /* end confdefs.h. */ |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9093 | #include <stdio.h> |
| 9094 | #include <time.h> |
| 9095 | main() |
| 9096 | { |
| 9097 | FILE *f=fopen("conftestval", "w"); |
| 9098 | if (!f) exit(1); |
| 9099 | fprintf(f, "%d\n", sizeof(time_t)); |
| 9100 | exit(0); |
| 9101 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9102 | _ACEOF |
| 9103 | rm -f conftest$ac_exeext |
| 9104 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9105 | (eval $ac_link) 2>&5 |
| 9106 | ac_status=$? |
| 9107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9108 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9110 | (eval $ac_try) 2>&5 |
| 9111 | ac_status=$? |
| 9112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9113 | (exit $ac_status); }; }; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9114 | ac_cv_sizeof_time_t=`cat conftestval` |
| 9115 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9116 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9117 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9118 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9119 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9120 | ( exit $ac_status ) |
| 9121 | ac_cv_sizeof_time_t=0 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9122 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9123 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9124 | fi |
| 9125 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9126 | fi |
| 9127 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9128 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 9129 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6 |
| 9130 | |
| 9131 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9132 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9133 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9134 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9135 | |
| 9136 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9137 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9138 | ac_save_cc="$CC" |
| 9139 | if test "$ac_cv_kpthread" = "yes" |
| 9140 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 9141 | elif test "$ac_cv_kthread" = "yes" |
| 9142 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9143 | elif test "$ac_cv_pthread" = "yes" |
| 9144 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9145 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9146 | echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 9147 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9148 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9149 | cat >conftest.$ac_ext <<_ACEOF |
| 9150 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9151 | /* confdefs.h. */ |
| 9152 | _ACEOF |
| 9153 | cat confdefs.h >>conftest.$ac_ext |
| 9154 | cat >>conftest.$ac_ext <<_ACEOF |
| 9155 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9156 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9157 | int |
| 9158 | main () |
| 9159 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 9160 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9161 | ; |
| 9162 | return 0; |
| 9163 | } |
| 9164 | _ACEOF |
| 9165 | rm -f conftest.$ac_objext |
| 9166 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9167 | (eval $ac_compile) 2>&5 |
| 9168 | ac_status=$? |
| 9169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9170 | (exit $ac_status); } && |
| 9171 | { ac_try='test -s conftest.$ac_objext' |
| 9172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9173 | (eval $ac_try) 2>&5 |
| 9174 | ac_status=$? |
| 9175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9176 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9177 | have_pthread_t=yes |
| 9178 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9179 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9180 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9181 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9182 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9183 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9184 | echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 9185 | echo "${ECHO_T}$have_pthread_t" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9186 | if test "$have_pthread_t" = yes ; then |
| 9187 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9188 | echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 9189 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6 |
| 9190 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 9191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9192 | else |
| 9193 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 9194 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9195 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9196 | cat >conftest.$ac_ext <<_ACEOF |
| 9197 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9198 | /* confdefs.h. */ |
| 9199 | _ACEOF |
| 9200 | cat confdefs.h >>conftest.$ac_ext |
| 9201 | cat >>conftest.$ac_ext <<_ACEOF |
| 9202 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9203 | #include <stdio.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 9204 | #include <pthread.h> |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9205 | main() |
| 9206 | { |
| 9207 | FILE *f=fopen("conftestval", "w"); |
| 9208 | if (!f) exit(1); |
| 9209 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 9210 | exit(0); |
| 9211 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9212 | _ACEOF |
| 9213 | rm -f conftest$ac_exeext |
| 9214 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9215 | (eval $ac_link) 2>&5 |
| 9216 | ac_status=$? |
| 9217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9218 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9220 | (eval $ac_try) 2>&5 |
| 9221 | ac_status=$? |
| 9222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9223 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9224 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 9225 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9226 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9227 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9228 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9229 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9230 | ( exit $ac_status ) |
| 9231 | ac_cv_sizeof_pthread_t=0 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9232 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9233 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9234 | fi |
| 9235 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9236 | fi |
| 9237 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9238 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
| 9239 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6 |
| 9240 | |
| 9241 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9242 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9243 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9244 | |
| 9245 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9246 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9247 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9248 | echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 9249 | echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9250 | # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given. |
| 9251 | if test "${enable_toolbox_glue+set}" = set; then |
| 9252 | enableval="$enable_toolbox_glue" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9253 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9254 | fi; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9255 | |
| 9256 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9257 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9258 | case $ac_sys_system/$ac_sys_release in |
| 9259 | Darwin/*) |
| 9260 | enable_toolbox_glue="yes";; |
| 9261 | *) |
| 9262 | enable_toolbox_glue="no";; |
| 9263 | esac |
| 9264 | fi |
| 9265 | case "$enable_toolbox_glue" in |
| 9266 | yes) |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 9267 | extra_frameworks="-framework CoreServices -framework Foundation" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9268 | extra_machdep_objs="Python/mactoolboxglue.o" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 9269 | extra_undefs="-u __dummy -u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9270 | |
| 9271 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9272 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9273 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9274 | |
| 9275 | ;; |
| 9276 | *) |
| 9277 | extra_frameworks="" |
| 9278 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 9279 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9280 | ;; |
| 9281 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9282 | echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 9283 | echo "${ECHO_T}$enable_toolbox_glue" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9284 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9285 | |
| 9286 | case $ac_sys_system/$ac_sys_release in |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9287 | Darwin/1.3*) |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9288 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc" |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9289 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | 66b8483 | 2003-07-04 12:14:39 +0000 | [diff] [blame] | 9290 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/Python' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9291 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 9292 | Darwin/*) |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9293 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc" |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9294 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | 66b8483 | 2003-07-04 12:14:39 +0000 | [diff] [blame] | 9295 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/Python' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9296 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9297 | esac |
| 9298 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9299 | echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 9300 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9301 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9302 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9303 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9304 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9305 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9306 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9307 | cat >>confdefs.h <<\_ACEOF |
| 9308 | #define WITH_NEXT_FRAMEWORK 1 |
| 9309 | _ACEOF |
| 9310 | |
| 9311 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9312 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9313 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9314 | echo "$as_me:$LINENO: result: no" >&5 |
| 9315 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9316 | fi |
| 9317 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9318 | echo "$as_me:$LINENO: checking for dyld" >&5 |
| 9319 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9320 | case $ac_sys_system/$ac_sys_release in |
| 9321 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9322 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9323 | cat >>confdefs.h <<\_ACEOF |
| 9324 | #define WITH_DYLD 1 |
| 9325 | _ACEOF |
| 9326 | |
| 9327 | echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 9328 | echo "${ECHO_T}always on for Darwin" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9329 | ;; |
| 9330 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9331 | echo "$as_me:$LINENO: result: no" >&5 |
| 9332 | echo "${ECHO_T}no" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9333 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9334 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9335 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9336 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9337 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9338 | |
| 9339 | |
| 9340 | |
| 9341 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9342 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 9343 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9344 | echo "$as_me:$LINENO: checking SO" >&5 |
| 9345 | echo $ECHO_N "checking SO... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9346 | if test -z "$SO" |
| 9347 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9348 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 9349 | hp*|HP*) SO=.sl;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 9350 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 9351 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9352 | esac |
Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 9353 | else |
| 9354 | # this might also be a termcap variable, see #610332 |
| 9355 | echo |
| 9356 | echo '=====================================================================' |
| 9357 | echo '+ +' |
| 9358 | echo '+ WARNING: You have set SO in your environment. +' |
| 9359 | echo '+ Do you really mean to change the extension for shared libraries? +' |
| 9360 | echo '+ Continuing in 10 seconds to let you to ponder. +' |
| 9361 | echo '+ +' |
| 9362 | echo '=====================================================================' |
| 9363 | sleep 10 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9364 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9365 | echo "$as_me:$LINENO: result: $SO" >&5 |
| 9366 | echo "${ECHO_T}$SO" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9367 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 9368 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9369 | # (Shared libraries in this instance are shared modules to be loaded into |
| 9370 | # 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] | 9371 | echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 9372 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9373 | if test -z "$LDSHARED" |
| 9374 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9375 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9376 | AIX*) |
| 9377 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 9378 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9379 | ;; |
| 9380 | BeOS*) |
| 9381 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 9382 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9383 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9384 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 9385 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9386 | SunOS/5*) |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 9387 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 9388 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 9389 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 9390 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9391 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 9392 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9393 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9394 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 9395 | if test "$enable_framework" ; then |
| 9396 | # Link against the framework. All externals should be defined. |
Jack Jansen | c8607b7 | 2003-12-08 01:10:12 +0000 | [diff] [blame] | 9397 | BLDSHARED="$LDSHARED "'-Wl,-F. -framework $(PYTHONFRAMEWORK)' |
| 9398 | LDSHARED="$LDSHARED "'-Wl,-F$(PYTHONFRAMEWORKPREFIX) -framework $(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9399 | else |
| 9400 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9401 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9402 | fi ;; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9403 | Darwin/*) |
| 9404 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 9405 | if test "$enable_framework" ; then |
| 9406 | # Link against the framework. All externals should be defined. |
Jack Jansen | c8607b7 | 2003-12-08 01:10:12 +0000 | [diff] [blame] | 9407 | BLDSHARED="$LDSHARED "'-Wl,-F. -framework $(PYTHONFRAMEWORK)' |
| 9408 | LDSHARED="$LDSHARED "'-Wl,-F$(PYTHONFRAMEWORKPREFIX) -framework $(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9409 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 9410 | # No framework, use the Python app as bundle-loader |
| 9411 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 9412 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9413 | fi ;; |
Martin v. Löwis | 3cba5c0 | 2002-09-16 17:50:59 +0000 | [diff] [blame] | 9414 | Linux*|GNU*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 9415 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 9416 | OpenBSD*|FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 9417 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9418 | then |
| 9419 | LDSHARED="cc -shared ${LDFLAGS}" |
| 9420 | else |
| 9421 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 9422 | fi;; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 9423 | NetBSD*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9424 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9425 | if test "$GCC" = "yes" |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 9426 | then LDSHARED='$(CC) -shared' |
| 9427 | else LDSHARED='$(CC) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9428 | fi;; |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 9429 | SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9430 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 9431 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9432 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9433 | *) LDSHARED="ld";; |
| 9434 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9435 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9436 | echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 9437 | echo "${ECHO_T}$LDSHARED" >&6 |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9438 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9439 | # 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] | 9440 | # library (module) -- this is only needed for a few systems |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9441 | echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 9442 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9443 | if test -z "$CCSHARED" |
| 9444 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9445 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 9446 | SunOS*) if test "$GCC" = yes; |
| 9447 | then CCSHARED="-fPIC"; |
| 9448 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9449 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 9450 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9451 | else CCSHARED="+z"; |
| 9452 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9453 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9454 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 9455 | FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9456 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9457 | if test "$GCC" = "yes" |
| 9458 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9459 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9460 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9461 | SCO_SV*) |
| 9462 | if test "$GCC" = "yes" |
| 9463 | then CCSHARED="-fPIC" |
| 9464 | else CCSHARED="-Kpic -belf" |
| 9465 | fi;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9466 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9467 | IRIX*/6*) case $CC in |
| 9468 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 9469 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9470 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9471 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9472 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9473 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9474 | echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 9475 | echo "${ECHO_T}$CCSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9476 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9477 | # 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] | 9478 | echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 9479 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9480 | if test -z "$LINKFORSHARED" |
| 9481 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9482 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9483 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 9484 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 9485 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 9486 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9487 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9488 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9489 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9490 | Darwin/*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9491 | # -u __dummy makes the linker aware of the objc runtime |
| 9492 | # in System.framework; otherwise, __objcInit (referenced in |
| 9493 | # crt1.o) gets erroneously defined as common, which breaks dynamic |
| 9494 | # loading of any modules which reference it in System.framework. |
| 9495 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, which is |
| 9496 | # not used by the core itself but which needs to be in the core so |
| 9497 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 9498 | # -prebind is no longer used, because it actually seems to give a |
| 9499 | # slowdown in stead of a speedup, maybe due to the large number of |
| 9500 | # dynamic loads Python does. |
| 9501 | LINKFORSHARED="$extra_undefs -framework System" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9502 | if test "$enable_framework" |
| 9503 | then |
Jack Jansen | c8607b7 | 2003-12-08 01:10:12 +0000 | [diff] [blame] | 9504 | LINKFORSHARED="$LINKFORSHARED -Wl,-F. -framework Python" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9505 | fi |
| 9506 | LINKFORSHARED="$LINKFORSHARED $extra_frameworks";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9507 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9508 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 9509 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9510 | FreeBSD*|NetBSD*|OpenBSD*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 9511 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 9512 | then |
| 9513 | LINKFORSHARED="-Wl,--export-dynamic" |
| 9514 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9515 | SunOS/5*) case $CC in |
| 9516 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 9517 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 9518 | then |
| 9519 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9520 | fi;; |
| 9521 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 9522 | CYGWIN*) |
| 9523 | if test $enable_shared = "no" |
| 9524 | then |
| 9525 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 9526 | fi;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9527 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9528 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9529 | echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 9530 | echo "${ECHO_T}$LINKFORSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9531 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9532 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9533 | echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 9534 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9535 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 9536 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 9537 | case $ac_sys_system in |
| 9538 | CYGWIN*) |
| 9539 | # Cygwin needs CCSHARED when building extension DLLs |
| 9540 | # but not when building the interpreter DLL. |
| 9541 | CFLAGSFORSHARED='';; |
| 9542 | *) |
| 9543 | CFLAGSFORSHARED='$(CCSHARED)' |
| 9544 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9545 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9546 | echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 9547 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9548 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9549 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 9550 | # library (with --enable-shared). |
| 9551 | # 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] | 9552 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 9553 | # if it is not required, since it creates a dependency of the shared library |
| 9554 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 9555 | # don't need to link LIBS explicitly. The default should be only changed |
| 9556 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9557 | |
| 9558 | echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 9559 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6 |
| 9560 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9561 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 9562 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9563 | esac |
| 9564 | echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 9565 | echo "${ECHO_T}$SHLIBS" >&6 |
| 9566 | |
| 9567 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9568 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9569 | |
| 9570 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9571 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 9572 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
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 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9576 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9577 | cat >conftest.$ac_ext <<_ACEOF |
| 9578 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9579 | /* confdefs.h. */ |
| 9580 | _ACEOF |
| 9581 | cat confdefs.h >>conftest.$ac_ext |
| 9582 | cat >>conftest.$ac_ext <<_ACEOF |
| 9583 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9584 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9585 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9586 | #ifdef __cplusplus |
| 9587 | extern "C" |
| 9588 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9589 | /* 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] | 9590 | builtin and then its argument prototype would still apply. */ |
| 9591 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9592 | int |
| 9593 | main () |
| 9594 | { |
| 9595 | dlopen (); |
| 9596 | ; |
| 9597 | return 0; |
| 9598 | } |
| 9599 | _ACEOF |
| 9600 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9601 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9602 | (eval $ac_link) 2>&5 |
| 9603 | ac_status=$? |
| 9604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9605 | (exit $ac_status); } && |
| 9606 | { ac_try='test -s conftest$ac_exeext' |
| 9607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9608 | (eval $ac_try) 2>&5 |
| 9609 | ac_status=$? |
| 9610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9611 | (exit $ac_status); }; }; then |
| 9612 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9613 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9614 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9615 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9616 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9617 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9618 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9619 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9620 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9621 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9622 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9623 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 9624 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 9625 | cat >>confdefs.h <<_ACEOF |
| 9626 | #define HAVE_LIBDL 1 |
| 9627 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9628 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9629 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9630 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9631 | fi |
| 9632 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9633 | |
| 9634 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 9635 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 9636 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 9637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9638 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9639 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9640 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9641 | cat >conftest.$ac_ext <<_ACEOF |
| 9642 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9643 | /* confdefs.h. */ |
| 9644 | _ACEOF |
| 9645 | cat confdefs.h >>conftest.$ac_ext |
| 9646 | cat >>conftest.$ac_ext <<_ACEOF |
| 9647 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9648 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9649 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9650 | #ifdef __cplusplus |
| 9651 | extern "C" |
| 9652 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9653 | /* 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] | 9654 | builtin and then its argument prototype would still apply. */ |
| 9655 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9656 | int |
| 9657 | main () |
| 9658 | { |
| 9659 | shl_load (); |
| 9660 | ; |
| 9661 | return 0; |
| 9662 | } |
| 9663 | _ACEOF |
| 9664 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9665 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9666 | (eval $ac_link) 2>&5 |
| 9667 | ac_status=$? |
| 9668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9669 | (exit $ac_status); } && |
| 9670 | { ac_try='test -s conftest$ac_exeext' |
| 9671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9672 | (eval $ac_try) 2>&5 |
| 9673 | ac_status=$? |
| 9674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9675 | (exit $ac_status); }; }; then |
| 9676 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9677 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9678 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9679 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9680 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9681 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9682 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9683 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9684 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9685 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9686 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9687 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 9688 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 9689 | cat >>confdefs.h <<_ACEOF |
| 9690 | #define HAVE_LIBDLD 1 |
| 9691 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9692 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9693 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9694 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9695 | fi |
| 9696 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9697 | |
| 9698 | # only check for sem_ini if thread support is requested |
| 9699 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
| 9700 | echo "$as_me:$LINENO: checking for library containing sem_init" >&5 |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9701 | echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6 |
| 9702 | if test "${ac_cv_search_sem_init+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9704 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9705 | ac_func_search_save_LIBS=$LIBS |
| 9706 | ac_cv_search_sem_init=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9707 | cat >conftest.$ac_ext <<_ACEOF |
| 9708 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9709 | /* confdefs.h. */ |
| 9710 | _ACEOF |
| 9711 | cat confdefs.h >>conftest.$ac_ext |
| 9712 | cat >>conftest.$ac_ext <<_ACEOF |
| 9713 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9714 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9715 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9716 | #ifdef __cplusplus |
| 9717 | extern "C" |
| 9718 | #endif |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9719 | /* 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] | 9720 | builtin and then its argument prototype would still apply. */ |
| 9721 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9722 | int |
| 9723 | main () |
| 9724 | { |
| 9725 | sem_init (); |
| 9726 | ; |
| 9727 | return 0; |
| 9728 | } |
| 9729 | _ACEOF |
| 9730 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9731 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9732 | (eval $ac_link) 2>&5 |
| 9733 | ac_status=$? |
| 9734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9735 | (exit $ac_status); } && |
| 9736 | { ac_try='test -s conftest$ac_exeext' |
| 9737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9738 | (eval $ac_try) 2>&5 |
| 9739 | ac_status=$? |
| 9740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9741 | (exit $ac_status); }; }; then |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9742 | ac_cv_search_sem_init="none required" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9743 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9744 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9745 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9746 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9747 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9748 | 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] | 9749 | if test "$ac_cv_search_sem_init" = no; then |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 9750 | for ac_lib in pthread rt posix4; do |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9751 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9752 | cat >conftest.$ac_ext <<_ACEOF |
| 9753 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9754 | /* confdefs.h. */ |
| 9755 | _ACEOF |
| 9756 | cat confdefs.h >>conftest.$ac_ext |
| 9757 | cat >>conftest.$ac_ext <<_ACEOF |
| 9758 | /* end confdefs.h. */ |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9759 | |
| 9760 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9761 | #ifdef __cplusplus |
| 9762 | extern "C" |
| 9763 | #endif |
| 9764 | /* We use char because int might match the return type of a gcc2 |
| 9765 | builtin and then its argument prototype would still apply. */ |
| 9766 | char sem_init (); |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9767 | int |
| 9768 | main () |
| 9769 | { |
| 9770 | sem_init (); |
| 9771 | ; |
| 9772 | return 0; |
| 9773 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9774 | _ACEOF |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9775 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9776 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9777 | (eval $ac_link) 2>&5 |
| 9778 | ac_status=$? |
| 9779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9780 | (exit $ac_status); } && |
| 9781 | { ac_try='test -s conftest$ac_exeext' |
| 9782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9783 | (eval $ac_try) 2>&5 |
| 9784 | ac_status=$? |
| 9785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9786 | (exit $ac_status); }; }; then |
| 9787 | ac_cv_search_sem_init="-l$ac_lib" |
| 9788 | break |
| 9789 | else |
| 9790 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9791 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9792 | |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9793 | fi |
| 9794 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9795 | done |
| 9796 | fi |
| 9797 | LIBS=$ac_func_search_save_LIBS |
| 9798 | fi |
| 9799 | echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 9800 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6 |
| 9801 | if test "$ac_cv_search_sem_init" != no; then |
| 9802 | 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] | 9803 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9804 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 9805 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9806 | # posix4 on Solaris 2.6 |
| 9807 | # pthread (first!) on Linux |
| 9808 | fi |
| 9809 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9810 | # check if we need libintl for locale functions |
| 9811 | echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5 |
| 9812 | echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6 |
| 9813 | if test "${ac_cv_lib_intl_textdomain+set}" = set; then |
| 9814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9815 | else |
| 9816 | ac_check_lib_save_LIBS=$LIBS |
| 9817 | LIBS="-lintl $LIBS" |
| 9818 | cat >conftest.$ac_ext <<_ACEOF |
| 9819 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9820 | /* confdefs.h. */ |
| 9821 | _ACEOF |
| 9822 | cat confdefs.h >>conftest.$ac_ext |
| 9823 | cat >>conftest.$ac_ext <<_ACEOF |
| 9824 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9825 | |
| 9826 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9827 | #ifdef __cplusplus |
| 9828 | extern "C" |
| 9829 | #endif |
| 9830 | /* We use char because int might match the return type of a gcc2 |
| 9831 | builtin and then its argument prototype would still apply. */ |
| 9832 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9833 | int |
| 9834 | main () |
| 9835 | { |
| 9836 | textdomain (); |
| 9837 | ; |
| 9838 | return 0; |
| 9839 | } |
| 9840 | _ACEOF |
| 9841 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9842 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9843 | (eval $ac_link) 2>&5 |
| 9844 | ac_status=$? |
| 9845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9846 | (exit $ac_status); } && |
| 9847 | { ac_try='test -s conftest$ac_exeext' |
| 9848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9849 | (eval $ac_try) 2>&5 |
| 9850 | ac_status=$? |
| 9851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9852 | (exit $ac_status); }; }; then |
| 9853 | ac_cv_lib_intl_textdomain=yes |
| 9854 | else |
| 9855 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9856 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9857 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9858 | ac_cv_lib_intl_textdomain=no |
| 9859 | fi |
| 9860 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9861 | LIBS=$ac_check_lib_save_LIBS |
| 9862 | fi |
| 9863 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5 |
| 9864 | echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6 |
| 9865 | if test $ac_cv_lib_intl_textdomain = yes; then |
| 9866 | |
| 9867 | cat >>confdefs.h <<\_ACEOF |
| 9868 | #define WITH_LIBINTL 1 |
| 9869 | _ACEOF |
| 9870 | |
| 9871 | fi |
| 9872 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9873 | |
| 9874 | # checks for system dependent C++ extensions support |
| 9875 | case "$ac_sys_system" in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9876 | AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 9877 | echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6 |
| 9878 | cat >conftest.$ac_ext <<_ACEOF |
| 9879 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9880 | /* confdefs.h. */ |
| 9881 | _ACEOF |
| 9882 | cat confdefs.h >>conftest.$ac_ext |
| 9883 | cat >>conftest.$ac_ext <<_ACEOF |
| 9884 | /* end confdefs.h. */ |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9885 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9886 | int |
| 9887 | main () |
| 9888 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9889 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9890 | ; |
| 9891 | return 0; |
| 9892 | } |
| 9893 | _ACEOF |
| 9894 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9895 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9896 | (eval $ac_link) 2>&5 |
| 9897 | ac_status=$? |
| 9898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9899 | (exit $ac_status); } && |
| 9900 | { ac_try='test -s conftest$ac_exeext' |
| 9901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9902 | (eval $ac_try) 2>&5 |
| 9903 | ac_status=$? |
| 9904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9905 | (exit $ac_status); }; }; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9906 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9907 | cat >>confdefs.h <<\_ACEOF |
| 9908 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 9909 | _ACEOF |
| 9910 | |
| 9911 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9912 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9913 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9914 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9915 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9916 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9917 | echo "$as_me:$LINENO: result: no" >&5 |
| 9918 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9919 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9920 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9921 | *) ;; |
| 9922 | esac |
| 9923 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9924 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9925 | # BeOS' sockets are stashed in libnet. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9926 | echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 9927 | echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6 |
| 9928 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
| 9929 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9930 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9931 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9932 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9933 | cat >conftest.$ac_ext <<_ACEOF |
| 9934 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9935 | /* confdefs.h. */ |
| 9936 | _ACEOF |
| 9937 | cat confdefs.h >>conftest.$ac_ext |
| 9938 | cat >>conftest.$ac_ext <<_ACEOF |
| 9939 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9940 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9941 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9942 | #ifdef __cplusplus |
| 9943 | extern "C" |
| 9944 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9945 | /* 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] | 9946 | builtin and then its argument prototype would still apply. */ |
| 9947 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9948 | int |
| 9949 | main () |
| 9950 | { |
| 9951 | t_open (); |
| 9952 | ; |
| 9953 | return 0; |
| 9954 | } |
| 9955 | _ACEOF |
| 9956 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9957 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9958 | (eval $ac_link) 2>&5 |
| 9959 | ac_status=$? |
| 9960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9961 | (exit $ac_status); } && |
| 9962 | { ac_try='test -s conftest$ac_exeext' |
| 9963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9964 | (eval $ac_try) 2>&5 |
| 9965 | ac_status=$? |
| 9966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9967 | (exit $ac_status); }; }; then |
| 9968 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9969 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9970 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9971 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9972 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9973 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9974 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9975 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9976 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9977 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9978 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 9979 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6 |
| 9980 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9981 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9982 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 9983 | # SVR4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9984 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 9985 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 9986 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 9987 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9988 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9989 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9990 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9991 | cat >conftest.$ac_ext <<_ACEOF |
| 9992 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9993 | /* confdefs.h. */ |
| 9994 | _ACEOF |
| 9995 | cat confdefs.h >>conftest.$ac_ext |
| 9996 | cat >>conftest.$ac_ext <<_ACEOF |
| 9997 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9998 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9999 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10000 | #ifdef __cplusplus |
| 10001 | extern "C" |
| 10002 | #endif |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10003 | /* 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] | 10004 | builtin and then its argument prototype would still apply. */ |
| 10005 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10006 | int |
| 10007 | main () |
| 10008 | { |
| 10009 | socket (); |
| 10010 | ; |
| 10011 | return 0; |
| 10012 | } |
| 10013 | _ACEOF |
| 10014 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10015 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10016 | (eval $ac_link) 2>&5 |
| 10017 | ac_status=$? |
| 10018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10019 | (exit $ac_status); } && |
| 10020 | { ac_try='test -s conftest$ac_exeext' |
| 10021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10022 | (eval $ac_try) 2>&5 |
| 10023 | ac_status=$? |
| 10024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10025 | (exit $ac_status); }; }; then |
| 10026 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10027 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10028 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10029 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10030 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10031 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10032 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10033 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10034 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10035 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10036 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 10037 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 10038 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10039 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10040 | fi |
| 10041 | # SVR4 sockets |
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 10042 | |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 10043 | case "$ac_sys_system" in |
| 10044 | BeOS*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10045 | echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 10046 | echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6 |
| 10047 | if test "${ac_cv_lib_net_socket+set}" = set; then |
| 10048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10049 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10050 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10051 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10052 | cat >conftest.$ac_ext <<_ACEOF |
| 10053 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10054 | /* confdefs.h. */ |
| 10055 | _ACEOF |
| 10056 | cat confdefs.h >>conftest.$ac_ext |
| 10057 | cat >>conftest.$ac_ext <<_ACEOF |
| 10058 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10059 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10060 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10061 | #ifdef __cplusplus |
| 10062 | extern "C" |
| 10063 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10064 | /* 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] | 10065 | builtin and then its argument prototype would still apply. */ |
| 10066 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10067 | int |
| 10068 | main () |
| 10069 | { |
| 10070 | socket (); |
| 10071 | ; |
| 10072 | return 0; |
| 10073 | } |
| 10074 | _ACEOF |
| 10075 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10076 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10077 | (eval $ac_link) 2>&5 |
| 10078 | ac_status=$? |
| 10079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10080 | (exit $ac_status); } && |
| 10081 | { ac_try='test -s conftest$ac_exeext' |
| 10082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10083 | (eval $ac_try) 2>&5 |
| 10084 | ac_status=$? |
| 10085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10086 | (exit $ac_status); }; }; then |
| 10087 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10088 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10089 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10090 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10091 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10092 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10093 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10094 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10095 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10096 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10097 | echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 10098 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6 |
| 10099 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10100 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10101 | fi |
| 10102 | # BeOS |
| 10103 | ;; |
| 10104 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 10105 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10106 | echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 10107 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6 |
| 10108 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 10109 | # Check whether --with-libs or --without-libs was given. |
| 10110 | if test "${with_libs+set}" = set; then |
| 10111 | withval="$with_libs" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10112 | |
| 10113 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 10114 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 10115 | LIBS="$withval $LIBS" |
| 10116 | |
| 10117 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10118 | echo "$as_me:$LINENO: result: no" >&5 |
| 10119 | echo "${ECHO_T}no" >&6 |
| 10120 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10121 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10122 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10123 | |
| 10124 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10125 | echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 10126 | echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6 |
| 10127 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10128 | # Check whether --with-signal-module or --without-signal-module was given. |
| 10129 | if test "${with_signal_module+set}" = set; then |
| 10130 | withval="$with_signal_module" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10131 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10132 | fi; |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10133 | |
| 10134 | if test -z "$with_signal_module" |
| 10135 | then with_signal_module="yes" |
| 10136 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10137 | echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 10138 | echo "${ECHO_T}$with_signal_module" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10139 | |
| 10140 | if test "${with_signal_module}" = "yes"; then |
| 10141 | USE_SIGNAL_MODULE="" |
| 10142 | SIGNAL_OBJS="" |
| 10143 | else |
| 10144 | USE_SIGNAL_MODULE="#" |
| 10145 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 10146 | fi |
| 10147 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 10148 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 10149 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10150 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 10151 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10152 | echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 10153 | echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6 |
| 10154 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10155 | |
| 10156 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 10157 | if test "${with_dec_threads+set}" = set; then |
| 10158 | withval="$with_dec_threads" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10159 | |
| 10160 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 10161 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10162 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 10163 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10164 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 10165 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10166 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10167 | echo "$as_me:$LINENO: result: no" >&5 |
| 10168 | echo "${ECHO_T}no" >&6 |
| 10169 | fi; |
| 10170 | |
| 10171 | # Templates for things AC_DEFINEd more than once. |
| 10172 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10173 | |
| 10174 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10175 | |
| 10176 | |
| 10177 | |
| 10178 | |
| 10179 | |
| 10180 | echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 10181 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6 |
| 10182 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10183 | # Check whether --with-threads or --without-threads was given. |
| 10184 | if test "${with_threads+set}" = set; then |
| 10185 | withval="$with_threads" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10186 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10187 | fi; |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10188 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10189 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10190 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10191 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10192 | if test "${with_thread+set}" = set; then |
| 10193 | withval="$with_thread" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10194 | with_threads=$with_thread |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10195 | fi; |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10196 | |
| 10197 | if test -z "$with_threads" |
| 10198 | then with_threads="yes" |
| 10199 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10200 | echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 10201 | echo "${ECHO_T}$with_threads" >&6 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10202 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10203 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10204 | if test "$with_threads" = "no" |
| 10205 | then |
| 10206 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10207 | elif test "$ac_cv_pthread_is_default" = yes |
| 10208 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10209 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10210 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10211 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10212 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10213 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10214 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10215 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10216 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10217 | |
| 10218 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10219 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10220 | elif test "$ac_cv_kpthread" = "yes" |
| 10221 | then |
| 10222 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10223 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 10224 | CXX="$CXX -Kpthread" |
| 10225 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10226 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 10227 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10228 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 10229 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10230 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10231 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10232 | elif test "$ac_cv_kthread" = "yes" |
| 10233 | then |
| 10234 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10235 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 10236 | CXX="$CXX -Kthread" |
| 10237 | fi |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10238 | cat >>confdefs.h <<\_ACEOF |
| 10239 | #define WITH_THREAD 1 |
| 10240 | _ACEOF |
| 10241 | |
| 10242 | posix_threads=yes |
| 10243 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10244 | elif test "$ac_cv_pthread" = "yes" |
| 10245 | then |
| 10246 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10247 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 10248 | CXX="$CXX -pthread" |
| 10249 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10250 | cat >>confdefs.h <<\_ACEOF |
| 10251 | #define WITH_THREAD 1 |
| 10252 | _ACEOF |
| 10253 | |
| 10254 | posix_threads=yes |
| 10255 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10256 | else |
| 10257 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 10258 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 10259 | fi |
| 10260 | if test ! -z "$withval" -a -d "$withval" |
| 10261 | then LDFLAGS="$LDFLAGS -L$withval" |
| 10262 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10263 | |
| 10264 | # According to the POSIX spec, a pthreads implementation must |
| 10265 | # 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] | 10266 | echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 10267 | echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6 |
| 10268 | cat >conftest.$ac_ext <<_ACEOF |
| 10269 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10270 | /* confdefs.h. */ |
| 10271 | _ACEOF |
| 10272 | cat confdefs.h >>conftest.$ac_ext |
| 10273 | cat >>conftest.$ac_ext <<_ACEOF |
| 10274 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10275 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10276 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10277 | #ifdef _POSIX_THREADS |
| 10278 | yes |
| 10279 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10280 | |
| 10281 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10282 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10283 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10284 | unistd_defines_pthreads=yes |
| 10285 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10286 | unistd_defines_pthreads=no |
| 10287 | fi |
| 10288 | rm -f conftest* |
| 10289 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10290 | echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 10291 | echo "${ECHO_T}$unistd_defines_pthreads" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10292 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10293 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10294 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10295 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10296 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10297 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10298 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 10299 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 10300 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10301 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10302 | fi |
| 10303 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 10304 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10305 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10306 | # Is the header compilable? |
| 10307 | echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 10308 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6 |
| 10309 | cat >conftest.$ac_ext <<_ACEOF |
| 10310 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10311 | /* confdefs.h. */ |
| 10312 | _ACEOF |
| 10313 | cat confdefs.h >>conftest.$ac_ext |
| 10314 | cat >>conftest.$ac_ext <<_ACEOF |
| 10315 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10316 | $ac_includes_default |
| 10317 | #include <cthreads.h> |
| 10318 | _ACEOF |
| 10319 | rm -f conftest.$ac_objext |
| 10320 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10321 | (eval $ac_compile) 2>&5 |
| 10322 | ac_status=$? |
| 10323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10324 | (exit $ac_status); } && |
| 10325 | { ac_try='test -s conftest.$ac_objext' |
| 10326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10327 | (eval $ac_try) 2>&5 |
| 10328 | ac_status=$? |
| 10329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10330 | (exit $ac_status); }; }; then |
| 10331 | ac_header_compiler=yes |
| 10332 | else |
| 10333 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10334 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10335 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10336 | ac_header_compiler=no |
| 10337 | fi |
| 10338 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10339 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10340 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10341 | |
| 10342 | # Is the header present? |
| 10343 | echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 10344 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6 |
| 10345 | cat >conftest.$ac_ext <<_ACEOF |
| 10346 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10347 | /* confdefs.h. */ |
| 10348 | _ACEOF |
| 10349 | cat confdefs.h >>conftest.$ac_ext |
| 10350 | cat >>conftest.$ac_ext <<_ACEOF |
| 10351 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10352 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10353 | _ACEOF |
| 10354 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10355 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10356 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10357 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10358 | rm -f conftest.er1 |
| 10359 | cat conftest.err >&5 |
| 10360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10361 | (exit $ac_status); } >/dev/null; then |
| 10362 | if test -s conftest.err; then |
| 10363 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10364 | else |
| 10365 | ac_cpp_err= |
| 10366 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10367 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10368 | ac_cpp_err=yes |
| 10369 | fi |
| 10370 | if test -z "$ac_cpp_err"; then |
| 10371 | ac_header_preproc=yes |
| 10372 | else |
| 10373 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10374 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10375 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10376 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10377 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10378 | rm -f conftest.err conftest.$ac_ext |
| 10379 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10380 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10381 | |
| 10382 | # So? What about this header? |
| 10383 | case $ac_header_compiler:$ac_header_preproc in |
| 10384 | yes:no ) |
| 10385 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10386 | echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10387 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10388 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 10389 | ( |
| 10390 | cat <<\_ASBOX |
| 10391 | ## ------------------------------------ ## |
| 10392 | ## Report this to bug-autoconf@gnu.org. ## |
| 10393 | ## ------------------------------------ ## |
| 10394 | _ASBOX |
| 10395 | ) | |
| 10396 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10397 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10398 | no:yes ) |
| 10399 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 10400 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
| 10401 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 10402 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 10403 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10404 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 10405 | ( |
| 10406 | cat <<\_ASBOX |
| 10407 | ## ------------------------------------ ## |
| 10408 | ## Report this to bug-autoconf@gnu.org. ## |
| 10409 | ## ------------------------------------ ## |
| 10410 | _ASBOX |
| 10411 | ) | |
| 10412 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10413 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10414 | esac |
| 10415 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 10416 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 10417 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10418 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10419 | else |
| 10420 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10421 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10422 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 10423 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
| 10424 | |
| 10425 | fi |
| 10426 | if test $ac_cv_header_cthreads_h = yes; then |
| 10427 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10428 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10429 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10430 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10431 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10432 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10433 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10434 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10435 | |
| 10436 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10437 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10438 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10439 | |
| 10440 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10441 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10442 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10443 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10444 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 10445 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 10446 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 10447 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 10448 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10449 | fi |
| 10450 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 10451 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10452 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10453 | # Is the header compilable? |
| 10454 | echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 10455 | echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6 |
| 10456 | cat >conftest.$ac_ext <<_ACEOF |
| 10457 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10458 | /* confdefs.h. */ |
| 10459 | _ACEOF |
| 10460 | cat confdefs.h >>conftest.$ac_ext |
| 10461 | cat >>conftest.$ac_ext <<_ACEOF |
| 10462 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10463 | $ac_includes_default |
| 10464 | #include <mach/cthreads.h> |
| 10465 | _ACEOF |
| 10466 | rm -f conftest.$ac_objext |
| 10467 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10468 | (eval $ac_compile) 2>&5 |
| 10469 | ac_status=$? |
| 10470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10471 | (exit $ac_status); } && |
| 10472 | { ac_try='test -s conftest.$ac_objext' |
| 10473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10474 | (eval $ac_try) 2>&5 |
| 10475 | ac_status=$? |
| 10476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10477 | (exit $ac_status); }; }; then |
| 10478 | ac_header_compiler=yes |
| 10479 | else |
| 10480 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10481 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10482 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10483 | ac_header_compiler=no |
| 10484 | fi |
| 10485 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10486 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10487 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10488 | |
| 10489 | # Is the header present? |
| 10490 | echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 10491 | echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6 |
| 10492 | cat >conftest.$ac_ext <<_ACEOF |
| 10493 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10494 | /* confdefs.h. */ |
| 10495 | _ACEOF |
| 10496 | cat confdefs.h >>conftest.$ac_ext |
| 10497 | cat >>conftest.$ac_ext <<_ACEOF |
| 10498 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10499 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10500 | _ACEOF |
| 10501 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10502 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10503 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10504 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10505 | rm -f conftest.er1 |
| 10506 | cat conftest.err >&5 |
| 10507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10508 | (exit $ac_status); } >/dev/null; then |
| 10509 | if test -s conftest.err; then |
| 10510 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10511 | else |
| 10512 | ac_cpp_err= |
| 10513 | fi |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10514 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10515 | ac_cpp_err=yes |
| 10516 | fi |
| 10517 | if test -z "$ac_cpp_err"; then |
| 10518 | ac_header_preproc=yes |
| 10519 | else |
| 10520 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10521 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10522 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10523 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10524 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10525 | rm -f conftest.err conftest.$ac_ext |
| 10526 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10527 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10528 | |
| 10529 | # So? What about this header? |
| 10530 | case $ac_header_compiler:$ac_header_preproc in |
| 10531 | yes:no ) |
| 10532 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10533 | echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10534 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10535 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 10536 | ( |
| 10537 | cat <<\_ASBOX |
| 10538 | ## ------------------------------------ ## |
| 10539 | ## Report this to bug-autoconf@gnu.org. ## |
| 10540 | ## ------------------------------------ ## |
| 10541 | _ASBOX |
| 10542 | ) | |
| 10543 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10544 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10545 | no:yes ) |
| 10546 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 10547 | echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
| 10548 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 10549 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 10550 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10551 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 10552 | ( |
| 10553 | cat <<\_ASBOX |
| 10554 | ## ------------------------------------ ## |
| 10555 | ## Report this to bug-autoconf@gnu.org. ## |
| 10556 | ## ------------------------------------ ## |
| 10557 | _ASBOX |
| 10558 | ) | |
| 10559 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10560 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10561 | esac |
| 10562 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 10563 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 10564 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 10565 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10566 | else |
| 10567 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10568 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10569 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 10570 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
| 10571 | |
| 10572 | fi |
| 10573 | if test $ac_cv_header_mach_cthreads_h = yes; then |
| 10574 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10575 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10576 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10577 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10578 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10579 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10580 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10581 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10582 | |
| 10583 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10584 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10585 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10586 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10587 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10588 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10589 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10590 | echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 10591 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6 |
| 10592 | |
| 10593 | # Check whether --with-pth or --without-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10594 | if test "${with_pth+set}" = set; then |
| 10595 | withval="$with_pth" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10596 | echo "$as_me:$LINENO: result: $withval" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10597 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10598 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10599 | #define WITH_THREAD 1 |
| 10600 | _ACEOF |
| 10601 | |
| 10602 | |
| 10603 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10604 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10605 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10606 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10607 | LIBS="-lpth $LIBS" |
| 10608 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10609 | else |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10610 | echo "$as_me:$LINENO: result: no" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10611 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10612 | |
| 10613 | # Just looking for pthread_create in libpthread is not enough: |
| 10614 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 10615 | # So we really have to include pthread.h, and then link. |
| 10616 | _libs=$LIBS |
| 10617 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10618 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 10619 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| 10620 | cat >conftest.$ac_ext <<_ACEOF |
| 10621 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10622 | /* confdefs.h. */ |
| 10623 | _ACEOF |
| 10624 | cat confdefs.h >>conftest.$ac_ext |
| 10625 | cat >>conftest.$ac_ext <<_ACEOF |
| 10626 | /* end confdefs.h. */ |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10627 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10628 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10629 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10630 | int |
| 10631 | main () |
| 10632 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10633 | |
| 10634 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10635 | ; |
| 10636 | return 0; |
| 10637 | } |
| 10638 | _ACEOF |
| 10639 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10640 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10641 | (eval $ac_link) 2>&5 |
| 10642 | ac_status=$? |
| 10643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10644 | (exit $ac_status); } && |
| 10645 | { ac_try='test -s conftest$ac_exeext' |
| 10646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10647 | (eval $ac_try) 2>&5 |
| 10648 | ac_status=$? |
| 10649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10650 | (exit $ac_status); }; }; then |
| 10651 | |
| 10652 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10653 | echo "${ECHO_T}yes" >&6 |
| 10654 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10655 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10656 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10657 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10658 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10659 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10660 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10661 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10662 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10663 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10664 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10665 | LIBS=$_libs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10666 | echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 10667 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6 |
| 10668 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
| 10669 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10670 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10671 | cat >conftest.$ac_ext <<_ACEOF |
| 10672 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10673 | /* confdefs.h. */ |
| 10674 | _ACEOF |
| 10675 | cat confdefs.h >>conftest.$ac_ext |
| 10676 | cat >>conftest.$ac_ext <<_ACEOF |
| 10677 | /* end confdefs.h. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10678 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10679 | which can conflict with char pthread_detach (); below. |
| 10680 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 10681 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 10682 | including <limits.h> includes <sys/time.h> and causes problems |
| 10683 | checking for functions defined therein. */ |
| 10684 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10685 | # include <limits.h> |
| 10686 | #else |
| 10687 | # include <assert.h> |
| 10688 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10689 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10690 | #ifdef __cplusplus |
| 10691 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10692 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10693 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10694 | /* 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] | 10695 | builtin and then its argument prototype would still apply. */ |
| 10696 | char pthread_detach (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10697 | /* The GNU C library defines this for functions which it implements |
| 10698 | to always fail with ENOSYS. Some functions are actually named |
| 10699 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 10700 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10701 | choke me |
| 10702 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10703 | char (*f) () = pthread_detach; |
| 10704 | #endif |
| 10705 | #ifdef __cplusplus |
| 10706 | } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10707 | #endif |
| 10708 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10709 | int |
| 10710 | main () |
| 10711 | { |
| 10712 | return f != pthread_detach; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10713 | ; |
| 10714 | return 0; |
| 10715 | } |
| 10716 | _ACEOF |
| 10717 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10718 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10719 | (eval $ac_link) 2>&5 |
| 10720 | ac_status=$? |
| 10721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10722 | (exit $ac_status); } && |
| 10723 | { ac_try='test -s conftest$ac_exeext' |
| 10724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10725 | (eval $ac_try) 2>&5 |
| 10726 | ac_status=$? |
| 10727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10728 | (exit $ac_status); }; }; then |
| 10729 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10730 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10731 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10732 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10733 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10734 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10735 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10736 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10737 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10738 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 10739 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6 |
| 10740 | if test $ac_cv_func_pthread_detach = yes; then |
| 10741 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10742 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10743 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10744 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10745 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10746 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10747 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10748 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10749 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10750 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 10751 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 10752 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10753 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10754 | fi |
| 10755 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 10756 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 10757 | else |
| 10758 | # Is the header compilable? |
| 10759 | echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 10760 | echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6 |
| 10761 | cat >conftest.$ac_ext <<_ACEOF |
| 10762 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10763 | /* confdefs.h. */ |
| 10764 | _ACEOF |
| 10765 | cat confdefs.h >>conftest.$ac_ext |
| 10766 | cat >>conftest.$ac_ext <<_ACEOF |
| 10767 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10768 | $ac_includes_default |
| 10769 | #include <atheos/threads.h> |
| 10770 | _ACEOF |
| 10771 | rm -f conftest.$ac_objext |
| 10772 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10773 | (eval $ac_compile) 2>&5 |
| 10774 | ac_status=$? |
| 10775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10776 | (exit $ac_status); } && |
| 10777 | { ac_try='test -s conftest.$ac_objext' |
| 10778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10779 | (eval $ac_try) 2>&5 |
| 10780 | ac_status=$? |
| 10781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10782 | (exit $ac_status); }; }; then |
| 10783 | ac_header_compiler=yes |
| 10784 | else |
| 10785 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10786 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10787 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10788 | ac_header_compiler=no |
| 10789 | fi |
| 10790 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10791 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10792 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10793 | |
| 10794 | # Is the header present? |
| 10795 | echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 10796 | echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6 |
| 10797 | cat >conftest.$ac_ext <<_ACEOF |
| 10798 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10799 | /* confdefs.h. */ |
| 10800 | _ACEOF |
| 10801 | cat confdefs.h >>conftest.$ac_ext |
| 10802 | cat >>conftest.$ac_ext <<_ACEOF |
| 10803 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10804 | #include <atheos/threads.h> |
| 10805 | _ACEOF |
| 10806 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10807 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10808 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10809 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10810 | rm -f conftest.er1 |
| 10811 | cat conftest.err >&5 |
| 10812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10813 | (exit $ac_status); } >/dev/null; then |
| 10814 | if test -s conftest.err; then |
| 10815 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10816 | else |
| 10817 | ac_cpp_err= |
| 10818 | fi |
| 10819 | else |
| 10820 | ac_cpp_err=yes |
| 10821 | fi |
| 10822 | if test -z "$ac_cpp_err"; then |
| 10823 | ac_header_preproc=yes |
| 10824 | else |
| 10825 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10826 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10827 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10828 | ac_header_preproc=no |
| 10829 | fi |
| 10830 | rm -f conftest.err conftest.$ac_ext |
| 10831 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10832 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10833 | |
| 10834 | # So? What about this header? |
| 10835 | case $ac_header_compiler:$ac_header_preproc in |
| 10836 | yes:no ) |
| 10837 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10838 | echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10839 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10840 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;} |
| 10841 | ( |
| 10842 | cat <<\_ASBOX |
| 10843 | ## ------------------------------------ ## |
| 10844 | ## Report this to bug-autoconf@gnu.org. ## |
| 10845 | ## ------------------------------------ ## |
| 10846 | _ASBOX |
| 10847 | ) | |
| 10848 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10849 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10850 | no:yes ) |
| 10851 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 10852 | echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;} |
| 10853 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 10854 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 10855 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10856 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;} |
| 10857 | ( |
| 10858 | cat <<\_ASBOX |
| 10859 | ## ------------------------------------ ## |
| 10860 | ## Report this to bug-autoconf@gnu.org. ## |
| 10861 | ## ------------------------------------ ## |
| 10862 | _ASBOX |
| 10863 | ) | |
| 10864 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10865 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10866 | esac |
| 10867 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 10868 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 10869 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10870 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10871 | else |
| 10872 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 10873 | fi |
| 10874 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 10875 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 10876 | |
| 10877 | fi |
| 10878 | if test $ac_cv_header_atheos_threads_h = yes; then |
| 10879 | cat >>confdefs.h <<\_ACEOF |
| 10880 | #define WITH_THREAD 1 |
| 10881 | _ACEOF |
| 10882 | |
| 10883 | |
| 10884 | cat >>confdefs.h <<\_ACEOF |
| 10885 | #define ATHEOS_THREADS 1 |
| 10886 | _ACEOF |
| 10887 | |
| 10888 | THREADOBJ="Python/thread.o" |
| 10889 | else |
| 10890 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10891 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10892 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 10893 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 10894 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10895 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10896 | fi |
| 10897 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 10898 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10899 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10900 | # Is the header compilable? |
| 10901 | echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 10902 | echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6 |
| 10903 | cat >conftest.$ac_ext <<_ACEOF |
| 10904 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10905 | /* confdefs.h. */ |
| 10906 | _ACEOF |
| 10907 | cat confdefs.h >>conftest.$ac_ext |
| 10908 | cat >>conftest.$ac_ext <<_ACEOF |
| 10909 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10910 | $ac_includes_default |
| 10911 | #include <kernel/OS.h> |
| 10912 | _ACEOF |
| 10913 | rm -f conftest.$ac_objext |
| 10914 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10915 | (eval $ac_compile) 2>&5 |
| 10916 | ac_status=$? |
| 10917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10918 | (exit $ac_status); } && |
| 10919 | { ac_try='test -s conftest.$ac_objext' |
| 10920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10921 | (eval $ac_try) 2>&5 |
| 10922 | ac_status=$? |
| 10923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10924 | (exit $ac_status); }; }; then |
| 10925 | ac_header_compiler=yes |
| 10926 | else |
| 10927 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10928 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10929 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10930 | ac_header_compiler=no |
| 10931 | fi |
| 10932 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10933 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10934 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10935 | |
| 10936 | # Is the header present? |
| 10937 | echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 10938 | echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6 |
| 10939 | cat >conftest.$ac_ext <<_ACEOF |
| 10940 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10941 | /* confdefs.h. */ |
| 10942 | _ACEOF |
| 10943 | cat confdefs.h >>conftest.$ac_ext |
| 10944 | cat >>conftest.$ac_ext <<_ACEOF |
| 10945 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10946 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10947 | _ACEOF |
| 10948 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10949 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10950 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10951 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10952 | rm -f conftest.er1 |
| 10953 | cat conftest.err >&5 |
| 10954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10955 | (exit $ac_status); } >/dev/null; then |
| 10956 | if test -s conftest.err; then |
| 10957 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10958 | else |
| 10959 | ac_cpp_err= |
| 10960 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10961 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10962 | ac_cpp_err=yes |
| 10963 | fi |
| 10964 | if test -z "$ac_cpp_err"; then |
| 10965 | ac_header_preproc=yes |
| 10966 | else |
| 10967 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10968 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10969 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10970 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10971 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10972 | rm -f conftest.err conftest.$ac_ext |
| 10973 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10974 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10975 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10976 | # So? What about this header? |
| 10977 | case $ac_header_compiler:$ac_header_preproc in |
| 10978 | yes:no ) |
| 10979 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10980 | echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10981 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10982 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;} |
| 10983 | ( |
| 10984 | cat <<\_ASBOX |
| 10985 | ## ------------------------------------ ## |
| 10986 | ## Report this to bug-autoconf@gnu.org. ## |
| 10987 | ## ------------------------------------ ## |
| 10988 | _ASBOX |
| 10989 | ) | |
| 10990 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10991 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10992 | no:yes ) |
| 10993 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 10994 | echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;} |
| 10995 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 10996 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 10997 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10998 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;} |
| 10999 | ( |
| 11000 | cat <<\_ASBOX |
| 11001 | ## ------------------------------------ ## |
| 11002 | ## Report this to bug-autoconf@gnu.org. ## |
| 11003 | ## ------------------------------------ ## |
| 11004 | _ASBOX |
| 11005 | ) | |
| 11006 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11007 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11008 | esac |
| 11009 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 11010 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 11011 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 11012 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11013 | else |
| 11014 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 11015 | fi |
| 11016 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 11017 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
| 11018 | |
| 11019 | fi |
| 11020 | if test $ac_cv_header_kernel_OS_h = yes; then |
| 11021 | cat >>confdefs.h <<\_ACEOF |
| 11022 | #define WITH_THREAD 1 |
| 11023 | _ACEOF |
| 11024 | |
| 11025 | |
| 11026 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11027 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11028 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11029 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11030 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11031 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11032 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11033 | echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 11034 | echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6 |
| 11035 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
| 11036 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11037 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11038 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11039 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11040 | cat >conftest.$ac_ext <<_ACEOF |
| 11041 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11042 | /* confdefs.h. */ |
| 11043 | _ACEOF |
| 11044 | cat confdefs.h >>conftest.$ac_ext |
| 11045 | cat >>conftest.$ac_ext <<_ACEOF |
| 11046 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11047 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11048 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11049 | #ifdef __cplusplus |
| 11050 | extern "C" |
| 11051 | #endif |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11052 | /* 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] | 11053 | builtin and then its argument prototype would still apply. */ |
| 11054 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11055 | int |
| 11056 | main () |
| 11057 | { |
| 11058 | pthread_create (); |
| 11059 | ; |
| 11060 | return 0; |
| 11061 | } |
| 11062 | _ACEOF |
| 11063 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11064 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11065 | (eval $ac_link) 2>&5 |
| 11066 | ac_status=$? |
| 11067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11068 | (exit $ac_status); } && |
| 11069 | { ac_try='test -s conftest$ac_exeext' |
| 11070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11071 | (eval $ac_try) 2>&5 |
| 11072 | ac_status=$? |
| 11073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11074 | (exit $ac_status); }; }; then |
| 11075 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11076 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11077 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11078 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11079 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11080 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11081 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11082 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11083 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11084 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11085 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 11086 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6 |
| 11087 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
| 11088 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11089 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11090 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11091 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11092 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11093 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11094 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11095 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11096 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11097 | echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 11098 | echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6 |
| 11099 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
| 11100 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11101 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11102 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11103 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11104 | cat >conftest.$ac_ext <<_ACEOF |
| 11105 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11106 | /* confdefs.h. */ |
| 11107 | _ACEOF |
| 11108 | cat confdefs.h >>conftest.$ac_ext |
| 11109 | cat >>conftest.$ac_ext <<_ACEOF |
| 11110 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11111 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11112 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11113 | #ifdef __cplusplus |
| 11114 | extern "C" |
| 11115 | #endif |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11116 | /* 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] | 11117 | builtin and then its argument prototype would still apply. */ |
| 11118 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11119 | int |
| 11120 | main () |
| 11121 | { |
| 11122 | pthread_create (); |
| 11123 | ; |
| 11124 | return 0; |
| 11125 | } |
| 11126 | _ACEOF |
| 11127 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11128 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11129 | (eval $ac_link) 2>&5 |
| 11130 | ac_status=$? |
| 11131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11132 | (exit $ac_status); } && |
| 11133 | { ac_try='test -s conftest$ac_exeext' |
| 11134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11135 | (eval $ac_try) 2>&5 |
| 11136 | ac_status=$? |
| 11137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11138 | (exit $ac_status); }; }; then |
| 11139 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11140 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11141 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11142 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11143 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11144 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11145 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11146 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11147 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11148 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11149 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 11150 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6 |
| 11151 | if test $ac_cv_lib_c_r_pthread_create = yes; then |
| 11152 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11153 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11154 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11155 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11156 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11157 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11158 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11159 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11160 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11161 | echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 11162 | echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6 |
| 11163 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
| 11164 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11165 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11166 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11167 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11168 | cat >conftest.$ac_ext <<_ACEOF |
| 11169 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11170 | /* confdefs.h. */ |
| 11171 | _ACEOF |
| 11172 | cat confdefs.h >>conftest.$ac_ext |
| 11173 | cat >>conftest.$ac_ext <<_ACEOF |
| 11174 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11175 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11176 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11177 | #ifdef __cplusplus |
| 11178 | extern "C" |
| 11179 | #endif |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11180 | /* 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] | 11181 | builtin and then its argument prototype would still apply. */ |
| 11182 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11183 | int |
| 11184 | main () |
| 11185 | { |
| 11186 | __pthread_create_system (); |
| 11187 | ; |
| 11188 | return 0; |
| 11189 | } |
| 11190 | _ACEOF |
| 11191 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11192 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11193 | (eval $ac_link) 2>&5 |
| 11194 | ac_status=$? |
| 11195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11196 | (exit $ac_status); } && |
| 11197 | { ac_try='test -s conftest$ac_exeext' |
| 11198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11199 | (eval $ac_try) 2>&5 |
| 11200 | ac_status=$? |
| 11201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11202 | (exit $ac_status); }; }; then |
| 11203 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11204 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11205 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11206 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11207 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11208 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11209 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11210 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11211 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11212 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11213 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 11214 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6 |
| 11215 | if test $ac_cv_lib_pthread___pthread_create_system = yes; then |
| 11216 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11217 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11218 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11219 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11220 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11221 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11222 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11223 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11224 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11225 | echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 11226 | echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6 |
| 11227 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
| 11228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11229 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11230 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11231 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11232 | cat >conftest.$ac_ext <<_ACEOF |
| 11233 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11234 | /* confdefs.h. */ |
| 11235 | _ACEOF |
| 11236 | cat confdefs.h >>conftest.$ac_ext |
| 11237 | cat >>conftest.$ac_ext <<_ACEOF |
| 11238 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11239 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11240 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11241 | #ifdef __cplusplus |
| 11242 | extern "C" |
| 11243 | #endif |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11244 | /* 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] | 11245 | builtin and then its argument prototype would still apply. */ |
| 11246 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11247 | int |
| 11248 | main () |
| 11249 | { |
| 11250 | pthread_create (); |
| 11251 | ; |
| 11252 | return 0; |
| 11253 | } |
| 11254 | _ACEOF |
| 11255 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11256 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11257 | (eval $ac_link) 2>&5 |
| 11258 | ac_status=$? |
| 11259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11260 | (exit $ac_status); } && |
| 11261 | { ac_try='test -s conftest$ac_exeext' |
| 11262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11263 | (eval $ac_try) 2>&5 |
| 11264 | ac_status=$? |
| 11265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11266 | (exit $ac_status); }; }; then |
| 11267 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11268 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11269 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11270 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11271 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11272 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11273 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11274 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11275 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11276 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11277 | echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 11278 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6 |
| 11279 | if test $ac_cv_lib_cma_pthread_create = yes; then |
| 11280 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11281 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11282 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11283 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11284 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11285 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11286 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11287 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 11288 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11289 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 11290 | fi |
| 11291 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11292 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11293 | fi |
| 11294 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 11295 | fi |
| 11296 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11297 | fi |
| 11298 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11299 | fi |
| 11300 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11301 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11302 | fi |
| 11303 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11304 | |
| 11305 | fi |
| 11306 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11307 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11308 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11309 | fi; |
| 11310 | fi |
| 11311 | |
| 11312 | |
| 11313 | fi |
| 11314 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11315 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11316 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11317 | echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 11318 | echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6 |
| 11319 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
| 11320 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11321 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11322 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11323 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11324 | cat >conftest.$ac_ext <<_ACEOF |
| 11325 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11326 | /* confdefs.h. */ |
| 11327 | _ACEOF |
| 11328 | cat confdefs.h >>conftest.$ac_ext |
| 11329 | cat >>conftest.$ac_ext <<_ACEOF |
| 11330 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11331 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11332 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11333 | #ifdef __cplusplus |
| 11334 | extern "C" |
| 11335 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11336 | /* 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] | 11337 | builtin and then its argument prototype would still apply. */ |
| 11338 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11339 | int |
| 11340 | main () |
| 11341 | { |
| 11342 | usconfig (); |
| 11343 | ; |
| 11344 | return 0; |
| 11345 | } |
| 11346 | _ACEOF |
| 11347 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11348 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11349 | (eval $ac_link) 2>&5 |
| 11350 | ac_status=$? |
| 11351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11352 | (exit $ac_status); } && |
| 11353 | { ac_try='test -s conftest$ac_exeext' |
| 11354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11355 | (eval $ac_try) 2>&5 |
| 11356 | ac_status=$? |
| 11357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11358 | (exit $ac_status); }; }; then |
| 11359 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11360 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11361 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11362 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11363 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11364 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11365 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11366 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11367 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11368 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11369 | echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 11370 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6 |
| 11371 | if test $ac_cv_lib_mpc_usconfig = yes; then |
| 11372 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11373 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11374 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11375 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11376 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11377 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11378 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11379 | fi |
| 11380 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11381 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 11382 | if test "$posix_threads" != "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11383 | echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 11384 | echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6 |
| 11385 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
| 11386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11387 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11388 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11389 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11390 | cat >conftest.$ac_ext <<_ACEOF |
| 11391 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11392 | /* confdefs.h. */ |
| 11393 | _ACEOF |
| 11394 | cat confdefs.h >>conftest.$ac_ext |
| 11395 | cat >>conftest.$ac_ext <<_ACEOF |
| 11396 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11397 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11398 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11399 | #ifdef __cplusplus |
| 11400 | extern "C" |
| 11401 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11402 | /* 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] | 11403 | builtin and then its argument prototype would still apply. */ |
| 11404 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11405 | int |
| 11406 | main () |
| 11407 | { |
| 11408 | thr_create (); |
| 11409 | ; |
| 11410 | return 0; |
| 11411 | } |
| 11412 | _ACEOF |
| 11413 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11414 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11415 | (eval $ac_link) 2>&5 |
| 11416 | ac_status=$? |
| 11417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11418 | (exit $ac_status); } && |
| 11419 | { ac_try='test -s conftest$ac_exeext' |
| 11420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11421 | (eval $ac_try) 2>&5 |
| 11422 | ac_status=$? |
| 11423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11424 | (exit $ac_status); }; }; then |
| 11425 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11426 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11427 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11428 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11429 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11430 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11431 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11432 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11433 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11434 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11435 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 11436 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6 |
| 11437 | if test $ac_cv_lib_thread_thr_create = yes; then |
| 11438 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11439 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11440 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11441 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11442 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11443 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11444 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11445 | fi |
| 11446 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11447 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11448 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11449 | if test "$USE_THREAD_MODULE" != "#" |
| 11450 | then |
| 11451 | # If the above checks didn't disable threads, (at least) OSF1 |
| 11452 | # needs this '-threads' argument during linking. |
| 11453 | case $ac_sys_system in |
| 11454 | OSF1) LDLAST=-threads;; |
| 11455 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 11456 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11457 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 11458 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11459 | if test "$posix_threads" = "yes"; then |
| 11460 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 11461 | |
| 11462 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11463 | #define _POSIX_THREADS 1 |
| 11464 | _ACEOF |
| 11465 | |
| 11466 | fi |
| 11467 | |
| 11468 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 11469 | case $ac_sys_system/$ac_sys_release in |
| 11470 | SunOS/5.6) |
| 11471 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 11472 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 11473 | _ACEOF |
| 11474 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11475 | ;; |
| 11476 | SunOS/5.8) |
| 11477 | cat >>confdefs.h <<\_ACEOF |
| 11478 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 11479 | _ACEOF |
| 11480 | |
| 11481 | ;; |
| 11482 | esac |
| 11483 | |
| 11484 | echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 11485 | echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6 |
| 11486 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
| 11487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11488 | else |
| 11489 | if test "$cross_compiling" = yes; then |
| 11490 | ac_cv_pthread_system_supported=no |
| 11491 | else |
| 11492 | cat >conftest.$ac_ext <<_ACEOF |
| 11493 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11494 | /* confdefs.h. */ |
| 11495 | _ACEOF |
| 11496 | cat confdefs.h >>conftest.$ac_ext |
| 11497 | cat >>conftest.$ac_ext <<_ACEOF |
| 11498 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11499 | #include <pthread.h> |
| 11500 | void *foo(void *parm) { |
| 11501 | return NULL; |
| 11502 | } |
| 11503 | main() { |
| 11504 | pthread_attr_t attr; |
| 11505 | pthread_t id; |
| 11506 | if (pthread_attr_init(&attr)) exit(-1); |
| 11507 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 11508 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 11509 | exit(0); |
| 11510 | } |
| 11511 | _ACEOF |
| 11512 | rm -f conftest$ac_exeext |
| 11513 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11514 | (eval $ac_link) 2>&5 |
| 11515 | ac_status=$? |
| 11516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11517 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11519 | (eval $ac_try) 2>&5 |
| 11520 | ac_status=$? |
| 11521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11522 | (exit $ac_status); }; }; then |
| 11523 | ac_cv_pthread_system_supported=yes |
| 11524 | else |
| 11525 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11526 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11527 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11528 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11529 | ( exit $ac_status ) |
| 11530 | ac_cv_pthread_system_supported=no |
| 11531 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11532 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11533 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 11534 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11535 | fi |
| 11536 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11537 | echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 11538 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6 |
| 11539 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 11540 | |
| 11541 | cat >>confdefs.h <<\_ACEOF |
| 11542 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
| 11543 | _ACEOF |
| 11544 | |
| 11545 | fi |
| 11546 | |
| 11547 | for ac_func in pthread_sigmask |
| 11548 | do |
| 11549 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11550 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11551 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11552 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11554 | else |
| 11555 | cat >conftest.$ac_ext <<_ACEOF |
| 11556 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11557 | /* confdefs.h. */ |
| 11558 | _ACEOF |
| 11559 | cat confdefs.h >>conftest.$ac_ext |
| 11560 | cat >>conftest.$ac_ext <<_ACEOF |
| 11561 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11562 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11563 | which can conflict with char $ac_func (); below. |
| 11564 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 11565 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 11566 | including <limits.h> includes <sys/time.h> and causes problems |
| 11567 | checking for functions defined therein. */ |
| 11568 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11569 | # include <limits.h> |
| 11570 | #else |
| 11571 | # include <assert.h> |
| 11572 | #endif |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11573 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11574 | #ifdef __cplusplus |
| 11575 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11576 | { |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11577 | #endif |
| 11578 | /* We use char because int might match the return type of a gcc2 |
| 11579 | builtin and then its argument prototype would still apply. */ |
| 11580 | char $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11581 | /* The GNU C library defines this for functions which it implements |
| 11582 | to always fail with ENOSYS. Some functions are actually named |
| 11583 | something starting with __ and the normal name is an alias. */ |
| 11584 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11585 | choke me |
| 11586 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11587 | char (*f) () = $ac_func; |
| 11588 | #endif |
| 11589 | #ifdef __cplusplus |
| 11590 | } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11591 | #endif |
| 11592 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11593 | int |
| 11594 | main () |
| 11595 | { |
| 11596 | return f != $ac_func; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11597 | ; |
| 11598 | return 0; |
| 11599 | } |
| 11600 | _ACEOF |
| 11601 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11602 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11603 | (eval $ac_link) 2>&5 |
| 11604 | ac_status=$? |
| 11605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11606 | (exit $ac_status); } && |
| 11607 | { ac_try='test -s conftest$ac_exeext' |
| 11608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11609 | (eval $ac_try) 2>&5 |
| 11610 | ac_status=$? |
| 11611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11612 | (exit $ac_status); }; }; then |
| 11613 | eval "$as_ac_var=yes" |
| 11614 | else |
| 11615 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11616 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11617 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11618 | eval "$as_ac_var=no" |
| 11619 | fi |
| 11620 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11621 | fi |
| 11622 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11623 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11624 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11625 | cat >>confdefs.h <<_ACEOF |
| 11626 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11627 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 11628 | case $ac_sys_system in |
| 11629 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11630 | |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 11631 | cat >>confdefs.h <<\_ACEOF |
| 11632 | #define HAVE_BROKEN_PTHREAD_SIGMASK 1 |
| 11633 | _ACEOF |
| 11634 | |
| 11635 | ;; |
| 11636 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11637 | fi |
| 11638 | done |
| 11639 | |
| 11640 | fi |
| 11641 | |
| 11642 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11643 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11644 | |
| 11645 | |
| 11646 | echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 11647 | 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] | 11648 | # Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 11649 | if test "${enable_ipv6+set}" = set; then |
| 11650 | enableval="$enable_ipv6" |
| 11651 | case "$enableval" in |
| 11652 | no) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11653 | echo "$as_me:$LINENO: result: no" >&5 |
| 11654 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11655 | ipv6=no |
| 11656 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11657 | *) echo "$as_me:$LINENO: result: yes" >&5 |
| 11658 | echo "${ECHO_T}yes" >&6 |
| 11659 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11660 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11661 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11662 | |
| 11663 | ipv6=yes |
| 11664 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11665 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11666 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11667 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11668 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11669 | echo "$as_me:$LINENO: result: no" >&5 |
| 11670 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11671 | ipv6=no |
| 11672 | |
| 11673 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11674 | cat >conftest.$ac_ext <<_ACEOF |
| 11675 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11676 | /* confdefs.h. */ |
| 11677 | _ACEOF |
| 11678 | cat confdefs.h >>conftest.$ac_ext |
| 11679 | cat >>conftest.$ac_ext <<_ACEOF |
| 11680 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11681 | /* AF_INET6 available check */ |
| 11682 | #include <sys/types.h> |
| 11683 | #include <sys/socket.h> |
| 11684 | main() |
| 11685 | { |
| 11686 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 11687 | exit(1); |
| 11688 | else |
| 11689 | exit(0); |
| 11690 | } |
| 11691 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11692 | _ACEOF |
| 11693 | rm -f conftest$ac_exeext |
| 11694 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11695 | (eval $ac_link) 2>&5 |
| 11696 | ac_status=$? |
| 11697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11698 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11700 | (eval $ac_try) 2>&5 |
| 11701 | ac_status=$? |
| 11702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11703 | (exit $ac_status); }; }; then |
| 11704 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11705 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11706 | ipv6=yes |
| 11707 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11708 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11709 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11710 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11711 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11712 | ( exit $ac_status ) |
| 11713 | echo "$as_me:$LINENO: result: no" >&5 |
| 11714 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11715 | ipv6=no |
| 11716 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11717 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11718 | fi |
| 11719 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11720 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11721 | echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 11722 | echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6 |
| 11723 | cat >conftest.$ac_ext <<_ACEOF |
| 11724 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11725 | /* confdefs.h. */ |
| 11726 | _ACEOF |
| 11727 | cat confdefs.h >>conftest.$ac_ext |
| 11728 | cat >>conftest.$ac_ext <<_ACEOF |
| 11729 | /* end confdefs.h. */ |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11730 | #include <sys/types.h> |
| 11731 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11732 | int |
| 11733 | main () |
| 11734 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11735 | struct sockaddr_in6 x; |
| 11736 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11737 | ; |
| 11738 | return 0; |
| 11739 | } |
| 11740 | _ACEOF |
| 11741 | rm -f conftest.$ac_objext |
| 11742 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11743 | (eval $ac_compile) 2>&5 |
| 11744 | ac_status=$? |
| 11745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11746 | (exit $ac_status); } && |
| 11747 | { ac_try='test -s conftest.$ac_objext' |
| 11748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11749 | (eval $ac_try) 2>&5 |
| 11750 | ac_status=$? |
| 11751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11752 | (exit $ac_status); }; }; then |
| 11753 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11754 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11755 | ipv6=yes |
| 11756 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11757 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11758 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11759 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11760 | echo "$as_me:$LINENO: result: no" >&5 |
| 11761 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11762 | ipv6=no |
| 11763 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11764 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11765 | fi |
| 11766 | |
| 11767 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11768 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11769 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11770 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11771 | |
| 11772 | fi |
| 11773 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11774 | fi; |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11775 | |
| 11776 | ipv6type=unknown |
| 11777 | ipv6lib=none |
| 11778 | ipv6trylibc=no |
| 11779 | |
| 11780 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11781 | echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 11782 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 11783 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 11784 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11785 | case $i in |
| 11786 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11787 | cat >conftest.$ac_ext <<_ACEOF |
| 11788 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11789 | /* confdefs.h. */ |
| 11790 | _ACEOF |
| 11791 | cat confdefs.h >>conftest.$ac_ext |
| 11792 | cat >>conftest.$ac_ext <<_ACEOF |
| 11793 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11794 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11795 | #include <netinet/in.h> |
| 11796 | #ifdef IPV6_INRIA_VERSION |
| 11797 | yes |
| 11798 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11799 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11800 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11801 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11802 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11803 | fi |
| 11804 | rm -f conftest* |
| 11805 | |
| 11806 | ;; |
| 11807 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11808 | cat >conftest.$ac_ext <<_ACEOF |
| 11809 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11810 | /* confdefs.h. */ |
| 11811 | _ACEOF |
| 11812 | cat confdefs.h >>conftest.$ac_ext |
| 11813 | cat >>conftest.$ac_ext <<_ACEOF |
| 11814 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11815 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11816 | #include <netinet/in.h> |
| 11817 | #ifdef __KAME__ |
| 11818 | yes |
| 11819 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11820 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11821 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11822 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11823 | ipv6type=$i; |
| 11824 | ipv6lib=inet6 |
| 11825 | ipv6libdir=/usr/local/v6/lib |
| 11826 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11827 | fi |
| 11828 | rm -f conftest* |
| 11829 | |
| 11830 | ;; |
| 11831 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11832 | cat >conftest.$ac_ext <<_ACEOF |
| 11833 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11834 | /* confdefs.h. */ |
| 11835 | _ACEOF |
| 11836 | cat confdefs.h >>conftest.$ac_ext |
| 11837 | cat >>conftest.$ac_ext <<_ACEOF |
| 11838 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11839 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11840 | #include <features.h> |
| 11841 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 11842 | yes |
| 11843 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11844 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11845 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11846 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11847 | ipv6type=$i; |
| 11848 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11849 | fi |
| 11850 | rm -f conftest* |
| 11851 | |
| 11852 | ;; |
| 11853 | linux-inet6) |
| 11854 | if test -d /usr/inet6; then |
| 11855 | ipv6type=$i |
| 11856 | ipv6lib=inet6 |
| 11857 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 11858 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11859 | fi |
| 11860 | ;; |
| 11861 | solaris) |
| 11862 | if test -f /etc/netconfig; then |
| 11863 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 11864 | ipv6type=$i |
| 11865 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11866 | fi |
| 11867 | fi |
| 11868 | ;; |
| 11869 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11870 | cat >conftest.$ac_ext <<_ACEOF |
| 11871 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11872 | /* confdefs.h. */ |
| 11873 | _ACEOF |
| 11874 | cat confdefs.h >>conftest.$ac_ext |
| 11875 | cat >>conftest.$ac_ext <<_ACEOF |
| 11876 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11877 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11878 | #include <sys/param.h> |
| 11879 | #ifdef _TOSHIBA_INET6 |
| 11880 | yes |
| 11881 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11882 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11883 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11884 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11885 | ipv6type=$i; |
| 11886 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11887 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11888 | fi |
| 11889 | rm -f conftest* |
| 11890 | |
| 11891 | ;; |
| 11892 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11893 | cat >conftest.$ac_ext <<_ACEOF |
| 11894 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11895 | /* confdefs.h. */ |
| 11896 | _ACEOF |
| 11897 | cat confdefs.h >>conftest.$ac_ext |
| 11898 | cat >>conftest.$ac_ext <<_ACEOF |
| 11899 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11900 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11901 | #include </usr/local/v6/include/sys/v6config.h> |
| 11902 | #ifdef __V6D__ |
| 11903 | yes |
| 11904 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11905 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11906 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11907 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11908 | ipv6type=$i; |
| 11909 | ipv6lib=v6; |
| 11910 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 11911 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11912 | fi |
| 11913 | rm -f conftest* |
| 11914 | |
| 11915 | ;; |
| 11916 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11917 | cat >conftest.$ac_ext <<_ACEOF |
| 11918 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11919 | /* confdefs.h. */ |
| 11920 | _ACEOF |
| 11921 | cat confdefs.h >>conftest.$ac_ext |
| 11922 | cat >>conftest.$ac_ext <<_ACEOF |
| 11923 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11924 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11925 | #include <sys/param.h> |
| 11926 | #ifdef _ZETA_MINAMI_INET6 |
| 11927 | yes |
| 11928 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11929 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11930 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11931 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11932 | ipv6type=$i; |
| 11933 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11934 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11935 | fi |
| 11936 | rm -f conftest* |
| 11937 | |
| 11938 | ;; |
| 11939 | esac |
| 11940 | if test "$ipv6type" != "unknown"; then |
| 11941 | break |
| 11942 | fi |
| 11943 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11944 | echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 11945 | echo "${ECHO_T}$ipv6type" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11946 | fi |
| 11947 | |
| 11948 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 11949 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 11950 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 11951 | echo "using lib$ipv6lib" |
| 11952 | else |
| 11953 | if test $ipv6trylibc = "yes"; then |
| 11954 | echo "using libc" |
| 11955 | else |
| 11956 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 11957 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 11958 | echo 'ipv6 kit and compile beforehand.' |
| 11959 | exit 1 |
| 11960 | fi |
| 11961 | fi |
| 11962 | fi |
| 11963 | |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11964 | # Check for universal newline support |
Guido van Rossum | 402905e | 2002-08-15 13:56:35 +0000 | [diff] [blame] | 11965 | echo "$as_me:$LINENO: checking for --with-universal-newlines" >&5 |
| 11966 | echo $ECHO_N "checking for --with-universal-newlines... $ECHO_C" >&6 |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11967 | |
| 11968 | # Check whether --with-universal-newlines or --without-universal-newlines was given. |
| 11969 | if test "${with_universal_newlines+set}" = set; then |
| 11970 | withval="$with_universal_newlines" |
| 11971 | |
| 11972 | fi; |
| 11973 | |
| 11974 | if test -z "$with_universal_newlines" |
| 11975 | then with_universal_newlines="yes" |
| 11976 | fi |
Martin v. Löwis | 7e4cfcb | 2002-12-19 16:21:49 +0000 | [diff] [blame] | 11977 | if test "$with_universal_newlines" = "no" |
Martin v. Löwis | 03d00d5 | 2002-12-19 19:03:31 +0000 | [diff] [blame] | 11978 | then |
Martin v. Löwis | 7e4cfcb | 2002-12-19 16:21:49 +0000 | [diff] [blame] | 11979 | echo --without-universal-newlines is unsupported, see README |
| 11980 | exit 1 |
Martin v. Löwis | 03d00d5 | 2002-12-19 19:03:31 +0000 | [diff] [blame] | 11981 | else |
Martin v. Löwis | e8aea58 | 2002-04-16 05:51:02 +0000 | [diff] [blame] | 11982 | |
| 11983 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11984 | #define WITH_UNIVERSAL_NEWLINES 1 |
| 11985 | _ACEOF |
| 11986 | |
| 11987 | fi |
| 11988 | echo "$as_me:$LINENO: result: $with_universal_newlines" >&5 |
| 11989 | echo "${ECHO_T}$with_universal_newlines" >&6 |
| 11990 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11991 | # Check for --with-doc-strings |
| 11992 | echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 11993 | echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6 |
| 11994 | |
| 11995 | # Check whether --with-doc-strings or --without-doc-strings was given. |
| 11996 | if test "${with_doc_strings+set}" = set; then |
| 11997 | withval="$with_doc_strings" |
| 11998 | |
| 11999 | fi; |
| 12000 | |
| 12001 | if test -z "$with_doc_strings" |
| 12002 | then with_doc_strings="yes" |
| 12003 | fi |
| 12004 | if test "$with_doc_strings" != "no" |
| 12005 | then |
| 12006 | |
| 12007 | cat >>confdefs.h <<\_ACEOF |
| 12008 | #define WITH_DOC_STRINGS 1 |
| 12009 | _ACEOF |
| 12010 | |
| 12011 | fi |
| 12012 | echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 12013 | echo "${ECHO_T}$with_doc_strings" >&6 |
| 12014 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 12015 | # Check for Python-specific malloc support |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12016 | echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 12017 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6 |
| 12018 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 12019 | # Check whether --with-pymalloc or --without-pymalloc was given. |
| 12020 | if test "${with_pymalloc+set}" = set; then |
| 12021 | withval="$with_pymalloc" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12022 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12023 | fi; |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 12024 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 12025 | if test -z "$with_pymalloc" |
| 12026 | then with_pymalloc="yes" |
| 12027 | fi |
| 12028 | if test "$with_pymalloc" != "no" |
| 12029 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12030 | |
| 12031 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 12032 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12033 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 12034 | |
| 12035 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12036 | echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 12037 | echo "${ECHO_T}$with_pymalloc" >&6 |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 12038 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 12039 | # Check for --with-wctype-functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12040 | echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 12041 | echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6 |
| 12042 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 12043 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 12044 | if test "${with_wctype_functions+set}" = set; then |
| 12045 | withval="$with_wctype_functions" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12046 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 12047 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12048 | then |
| 12049 | |
| 12050 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 12051 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12052 | _ACEOF |
| 12053 | |
| 12054 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12055 | echo "${ECHO_T}yes" >&6 |
| 12056 | else echo "$as_me:$LINENO: result: no" >&5 |
| 12057 | echo "${ECHO_T}no" >&6 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 12058 | fi |
| 12059 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12060 | echo "$as_me:$LINENO: result: no" >&5 |
| 12061 | echo "${ECHO_T}no" >&6 |
| 12062 | fi; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 12063 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12064 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12065 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 12066 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12067 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12068 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 12069 | # 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] | 12070 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12071 | for ac_func in dlopen |
| 12072 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12073 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12074 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12075 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12076 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12078 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12079 | cat >conftest.$ac_ext <<_ACEOF |
| 12080 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12081 | /* confdefs.h. */ |
| 12082 | _ACEOF |
| 12083 | cat confdefs.h >>conftest.$ac_ext |
| 12084 | cat >>conftest.$ac_ext <<_ACEOF |
| 12085 | /* end confdefs.h. */ |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12086 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12087 | which can conflict with char $ac_func (); below. |
| 12088 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 12089 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 12090 | including <limits.h> includes <sys/time.h> and causes problems |
| 12091 | checking for functions defined therein. */ |
| 12092 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12093 | # include <limits.h> |
| 12094 | #else |
| 12095 | # include <assert.h> |
| 12096 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12097 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12098 | #ifdef __cplusplus |
| 12099 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12100 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12101 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12102 | /* 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] | 12103 | builtin and then its argument prototype would still apply. */ |
| 12104 | char $ac_func (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12105 | /* The GNU C library defines this for functions which it implements |
| 12106 | to always fail with ENOSYS. Some functions are actually named |
| 12107 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12108 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12109 | choke me |
| 12110 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12111 | char (*f) () = $ac_func; |
| 12112 | #endif |
| 12113 | #ifdef __cplusplus |
| 12114 | } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12115 | #endif |
| 12116 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12117 | int |
| 12118 | main () |
| 12119 | { |
| 12120 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12121 | ; |
| 12122 | return 0; |
| 12123 | } |
| 12124 | _ACEOF |
| 12125 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12126 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12127 | (eval $ac_link) 2>&5 |
| 12128 | ac_status=$? |
| 12129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12130 | (exit $ac_status); } && |
| 12131 | { ac_try='test -s conftest$ac_exeext' |
| 12132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12133 | (eval $ac_try) 2>&5 |
| 12134 | ac_status=$? |
| 12135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12136 | (exit $ac_status); }; }; then |
| 12137 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12138 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12139 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12140 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12141 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12142 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12143 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12144 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12145 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12146 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12147 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12148 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12149 | cat >>confdefs.h <<_ACEOF |
| 12150 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12151 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12152 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12153 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12154 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12155 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12156 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12157 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 12158 | # loading of modules. |
| 12159 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12160 | echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 12161 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12162 | if test -z "$DYNLOADFILE" |
| 12163 | then |
| 12164 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 12165 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
| 12166 | if test "$ac_cv_func_dlopen" = yes |
| 12167 | then DYNLOADFILE="dynload_shlib.o" |
| 12168 | else DYNLOADFILE="dynload_aix.o" |
| 12169 | fi |
| 12170 | ;; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12171 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 12172 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12173 | Darwin/*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12174 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12175 | *) |
| 12176 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 12177 | # out any dynamic loading |
| 12178 | if test "$ac_cv_func_dlopen" = yes |
| 12179 | then DYNLOADFILE="dynload_shlib.o" |
| 12180 | else DYNLOADFILE="dynload_stub.o" |
| 12181 | fi |
| 12182 | ;; |
| 12183 | esac |
| 12184 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12185 | echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 12186 | echo "${ECHO_T}$DYNLOADFILE" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12187 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 12188 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12189 | |
| 12190 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12191 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12192 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12193 | |
| 12194 | fi |
| 12195 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 12196 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 12197 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12198 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12199 | echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 12200 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 12201 | if test -z "$MACHDEP_OBJS" |
| 12202 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12203 | MACHDEP_OBJS=$extra_machdep_objs |
| 12204 | else |
| 12205 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 12206 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12207 | echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 12208 | echo "${ECHO_T}MACHDEP_OBJS" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 12209 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12210 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12211 | |
| 12212 | |
| 12213 | |
| 12214 | |
| 12215 | |
| 12216 | |
| 12217 | |
| 12218 | |
| 12219 | |
| 12220 | |
| 12221 | |
| 12222 | |
| 12223 | |
| 12224 | |
| 12225 | |
| 12226 | |
| 12227 | |
| 12228 | |
| 12229 | |
| 12230 | |
| 12231 | |
| 12232 | |
| 12233 | |
| 12234 | |
| 12235 | |
| 12236 | |
| 12237 | |
| 12238 | |
| 12239 | |
| 12240 | |
| 12241 | |
| 12242 | |
| 12243 | |
| 12244 | |
| 12245 | |
| 12246 | |
| 12247 | |
| 12248 | |
| 12249 | |
| 12250 | |
| 12251 | |
| 12252 | |
| 12253 | |
| 12254 | |
| 12255 | |
| 12256 | |
| 12257 | |
| 12258 | |
| 12259 | |
| 12260 | |
| 12261 | |
| 12262 | |
| 12263 | |
| 12264 | |
| 12265 | |
| 12266 | |
| 12267 | |
| 12268 | |
| 12269 | |
| 12270 | |
| 12271 | |
| 12272 | |
| 12273 | |
| 12274 | |
| 12275 | |
| 12276 | |
| 12277 | |
| 12278 | |
| 12279 | |
| 12280 | |
| 12281 | |
Martin v. Löwis | 49ee14d | 2003-11-10 06:35:36 +0000 | [diff] [blame] | 12282 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12283 | for ac_func in alarm chown clock confstr ctermid execv \ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 12284 | fork fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 12285 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | 49ee14d | 2003-11-10 06:35:36 +0000 | [diff] [blame] | 12286 | getpriority getpwent getsid getwd \ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12287 | kill killpg lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 12288 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 12289 | putenv readlink realpath \ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12290 | select setegid seteuid setgid \ |
Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 12291 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12292 | sigaction siginterrupt sigrelse strftime strptime \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 12293 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 12294 | truncate uname unsetenv utimes waitpid wcscoll _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12295 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12296 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12297 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12298 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12299 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12301 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12302 | cat >conftest.$ac_ext <<_ACEOF |
| 12303 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12304 | /* confdefs.h. */ |
| 12305 | _ACEOF |
| 12306 | cat confdefs.h >>conftest.$ac_ext |
| 12307 | cat >>conftest.$ac_ext <<_ACEOF |
| 12308 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12309 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12310 | which can conflict with char $ac_func (); below. |
| 12311 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 12312 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 12313 | including <limits.h> includes <sys/time.h> and causes problems |
| 12314 | checking for functions defined therein. */ |
| 12315 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12316 | # include <limits.h> |
| 12317 | #else |
| 12318 | # include <assert.h> |
| 12319 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12320 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12321 | #ifdef __cplusplus |
| 12322 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12323 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12324 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12325 | /* 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] | 12326 | builtin and then its argument prototype would still apply. */ |
| 12327 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12328 | /* The GNU C library defines this for functions which it implements |
| 12329 | to always fail with ENOSYS. Some functions are actually named |
| 12330 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12331 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12332 | choke me |
| 12333 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12334 | char (*f) () = $ac_func; |
| 12335 | #endif |
| 12336 | #ifdef __cplusplus |
| 12337 | } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12338 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12339 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12340 | int |
| 12341 | main () |
| 12342 | { |
| 12343 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12344 | ; |
| 12345 | return 0; |
| 12346 | } |
| 12347 | _ACEOF |
| 12348 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12349 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12350 | (eval $ac_link) 2>&5 |
| 12351 | ac_status=$? |
| 12352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12353 | (exit $ac_status); } && |
| 12354 | { ac_try='test -s conftest$ac_exeext' |
| 12355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12356 | (eval $ac_try) 2>&5 |
| 12357 | ac_status=$? |
| 12358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12359 | (exit $ac_status); }; }; then |
| 12360 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12361 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12362 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12363 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12364 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12365 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12366 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12367 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12368 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12369 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12370 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12371 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12372 | cat >>confdefs.h <<_ACEOF |
| 12373 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12374 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12375 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12376 | fi |
| 12377 | done |
| 12378 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12379 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12380 | # For some functions, having a definition is not sufficient, since |
| 12381 | # we want to take their address. |
| 12382 | echo "$as_me:$LINENO: checking for chroot" >&5 |
| 12383 | echo $ECHO_N "checking for chroot... $ECHO_C" >&6 |
| 12384 | cat >conftest.$ac_ext <<_ACEOF |
| 12385 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12386 | /* confdefs.h. */ |
| 12387 | _ACEOF |
| 12388 | cat confdefs.h >>conftest.$ac_ext |
| 12389 | cat >>conftest.$ac_ext <<_ACEOF |
| 12390 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12391 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12392 | int |
| 12393 | main () |
| 12394 | { |
| 12395 | void *x=chroot |
| 12396 | ; |
| 12397 | return 0; |
| 12398 | } |
| 12399 | _ACEOF |
| 12400 | rm -f conftest.$ac_objext |
| 12401 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12402 | (eval $ac_compile) 2>&5 |
| 12403 | ac_status=$? |
| 12404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12405 | (exit $ac_status); } && |
| 12406 | { ac_try='test -s conftest.$ac_objext' |
| 12407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12408 | (eval $ac_try) 2>&5 |
| 12409 | ac_status=$? |
| 12410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12411 | (exit $ac_status); }; }; then |
| 12412 | |
| 12413 | cat >>confdefs.h <<\_ACEOF |
| 12414 | #define HAVE_CHROOT 1 |
| 12415 | _ACEOF |
| 12416 | |
| 12417 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12418 | echo "${ECHO_T}yes" >&6 |
| 12419 | else |
| 12420 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12421 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12422 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12423 | echo "$as_me:$LINENO: result: no" >&5 |
| 12424 | echo "${ECHO_T}no" >&6 |
| 12425 | |
| 12426 | fi |
| 12427 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12428 | echo "$as_me:$LINENO: checking for link" >&5 |
| 12429 | echo $ECHO_N "checking for link... $ECHO_C" >&6 |
| 12430 | cat >conftest.$ac_ext <<_ACEOF |
| 12431 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12432 | /* confdefs.h. */ |
| 12433 | _ACEOF |
| 12434 | cat confdefs.h >>conftest.$ac_ext |
| 12435 | cat >>conftest.$ac_ext <<_ACEOF |
| 12436 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12437 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12438 | int |
| 12439 | main () |
| 12440 | { |
| 12441 | void *x=link |
| 12442 | ; |
| 12443 | return 0; |
| 12444 | } |
| 12445 | _ACEOF |
| 12446 | rm -f conftest.$ac_objext |
| 12447 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12448 | (eval $ac_compile) 2>&5 |
| 12449 | ac_status=$? |
| 12450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12451 | (exit $ac_status); } && |
| 12452 | { ac_try='test -s conftest.$ac_objext' |
| 12453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12454 | (eval $ac_try) 2>&5 |
| 12455 | ac_status=$? |
| 12456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12457 | (exit $ac_status); }; }; then |
| 12458 | |
| 12459 | cat >>confdefs.h <<\_ACEOF |
| 12460 | #define HAVE_LINK 1 |
| 12461 | _ACEOF |
| 12462 | |
| 12463 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12464 | echo "${ECHO_T}yes" >&6 |
| 12465 | else |
| 12466 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12467 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12468 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12469 | echo "$as_me:$LINENO: result: no" >&5 |
| 12470 | echo "${ECHO_T}no" >&6 |
| 12471 | |
| 12472 | fi |
| 12473 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12474 | echo "$as_me:$LINENO: checking for symlink" >&5 |
| 12475 | echo $ECHO_N "checking for symlink... $ECHO_C" >&6 |
| 12476 | cat >conftest.$ac_ext <<_ACEOF |
| 12477 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12478 | /* confdefs.h. */ |
| 12479 | _ACEOF |
| 12480 | cat confdefs.h >>conftest.$ac_ext |
| 12481 | cat >>conftest.$ac_ext <<_ACEOF |
| 12482 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12483 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12484 | int |
| 12485 | main () |
| 12486 | { |
| 12487 | void *x=symlink |
| 12488 | ; |
| 12489 | return 0; |
| 12490 | } |
| 12491 | _ACEOF |
| 12492 | rm -f conftest.$ac_objext |
| 12493 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12494 | (eval $ac_compile) 2>&5 |
| 12495 | ac_status=$? |
| 12496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12497 | (exit $ac_status); } && |
| 12498 | { ac_try='test -s conftest.$ac_objext' |
| 12499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12500 | (eval $ac_try) 2>&5 |
| 12501 | ac_status=$? |
| 12502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12503 | (exit $ac_status); }; }; then |
| 12504 | |
| 12505 | cat >>confdefs.h <<\_ACEOF |
| 12506 | #define HAVE_SYMLINK 1 |
| 12507 | _ACEOF |
| 12508 | |
| 12509 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12510 | echo "${ECHO_T}yes" >&6 |
| 12511 | else |
| 12512 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12513 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12514 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12515 | echo "$as_me:$LINENO: result: no" >&5 |
| 12516 | echo "${ECHO_T}no" >&6 |
| 12517 | |
| 12518 | fi |
| 12519 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 12520 | echo "$as_me:$LINENO: checking for fchdir" >&5 |
| 12521 | echo $ECHO_N "checking for fchdir... $ECHO_C" >&6 |
| 12522 | cat >conftest.$ac_ext <<_ACEOF |
| 12523 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12524 | /* confdefs.h. */ |
| 12525 | _ACEOF |
| 12526 | cat confdefs.h >>conftest.$ac_ext |
| 12527 | cat >>conftest.$ac_ext <<_ACEOF |
| 12528 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 12529 | #include <unistd.h> |
| 12530 | int |
| 12531 | main () |
| 12532 | { |
| 12533 | void *x=fchdir |
| 12534 | ; |
| 12535 | return 0; |
| 12536 | } |
| 12537 | _ACEOF |
| 12538 | rm -f conftest.$ac_objext |
| 12539 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12540 | (eval $ac_compile) 2>&5 |
| 12541 | ac_status=$? |
| 12542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12543 | (exit $ac_status); } && |
| 12544 | { ac_try='test -s conftest.$ac_objext' |
| 12545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12546 | (eval $ac_try) 2>&5 |
| 12547 | ac_status=$? |
| 12548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12549 | (exit $ac_status); }; }; then |
| 12550 | |
| 12551 | cat >>confdefs.h <<\_ACEOF |
| 12552 | #define HAVE_FCHDIR 1 |
| 12553 | _ACEOF |
| 12554 | |
| 12555 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12556 | echo "${ECHO_T}yes" >&6 |
| 12557 | else |
| 12558 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12559 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12560 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 12561 | echo "$as_me:$LINENO: result: no" >&5 |
| 12562 | echo "${ECHO_T}no" >&6 |
| 12563 | |
| 12564 | fi |
| 12565 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12566 | echo "$as_me:$LINENO: checking for fsync" >&5 |
| 12567 | echo $ECHO_N "checking for fsync... $ECHO_C" >&6 |
| 12568 | cat >conftest.$ac_ext <<_ACEOF |
| 12569 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12570 | /* confdefs.h. */ |
| 12571 | _ACEOF |
| 12572 | cat confdefs.h >>conftest.$ac_ext |
| 12573 | cat >>conftest.$ac_ext <<_ACEOF |
| 12574 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 12575 | #include <unistd.h> |
| 12576 | int |
| 12577 | main () |
| 12578 | { |
| 12579 | void *x=fsync |
| 12580 | ; |
| 12581 | return 0; |
| 12582 | } |
| 12583 | _ACEOF |
| 12584 | rm -f conftest.$ac_objext |
| 12585 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12586 | (eval $ac_compile) 2>&5 |
| 12587 | ac_status=$? |
| 12588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12589 | (exit $ac_status); } && |
| 12590 | { ac_try='test -s conftest.$ac_objext' |
| 12591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12592 | (eval $ac_try) 2>&5 |
| 12593 | ac_status=$? |
| 12594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12595 | (exit $ac_status); }; }; then |
| 12596 | |
| 12597 | cat >>confdefs.h <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12598 | #define HAVE_FSYNC 1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 12599 | _ACEOF |
| 12600 | |
| 12601 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12602 | echo "${ECHO_T}yes" >&6 |
| 12603 | else |
| 12604 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12605 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12606 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 12607 | echo "$as_me:$LINENO: result: no" >&5 |
| 12608 | echo "${ECHO_T}no" >&6 |
| 12609 | |
| 12610 | fi |
| 12611 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12612 | echo "$as_me:$LINENO: checking for fdatasync" >&5 |
| 12613 | echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6 |
| 12614 | cat >conftest.$ac_ext <<_ACEOF |
| 12615 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12616 | /* confdefs.h. */ |
| 12617 | _ACEOF |
| 12618 | cat confdefs.h >>conftest.$ac_ext |
| 12619 | cat >>conftest.$ac_ext <<_ACEOF |
| 12620 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 12621 | #include <unistd.h> |
| 12622 | int |
| 12623 | main () |
| 12624 | { |
| 12625 | void *x=fdatasync |
| 12626 | ; |
| 12627 | return 0; |
| 12628 | } |
| 12629 | _ACEOF |
| 12630 | rm -f conftest.$ac_objext |
| 12631 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12632 | (eval $ac_compile) 2>&5 |
| 12633 | ac_status=$? |
| 12634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12635 | (exit $ac_status); } && |
| 12636 | { ac_try='test -s conftest.$ac_objext' |
| 12637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12638 | (eval $ac_try) 2>&5 |
| 12639 | ac_status=$? |
| 12640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12641 | (exit $ac_status); }; }; then |
| 12642 | |
| 12643 | cat >>confdefs.h <<\_ACEOF |
| 12644 | #define HAVE_FDATASYNC 1 |
| 12645 | _ACEOF |
| 12646 | |
| 12647 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12648 | echo "${ECHO_T}yes" >&6 |
| 12649 | else |
| 12650 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12651 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12652 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 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 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12658 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12659 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 12660 | # functions ctermid_r, setgroups in the library, but no prototype |
| 12661 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 12662 | # address to avoid compiler warnings and potential miscompilations |
| 12663 | # because of the missing prototypes. |
| 12664 | |
| 12665 | echo "$as_me:$LINENO: checking for ctermid_r" >&5 |
| 12666 | echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6 |
| 12667 | cat >conftest.$ac_ext <<_ACEOF |
| 12668 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12669 | /* confdefs.h. */ |
| 12670 | _ACEOF |
| 12671 | cat confdefs.h >>conftest.$ac_ext |
| 12672 | cat >>conftest.$ac_ext <<_ACEOF |
| 12673 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12674 | |
| 12675 | #include "confdefs.h" |
| 12676 | #include <stdio.h> |
| 12677 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12678 | int |
| 12679 | main () |
| 12680 | { |
| 12681 | void* p = ctermid_r |
| 12682 | ; |
| 12683 | return 0; |
| 12684 | } |
| 12685 | _ACEOF |
| 12686 | rm -f conftest.$ac_objext |
| 12687 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12688 | (eval $ac_compile) 2>&5 |
| 12689 | ac_status=$? |
| 12690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12691 | (exit $ac_status); } && |
| 12692 | { ac_try='test -s conftest.$ac_objext' |
| 12693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12694 | (eval $ac_try) 2>&5 |
| 12695 | ac_status=$? |
| 12696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12697 | (exit $ac_status); }; }; then |
| 12698 | |
| 12699 | cat >>confdefs.h <<\_ACEOF |
| 12700 | #define HAVE_CTERMID_R 1 |
| 12701 | _ACEOF |
| 12702 | |
| 12703 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12704 | echo "${ECHO_T}yes" >&6 |
| 12705 | else |
| 12706 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12707 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12708 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12709 | echo "$as_me:$LINENO: result: no" >&5 |
| 12710 | echo "${ECHO_T}no" >&6 |
| 12711 | |
| 12712 | fi |
| 12713 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12714 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12715 | echo "$as_me:$LINENO: checking for flock" >&5 |
| 12716 | echo $ECHO_N "checking for flock... $ECHO_C" >&6 |
| 12717 | cat >conftest.$ac_ext <<_ACEOF |
| 12718 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12719 | /* confdefs.h. */ |
| 12720 | _ACEOF |
| 12721 | cat confdefs.h >>conftest.$ac_ext |
| 12722 | cat >>conftest.$ac_ext <<_ACEOF |
| 12723 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12724 | |
| 12725 | #include "confdefs.h" |
| 12726 | #include <sys/file.h> |
| 12727 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12728 | int |
| 12729 | main () |
| 12730 | { |
| 12731 | void* p = flock |
| 12732 | ; |
| 12733 | return 0; |
| 12734 | } |
| 12735 | _ACEOF |
| 12736 | rm -f conftest.$ac_objext |
| 12737 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12738 | (eval $ac_compile) 2>&5 |
| 12739 | ac_status=$? |
| 12740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12741 | (exit $ac_status); } && |
| 12742 | { ac_try='test -s conftest.$ac_objext' |
| 12743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12744 | (eval $ac_try) 2>&5 |
| 12745 | ac_status=$? |
| 12746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12747 | (exit $ac_status); }; }; then |
| 12748 | |
| 12749 | cat >>confdefs.h <<\_ACEOF |
| 12750 | #define HAVE_FLOCK 1 |
| 12751 | _ACEOF |
| 12752 | |
| 12753 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12754 | echo "${ECHO_T}yes" >&6 |
| 12755 | else |
| 12756 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12757 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12758 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12759 | echo "$as_me:$LINENO: result: no" >&5 |
| 12760 | echo "${ECHO_T}no" >&6 |
| 12761 | |
| 12762 | fi |
| 12763 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12764 | |
| 12765 | echo "$as_me:$LINENO: checking for getpagesize" >&5 |
| 12766 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6 |
| 12767 | cat >conftest.$ac_ext <<_ACEOF |
| 12768 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12769 | /* confdefs.h. */ |
| 12770 | _ACEOF |
| 12771 | cat confdefs.h >>conftest.$ac_ext |
| 12772 | cat >>conftest.$ac_ext <<_ACEOF |
| 12773 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12774 | |
| 12775 | #include "confdefs.h" |
| 12776 | #include <unistd.h> |
| 12777 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12778 | int |
| 12779 | main () |
| 12780 | { |
| 12781 | void* p = getpagesize |
| 12782 | ; |
| 12783 | return 0; |
| 12784 | } |
| 12785 | _ACEOF |
| 12786 | rm -f conftest.$ac_objext |
| 12787 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12788 | (eval $ac_compile) 2>&5 |
| 12789 | ac_status=$? |
| 12790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12791 | (exit $ac_status); } && |
| 12792 | { ac_try='test -s conftest.$ac_objext' |
| 12793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12794 | (eval $ac_try) 2>&5 |
| 12795 | ac_status=$? |
| 12796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12797 | (exit $ac_status); }; }; then |
| 12798 | |
| 12799 | cat >>confdefs.h <<\_ACEOF |
| 12800 | #define HAVE_GETPAGESIZE 1 |
| 12801 | _ACEOF |
| 12802 | |
| 12803 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12804 | echo "${ECHO_T}yes" >&6 |
| 12805 | else |
| 12806 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12807 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12808 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12809 | echo "$as_me:$LINENO: result: no" >&5 |
| 12810 | echo "${ECHO_T}no" >&6 |
| 12811 | |
| 12812 | fi |
| 12813 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12814 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12815 | for ac_prog in true |
| 12816 | do |
| 12817 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 12818 | set dummy $ac_prog; ac_word=$2 |
| 12819 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12820 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 12821 | if test "${ac_cv_prog_TRUE+set}" = set; then |
| 12822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12823 | else |
| 12824 | if test -n "$TRUE"; then |
| 12825 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 12826 | else |
| 12827 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12828 | for as_dir in $PATH |
| 12829 | do |
| 12830 | IFS=$as_save_IFS |
| 12831 | test -z "$as_dir" && as_dir=. |
| 12832 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12833 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 12834 | ac_cv_prog_TRUE="$ac_prog" |
| 12835 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12836 | break 2 |
| 12837 | fi |
| 12838 | done |
| 12839 | done |
| 12840 | |
| 12841 | fi |
| 12842 | fi |
| 12843 | TRUE=$ac_cv_prog_TRUE |
| 12844 | if test -n "$TRUE"; then |
| 12845 | echo "$as_me:$LINENO: result: $TRUE" >&5 |
| 12846 | echo "${ECHO_T}$TRUE" >&6 |
| 12847 | else |
| 12848 | echo "$as_me:$LINENO: result: no" >&5 |
| 12849 | echo "${ECHO_T}no" >&6 |
| 12850 | fi |
| 12851 | |
| 12852 | test -n "$TRUE" && break |
| 12853 | done |
| 12854 | test -n "$TRUE" || TRUE="/bin/true" |
| 12855 | |
| 12856 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12857 | echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5 |
| 12858 | echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6 |
| 12859 | if test "${ac_cv_lib_c_inet_aton+set}" = set; then |
| 12860 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12861 | else |
| 12862 | ac_check_lib_save_LIBS=$LIBS |
| 12863 | LIBS="-lc $LIBS" |
| 12864 | cat >conftest.$ac_ext <<_ACEOF |
| 12865 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12866 | /* confdefs.h. */ |
| 12867 | _ACEOF |
| 12868 | cat confdefs.h >>conftest.$ac_ext |
| 12869 | cat >>conftest.$ac_ext <<_ACEOF |
| 12870 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12871 | |
| 12872 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12873 | #ifdef __cplusplus |
| 12874 | extern "C" |
| 12875 | #endif |
| 12876 | /* We use char because int might match the return type of a gcc2 |
| 12877 | builtin and then its argument prototype would still apply. */ |
| 12878 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12879 | int |
| 12880 | main () |
| 12881 | { |
| 12882 | inet_aton (); |
| 12883 | ; |
| 12884 | return 0; |
| 12885 | } |
| 12886 | _ACEOF |
| 12887 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12888 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12889 | (eval $ac_link) 2>&5 |
| 12890 | ac_status=$? |
| 12891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12892 | (exit $ac_status); } && |
| 12893 | { ac_try='test -s conftest$ac_exeext' |
| 12894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12895 | (eval $ac_try) 2>&5 |
| 12896 | ac_status=$? |
| 12897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12898 | (exit $ac_status); }; }; then |
| 12899 | ac_cv_lib_c_inet_aton=yes |
| 12900 | else |
| 12901 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12902 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12903 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12904 | ac_cv_lib_c_inet_aton=no |
| 12905 | fi |
| 12906 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12907 | LIBS=$ac_check_lib_save_LIBS |
| 12908 | fi |
| 12909 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5 |
| 12910 | echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6 |
| 12911 | if test $ac_cv_lib_c_inet_aton = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12912 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12913 | else |
| 12914 | |
| 12915 | echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
| 12916 | echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6 |
| 12917 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
| 12918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12919 | else |
| 12920 | ac_check_lib_save_LIBS=$LIBS |
| 12921 | LIBS="-lresolv $LIBS" |
| 12922 | cat >conftest.$ac_ext <<_ACEOF |
| 12923 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12924 | /* confdefs.h. */ |
| 12925 | _ACEOF |
| 12926 | cat confdefs.h >>conftest.$ac_ext |
| 12927 | cat >>conftest.$ac_ext <<_ACEOF |
| 12928 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12929 | |
| 12930 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12931 | #ifdef __cplusplus |
| 12932 | extern "C" |
| 12933 | #endif |
| 12934 | /* We use char because int might match the return type of a gcc2 |
| 12935 | builtin and then its argument prototype would still apply. */ |
| 12936 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12937 | int |
| 12938 | main () |
| 12939 | { |
| 12940 | inet_aton (); |
| 12941 | ; |
| 12942 | return 0; |
| 12943 | } |
| 12944 | _ACEOF |
| 12945 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12946 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12947 | (eval $ac_link) 2>&5 |
| 12948 | ac_status=$? |
| 12949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12950 | (exit $ac_status); } && |
| 12951 | { ac_try='test -s conftest$ac_exeext' |
| 12952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12953 | (eval $ac_try) 2>&5 |
| 12954 | ac_status=$? |
| 12955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12956 | (exit $ac_status); }; }; then |
| 12957 | ac_cv_lib_resolv_inet_aton=yes |
| 12958 | else |
| 12959 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12960 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12961 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12962 | ac_cv_lib_resolv_inet_aton=no |
| 12963 | fi |
| 12964 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12965 | LIBS=$ac_check_lib_save_LIBS |
| 12966 | fi |
| 12967 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 12968 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6 |
| 12969 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
| 12970 | cat >>confdefs.h <<_ACEOF |
| 12971 | #define HAVE_LIBRESOLV 1 |
| 12972 | _ACEOF |
| 12973 | |
| 12974 | LIBS="-lresolv $LIBS" |
| 12975 | |
| 12976 | fi |
| 12977 | |
| 12978 | |
| 12979 | fi |
| 12980 | |
| 12981 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12982 | echo "$as_me:$LINENO: checking for hstrerror" >&5 |
| 12983 | echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6 |
| 12984 | cat >conftest.$ac_ext <<_ACEOF |
| 12985 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12986 | /* confdefs.h. */ |
| 12987 | _ACEOF |
| 12988 | cat confdefs.h >>conftest.$ac_ext |
| 12989 | cat >>conftest.$ac_ext <<_ACEOF |
| 12990 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12991 | |
| 12992 | #include "confdefs.h" |
| 12993 | #include <netdb.h> |
| 12994 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12995 | int |
| 12996 | main () |
| 12997 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12998 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12999 | ; |
| 13000 | return 0; |
| 13001 | } |
| 13002 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13003 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13004 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13005 | (eval $ac_link) 2>&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13006 | ac_status=$? |
| 13007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13008 | (exit $ac_status); } && |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13009 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13011 | (eval $ac_try) 2>&5 |
| 13012 | ac_status=$? |
| 13013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13014 | (exit $ac_status); }; }; then |
| 13015 | |
| 13016 | cat >>confdefs.h <<\_ACEOF |
| 13017 | #define HAVE_HSTRERROR 1 |
| 13018 | _ACEOF |
| 13019 | |
| 13020 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13021 | echo "${ECHO_T}yes" >&6 |
| 13022 | else |
| 13023 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13024 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13025 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13026 | echo "$as_me:$LINENO: result: no" >&5 |
| 13027 | echo "${ECHO_T}no" >&6 |
| 13028 | |
| 13029 | fi |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13030 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13031 | |
| 13032 | echo "$as_me:$LINENO: checking for inet_aton" >&5 |
| 13033 | echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6 |
| 13034 | cat >conftest.$ac_ext <<_ACEOF |
| 13035 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13036 | /* confdefs.h. */ |
| 13037 | _ACEOF |
| 13038 | cat confdefs.h >>conftest.$ac_ext |
| 13039 | cat >>conftest.$ac_ext <<_ACEOF |
| 13040 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13041 | |
| 13042 | #include "confdefs.h" |
| 13043 | #include <sys/socket.h> |
| 13044 | #include <netinet/in.h> |
| 13045 | #include <arpa/inet.h> |
| 13046 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13047 | int |
| 13048 | main () |
| 13049 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13050 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13051 | ; |
| 13052 | return 0; |
| 13053 | } |
| 13054 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13055 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13056 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13057 | (eval $ac_link) 2>&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13058 | ac_status=$? |
| 13059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13060 | (exit $ac_status); } && |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13061 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13063 | (eval $ac_try) 2>&5 |
| 13064 | ac_status=$? |
| 13065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13066 | (exit $ac_status); }; }; then |
| 13067 | |
| 13068 | cat >>confdefs.h <<\_ACEOF |
| 13069 | #define HAVE_INET_ATON 1 |
| 13070 | _ACEOF |
| 13071 | |
| 13072 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13073 | echo "${ECHO_T}yes" >&6 |
| 13074 | else |
| 13075 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13076 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13077 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13078 | echo "$as_me:$LINENO: result: no" >&5 |
| 13079 | echo "${ECHO_T}no" >&6 |
| 13080 | |
| 13081 | fi |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13082 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13083 | |
| 13084 | echo "$as_me:$LINENO: checking for inet_pton" >&5 |
| 13085 | echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6 |
| 13086 | cat >conftest.$ac_ext <<_ACEOF |
| 13087 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13088 | /* confdefs.h. */ |
| 13089 | _ACEOF |
| 13090 | cat confdefs.h >>conftest.$ac_ext |
| 13091 | cat >>conftest.$ac_ext <<_ACEOF |
| 13092 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13093 | |
| 13094 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 13095 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13096 | #include <sys/socket.h> |
| 13097 | #include <netinet/in.h> |
| 13098 | #include <arpa/inet.h> |
| 13099 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13100 | int |
| 13101 | main () |
| 13102 | { |
| 13103 | void* p = inet_pton |
| 13104 | ; |
| 13105 | return 0; |
| 13106 | } |
| 13107 | _ACEOF |
| 13108 | rm -f conftest.$ac_objext |
| 13109 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13110 | (eval $ac_compile) 2>&5 |
| 13111 | ac_status=$? |
| 13112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13113 | (exit $ac_status); } && |
| 13114 | { ac_try='test -s conftest.$ac_objext' |
| 13115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13116 | (eval $ac_try) 2>&5 |
| 13117 | ac_status=$? |
| 13118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13119 | (exit $ac_status); }; }; then |
| 13120 | |
| 13121 | cat >>confdefs.h <<\_ACEOF |
| 13122 | #define HAVE_INET_PTON 1 |
| 13123 | _ACEOF |
| 13124 | |
| 13125 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13126 | echo "${ECHO_T}yes" >&6 |
| 13127 | else |
| 13128 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13129 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13130 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13131 | echo "$as_me:$LINENO: result: no" >&5 |
| 13132 | echo "${ECHO_T}no" >&6 |
| 13133 | |
| 13134 | fi |
| 13135 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13136 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 13137 | # On some systems, setgroups is in unistd.h, on others, in grp.h |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13138 | echo "$as_me:$LINENO: checking for setgroups" >&5 |
| 13139 | echo $ECHO_N "checking for setgroups... $ECHO_C" >&6 |
| 13140 | cat >conftest.$ac_ext <<_ACEOF |
| 13141 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13142 | /* confdefs.h. */ |
| 13143 | _ACEOF |
| 13144 | cat confdefs.h >>conftest.$ac_ext |
| 13145 | cat >>conftest.$ac_ext <<_ACEOF |
| 13146 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13147 | |
| 13148 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 13149 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 13150 | #ifdef HAVE_GRP_H |
| 13151 | #include <grp.h> |
| 13152 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13153 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13154 | int |
| 13155 | main () |
| 13156 | { |
| 13157 | void* p = setgroups |
| 13158 | ; |
| 13159 | return 0; |
| 13160 | } |
| 13161 | _ACEOF |
| 13162 | rm -f conftest.$ac_objext |
| 13163 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13164 | (eval $ac_compile) 2>&5 |
| 13165 | ac_status=$? |
| 13166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13167 | (exit $ac_status); } && |
| 13168 | { ac_try='test -s conftest.$ac_objext' |
| 13169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13170 | (eval $ac_try) 2>&5 |
| 13171 | ac_status=$? |
| 13172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13173 | (exit $ac_status); }; }; then |
| 13174 | |
| 13175 | cat >>confdefs.h <<\_ACEOF |
| 13176 | #define HAVE_SETGROUPS 1 |
| 13177 | _ACEOF |
| 13178 | |
| 13179 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13180 | echo "${ECHO_T}yes" >&6 |
| 13181 | else |
| 13182 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13183 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13184 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13185 | echo "$as_me:$LINENO: result: no" >&5 |
| 13186 | echo "${ECHO_T}no" >&6 |
| 13187 | |
| 13188 | fi |
| 13189 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13190 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13191 | # check for openpty and forkpty |
| 13192 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13193 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13194 | for ac_func in openpty |
| 13195 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13196 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13197 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13198 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13199 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13201 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13202 | cat >conftest.$ac_ext <<_ACEOF |
| 13203 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13204 | /* confdefs.h. */ |
| 13205 | _ACEOF |
| 13206 | cat confdefs.h >>conftest.$ac_ext |
| 13207 | cat >>conftest.$ac_ext <<_ACEOF |
| 13208 | /* end confdefs.h. */ |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13209 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13210 | which can conflict with char $ac_func (); below. |
| 13211 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 13212 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 13213 | including <limits.h> includes <sys/time.h> and causes problems |
| 13214 | checking for functions defined therein. */ |
| 13215 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13216 | # include <limits.h> |
| 13217 | #else |
| 13218 | # include <assert.h> |
| 13219 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13220 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13221 | #ifdef __cplusplus |
| 13222 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13223 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13224 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13225 | /* 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] | 13226 | builtin and then its argument prototype would still apply. */ |
| 13227 | char $ac_func (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13228 | /* The GNU C library defines this for functions which it implements |
| 13229 | to always fail with ENOSYS. Some functions are actually named |
| 13230 | something starting with __ and the normal name is an alias. */ |
| 13231 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13232 | choke me |
| 13233 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13234 | char (*f) () = $ac_func; |
| 13235 | #endif |
| 13236 | #ifdef __cplusplus |
| 13237 | } |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13238 | #endif |
| 13239 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13240 | int |
| 13241 | main () |
| 13242 | { |
| 13243 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13244 | ; |
| 13245 | return 0; |
| 13246 | } |
| 13247 | _ACEOF |
| 13248 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13249 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13250 | (eval $ac_link) 2>&5 |
| 13251 | ac_status=$? |
| 13252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13253 | (exit $ac_status); } && |
| 13254 | { ac_try='test -s conftest$ac_exeext' |
| 13255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13256 | (eval $ac_try) 2>&5 |
| 13257 | ac_status=$? |
| 13258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13259 | (exit $ac_status); }; }; then |
| 13260 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13261 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13262 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13263 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13264 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13265 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13266 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13267 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13268 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13269 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13270 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13271 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13272 | cat >>confdefs.h <<_ACEOF |
| 13273 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13274 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13275 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13276 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13277 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 13278 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
| 13279 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
| 13280 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13281 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13282 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13283 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13284 | cat >conftest.$ac_ext <<_ACEOF |
| 13285 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13286 | /* confdefs.h. */ |
| 13287 | _ACEOF |
| 13288 | cat confdefs.h >>conftest.$ac_ext |
| 13289 | cat >>conftest.$ac_ext <<_ACEOF |
| 13290 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13291 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13292 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13293 | #ifdef __cplusplus |
| 13294 | extern "C" |
| 13295 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13296 | /* 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] | 13297 | builtin and then its argument prototype would still apply. */ |
| 13298 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13299 | int |
| 13300 | main () |
| 13301 | { |
| 13302 | openpty (); |
| 13303 | ; |
| 13304 | return 0; |
| 13305 | } |
| 13306 | _ACEOF |
| 13307 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13308 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13309 | (eval $ac_link) 2>&5 |
| 13310 | ac_status=$? |
| 13311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13312 | (exit $ac_status); } && |
| 13313 | { ac_try='test -s conftest$ac_exeext' |
| 13314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13315 | (eval $ac_try) 2>&5 |
| 13316 | ac_status=$? |
| 13317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13318 | (exit $ac_status); }; }; then |
| 13319 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13320 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13321 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13322 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13323 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13324 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13325 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13326 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 13327 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13328 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13329 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 13330 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
| 13331 | if test $ac_cv_lib_util_openpty = yes; then |
| 13332 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13333 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13334 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13335 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13336 | fi |
| 13337 | |
| 13338 | fi |
| 13339 | done |
| 13340 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13341 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13342 | for ac_func in forkpty |
| 13343 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13344 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13345 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13346 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13347 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13348 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13349 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13350 | cat >conftest.$ac_ext <<_ACEOF |
| 13351 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13352 | /* confdefs.h. */ |
| 13353 | _ACEOF |
| 13354 | cat confdefs.h >>conftest.$ac_ext |
| 13355 | cat >>conftest.$ac_ext <<_ACEOF |
| 13356 | /* end confdefs.h. */ |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13357 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13358 | which can conflict with char $ac_func (); below. |
| 13359 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 13360 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 13361 | including <limits.h> includes <sys/time.h> and causes problems |
| 13362 | checking for functions defined therein. */ |
| 13363 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13364 | # include <limits.h> |
| 13365 | #else |
| 13366 | # include <assert.h> |
| 13367 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13368 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13369 | #ifdef __cplusplus |
| 13370 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13371 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13372 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13373 | /* 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] | 13374 | builtin and then its argument prototype would still apply. */ |
| 13375 | char $ac_func (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13376 | /* The GNU C library defines this for functions which it implements |
| 13377 | to always fail with ENOSYS. Some functions are actually named |
| 13378 | something starting with __ and the normal name is an alias. */ |
| 13379 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13380 | choke me |
| 13381 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13382 | char (*f) () = $ac_func; |
| 13383 | #endif |
| 13384 | #ifdef __cplusplus |
| 13385 | } |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13386 | #endif |
| 13387 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13388 | int |
| 13389 | main () |
| 13390 | { |
| 13391 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13392 | ; |
| 13393 | return 0; |
| 13394 | } |
| 13395 | _ACEOF |
| 13396 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13397 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13398 | (eval $ac_link) 2>&5 |
| 13399 | ac_status=$? |
| 13400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13401 | (exit $ac_status); } && |
| 13402 | { ac_try='test -s conftest$ac_exeext' |
| 13403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13404 | (eval $ac_try) 2>&5 |
| 13405 | ac_status=$? |
| 13406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13407 | (exit $ac_status); }; }; then |
| 13408 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13409 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13410 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13411 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13412 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13413 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13414 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13415 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13416 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13417 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13418 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13419 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13420 | cat >>confdefs.h <<_ACEOF |
| 13421 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13422 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13423 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13424 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13425 | echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 13426 | echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6 |
| 13427 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
| 13428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13429 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13430 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13431 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13432 | cat >conftest.$ac_ext <<_ACEOF |
| 13433 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13434 | /* confdefs.h. */ |
| 13435 | _ACEOF |
| 13436 | cat confdefs.h >>conftest.$ac_ext |
| 13437 | cat >>conftest.$ac_ext <<_ACEOF |
| 13438 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13439 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13440 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13441 | #ifdef __cplusplus |
| 13442 | extern "C" |
| 13443 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13444 | /* 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] | 13445 | builtin and then its argument prototype would still apply. */ |
| 13446 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13447 | int |
| 13448 | main () |
| 13449 | { |
| 13450 | forkpty (); |
| 13451 | ; |
| 13452 | return 0; |
| 13453 | } |
| 13454 | _ACEOF |
| 13455 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13456 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13457 | (eval $ac_link) 2>&5 |
| 13458 | ac_status=$? |
| 13459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13460 | (exit $ac_status); } && |
| 13461 | { ac_try='test -s conftest$ac_exeext' |
| 13462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13463 | (eval $ac_try) 2>&5 |
| 13464 | ac_status=$? |
| 13465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13466 | (exit $ac_status); }; }; then |
| 13467 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13468 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13469 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13470 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13471 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13472 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13473 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13474 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 13475 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13476 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13477 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 13478 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6 |
| 13479 | if test $ac_cv_lib_util_forkpty = yes; then |
| 13480 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13481 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13482 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13483 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13484 | fi |
| 13485 | |
| 13486 | fi |
| 13487 | done |
| 13488 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13489 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13490 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13491 | |
| 13492 | |
| 13493 | |
| 13494 | |
| 13495 | |
| 13496 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13497 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 13498 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13499 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13500 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13501 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13502 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13503 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13504 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13505 | cat >conftest.$ac_ext <<_ACEOF |
| 13506 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13507 | /* confdefs.h. */ |
| 13508 | _ACEOF |
| 13509 | cat confdefs.h >>conftest.$ac_ext |
| 13510 | cat >>conftest.$ac_ext <<_ACEOF |
| 13511 | /* end confdefs.h. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13512 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13513 | which can conflict with char $ac_func (); below. |
| 13514 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 13515 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 13516 | including <limits.h> includes <sys/time.h> and causes problems |
| 13517 | checking for functions defined therein. */ |
| 13518 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13519 | # include <limits.h> |
| 13520 | #else |
| 13521 | # include <assert.h> |
| 13522 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13523 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13524 | #ifdef __cplusplus |
| 13525 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13526 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13527 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13528 | /* 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] | 13529 | builtin and then its argument prototype would still apply. */ |
| 13530 | char $ac_func (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13531 | /* The GNU C library defines this for functions which it implements |
| 13532 | to always fail with ENOSYS. Some functions are actually named |
| 13533 | something starting with __ and the normal name is an alias. */ |
| 13534 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13535 | choke me |
| 13536 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13537 | char (*f) () = $ac_func; |
| 13538 | #endif |
| 13539 | #ifdef __cplusplus |
| 13540 | } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13541 | #endif |
| 13542 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13543 | int |
| 13544 | main () |
| 13545 | { |
| 13546 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13547 | ; |
| 13548 | return 0; |
| 13549 | } |
| 13550 | _ACEOF |
| 13551 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13552 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13553 | (eval $ac_link) 2>&5 |
| 13554 | ac_status=$? |
| 13555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13556 | (exit $ac_status); } && |
| 13557 | { ac_try='test -s conftest$ac_exeext' |
| 13558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13559 | (eval $ac_try) 2>&5 |
| 13560 | ac_status=$? |
| 13561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13562 | (exit $ac_status); }; }; then |
| 13563 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13564 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13565 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13566 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13567 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13568 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13569 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13570 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13571 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13572 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13573 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13574 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13575 | cat >>confdefs.h <<_ACEOF |
| 13576 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13577 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13578 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13579 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13580 | done |
| 13581 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13582 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13583 | |
| 13584 | |
| 13585 | |
| 13586 | |
| 13587 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13588 | for ac_func in dup2 getcwd strdup strerror memmove |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13589 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13590 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13591 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13592 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13593 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13595 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13596 | cat >conftest.$ac_ext <<_ACEOF |
| 13597 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13598 | /* confdefs.h. */ |
| 13599 | _ACEOF |
| 13600 | cat confdefs.h >>conftest.$ac_ext |
| 13601 | cat >>conftest.$ac_ext <<_ACEOF |
| 13602 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13603 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13604 | which can conflict with char $ac_func (); below. |
| 13605 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 13606 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 13607 | including <limits.h> includes <sys/time.h> and causes problems |
| 13608 | checking for functions defined therein. */ |
| 13609 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13610 | # include <limits.h> |
| 13611 | #else |
| 13612 | # include <assert.h> |
| 13613 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13614 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13615 | #ifdef __cplusplus |
| 13616 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13617 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13618 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13619 | /* 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] | 13620 | builtin and then its argument prototype would still apply. */ |
| 13621 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13622 | /* The GNU C library defines this for functions which it implements |
| 13623 | to always fail with ENOSYS. Some functions are actually named |
| 13624 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13625 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13626 | choke me |
| 13627 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13628 | char (*f) () = $ac_func; |
| 13629 | #endif |
| 13630 | #ifdef __cplusplus |
| 13631 | } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13632 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13633 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13634 | int |
| 13635 | main () |
| 13636 | { |
| 13637 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13638 | ; |
| 13639 | return 0; |
| 13640 | } |
| 13641 | _ACEOF |
| 13642 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13643 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13644 | (eval $ac_link) 2>&5 |
| 13645 | ac_status=$? |
| 13646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13647 | (exit $ac_status); } && |
| 13648 | { ac_try='test -s conftest$ac_exeext' |
| 13649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13650 | (eval $ac_try) 2>&5 |
| 13651 | ac_status=$? |
| 13652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13653 | (exit $ac_status); }; }; then |
| 13654 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13655 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13656 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13657 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13658 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13659 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13660 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13661 | 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] | 13662 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13663 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13664 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13665 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13666 | cat >>confdefs.h <<_ACEOF |
| 13667 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13668 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13669 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13670 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13671 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13672 | fi |
| 13673 | done |
| 13674 | |
| 13675 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13676 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13677 | for ac_func in getpgrp |
| 13678 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13679 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13680 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13681 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13682 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13684 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13685 | cat >conftest.$ac_ext <<_ACEOF |
| 13686 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13687 | /* confdefs.h. */ |
| 13688 | _ACEOF |
| 13689 | cat confdefs.h >>conftest.$ac_ext |
| 13690 | cat >>conftest.$ac_ext <<_ACEOF |
| 13691 | /* end confdefs.h. */ |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13692 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13693 | which can conflict with char $ac_func (); below. |
| 13694 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 13695 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 13696 | including <limits.h> includes <sys/time.h> and causes problems |
| 13697 | checking for functions defined therein. */ |
| 13698 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13699 | # include <limits.h> |
| 13700 | #else |
| 13701 | # include <assert.h> |
| 13702 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13703 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13704 | #ifdef __cplusplus |
| 13705 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13706 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13707 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13708 | /* 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] | 13709 | builtin and then its argument prototype would still apply. */ |
| 13710 | char $ac_func (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13711 | /* The GNU C library defines this for functions which it implements |
| 13712 | to always fail with ENOSYS. Some functions are actually named |
| 13713 | something starting with __ and the normal name is an alias. */ |
| 13714 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13715 | choke me |
| 13716 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13717 | char (*f) () = $ac_func; |
| 13718 | #endif |
| 13719 | #ifdef __cplusplus |
| 13720 | } |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13721 | #endif |
| 13722 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13723 | int |
| 13724 | main () |
| 13725 | { |
| 13726 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13727 | ; |
| 13728 | return 0; |
| 13729 | } |
| 13730 | _ACEOF |
| 13731 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13732 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13733 | (eval $ac_link) 2>&5 |
| 13734 | ac_status=$? |
| 13735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13736 | (exit $ac_status); } && |
| 13737 | { ac_try='test -s conftest$ac_exeext' |
| 13738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13739 | (eval $ac_try) 2>&5 |
| 13740 | ac_status=$? |
| 13741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13742 | (exit $ac_status); }; }; then |
| 13743 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13744 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13745 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13746 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13747 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13748 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13749 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13750 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13751 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13752 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13753 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13754 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13755 | cat >>confdefs.h <<_ACEOF |
| 13756 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13757 | _ACEOF |
| 13758 | cat >conftest.$ac_ext <<_ACEOF |
| 13759 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13760 | /* confdefs.h. */ |
| 13761 | _ACEOF |
| 13762 | cat confdefs.h >>conftest.$ac_ext |
| 13763 | cat >>conftest.$ac_ext <<_ACEOF |
| 13764 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13765 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13766 | int |
| 13767 | main () |
| 13768 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13769 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13770 | ; |
| 13771 | return 0; |
| 13772 | } |
| 13773 | _ACEOF |
| 13774 | rm -f conftest.$ac_objext |
| 13775 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13776 | (eval $ac_compile) 2>&5 |
| 13777 | ac_status=$? |
| 13778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13779 | (exit $ac_status); } && |
| 13780 | { ac_try='test -s conftest.$ac_objext' |
| 13781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13782 | (eval $ac_try) 2>&5 |
| 13783 | ac_status=$? |
| 13784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13785 | (exit $ac_status); }; }; then |
| 13786 | |
| 13787 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13788 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13789 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13790 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13791 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13792 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13793 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13794 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13795 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13796 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13797 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13798 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13799 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13800 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13801 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13802 | |
| 13803 | for ac_func in setpgrp |
| 13804 | do |
| 13805 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13806 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13807 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13808 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13810 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13811 | cat >conftest.$ac_ext <<_ACEOF |
| 13812 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13813 | /* confdefs.h. */ |
| 13814 | _ACEOF |
| 13815 | cat confdefs.h >>conftest.$ac_ext |
| 13816 | cat >>conftest.$ac_ext <<_ACEOF |
| 13817 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13818 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13819 | which can conflict with char $ac_func (); below. |
| 13820 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 13821 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 13822 | including <limits.h> includes <sys/time.h> and causes problems |
| 13823 | checking for functions defined therein. */ |
| 13824 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13825 | # include <limits.h> |
| 13826 | #else |
| 13827 | # include <assert.h> |
| 13828 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13829 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 13830 | #ifdef __cplusplus |
| 13831 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13832 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13833 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13834 | /* We use char because int might match the return type of a gcc2 |
| 13835 | builtin and then its argument prototype would still apply. */ |
| 13836 | char $ac_func (); |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13837 | /* The GNU C library defines this for functions which it implements |
| 13838 | to always fail with ENOSYS. Some functions are actually named |
| 13839 | something starting with __ and the normal name is an alias. */ |
| 13840 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13841 | choke me |
| 13842 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13843 | char (*f) () = $ac_func; |
| 13844 | #endif |
| 13845 | #ifdef __cplusplus |
| 13846 | } |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13847 | #endif |
| 13848 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13849 | int |
| 13850 | main () |
| 13851 | { |
| 13852 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13853 | ; |
| 13854 | return 0; |
| 13855 | } |
| 13856 | _ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13857 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13858 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13859 | (eval $ac_link) 2>&5 |
| 13860 | ac_status=$? |
| 13861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13862 | (exit $ac_status); } && |
| 13863 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13865 | (eval $ac_try) 2>&5 |
| 13866 | ac_status=$? |
| 13867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13868 | (exit $ac_status); }; }; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13869 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13870 | else |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13871 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13872 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13873 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13874 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13875 | fi |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13876 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13877 | fi |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13878 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13879 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13880 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13881 | cat >>confdefs.h <<_ACEOF |
| 13882 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13883 | _ACEOF |
| 13884 | cat >conftest.$ac_ext <<_ACEOF |
| 13885 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13886 | /* confdefs.h. */ |
| 13887 | _ACEOF |
| 13888 | cat confdefs.h >>conftest.$ac_ext |
| 13889 | cat >>conftest.$ac_ext <<_ACEOF |
| 13890 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13891 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13892 | int |
| 13893 | main () |
| 13894 | { |
| 13895 | setpgrp(0,0); |
| 13896 | ; |
| 13897 | return 0; |
| 13898 | } |
| 13899 | _ACEOF |
| 13900 | rm -f conftest.$ac_objext |
| 13901 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13902 | (eval $ac_compile) 2>&5 |
| 13903 | ac_status=$? |
| 13904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13905 | (exit $ac_status); } && |
| 13906 | { ac_try='test -s conftest.$ac_objext' |
| 13907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13908 | (eval $ac_try) 2>&5 |
| 13909 | ac_status=$? |
| 13910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13911 | (exit $ac_status); }; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13912 | |
| 13913 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13914 | #define SETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13915 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 13916 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13917 | |
| 13918 | else |
| 13919 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13920 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13921 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 13922 | fi |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13923 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13924 | |
| 13925 | fi |
| 13926 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 13927 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13928 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13929 | for ac_func in gettimeofday |
| 13930 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13931 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13932 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13933 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13934 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13935 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13936 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13937 | cat >conftest.$ac_ext <<_ACEOF |
| 13938 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13939 | /* confdefs.h. */ |
| 13940 | _ACEOF |
| 13941 | cat confdefs.h >>conftest.$ac_ext |
| 13942 | cat >>conftest.$ac_ext <<_ACEOF |
| 13943 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13944 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13945 | which can conflict with char $ac_func (); below. |
| 13946 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 13947 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 13948 | including <limits.h> includes <sys/time.h> and causes problems |
| 13949 | checking for functions defined therein. */ |
| 13950 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13951 | # include <limits.h> |
| 13952 | #else |
| 13953 | # include <assert.h> |
| 13954 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13955 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13956 | #ifdef __cplusplus |
| 13957 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13958 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13959 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13960 | /* 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] | 13961 | builtin and then its argument prototype would still apply. */ |
| 13962 | char $ac_func (); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13963 | /* The GNU C library defines this for functions which it implements |
| 13964 | to always fail with ENOSYS. Some functions are actually named |
| 13965 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13966 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13967 | choke me |
| 13968 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13969 | char (*f) () = $ac_func; |
| 13970 | #endif |
| 13971 | #ifdef __cplusplus |
| 13972 | } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13973 | #endif |
| 13974 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13975 | int |
| 13976 | main () |
| 13977 | { |
| 13978 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13979 | ; |
| 13980 | return 0; |
| 13981 | } |
| 13982 | _ACEOF |
| 13983 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13984 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13985 | (eval $ac_link) 2>&5 |
| 13986 | ac_status=$? |
| 13987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13988 | (exit $ac_status); } && |
| 13989 | { ac_try='test -s conftest$ac_exeext' |
| 13990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13991 | (eval $ac_try) 2>&5 |
| 13992 | ac_status=$? |
| 13993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13994 | (exit $ac_status); }; }; then |
| 13995 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13996 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13997 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13998 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13999 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14000 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14001 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14002 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14003 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14004 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14005 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14006 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14007 | cat >>confdefs.h <<_ACEOF |
| 14008 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14009 | _ACEOF |
| 14010 | cat >conftest.$ac_ext <<_ACEOF |
| 14011 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14012 | /* confdefs.h. */ |
| 14013 | _ACEOF |
| 14014 | cat confdefs.h >>conftest.$ac_ext |
| 14015 | cat >>conftest.$ac_ext <<_ACEOF |
| 14016 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14017 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14018 | int |
| 14019 | main () |
| 14020 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14021 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14022 | ; |
| 14023 | return 0; |
| 14024 | } |
| 14025 | _ACEOF |
| 14026 | rm -f conftest.$ac_objext |
| 14027 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14028 | (eval $ac_compile) 2>&5 |
| 14029 | ac_status=$? |
| 14030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14031 | (exit $ac_status); } && |
| 14032 | { ac_try='test -s conftest.$ac_objext' |
| 14033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14034 | (eval $ac_try) 2>&5 |
| 14035 | ac_status=$? |
| 14036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14037 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14038 | : |
| 14039 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14040 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14041 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14042 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14043 | |
| 14044 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14045 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14046 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14047 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14048 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14049 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14050 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14051 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14052 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14053 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14054 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14055 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14056 | echo "$as_me:$LINENO: checking for major" >&5 |
| 14057 | echo $ECHO_N "checking for major... $ECHO_C" >&6 |
| 14058 | cat >conftest.$ac_ext <<_ACEOF |
| 14059 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14060 | /* confdefs.h. */ |
| 14061 | _ACEOF |
| 14062 | cat confdefs.h >>conftest.$ac_ext |
| 14063 | cat >>conftest.$ac_ext <<_ACEOF |
| 14064 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14065 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 14066 | #if defined(MAJOR_IN_MKDEV) |
| 14067 | #include <sys/mkdev.h> |
| 14068 | #elif defined(MAJOR_IN_SYSMACROS) |
| 14069 | #include <sys/sysmacros.h> |
| 14070 | #else |
| 14071 | #include <sys/types.h> |
| 14072 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14073 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14074 | int |
| 14075 | main () |
| 14076 | { |
| 14077 | |
| 14078 | makedev(major(0),minor(0)); |
| 14079 | |
| 14080 | ; |
| 14081 | return 0; |
| 14082 | } |
| 14083 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 14084 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14085 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14086 | (eval $ac_link) 2>&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14087 | ac_status=$? |
| 14088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14089 | (exit $ac_status); } && |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 14090 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14092 | (eval $ac_try) 2>&5 |
| 14093 | ac_status=$? |
| 14094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14095 | (exit $ac_status); }; }; then |
| 14096 | |
| 14097 | |
| 14098 | cat >>confdefs.h <<\_ACEOF |
| 14099 | #define HAVE_DEVICE_MACROS 1 |
| 14100 | _ACEOF |
| 14101 | |
| 14102 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14103 | echo "${ECHO_T}yes" >&6 |
| 14104 | |
| 14105 | else |
| 14106 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14107 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14108 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14109 | |
| 14110 | echo "$as_me:$LINENO: result: no" >&5 |
| 14111 | echo "${ECHO_T}no" >&6 |
| 14112 | |
| 14113 | fi |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 14114 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14115 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 14116 | # 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] | 14117 | # for [no]getaddrinfo in netdb.h. |
| 14118 | echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 14119 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6 |
| 14120 | cat >conftest.$ac_ext <<_ACEOF |
| 14121 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14122 | /* confdefs.h. */ |
| 14123 | _ACEOF |
| 14124 | cat confdefs.h >>conftest.$ac_ext |
| 14125 | cat >>conftest.$ac_ext <<_ACEOF |
| 14126 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 14127 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 14128 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 14129 | #include <sys/socket.h> |
| 14130 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 14131 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14132 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14133 | int |
| 14134 | main () |
| 14135 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14136 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 14137 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14138 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14139 | ; |
| 14140 | return 0; |
| 14141 | } |
| 14142 | _ACEOF |
| 14143 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14144 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14145 | (eval $ac_link) 2>&5 |
| 14146 | ac_status=$? |
| 14147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14148 | (exit $ac_status); } && |
| 14149 | { ac_try='test -s conftest$ac_exeext' |
| 14150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14151 | (eval $ac_try) 2>&5 |
| 14152 | ac_status=$? |
| 14153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14154 | (exit $ac_status); }; }; then |
| 14155 | |
| 14156 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14157 | echo "${ECHO_T}yes" >&6 |
| 14158 | echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| 14159 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14160 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14161 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 14162 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14163 | buggygetaddrinfo=yes |
| 14164 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14165 | cat >conftest.$ac_ext <<_ACEOF |
| 14166 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14167 | /* confdefs.h. */ |
| 14168 | _ACEOF |
| 14169 | cat confdefs.h >>conftest.$ac_ext |
| 14170 | cat >>conftest.$ac_ext <<_ACEOF |
| 14171 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14172 | |
| 14173 | #include <sys/types.h> |
| 14174 | #include <netdb.h> |
| 14175 | #include <string.h> |
| 14176 | #include <sys/socket.h> |
| 14177 | #include <netinet/in.h> |
| 14178 | |
| 14179 | main() |
| 14180 | { |
| 14181 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 14182 | struct addrinfo hints, *ai, *aitop; |
| 14183 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 14184 | |
| 14185 | for (passive = 0; passive <= 1; passive++) { |
| 14186 | memset(&hints, 0, sizeof(hints)); |
| 14187 | hints.ai_family = AF_UNSPEC; |
| 14188 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 14189 | hints.ai_socktype = SOCK_STREAM; |
| 14190 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 14191 | (void)gai_strerror(gaierr); |
| 14192 | goto bad; |
| 14193 | } |
| 14194 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 14195 | if (ai->ai_addr == NULL || |
| 14196 | ai->ai_addrlen == 0 || |
| 14197 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 14198 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 14199 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 14200 | goto bad; |
| 14201 | } |
| 14202 | switch (ai->ai_family) { |
| 14203 | case AF_INET: |
| 14204 | if (strcmp(strport, "54321") != 0) { |
| 14205 | goto bad; |
| 14206 | } |
| 14207 | if (passive) { |
| 14208 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 14209 | goto bad; |
| 14210 | } |
| 14211 | } else { |
| 14212 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 14213 | goto bad; |
| 14214 | } |
| 14215 | } |
| 14216 | inet4++; |
| 14217 | break; |
| 14218 | case AF_INET6: |
| 14219 | if (strcmp(strport, "54321") != 0) { |
| 14220 | goto bad; |
| 14221 | } |
| 14222 | if (passive) { |
| 14223 | if (strcmp(straddr, "::") != 0) { |
| 14224 | goto bad; |
| 14225 | } |
| 14226 | } else { |
| 14227 | if (strcmp(straddr, "::1") != 0) { |
| 14228 | goto bad; |
| 14229 | } |
| 14230 | } |
| 14231 | inet6++; |
| 14232 | break; |
| 14233 | case AF_UNSPEC: |
| 14234 | goto bad; |
| 14235 | break; |
| 14236 | default: |
| 14237 | /* another family support? */ |
| 14238 | break; |
| 14239 | } |
| 14240 | } |
| 14241 | } |
| 14242 | |
| 14243 | if (!(inet4 == 0 || inet4 == 2)) |
| 14244 | goto bad; |
| 14245 | if (!(inet6 == 0 || inet6 == 2)) |
| 14246 | goto bad; |
| 14247 | |
| 14248 | if (aitop) |
| 14249 | freeaddrinfo(aitop); |
| 14250 | exit(0); |
| 14251 | |
| 14252 | bad: |
| 14253 | if (aitop) |
| 14254 | freeaddrinfo(aitop); |
| 14255 | exit(1); |
| 14256 | } |
| 14257 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14258 | _ACEOF |
| 14259 | rm -f conftest$ac_exeext |
| 14260 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14261 | (eval $ac_link) 2>&5 |
| 14262 | ac_status=$? |
| 14263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14264 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 14265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14266 | (eval $ac_try) 2>&5 |
| 14267 | ac_status=$? |
| 14268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14269 | (exit $ac_status); }; }; then |
| 14270 | echo "$as_me:$LINENO: result: good" >&5 |
| 14271 | echo "${ECHO_T}good" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14272 | buggygetaddrinfo=no |
| 14273 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14274 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14275 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14276 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14277 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14278 | ( exit $ac_status ) |
| 14279 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 14280 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14281 | buggygetaddrinfo=yes |
| 14282 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14283 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14284 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14285 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14286 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14287 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14288 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14289 | |
| 14290 | echo "$as_me:$LINENO: result: no" >&5 |
| 14291 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14292 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14293 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 14294 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14295 | 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] | 14296 | |
| 14297 | if test "$buggygetaddrinfo" = "yes"; then |
| 14298 | if test "$ipv6" = "yes"; then |
| 14299 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 14300 | echo ' or you can specify "--disable-ipv6"'. |
| 14301 | exit 1 |
| 14302 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 14303 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14304 | |
| 14305 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 14306 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14307 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 14308 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14309 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14310 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 14311 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14312 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14313 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14314 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14315 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14316 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14318 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14319 | cat >conftest.$ac_ext <<_ACEOF |
| 14320 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14321 | /* confdefs.h. */ |
| 14322 | _ACEOF |
| 14323 | cat confdefs.h >>conftest.$ac_ext |
| 14324 | cat >>conftest.$ac_ext <<_ACEOF |
| 14325 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14326 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14327 | which can conflict with char $ac_func (); below. |
| 14328 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14329 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14330 | including <limits.h> includes <sys/time.h> and causes problems |
| 14331 | checking for functions defined therein. */ |
| 14332 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14333 | # include <limits.h> |
| 14334 | #else |
| 14335 | # include <assert.h> |
| 14336 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14337 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14338 | #ifdef __cplusplus |
| 14339 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14340 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14341 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14342 | /* 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] | 14343 | builtin and then its argument prototype would still apply. */ |
| 14344 | char $ac_func (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14345 | /* The GNU C library defines this for functions which it implements |
| 14346 | to always fail with ENOSYS. Some functions are actually named |
| 14347 | something starting with __ and the normal name is an alias. */ |
| 14348 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14349 | choke me |
| 14350 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14351 | char (*f) () = $ac_func; |
| 14352 | #endif |
| 14353 | #ifdef __cplusplus |
| 14354 | } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14355 | #endif |
| 14356 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14357 | int |
| 14358 | main () |
| 14359 | { |
| 14360 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14361 | ; |
| 14362 | return 0; |
| 14363 | } |
| 14364 | _ACEOF |
| 14365 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14366 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14367 | (eval $ac_link) 2>&5 |
| 14368 | ac_status=$? |
| 14369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14370 | (exit $ac_status); } && |
| 14371 | { ac_try='test -s conftest$ac_exeext' |
| 14372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14373 | (eval $ac_try) 2>&5 |
| 14374 | ac_status=$? |
| 14375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14376 | (exit $ac_status); }; }; then |
| 14377 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14378 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14379 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14380 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14381 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14382 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14383 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14384 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14385 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14386 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14387 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14388 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14389 | cat >>confdefs.h <<_ACEOF |
| 14390 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14391 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14392 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14393 | fi |
| 14394 | done |
| 14395 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14396 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14397 | # checks for structures |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14398 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 14399 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 14400 | if test "${ac_cv_header_time+set}" = set; then |
| 14401 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14402 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14403 | cat >conftest.$ac_ext <<_ACEOF |
| 14404 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14405 | /* confdefs.h. */ |
| 14406 | _ACEOF |
| 14407 | cat confdefs.h >>conftest.$ac_ext |
| 14408 | cat >>conftest.$ac_ext <<_ACEOF |
| 14409 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14410 | #include <sys/types.h> |
| 14411 | #include <sys/time.h> |
| 14412 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14413 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14414 | int |
| 14415 | main () |
| 14416 | { |
| 14417 | if ((struct tm *) 0) |
| 14418 | return 0; |
| 14419 | ; |
| 14420 | return 0; |
| 14421 | } |
| 14422 | _ACEOF |
| 14423 | rm -f conftest.$ac_objext |
| 14424 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14425 | (eval $ac_compile) 2>&5 |
| 14426 | ac_status=$? |
| 14427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14428 | (exit $ac_status); } && |
| 14429 | { ac_try='test -s conftest.$ac_objext' |
| 14430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14431 | (eval $ac_try) 2>&5 |
| 14432 | ac_status=$? |
| 14433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14434 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14435 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14436 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14437 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14438 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14439 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14440 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14441 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14442 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14443 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14444 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 14445 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14446 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14447 | |
| 14448 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14449 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14450 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14451 | |
| 14452 | fi |
| 14453 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14454 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 14455 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 14456 | if test "${ac_cv_struct_tm+set}" = set; then |
| 14457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14458 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14459 | cat >conftest.$ac_ext <<_ACEOF |
| 14460 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14461 | /* confdefs.h. */ |
| 14462 | _ACEOF |
| 14463 | cat confdefs.h >>conftest.$ac_ext |
| 14464 | cat >>conftest.$ac_ext <<_ACEOF |
| 14465 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14466 | #include <sys/types.h> |
| 14467 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14468 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14469 | int |
| 14470 | main () |
| 14471 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14472 | struct tm *tp; tp->tm_sec; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14473 | ; |
| 14474 | return 0; |
| 14475 | } |
| 14476 | _ACEOF |
| 14477 | rm -f conftest.$ac_objext |
| 14478 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14479 | (eval $ac_compile) 2>&5 |
| 14480 | ac_status=$? |
| 14481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14482 | (exit $ac_status); } && |
| 14483 | { ac_try='test -s conftest.$ac_objext' |
| 14484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14485 | (eval $ac_try) 2>&5 |
| 14486 | ac_status=$? |
| 14487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14488 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14489 | ac_cv_struct_tm=time.h |
| 14490 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14491 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14492 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14493 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14494 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14495 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14496 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14497 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14498 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 14499 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14500 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14501 | |
| 14502 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14503 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14504 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14505 | |
| 14506 | fi |
| 14507 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14508 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 14509 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 14510 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 14511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14512 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14513 | cat >conftest.$ac_ext <<_ACEOF |
| 14514 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14515 | /* confdefs.h. */ |
| 14516 | _ACEOF |
| 14517 | cat confdefs.h >>conftest.$ac_ext |
| 14518 | cat >>conftest.$ac_ext <<_ACEOF |
| 14519 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14520 | #include <sys/types.h> |
| 14521 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14522 | |
| 14523 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14524 | int |
| 14525 | main () |
| 14526 | { |
| 14527 | static struct tm ac_aggr; |
| 14528 | if (ac_aggr.tm_zone) |
| 14529 | return 0; |
| 14530 | ; |
| 14531 | return 0; |
| 14532 | } |
| 14533 | _ACEOF |
| 14534 | rm -f conftest.$ac_objext |
| 14535 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14536 | (eval $ac_compile) 2>&5 |
| 14537 | ac_status=$? |
| 14538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14539 | (exit $ac_status); } && |
| 14540 | { ac_try='test -s conftest.$ac_objext' |
| 14541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14542 | (eval $ac_try) 2>&5 |
| 14543 | ac_status=$? |
| 14544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14545 | (exit $ac_status); }; }; then |
| 14546 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14547 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14548 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14549 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14550 | |
| 14551 | cat >conftest.$ac_ext <<_ACEOF |
| 14552 | #line $LINENO "configure" |
| 14553 | /* confdefs.h. */ |
| 14554 | _ACEOF |
| 14555 | cat confdefs.h >>conftest.$ac_ext |
| 14556 | cat >>conftest.$ac_ext <<_ACEOF |
| 14557 | /* end confdefs.h. */ |
| 14558 | #include <sys/types.h> |
| 14559 | #include <$ac_cv_struct_tm> |
| 14560 | |
| 14561 | |
| 14562 | int |
| 14563 | main () |
| 14564 | { |
| 14565 | static struct tm ac_aggr; |
| 14566 | if (sizeof ac_aggr.tm_zone) |
| 14567 | return 0; |
| 14568 | ; |
| 14569 | return 0; |
| 14570 | } |
| 14571 | _ACEOF |
| 14572 | rm -f conftest.$ac_objext |
| 14573 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14574 | (eval $ac_compile) 2>&5 |
| 14575 | ac_status=$? |
| 14576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14577 | (exit $ac_status); } && |
| 14578 | { ac_try='test -s conftest.$ac_objext' |
| 14579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14580 | (eval $ac_try) 2>&5 |
| 14581 | ac_status=$? |
| 14582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14583 | (exit $ac_status); }; }; then |
| 14584 | ac_cv_member_struct_tm_tm_zone=yes |
| 14585 | else |
| 14586 | echo "$as_me: failed program was:" >&5 |
| 14587 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14588 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14589 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14590 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14591 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14592 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14593 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14594 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14595 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 14596 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 14597 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 14598 | |
| 14599 | cat >>confdefs.h <<_ACEOF |
| 14600 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 14601 | _ACEOF |
| 14602 | |
| 14603 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14604 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14605 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14606 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 14607 | |
| 14608 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14609 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14610 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14611 | |
| 14612 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14613 | echo "$as_me:$LINENO: checking for tzname" >&5 |
| 14614 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 14615 | if test "${ac_cv_var_tzname+set}" = set; then |
| 14616 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14617 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14618 | cat >conftest.$ac_ext <<_ACEOF |
| 14619 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14620 | /* confdefs.h. */ |
| 14621 | _ACEOF |
| 14622 | cat confdefs.h >>conftest.$ac_ext |
| 14623 | cat >>conftest.$ac_ext <<_ACEOF |
| 14624 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14625 | #include <time.h> |
| 14626 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14627 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14628 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14629 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14630 | int |
| 14631 | main () |
| 14632 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14633 | atoi(*tzname); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14634 | ; |
| 14635 | return 0; |
| 14636 | } |
| 14637 | _ACEOF |
| 14638 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14639 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14640 | (eval $ac_link) 2>&5 |
| 14641 | ac_status=$? |
| 14642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14643 | (exit $ac_status); } && |
| 14644 | { ac_try='test -s conftest$ac_exeext' |
| 14645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14646 | (eval $ac_try) 2>&5 |
| 14647 | ac_status=$? |
| 14648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14649 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14650 | ac_cv_var_tzname=yes |
| 14651 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14652 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14653 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14654 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14655 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14656 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14657 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14658 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14659 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 14660 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14661 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14662 | |
| 14663 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14664 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14665 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14666 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14667 | fi |
| 14668 | fi |
| 14669 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14670 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 14671 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 |
| 14672 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
| 14673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14674 | else |
| 14675 | cat >conftest.$ac_ext <<_ACEOF |
| 14676 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14677 | /* confdefs.h. */ |
| 14678 | _ACEOF |
| 14679 | cat confdefs.h >>conftest.$ac_ext |
| 14680 | cat >>conftest.$ac_ext <<_ACEOF |
| 14681 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14682 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14683 | int |
| 14684 | main () |
| 14685 | { |
| 14686 | static struct stat ac_aggr; |
| 14687 | if (ac_aggr.st_rdev) |
| 14688 | return 0; |
| 14689 | ; |
| 14690 | return 0; |
| 14691 | } |
| 14692 | _ACEOF |
| 14693 | rm -f conftest.$ac_objext |
| 14694 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14695 | (eval $ac_compile) 2>&5 |
| 14696 | ac_status=$? |
| 14697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14698 | (exit $ac_status); } && |
| 14699 | { ac_try='test -s conftest.$ac_objext' |
| 14700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14701 | (eval $ac_try) 2>&5 |
| 14702 | ac_status=$? |
| 14703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14704 | (exit $ac_status); }; }; then |
| 14705 | ac_cv_member_struct_stat_st_rdev=yes |
| 14706 | else |
| 14707 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14708 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14709 | |
| 14710 | cat >conftest.$ac_ext <<_ACEOF |
| 14711 | #line $LINENO "configure" |
| 14712 | /* confdefs.h. */ |
| 14713 | _ACEOF |
| 14714 | cat confdefs.h >>conftest.$ac_ext |
| 14715 | cat >>conftest.$ac_ext <<_ACEOF |
| 14716 | /* end confdefs.h. */ |
| 14717 | $ac_includes_default |
| 14718 | int |
| 14719 | main () |
| 14720 | { |
| 14721 | static struct stat ac_aggr; |
| 14722 | if (sizeof ac_aggr.st_rdev) |
| 14723 | return 0; |
| 14724 | ; |
| 14725 | return 0; |
| 14726 | } |
| 14727 | _ACEOF |
| 14728 | rm -f conftest.$ac_objext |
| 14729 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14730 | (eval $ac_compile) 2>&5 |
| 14731 | ac_status=$? |
| 14732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14733 | (exit $ac_status); } && |
| 14734 | { ac_try='test -s conftest.$ac_objext' |
| 14735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14736 | (eval $ac_try) 2>&5 |
| 14737 | ac_status=$? |
| 14738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14739 | (exit $ac_status); }; }; then |
| 14740 | ac_cv_member_struct_stat_st_rdev=yes |
| 14741 | else |
| 14742 | echo "$as_me: failed program was:" >&5 |
| 14743 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14744 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14745 | ac_cv_member_struct_stat_st_rdev=no |
| 14746 | fi |
| 14747 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14748 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14749 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14750 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14751 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 14752 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 |
| 14753 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
| 14754 | |
| 14755 | cat >>confdefs.h <<_ACEOF |
| 14756 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 14757 | _ACEOF |
| 14758 | |
| 14759 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14760 | fi |
| 14761 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14762 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 14763 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 |
| 14764 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
| 14765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14766 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14767 | cat >conftest.$ac_ext <<_ACEOF |
| 14768 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14769 | /* confdefs.h. */ |
| 14770 | _ACEOF |
| 14771 | cat confdefs.h >>conftest.$ac_ext |
| 14772 | cat >>conftest.$ac_ext <<_ACEOF |
| 14773 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14774 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14775 | int |
| 14776 | main () |
| 14777 | { |
| 14778 | static struct stat ac_aggr; |
| 14779 | if (ac_aggr.st_blksize) |
| 14780 | return 0; |
| 14781 | ; |
| 14782 | return 0; |
| 14783 | } |
| 14784 | _ACEOF |
| 14785 | rm -f conftest.$ac_objext |
| 14786 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14787 | (eval $ac_compile) 2>&5 |
| 14788 | ac_status=$? |
| 14789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14790 | (exit $ac_status); } && |
| 14791 | { ac_try='test -s conftest.$ac_objext' |
| 14792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14793 | (eval $ac_try) 2>&5 |
| 14794 | ac_status=$? |
| 14795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14796 | (exit $ac_status); }; }; then |
| 14797 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14798 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14799 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14800 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14801 | |
| 14802 | cat >conftest.$ac_ext <<_ACEOF |
| 14803 | #line $LINENO "configure" |
| 14804 | /* confdefs.h. */ |
| 14805 | _ACEOF |
| 14806 | cat confdefs.h >>conftest.$ac_ext |
| 14807 | cat >>conftest.$ac_ext <<_ACEOF |
| 14808 | /* end confdefs.h. */ |
| 14809 | $ac_includes_default |
| 14810 | int |
| 14811 | main () |
| 14812 | { |
| 14813 | static struct stat ac_aggr; |
| 14814 | if (sizeof ac_aggr.st_blksize) |
| 14815 | return 0; |
| 14816 | ; |
| 14817 | return 0; |
| 14818 | } |
| 14819 | _ACEOF |
| 14820 | rm -f conftest.$ac_objext |
| 14821 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14822 | (eval $ac_compile) 2>&5 |
| 14823 | ac_status=$? |
| 14824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14825 | (exit $ac_status); } && |
| 14826 | { ac_try='test -s conftest.$ac_objext' |
| 14827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14828 | (eval $ac_try) 2>&5 |
| 14829 | ac_status=$? |
| 14830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14831 | (exit $ac_status); }; }; then |
| 14832 | ac_cv_member_struct_stat_st_blksize=yes |
| 14833 | else |
| 14834 | echo "$as_me: failed program was:" >&5 |
| 14835 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14836 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14837 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14838 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14839 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14840 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14841 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14842 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14843 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 14844 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 |
| 14845 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14846 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14847 | cat >>confdefs.h <<_ACEOF |
| 14848 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 14849 | _ACEOF |
| 14850 | |
| 14851 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14852 | fi |
| 14853 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14854 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 14855 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 |
| 14856 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 14857 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14858 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14859 | cat >conftest.$ac_ext <<_ACEOF |
| 14860 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14861 | /* confdefs.h. */ |
| 14862 | _ACEOF |
| 14863 | cat confdefs.h >>conftest.$ac_ext |
| 14864 | cat >>conftest.$ac_ext <<_ACEOF |
| 14865 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14866 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14867 | int |
| 14868 | main () |
| 14869 | { |
| 14870 | static struct stat ac_aggr; |
| 14871 | if (ac_aggr.st_blocks) |
| 14872 | return 0; |
| 14873 | ; |
| 14874 | return 0; |
| 14875 | } |
| 14876 | _ACEOF |
| 14877 | rm -f conftest.$ac_objext |
| 14878 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14879 | (eval $ac_compile) 2>&5 |
| 14880 | ac_status=$? |
| 14881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14882 | (exit $ac_status); } && |
| 14883 | { ac_try='test -s conftest.$ac_objext' |
| 14884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14885 | (eval $ac_try) 2>&5 |
| 14886 | ac_status=$? |
| 14887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14888 | (exit $ac_status); }; }; then |
| 14889 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14890 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14891 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14892 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14893 | |
| 14894 | cat >conftest.$ac_ext <<_ACEOF |
| 14895 | #line $LINENO "configure" |
| 14896 | /* confdefs.h. */ |
| 14897 | _ACEOF |
| 14898 | cat confdefs.h >>conftest.$ac_ext |
| 14899 | cat >>conftest.$ac_ext <<_ACEOF |
| 14900 | /* end confdefs.h. */ |
| 14901 | $ac_includes_default |
| 14902 | int |
| 14903 | main () |
| 14904 | { |
| 14905 | static struct stat ac_aggr; |
| 14906 | if (sizeof ac_aggr.st_blocks) |
| 14907 | return 0; |
| 14908 | ; |
| 14909 | return 0; |
| 14910 | } |
| 14911 | _ACEOF |
| 14912 | rm -f conftest.$ac_objext |
| 14913 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14914 | (eval $ac_compile) 2>&5 |
| 14915 | ac_status=$? |
| 14916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14917 | (exit $ac_status); } && |
| 14918 | { ac_try='test -s conftest.$ac_objext' |
| 14919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14920 | (eval $ac_try) 2>&5 |
| 14921 | ac_status=$? |
| 14922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14923 | (exit $ac_status); }; }; then |
| 14924 | ac_cv_member_struct_stat_st_blocks=yes |
| 14925 | else |
| 14926 | echo "$as_me: failed program was:" >&5 |
| 14927 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14928 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14929 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14930 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14931 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14932 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14933 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14934 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14935 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 14936 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 |
| 14937 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14938 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14939 | cat >>confdefs.h <<_ACEOF |
| 14940 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 14941 | _ACEOF |
| 14942 | |
| 14943 | |
| 14944 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14945 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14946 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14947 | |
| 14948 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14949 | LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14950 | fi |
| 14951 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14952 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14953 | |
| 14954 | echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 14955 | echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6 |
| 14956 | if test "${ac_cv_header_time_altzone+set}" = set; then |
| 14957 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14958 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14959 | cat >conftest.$ac_ext <<_ACEOF |
| 14960 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14961 | /* confdefs.h. */ |
| 14962 | _ACEOF |
| 14963 | cat confdefs.h >>conftest.$ac_ext |
| 14964 | cat >>conftest.$ac_ext <<_ACEOF |
| 14965 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14966 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14967 | int |
| 14968 | main () |
| 14969 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14970 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14971 | ; |
| 14972 | return 0; |
| 14973 | } |
| 14974 | _ACEOF |
| 14975 | rm -f conftest.$ac_objext |
| 14976 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14977 | (eval $ac_compile) 2>&5 |
| 14978 | ac_status=$? |
| 14979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14980 | (exit $ac_status); } && |
| 14981 | { ac_try='test -s conftest.$ac_objext' |
| 14982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14983 | (eval $ac_try) 2>&5 |
| 14984 | ac_status=$? |
| 14985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14986 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14987 | ac_cv_header_time_altzone=yes |
| 14988 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14989 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14990 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14991 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14992 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14993 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14994 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14995 | fi |
| 14996 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14997 | echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 14998 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14999 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15000 | |
| 15001 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15002 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15003 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15004 | |
| 15005 | fi |
| 15006 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15007 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15008 | echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 15009 | echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 15010 | cat >conftest.$ac_ext <<_ACEOF |
| 15011 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15012 | /* confdefs.h. */ |
| 15013 | _ACEOF |
| 15014 | cat confdefs.h >>conftest.$ac_ext |
| 15015 | cat >>conftest.$ac_ext <<_ACEOF |
| 15016 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15017 | |
| 15018 | #include <sys/types.h> |
| 15019 | #include <sys/select.h> |
| 15020 | #include <sys/time.h> |
| 15021 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15022 | int |
| 15023 | main () |
| 15024 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15025 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15026 | ; |
| 15027 | return 0; |
| 15028 | } |
| 15029 | _ACEOF |
| 15030 | rm -f conftest.$ac_objext |
| 15031 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15032 | (eval $ac_compile) 2>&5 |
| 15033 | ac_status=$? |
| 15034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15035 | (exit $ac_status); } && |
| 15036 | { ac_try='test -s conftest.$ac_objext' |
| 15037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15038 | (eval $ac_try) 2>&5 |
| 15039 | ac_status=$? |
| 15040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15041 | (exit $ac_status); }; }; then |
| 15042 | |
| 15043 | |
| 15044 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15045 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15046 | _ACEOF |
| 15047 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15048 | was_it_defined=yes |
| 15049 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15050 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15051 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15052 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15053 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15054 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15055 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15056 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 15057 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15058 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15059 | echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 15060 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6 |
| 15061 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
| 15062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15063 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15064 | cat >conftest.$ac_ext <<_ACEOF |
| 15065 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15066 | /* confdefs.h. */ |
| 15067 | _ACEOF |
| 15068 | cat confdefs.h >>conftest.$ac_ext |
| 15069 | cat >>conftest.$ac_ext <<_ACEOF |
| 15070 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15071 | |
| 15072 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15073 | int |
| 15074 | main () |
| 15075 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15076 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15077 | ; |
| 15078 | return 0; |
| 15079 | } |
| 15080 | _ACEOF |
| 15081 | rm -f conftest.$ac_objext |
| 15082 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15083 | (eval $ac_compile) 2>&5 |
| 15084 | ac_status=$? |
| 15085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15086 | (exit $ac_status); } && |
| 15087 | { ac_try='test -s conftest.$ac_objext' |
| 15088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15089 | (eval $ac_try) 2>&5 |
| 15090 | ac_status=$? |
| 15091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15092 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15093 | ac_cv_struct_addrinfo=yes |
| 15094 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15095 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15096 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15097 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15098 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15099 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15100 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15101 | fi |
| 15102 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15103 | echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 15104 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15105 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15106 | |
| 15107 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15108 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15109 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15110 | |
| 15111 | fi |
| 15112 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15113 | echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 15114 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6 |
| 15115 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
| 15116 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15117 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15118 | cat >conftest.$ac_ext <<_ACEOF |
| 15119 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15120 | /* confdefs.h. */ |
| 15121 | _ACEOF |
| 15122 | cat confdefs.h >>conftest.$ac_ext |
| 15123 | cat >>conftest.$ac_ext <<_ACEOF |
| 15124 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15125 | |
| 15126 | # include <sys/types.h> |
| 15127 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15128 | int |
| 15129 | main () |
| 15130 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15131 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15132 | ; |
| 15133 | return 0; |
| 15134 | } |
| 15135 | _ACEOF |
| 15136 | rm -f conftest.$ac_objext |
| 15137 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15138 | (eval $ac_compile) 2>&5 |
| 15139 | ac_status=$? |
| 15140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15141 | (exit $ac_status); } && |
| 15142 | { ac_try='test -s conftest.$ac_objext' |
| 15143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15144 | (eval $ac_try) 2>&5 |
| 15145 | ac_status=$? |
| 15146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15147 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15148 | ac_cv_struct_sockaddr_storage=yes |
| 15149 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15150 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15151 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15152 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15153 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15154 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15155 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15156 | fi |
| 15157 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15158 | echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 15159 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15160 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15161 | |
| 15162 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15163 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15164 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15165 | |
| 15166 | fi |
| 15167 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15168 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15169 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15170 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15171 | echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 15172 | echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 |
| 15173 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
| 15174 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15175 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15176 | cat >conftest.$ac_ext <<_ACEOF |
| 15177 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15178 | /* confdefs.h. */ |
| 15179 | _ACEOF |
| 15180 | cat confdefs.h >>conftest.$ac_ext |
| 15181 | cat >>conftest.$ac_ext <<_ACEOF |
| 15182 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15183 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15184 | int |
| 15185 | main () |
| 15186 | { |
| 15187 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 15188 | test_array [0] = 0 |
| 15189 | |
| 15190 | ; |
| 15191 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15192 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15193 | _ACEOF |
| 15194 | rm -f conftest.$ac_objext |
| 15195 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15196 | (eval $ac_compile) 2>&5 |
| 15197 | ac_status=$? |
| 15198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15199 | (exit $ac_status); } && |
| 15200 | { ac_try='test -s conftest.$ac_objext' |
| 15201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15202 | (eval $ac_try) 2>&5 |
| 15203 | ac_status=$? |
| 15204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15205 | (exit $ac_status); }; }; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15206 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15207 | else |
| 15208 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15209 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15210 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15211 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15212 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15213 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15214 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15215 | echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 15216 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15217 | 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] | 15218 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15219 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15220 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15221 | |
| 15222 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15223 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15224 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 15225 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 15226 | if test "${ac_cv_c_const+set}" = set; then |
| 15227 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15228 | else |
| 15229 | cat >conftest.$ac_ext <<_ACEOF |
| 15230 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15231 | /* confdefs.h. */ |
| 15232 | _ACEOF |
| 15233 | cat confdefs.h >>conftest.$ac_ext |
| 15234 | cat >>conftest.$ac_ext <<_ACEOF |
| 15235 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15236 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15237 | int |
| 15238 | main () |
| 15239 | { |
| 15240 | /* FIXME: Include the comments suggested by Paul. */ |
| 15241 | #ifndef __cplusplus |
| 15242 | /* Ultrix mips cc rejects this. */ |
| 15243 | typedef int charset[2]; |
| 15244 | const charset x; |
| 15245 | /* SunOS 4.1.1 cc rejects this. */ |
| 15246 | char const *const *ccp; |
| 15247 | char **p; |
| 15248 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 15249 | struct point {int x, y;}; |
| 15250 | static struct point const zero = {0,0}; |
| 15251 | /* AIX XL C 1.02.0.0 rejects this. |
| 15252 | It does not let you subtract one const X* pointer from another in |
| 15253 | an arm of an if-expression whose if-part is not a constant |
| 15254 | expression */ |
| 15255 | const char *g = "string"; |
| 15256 | ccp = &g + (g ? g-g : 0); |
| 15257 | /* HPUX 7.0 cc rejects these. */ |
| 15258 | ++ccp; |
| 15259 | p = (char**) ccp; |
| 15260 | ccp = (char const *const *) p; |
| 15261 | { /* SCO 3.2v4 cc rejects this. */ |
| 15262 | char *t; |
| 15263 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15264 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15265 | *t++ = 0; |
| 15266 | } |
| 15267 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 15268 | int x[] = {25, 17}; |
| 15269 | const int *foo = &x[0]; |
| 15270 | ++foo; |
| 15271 | } |
| 15272 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 15273 | typedef const int *iptr; |
| 15274 | iptr p = 0; |
| 15275 | ++p; |
| 15276 | } |
| 15277 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 15278 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 15279 | struct s { int j; const int *ap[3]; }; |
| 15280 | struct s *b; b->j = 5; |
| 15281 | } |
| 15282 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 15283 | const int foo = 10; |
| 15284 | } |
| 15285 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15286 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15287 | ; |
| 15288 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15289 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15290 | _ACEOF |
| 15291 | rm -f conftest.$ac_objext |
| 15292 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15293 | (eval $ac_compile) 2>&5 |
| 15294 | ac_status=$? |
| 15295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15296 | (exit $ac_status); } && |
| 15297 | { ac_try='test -s conftest.$ac_objext' |
| 15298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15299 | (eval $ac_try) 2>&5 |
| 15300 | ac_status=$? |
| 15301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15302 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15303 | ac_cv_c_const=yes |
| 15304 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15305 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15306 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15307 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15308 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15309 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15310 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15311 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15312 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 15313 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15314 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15315 | |
| 15316 | cat >>confdefs.h <<\_ACEOF |
| 15317 | #define const |
| 15318 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15319 | |
| 15320 | fi |
| 15321 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15322 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15323 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15324 | echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 15325 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
| 15326 | cat >conftest.$ac_ext <<_ACEOF |
| 15327 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15328 | /* confdefs.h. */ |
| 15329 | _ACEOF |
| 15330 | cat confdefs.h >>conftest.$ac_ext |
| 15331 | cat >>conftest.$ac_ext <<_ACEOF |
| 15332 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15333 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15334 | int |
| 15335 | main () |
| 15336 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15337 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15338 | ; |
| 15339 | return 0; |
| 15340 | } |
| 15341 | _ACEOF |
| 15342 | rm -f conftest.$ac_objext |
| 15343 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15344 | (eval $ac_compile) 2>&5 |
| 15345 | ac_status=$? |
| 15346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15347 | (exit $ac_status); } && |
| 15348 | { ac_try='test -s conftest.$ac_objext' |
| 15349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15350 | (eval $ac_try) 2>&5 |
| 15351 | ac_status=$? |
| 15352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15353 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15354 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15355 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15356 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15357 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15358 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15359 | |
| 15360 | cat >>confdefs.h <<\_ACEOF |
| 15361 | #define volatile |
| 15362 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15363 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15364 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15365 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15366 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15367 | echo "$as_me:$LINENO: result: $works" >&5 |
| 15368 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15369 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15370 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15371 | echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 15372 | echo $ECHO_N "checking for working signed char... $ECHO_C" >&6 |
| 15373 | cat >conftest.$ac_ext <<_ACEOF |
| 15374 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15375 | /* confdefs.h. */ |
| 15376 | _ACEOF |
| 15377 | cat confdefs.h >>conftest.$ac_ext |
| 15378 | cat >>conftest.$ac_ext <<_ACEOF |
| 15379 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 15380 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15381 | int |
| 15382 | main () |
| 15383 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15384 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15385 | ; |
| 15386 | return 0; |
| 15387 | } |
| 15388 | _ACEOF |
| 15389 | rm -f conftest.$ac_objext |
| 15390 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15391 | (eval $ac_compile) 2>&5 |
| 15392 | ac_status=$? |
| 15393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15394 | (exit $ac_status); } && |
| 15395 | { ac_try='test -s conftest.$ac_objext' |
| 15396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15397 | (eval $ac_try) 2>&5 |
| 15398 | ac_status=$? |
| 15399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15400 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15401 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 15402 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15403 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15404 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15405 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15406 | |
| 15407 | cat >>confdefs.h <<\_ACEOF |
| 15408 | #define signed |
| 15409 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15410 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15411 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15412 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15413 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15414 | echo "$as_me:$LINENO: result: $works" >&5 |
| 15415 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15416 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15417 | have_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15418 | echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 15419 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6 |
| 15420 | cat >conftest.$ac_ext <<_ACEOF |
| 15421 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15422 | /* confdefs.h. */ |
| 15423 | _ACEOF |
| 15424 | cat confdefs.h >>conftest.$ac_ext |
| 15425 | cat >>conftest.$ac_ext <<_ACEOF |
| 15426 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15427 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15428 | int |
| 15429 | main () |
| 15430 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15431 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15432 | ; |
| 15433 | return 0; |
| 15434 | } |
| 15435 | _ACEOF |
| 15436 | rm -f conftest.$ac_objext |
| 15437 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15438 | (eval $ac_compile) 2>&5 |
| 15439 | ac_status=$? |
| 15440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15441 | (exit $ac_status); } && |
| 15442 | { ac_try='test -s conftest.$ac_objext' |
| 15443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15444 | (eval $ac_try) 2>&5 |
| 15445 | ac_status=$? |
| 15446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15447 | (exit $ac_status); }; }; then |
| 15448 | |
| 15449 | |
| 15450 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15451 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15452 | _ACEOF |
| 15453 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15454 | have_prototypes=yes |
| 15455 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15456 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15457 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15458 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15459 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15460 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15461 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15462 | echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 15463 | echo "${ECHO_T}$have_prototypes" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15464 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15465 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15466 | echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 15467 | echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6 |
| 15468 | cat >conftest.$ac_ext <<_ACEOF |
| 15469 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15470 | /* confdefs.h. */ |
| 15471 | _ACEOF |
| 15472 | cat confdefs.h >>conftest.$ac_ext |
| 15473 | cat >>conftest.$ac_ext <<_ACEOF |
| 15474 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15475 | |
| 15476 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 15477 | int foo(int x, ...) { |
| 15478 | va_list va; |
| 15479 | va_start(va, x); |
| 15480 | va_arg(va, int); |
| 15481 | va_arg(va, char *); |
| 15482 | va_arg(va, double); |
| 15483 | return 0; |
| 15484 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15485 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15486 | int |
| 15487 | main () |
| 15488 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 15489 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15490 | ; |
| 15491 | return 0; |
| 15492 | } |
| 15493 | _ACEOF |
| 15494 | rm -f conftest.$ac_objext |
| 15495 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15496 | (eval $ac_compile) 2>&5 |
| 15497 | ac_status=$? |
| 15498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15499 | (exit $ac_status); } && |
| 15500 | { ac_try='test -s conftest.$ac_objext' |
| 15501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15502 | (eval $ac_try) 2>&5 |
| 15503 | ac_status=$? |
| 15504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15505 | (exit $ac_status); }; }; then |
| 15506 | |
| 15507 | |
| 15508 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15509 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15510 | _ACEOF |
| 15511 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15512 | works=yes |
| 15513 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15514 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15515 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15516 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15517 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15518 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15519 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15520 | echo "$as_me:$LINENO: result: $works" >&5 |
| 15521 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15522 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15523 | # check if sockaddr has sa_len member |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15524 | echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 15525 | echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6 |
| 15526 | cat >conftest.$ac_ext <<_ACEOF |
| 15527 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15528 | /* confdefs.h. */ |
| 15529 | _ACEOF |
| 15530 | cat confdefs.h >>conftest.$ac_ext |
| 15531 | cat >>conftest.$ac_ext <<_ACEOF |
| 15532 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15533 | #include <sys/types.h> |
| 15534 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15535 | int |
| 15536 | main () |
| 15537 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15538 | struct sockaddr x; |
| 15539 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15540 | ; |
| 15541 | return 0; |
| 15542 | } |
| 15543 | _ACEOF |
| 15544 | rm -f conftest.$ac_objext |
| 15545 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15546 | (eval $ac_compile) 2>&5 |
| 15547 | ac_status=$? |
| 15548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15549 | (exit $ac_status); } && |
| 15550 | { ac_try='test -s conftest.$ac_objext' |
| 15551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15552 | (eval $ac_try) 2>&5 |
| 15553 | ac_status=$? |
| 15554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15555 | (exit $ac_status); }; }; then |
| 15556 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15557 | echo "${ECHO_T}yes" >&6 |
| 15558 | |
| 15559 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15560 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15561 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15562 | |
| 15563 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15564 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15565 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15566 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15567 | echo "$as_me:$LINENO: result: no" >&5 |
| 15568 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15569 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15570 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15571 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15572 | va_list_is_array=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15573 | echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 15574 | echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6 |
| 15575 | cat >conftest.$ac_ext <<_ACEOF |
| 15576 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15577 | /* confdefs.h. */ |
| 15578 | _ACEOF |
| 15579 | cat confdefs.h >>conftest.$ac_ext |
| 15580 | cat >>conftest.$ac_ext <<_ACEOF |
| 15581 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15582 | |
| 15583 | #ifdef HAVE_STDARG_PROTOTYPES |
| 15584 | #include <stdarg.h> |
| 15585 | #else |
| 15586 | #include <varargs.h> |
| 15587 | #endif |
| 15588 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15589 | int |
| 15590 | main () |
| 15591 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15592 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15593 | ; |
| 15594 | return 0; |
| 15595 | } |
| 15596 | _ACEOF |
| 15597 | rm -f conftest.$ac_objext |
| 15598 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15599 | (eval $ac_compile) 2>&5 |
| 15600 | ac_status=$? |
| 15601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15602 | (exit $ac_status); } && |
| 15603 | { ac_try='test -s conftest.$ac_objext' |
| 15604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15605 | (eval $ac_try) 2>&5 |
| 15606 | ac_status=$? |
| 15607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15608 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15609 | : |
| 15610 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15611 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15612 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15613 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15614 | |
| 15615 | |
| 15616 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15617 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15618 | _ACEOF |
| 15619 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15620 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15621 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15622 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15623 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15624 | echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 15625 | echo "${ECHO_T}$va_list_is_array" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15626 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15627 | # 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] | 15628 | |
| 15629 | |
| 15630 | |
| 15631 | echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 15632 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6 |
| 15633 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
| 15634 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15635 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15636 | cat >conftest.$ac_ext <<_ACEOF |
| 15637 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15638 | /* confdefs.h. */ |
| 15639 | _ACEOF |
| 15640 | cat confdefs.h >>conftest.$ac_ext |
| 15641 | cat >>conftest.$ac_ext <<_ACEOF |
| 15642 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15643 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15644 | which can conflict with char gethostbyname_r (); below. |
| 15645 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 15646 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 15647 | including <limits.h> includes <sys/time.h> and causes problems |
| 15648 | checking for functions defined therein. */ |
| 15649 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15650 | # include <limits.h> |
| 15651 | #else |
| 15652 | # include <assert.h> |
| 15653 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15654 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15655 | #ifdef __cplusplus |
| 15656 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15657 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15658 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15659 | /* 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] | 15660 | builtin and then its argument prototype would still apply. */ |
| 15661 | char gethostbyname_r (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15662 | /* The GNU C library defines this for functions which it implements |
| 15663 | to always fail with ENOSYS. Some functions are actually named |
| 15664 | something starting with __ and the normal name is an alias. */ |
| 15665 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 15666 | choke me |
| 15667 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15668 | char (*f) () = gethostbyname_r; |
| 15669 | #endif |
| 15670 | #ifdef __cplusplus |
| 15671 | } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15672 | #endif |
| 15673 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15674 | int |
| 15675 | main () |
| 15676 | { |
| 15677 | return f != gethostbyname_r; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15678 | ; |
| 15679 | return 0; |
| 15680 | } |
| 15681 | _ACEOF |
| 15682 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15683 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15684 | (eval $ac_link) 2>&5 |
| 15685 | ac_status=$? |
| 15686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15687 | (exit $ac_status); } && |
| 15688 | { ac_try='test -s conftest$ac_exeext' |
| 15689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15690 | (eval $ac_try) 2>&5 |
| 15691 | ac_status=$? |
| 15692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15693 | (exit $ac_status); }; }; then |
| 15694 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15695 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15696 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15697 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15698 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15699 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15700 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15701 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15702 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15703 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 15704 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6 |
| 15705 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15706 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15707 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15708 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15709 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15710 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15711 | echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 15712 | 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] | 15713 | OLD_CFLAGS=$CFLAGS |
| 15714 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15715 | cat >conftest.$ac_ext <<_ACEOF |
| 15716 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15717 | /* confdefs.h. */ |
| 15718 | _ACEOF |
| 15719 | cat confdefs.h >>conftest.$ac_ext |
| 15720 | cat >>conftest.$ac_ext <<_ACEOF |
| 15721 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15722 | |
| 15723 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15724 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15725 | int |
| 15726 | main () |
| 15727 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15728 | |
| 15729 | char *name; |
| 15730 | struct hostent *he, *res; |
| 15731 | char buffer[2048]; |
| 15732 | int buflen = 2048; |
| 15733 | int h_errnop; |
| 15734 | |
| 15735 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15736 | |
| 15737 | ; |
| 15738 | return 0; |
| 15739 | } |
| 15740 | _ACEOF |
| 15741 | rm -f conftest.$ac_objext |
| 15742 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15743 | (eval $ac_compile) 2>&5 |
| 15744 | ac_status=$? |
| 15745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15746 | (exit $ac_status); } && |
| 15747 | { ac_try='test -s conftest.$ac_objext' |
| 15748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15749 | (eval $ac_try) 2>&5 |
| 15750 | ac_status=$? |
| 15751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15752 | (exit $ac_status); }; }; then |
| 15753 | |
| 15754 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 15755 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15756 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 15757 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15758 | |
| 15759 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15760 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15761 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15762 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15763 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15764 | echo "${ECHO_T}yes" >&6 |
| 15765 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15766 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15767 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15768 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15769 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15770 | |
| 15771 | echo "$as_me:$LINENO: result: no" >&5 |
| 15772 | echo "${ECHO_T}no" >&6 |
| 15773 | echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 15774 | echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6 |
| 15775 | cat >conftest.$ac_ext <<_ACEOF |
| 15776 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15777 | /* confdefs.h. */ |
| 15778 | _ACEOF |
| 15779 | cat confdefs.h >>conftest.$ac_ext |
| 15780 | cat >>conftest.$ac_ext <<_ACEOF |
| 15781 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15782 | |
| 15783 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15784 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15785 | int |
| 15786 | main () |
| 15787 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15788 | |
| 15789 | char *name; |
| 15790 | struct hostent *he; |
| 15791 | char buffer[2048]; |
| 15792 | int buflen = 2048; |
| 15793 | int h_errnop; |
| 15794 | |
| 15795 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15796 | |
| 15797 | ; |
| 15798 | return 0; |
| 15799 | } |
| 15800 | _ACEOF |
| 15801 | rm -f conftest.$ac_objext |
| 15802 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15803 | (eval $ac_compile) 2>&5 |
| 15804 | ac_status=$? |
| 15805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15806 | (exit $ac_status); } && |
| 15807 | { ac_try='test -s conftest.$ac_objext' |
| 15808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15809 | (eval $ac_try) 2>&5 |
| 15810 | ac_status=$? |
| 15811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15812 | (exit $ac_status); }; }; then |
| 15813 | |
| 15814 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 15815 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15816 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 15817 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15818 | |
| 15819 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15820 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15821 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15822 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15823 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15824 | echo "${ECHO_T}yes" >&6 |
| 15825 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15826 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15827 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15828 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15829 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15830 | |
| 15831 | echo "$as_me:$LINENO: result: no" >&5 |
| 15832 | echo "${ECHO_T}no" >&6 |
| 15833 | echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 15834 | echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6 |
| 15835 | cat >conftest.$ac_ext <<_ACEOF |
| 15836 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15837 | /* confdefs.h. */ |
| 15838 | _ACEOF |
| 15839 | cat confdefs.h >>conftest.$ac_ext |
| 15840 | cat >>conftest.$ac_ext <<_ACEOF |
| 15841 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15842 | |
| 15843 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15844 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15845 | int |
| 15846 | main () |
| 15847 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15848 | |
| 15849 | char *name; |
| 15850 | struct hostent *he; |
| 15851 | struct hostent_data data; |
| 15852 | |
| 15853 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15854 | |
| 15855 | ; |
| 15856 | return 0; |
| 15857 | } |
| 15858 | _ACEOF |
| 15859 | rm -f conftest.$ac_objext |
| 15860 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15861 | (eval $ac_compile) 2>&5 |
| 15862 | ac_status=$? |
| 15863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15864 | (exit $ac_status); } && |
| 15865 | { ac_try='test -s conftest.$ac_objext' |
| 15866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15867 | (eval $ac_try) 2>&5 |
| 15868 | ac_status=$? |
| 15869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15870 | (exit $ac_status); }; }; then |
| 15871 | |
| 15872 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 15873 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15874 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 15875 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15876 | |
| 15877 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15878 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15879 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15880 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15881 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15882 | echo "${ECHO_T}yes" >&6 |
| 15883 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15884 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15885 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15886 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15887 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15888 | |
| 15889 | echo "$as_me:$LINENO: result: no" >&5 |
| 15890 | echo "${ECHO_T}no" >&6 |
| 15891 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15892 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15893 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15894 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15895 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15896 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15897 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15898 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15899 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15900 | CFLAGS=$OLD_CFLAGS |
| 15901 | |
| 15902 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15903 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15904 | |
| 15905 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15906 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15907 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15908 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15909 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15910 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15911 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15912 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15913 | cat >conftest.$ac_ext <<_ACEOF |
| 15914 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15915 | /* confdefs.h. */ |
| 15916 | _ACEOF |
| 15917 | cat confdefs.h >>conftest.$ac_ext |
| 15918 | cat >>conftest.$ac_ext <<_ACEOF |
| 15919 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15920 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15921 | which can conflict with char $ac_func (); below. |
| 15922 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 15923 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 15924 | including <limits.h> includes <sys/time.h> and causes problems |
| 15925 | checking for functions defined therein. */ |
| 15926 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15927 | # include <limits.h> |
| 15928 | #else |
| 15929 | # include <assert.h> |
| 15930 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15931 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15932 | #ifdef __cplusplus |
| 15933 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15934 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15935 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15936 | /* 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] | 15937 | builtin and then its argument prototype would still apply. */ |
| 15938 | char $ac_func (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15939 | /* The GNU C library defines this for functions which it implements |
| 15940 | to always fail with ENOSYS. Some functions are actually named |
| 15941 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15942 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15943 | choke me |
| 15944 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15945 | char (*f) () = $ac_func; |
| 15946 | #endif |
| 15947 | #ifdef __cplusplus |
| 15948 | } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15949 | #endif |
| 15950 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15951 | int |
| 15952 | main () |
| 15953 | { |
| 15954 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15955 | ; |
| 15956 | return 0; |
| 15957 | } |
| 15958 | _ACEOF |
| 15959 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15960 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15961 | (eval $ac_link) 2>&5 |
| 15962 | ac_status=$? |
| 15963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15964 | (exit $ac_status); } && |
| 15965 | { ac_try='test -s conftest$ac_exeext' |
| 15966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15967 | (eval $ac_try) 2>&5 |
| 15968 | ac_status=$? |
| 15969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15970 | (exit $ac_status); }; }; then |
| 15971 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15972 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15973 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15974 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15975 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15976 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15977 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15978 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15979 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15980 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15981 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15982 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15983 | cat >>confdefs.h <<_ACEOF |
| 15984 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15985 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15986 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15987 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15988 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15989 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15990 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15991 | fi |
| 15992 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15993 | |
| 15994 | |
| 15995 | |
| 15996 | |
| 15997 | |
| 15998 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15999 | # checks for system services |
| 16000 | # (none yet) |
| 16001 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16002 | # Linux requires this for correct f.p. operations |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16003 | echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 16004 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6 |
| 16005 | if test "${ac_cv_func___fpu_control+set}" = set; then |
| 16006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16007 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16008 | cat >conftest.$ac_ext <<_ACEOF |
| 16009 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16010 | /* confdefs.h. */ |
| 16011 | _ACEOF |
| 16012 | cat confdefs.h >>conftest.$ac_ext |
| 16013 | cat >>conftest.$ac_ext <<_ACEOF |
| 16014 | /* end confdefs.h. */ |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16015 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16016 | which can conflict with char __fpu_control (); below. |
| 16017 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 16018 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 16019 | including <limits.h> includes <sys/time.h> and causes problems |
| 16020 | checking for functions defined therein. */ |
| 16021 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16022 | # include <limits.h> |
| 16023 | #else |
| 16024 | # include <assert.h> |
| 16025 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16026 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16027 | #ifdef __cplusplus |
| 16028 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16029 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16030 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16031 | /* 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] | 16032 | builtin and then its argument prototype would still apply. */ |
| 16033 | char __fpu_control (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16034 | /* The GNU C library defines this for functions which it implements |
| 16035 | to always fail with ENOSYS. Some functions are actually named |
| 16036 | something starting with __ and the normal name is an alias. */ |
| 16037 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 16038 | choke me |
| 16039 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16040 | char (*f) () = __fpu_control; |
| 16041 | #endif |
| 16042 | #ifdef __cplusplus |
| 16043 | } |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16044 | #endif |
| 16045 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16046 | int |
| 16047 | main () |
| 16048 | { |
| 16049 | return f != __fpu_control; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16050 | ; |
| 16051 | return 0; |
| 16052 | } |
| 16053 | _ACEOF |
| 16054 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16055 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16056 | (eval $ac_link) 2>&5 |
| 16057 | ac_status=$? |
| 16058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16059 | (exit $ac_status); } && |
| 16060 | { ac_try='test -s conftest$ac_exeext' |
| 16061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16062 | (eval $ac_try) 2>&5 |
| 16063 | ac_status=$? |
| 16064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16065 | (exit $ac_status); }; }; then |
| 16066 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16067 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16068 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16069 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16070 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16071 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16072 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16073 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16074 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16075 | echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 16076 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6 |
| 16077 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16078 | : |
| 16079 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16080 | |
| 16081 | echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 16082 | echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6 |
| 16083 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
| 16084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16085 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16086 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16087 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16088 | cat >conftest.$ac_ext <<_ACEOF |
| 16089 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16090 | /* confdefs.h. */ |
| 16091 | _ACEOF |
| 16092 | cat confdefs.h >>conftest.$ac_ext |
| 16093 | cat >>conftest.$ac_ext <<_ACEOF |
| 16094 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16095 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 16096 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16097 | #ifdef __cplusplus |
| 16098 | extern "C" |
| 16099 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 16100 | /* 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] | 16101 | builtin and then its argument prototype would still apply. */ |
| 16102 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16103 | int |
| 16104 | main () |
| 16105 | { |
| 16106 | __fpu_control (); |
| 16107 | ; |
| 16108 | return 0; |
| 16109 | } |
| 16110 | _ACEOF |
| 16111 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16112 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16113 | (eval $ac_link) 2>&5 |
| 16114 | ac_status=$? |
| 16115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16116 | (exit $ac_status); } && |
| 16117 | { ac_try='test -s conftest$ac_exeext' |
| 16118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16119 | (eval $ac_try) 2>&5 |
| 16120 | ac_status=$? |
| 16121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16122 | (exit $ac_status); }; }; then |
| 16123 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16124 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16125 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16126 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16127 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16128 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16129 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16130 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 16131 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16132 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16133 | echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 16134 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6 |
| 16135 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
| 16136 | cat >>confdefs.h <<_ACEOF |
| 16137 | #define HAVE_LIBIEEE 1 |
| 16138 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16139 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16140 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16141 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16142 | fi |
| 16143 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16144 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16145 | fi |
| 16146 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16147 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16148 | # Check for --with-fpectl |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16149 | echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 16150 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6 |
| 16151 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16152 | # Check whether --with-fpectl or --without-fpectl was given. |
| 16153 | if test "${with_fpectl+set}" = set; then |
| 16154 | withval="$with_fpectl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16155 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16156 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16157 | then |
| 16158 | |
| 16159 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16160 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16161 | _ACEOF |
| 16162 | |
| 16163 | echo "$as_me:$LINENO: result: yes" >&5 |
| 16164 | echo "${ECHO_T}yes" >&6 |
| 16165 | else echo "$as_me:$LINENO: result: no" >&5 |
| 16166 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16167 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16168 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16169 | echo "$as_me:$LINENO: result: no" >&5 |
| 16170 | echo "${ECHO_T}no" >&6 |
| 16171 | fi; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16172 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16173 | # check for --with-libm=... |
| 16174 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 16175 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 16176 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16177 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 16178 | *) LIBM=-lm |
| 16179 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16180 | echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 16181 | echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6 |
| 16182 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16183 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 16184 | if test "${with_libm+set}" = set; then |
| 16185 | withval="$with_libm" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16186 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16187 | if test "$withval" = no |
| 16188 | then LIBM= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16189 | echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 16190 | echo "${ECHO_T}force LIBM empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16191 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16192 | then LIBM=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16193 | echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 16194 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6 |
| 16195 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 16196 | echo "$as_me: error: proper usage is --with-libm=STRING" >&2;} |
| 16197 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16198 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16199 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16200 | echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 16201 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6 |
| 16202 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16203 | |
| 16204 | # check for --with-libc=... |
| 16205 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16206 | echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 16207 | echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6 |
| 16208 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16209 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 16210 | if test "${with_libc+set}" = set; then |
| 16211 | withval="$with_libc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16212 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16213 | if test "$withval" = no |
| 16214 | then LIBC= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16215 | echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 16216 | echo "${ECHO_T}force LIBC empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16217 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16218 | then LIBC=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16219 | echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 16220 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6 |
| 16221 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 16222 | echo "$as_me: error: proper usage is --with-libc=STRING" >&2;} |
| 16223 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16224 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16225 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16226 | echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 16227 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6 |
| 16228 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16229 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 16230 | # check for hypot() in math library |
| 16231 | LIBS_SAVE=$LIBS |
| 16232 | LIBS="$LIBS $LIBM" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16233 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 16234 | for ac_func in hypot |
| 16235 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16236 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16237 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16238 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 16239 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 16240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 16241 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16242 | cat >conftest.$ac_ext <<_ACEOF |
| 16243 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16244 | /* confdefs.h. */ |
| 16245 | _ACEOF |
| 16246 | cat confdefs.h >>conftest.$ac_ext |
| 16247 | cat >>conftest.$ac_ext <<_ACEOF |
| 16248 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16249 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16250 | which can conflict with char $ac_func (); below. |
| 16251 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 16252 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 16253 | including <limits.h> includes <sys/time.h> and causes problems |
| 16254 | checking for functions defined therein. */ |
| 16255 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16256 | # include <limits.h> |
| 16257 | #else |
| 16258 | # include <assert.h> |
| 16259 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16260 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16261 | #ifdef __cplusplus |
| 16262 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16263 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16264 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 16265 | /* 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] | 16266 | builtin and then its argument prototype would still apply. */ |
| 16267 | char $ac_func (); |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 16268 | /* The GNU C library defines this for functions which it implements |
| 16269 | to always fail with ENOSYS. Some functions are actually named |
| 16270 | something starting with __ and the normal name is an alias. */ |
| 16271 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 16272 | choke me |
| 16273 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16274 | char (*f) () = $ac_func; |
| 16275 | #endif |
| 16276 | #ifdef __cplusplus |
| 16277 | } |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 16278 | #endif |
| 16279 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16280 | int |
| 16281 | main () |
| 16282 | { |
| 16283 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16284 | ; |
| 16285 | return 0; |
| 16286 | } |
| 16287 | _ACEOF |
| 16288 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16289 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16290 | (eval $ac_link) 2>&5 |
| 16291 | ac_status=$? |
| 16292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16293 | (exit $ac_status); } && |
| 16294 | { ac_try='test -s conftest$ac_exeext' |
| 16295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16296 | (eval $ac_try) 2>&5 |
| 16297 | ac_status=$? |
| 16298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16299 | (exit $ac_status); }; }; then |
| 16300 | eval "$as_ac_var=yes" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 16301 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16302 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16303 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16304 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16305 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16306 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16307 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16308 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16309 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 16310 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 16311 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16312 | cat >>confdefs.h <<_ACEOF |
| 16313 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16314 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16315 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16316 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16317 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 16318 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 16319 | done |
| 16320 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16321 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 16322 | LIBS=$LIBS_SAVE |
| 16323 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16324 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16325 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 16326 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 16327 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 16328 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 16329 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16330 | fi |
| 16331 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 16332 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16333 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16334 | # Is the header compilable? |
| 16335 | echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 16336 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6 |
| 16337 | cat >conftest.$ac_ext <<_ACEOF |
| 16338 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16339 | /* confdefs.h. */ |
| 16340 | _ACEOF |
| 16341 | cat confdefs.h >>conftest.$ac_ext |
| 16342 | cat >>conftest.$ac_ext <<_ACEOF |
| 16343 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16344 | $ac_includes_default |
| 16345 | #include <wchar.h> |
| 16346 | _ACEOF |
| 16347 | rm -f conftest.$ac_objext |
| 16348 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16349 | (eval $ac_compile) 2>&5 |
| 16350 | ac_status=$? |
| 16351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16352 | (exit $ac_status); } && |
| 16353 | { ac_try='test -s conftest.$ac_objext' |
| 16354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16355 | (eval $ac_try) 2>&5 |
| 16356 | ac_status=$? |
| 16357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16358 | (exit $ac_status); }; }; then |
| 16359 | ac_header_compiler=yes |
| 16360 | else |
| 16361 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16362 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16363 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16364 | ac_header_compiler=no |
| 16365 | fi |
| 16366 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16367 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16368 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 16369 | |
| 16370 | # Is the header present? |
| 16371 | echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 16372 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6 |
| 16373 | cat >conftest.$ac_ext <<_ACEOF |
| 16374 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16375 | /* confdefs.h. */ |
| 16376 | _ACEOF |
| 16377 | cat confdefs.h >>conftest.$ac_ext |
| 16378 | cat >>conftest.$ac_ext <<_ACEOF |
| 16379 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16380 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16381 | _ACEOF |
| 16382 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 16383 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 16384 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16385 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16386 | rm -f conftest.er1 |
| 16387 | cat conftest.err >&5 |
| 16388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16389 | (exit $ac_status); } >/dev/null; then |
| 16390 | if test -s conftest.err; then |
| 16391 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16392 | else |
| 16393 | ac_cpp_err= |
| 16394 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16395 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16396 | ac_cpp_err=yes |
| 16397 | fi |
| 16398 | if test -z "$ac_cpp_err"; then |
| 16399 | ac_header_preproc=yes |
| 16400 | else |
| 16401 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16402 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16403 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16404 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16405 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16406 | rm -f conftest.err conftest.$ac_ext |
| 16407 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16408 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 16409 | |
| 16410 | # So? What about this header? |
| 16411 | case $ac_header_compiler:$ac_header_preproc in |
| 16412 | yes:no ) |
| 16413 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16414 | echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16415 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16416 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;} |
| 16417 | ( |
| 16418 | cat <<\_ASBOX |
| 16419 | ## ------------------------------------ ## |
| 16420 | ## Report this to bug-autoconf@gnu.org. ## |
| 16421 | ## ------------------------------------ ## |
| 16422 | _ASBOX |
| 16423 | ) | |
| 16424 | sed "s/^/$as_me: WARNING: /" >&2 |
| 16425 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16426 | no:yes ) |
| 16427 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 16428 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
| 16429 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 16430 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 16431 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16432 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;} |
| 16433 | ( |
| 16434 | cat <<\_ASBOX |
| 16435 | ## ------------------------------------ ## |
| 16436 | ## Report this to bug-autoconf@gnu.org. ## |
| 16437 | ## ------------------------------------ ## |
| 16438 | _ASBOX |
| 16439 | ) | |
| 16440 | sed "s/^/$as_me: WARNING: /" >&2 |
| 16441 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16442 | esac |
| 16443 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 16444 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 16445 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 16446 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16447 | else |
| 16448 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16449 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16450 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 16451 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
| 16452 | |
| 16453 | fi |
| 16454 | if test $ac_cv_header_wchar_h = yes; then |
| 16455 | |
| 16456 | |
| 16457 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16458 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16459 | _ACEOF |
| 16460 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16461 | wchar_h="yes" |
| 16462 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16463 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16464 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16465 | |
| 16466 | fi |
| 16467 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16468 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16469 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16470 | # determine wchar_t size |
| 16471 | if test "$wchar_h" = yes |
| 16472 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16473 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 16474 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 |
| 16475 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 16476 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16477 | else |
| 16478 | cat >conftest.$ac_ext <<_ACEOF |
| 16479 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16480 | /* confdefs.h. */ |
| 16481 | _ACEOF |
| 16482 | cat confdefs.h >>conftest.$ac_ext |
| 16483 | cat >>conftest.$ac_ext <<_ACEOF |
| 16484 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16485 | #include <wchar.h> |
| 16486 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16487 | int |
| 16488 | main () |
| 16489 | { |
| 16490 | if ((wchar_t *) 0) |
| 16491 | return 0; |
| 16492 | if (sizeof (wchar_t)) |
| 16493 | return 0; |
| 16494 | ; |
| 16495 | return 0; |
| 16496 | } |
| 16497 | _ACEOF |
| 16498 | rm -f conftest.$ac_objext |
| 16499 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16500 | (eval $ac_compile) 2>&5 |
| 16501 | ac_status=$? |
| 16502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16503 | (exit $ac_status); } && |
| 16504 | { ac_try='test -s conftest.$ac_objext' |
| 16505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16506 | (eval $ac_try) 2>&5 |
| 16507 | ac_status=$? |
| 16508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16509 | (exit $ac_status); }; }; then |
| 16510 | ac_cv_type_wchar_t=yes |
| 16511 | else |
| 16512 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16513 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16514 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16515 | ac_cv_type_wchar_t=no |
| 16516 | fi |
| 16517 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16518 | fi |
| 16519 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 16520 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 |
| 16521 | |
| 16522 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 16523 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 |
| 16524 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
| 16525 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16526 | else |
| 16527 | if test "$ac_cv_type_wchar_t" = yes; then |
| 16528 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 16529 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 16530 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 16531 | # This bug is HP SR number 8606223364. |
| 16532 | if test "$cross_compiling" = yes; then |
| 16533 | # Depending upon the size, compute the lo and hi bounds. |
| 16534 | cat >conftest.$ac_ext <<_ACEOF |
| 16535 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16536 | /* confdefs.h. */ |
| 16537 | _ACEOF |
| 16538 | cat confdefs.h >>conftest.$ac_ext |
| 16539 | cat >>conftest.$ac_ext <<_ACEOF |
| 16540 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16541 | #include <wchar.h> |
| 16542 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16543 | int |
| 16544 | main () |
| 16545 | { |
| 16546 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; |
| 16547 | test_array [0] = 0 |
| 16548 | |
| 16549 | ; |
| 16550 | return 0; |
| 16551 | } |
| 16552 | _ACEOF |
| 16553 | rm -f conftest.$ac_objext |
| 16554 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16555 | (eval $ac_compile) 2>&5 |
| 16556 | ac_status=$? |
| 16557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16558 | (exit $ac_status); } && |
| 16559 | { ac_try='test -s conftest.$ac_objext' |
| 16560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16561 | (eval $ac_try) 2>&5 |
| 16562 | ac_status=$? |
| 16563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16564 | (exit $ac_status); }; }; then |
| 16565 | ac_lo=0 ac_mid=0 |
| 16566 | while :; do |
| 16567 | cat >conftest.$ac_ext <<_ACEOF |
| 16568 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16569 | /* confdefs.h. */ |
| 16570 | _ACEOF |
| 16571 | cat confdefs.h >>conftest.$ac_ext |
| 16572 | cat >>conftest.$ac_ext <<_ACEOF |
| 16573 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16574 | #include <wchar.h> |
| 16575 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16576 | int |
| 16577 | main () |
| 16578 | { |
| 16579 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 16580 | test_array [0] = 0 |
| 16581 | |
| 16582 | ; |
| 16583 | return 0; |
| 16584 | } |
| 16585 | _ACEOF |
| 16586 | rm -f conftest.$ac_objext |
| 16587 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16588 | (eval $ac_compile) 2>&5 |
| 16589 | ac_status=$? |
| 16590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16591 | (exit $ac_status); } && |
| 16592 | { ac_try='test -s conftest.$ac_objext' |
| 16593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16594 | (eval $ac_try) 2>&5 |
| 16595 | ac_status=$? |
| 16596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16597 | (exit $ac_status); }; }; then |
| 16598 | ac_hi=$ac_mid; break |
| 16599 | else |
| 16600 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16601 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16602 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16603 | ac_lo=`expr $ac_mid + 1` |
| 16604 | if test $ac_lo -le $ac_mid; then |
| 16605 | ac_lo= ac_hi= |
| 16606 | break |
| 16607 | fi |
| 16608 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 16609 | fi |
| 16610 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16611 | done |
| 16612 | else |
| 16613 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16614 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16615 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16616 | cat >conftest.$ac_ext <<_ACEOF |
| 16617 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16618 | /* confdefs.h. */ |
| 16619 | _ACEOF |
| 16620 | cat confdefs.h >>conftest.$ac_ext |
| 16621 | cat >>conftest.$ac_ext <<_ACEOF |
| 16622 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16623 | #include <wchar.h> |
| 16624 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16625 | int |
| 16626 | main () |
| 16627 | { |
| 16628 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; |
| 16629 | test_array [0] = 0 |
| 16630 | |
| 16631 | ; |
| 16632 | return 0; |
| 16633 | } |
| 16634 | _ACEOF |
| 16635 | rm -f conftest.$ac_objext |
| 16636 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16637 | (eval $ac_compile) 2>&5 |
| 16638 | ac_status=$? |
| 16639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16640 | (exit $ac_status); } && |
| 16641 | { ac_try='test -s conftest.$ac_objext' |
| 16642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16643 | (eval $ac_try) 2>&5 |
| 16644 | ac_status=$? |
| 16645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16646 | (exit $ac_status); }; }; then |
| 16647 | ac_hi=-1 ac_mid=-1 |
| 16648 | while :; do |
| 16649 | cat >conftest.$ac_ext <<_ACEOF |
| 16650 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16651 | /* confdefs.h. */ |
| 16652 | _ACEOF |
| 16653 | cat confdefs.h >>conftest.$ac_ext |
| 16654 | cat >>conftest.$ac_ext <<_ACEOF |
| 16655 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16656 | #include <wchar.h> |
| 16657 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16658 | int |
| 16659 | main () |
| 16660 | { |
| 16661 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; |
| 16662 | test_array [0] = 0 |
| 16663 | |
| 16664 | ; |
| 16665 | return 0; |
| 16666 | } |
| 16667 | _ACEOF |
| 16668 | rm -f conftest.$ac_objext |
| 16669 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16670 | (eval $ac_compile) 2>&5 |
| 16671 | ac_status=$? |
| 16672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16673 | (exit $ac_status); } && |
| 16674 | { ac_try='test -s conftest.$ac_objext' |
| 16675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16676 | (eval $ac_try) 2>&5 |
| 16677 | ac_status=$? |
| 16678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16679 | (exit $ac_status); }; }; then |
| 16680 | ac_lo=$ac_mid; break |
| 16681 | else |
| 16682 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16683 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16684 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16685 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 16686 | if test $ac_mid -le $ac_hi; then |
| 16687 | ac_lo= ac_hi= |
| 16688 | break |
| 16689 | fi |
| 16690 | ac_mid=`expr 2 '*' $ac_mid` |
| 16691 | fi |
| 16692 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16693 | done |
| 16694 | else |
| 16695 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16696 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16697 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16698 | ac_lo= ac_hi= |
| 16699 | fi |
| 16700 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16701 | fi |
| 16702 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16703 | # Binary search between lo and hi bounds. |
| 16704 | while test "x$ac_lo" != "x$ac_hi"; do |
| 16705 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 16706 | cat >conftest.$ac_ext <<_ACEOF |
| 16707 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16708 | /* confdefs.h. */ |
| 16709 | _ACEOF |
| 16710 | cat confdefs.h >>conftest.$ac_ext |
| 16711 | cat >>conftest.$ac_ext <<_ACEOF |
| 16712 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16713 | #include <wchar.h> |
| 16714 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16715 | int |
| 16716 | main () |
| 16717 | { |
| 16718 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 16719 | test_array [0] = 0 |
| 16720 | |
| 16721 | ; |
| 16722 | return 0; |
| 16723 | } |
| 16724 | _ACEOF |
| 16725 | rm -f conftest.$ac_objext |
| 16726 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16727 | (eval $ac_compile) 2>&5 |
| 16728 | ac_status=$? |
| 16729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16730 | (exit $ac_status); } && |
| 16731 | { ac_try='test -s conftest.$ac_objext' |
| 16732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16733 | (eval $ac_try) 2>&5 |
| 16734 | ac_status=$? |
| 16735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16736 | (exit $ac_status); }; }; then |
| 16737 | ac_hi=$ac_mid |
| 16738 | else |
| 16739 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16740 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16741 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16742 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 16743 | fi |
| 16744 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16745 | done |
| 16746 | case $ac_lo in |
| 16747 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16748 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
| 16749 | See \`config.log' for more details." >&5 |
| 16750 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 |
| 16751 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16752 | { (exit 1); exit 1; }; } ;; |
| 16753 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16754 | else |
| 16755 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16756 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 16757 | See \`config.log' for more details." >&5 |
| 16758 | echo "$as_me: error: cannot run test program while cross compiling |
| 16759 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16760 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16761 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16762 | cat >conftest.$ac_ext <<_ACEOF |
| 16763 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16764 | /* confdefs.h. */ |
| 16765 | _ACEOF |
| 16766 | cat confdefs.h >>conftest.$ac_ext |
| 16767 | cat >>conftest.$ac_ext <<_ACEOF |
| 16768 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16769 | #include <wchar.h> |
| 16770 | |
| 16771 | long longval () { return (long) (sizeof (wchar_t)); } |
| 16772 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16773 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16774 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16775 | int |
| 16776 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16777 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16778 | |
| 16779 | FILE *f = fopen ("conftest.val", "w"); |
| 16780 | if (! f) |
| 16781 | exit (1); |
| 16782 | if (((long) (sizeof (wchar_t))) < 0) |
| 16783 | { |
| 16784 | long i = longval (); |
| 16785 | if (i != ((long) (sizeof (wchar_t)))) |
| 16786 | exit (1); |
| 16787 | fprintf (f, "%ld\n", i); |
| 16788 | } |
| 16789 | else |
| 16790 | { |
| 16791 | unsigned long i = ulongval (); |
| 16792 | if (i != ((long) (sizeof (wchar_t)))) |
| 16793 | exit (1); |
| 16794 | fprintf (f, "%lu\n", i); |
| 16795 | } |
| 16796 | exit (ferror (f) || fclose (f) != 0); |
| 16797 | |
| 16798 | ; |
| 16799 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16800 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16801 | _ACEOF |
| 16802 | rm -f conftest$ac_exeext |
| 16803 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16804 | (eval $ac_link) 2>&5 |
| 16805 | ac_status=$? |
| 16806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16807 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16809 | (eval $ac_try) 2>&5 |
| 16810 | ac_status=$? |
| 16811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16812 | (exit $ac_status); }; }; then |
| 16813 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16814 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16815 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16816 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16817 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16818 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16819 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16820 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
| 16821 | See \`config.log' for more details." >&5 |
| 16822 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 |
| 16823 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16824 | { (exit 1); exit 1; }; } |
| 16825 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16826 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16827 | fi |
| 16828 | fi |
| 16829 | rm -f conftest.val |
| 16830 | else |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16831 | ac_cv_sizeof_wchar_t=0 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16832 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16833 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16834 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 16835 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 |
| 16836 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16837 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16838 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16839 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16840 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16841 | fi |
| 16842 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 16843 | echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5 |
| 16844 | echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6 |
| 16845 | have_ucs4_tcl=no |
| 16846 | cat >conftest.$ac_ext <<_ACEOF |
| 16847 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16848 | /* confdefs.h. */ |
| 16849 | _ACEOF |
| 16850 | cat confdefs.h >>conftest.$ac_ext |
| 16851 | cat >>conftest.$ac_ext <<_ACEOF |
| 16852 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 16853 | |
| 16854 | #include <tcl.h> |
| 16855 | #if TCL_UTF_MAX != 6 |
| 16856 | # error "NOT UCS4_TCL" |
| 16857 | #endif |
| 16858 | int |
| 16859 | main () |
| 16860 | { |
| 16861 | |
| 16862 | ; |
| 16863 | return 0; |
| 16864 | } |
| 16865 | _ACEOF |
| 16866 | rm -f conftest.$ac_objext |
| 16867 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16868 | (eval $ac_compile) 2>&5 |
| 16869 | ac_status=$? |
| 16870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16871 | (exit $ac_status); } && |
| 16872 | { ac_try='test -s conftest.$ac_objext' |
| 16873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16874 | (eval $ac_try) 2>&5 |
| 16875 | ac_status=$? |
| 16876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16877 | (exit $ac_status); }; }; then |
| 16878 | |
| 16879 | |
| 16880 | cat >>confdefs.h <<\_ACEOF |
| 16881 | #define HAVE_UCS4_TCL 1 |
| 16882 | _ACEOF |
| 16883 | |
| 16884 | have_ucs4_tcl=yes |
| 16885 | |
| 16886 | else |
| 16887 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16888 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16889 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 16890 | fi |
| 16891 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16892 | echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5 |
| 16893 | echo "${ECHO_T}$have_ucs4_tcl" >&6 |
| 16894 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16895 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 16896 | if test "$wchar_h" = yes |
| 16897 | then |
| 16898 | # check whether wchar_t is signed or not |
| 16899 | echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5 |
| 16900 | echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6 |
| 16901 | if test "${ac_cv_wchar_t_signed+set}" = set; then |
| 16902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16903 | else |
| 16904 | |
| 16905 | if test "$cross_compiling" = yes; then |
| 16906 | ac_cv_wchar_t_signed=yes |
| 16907 | else |
| 16908 | cat >conftest.$ac_ext <<_ACEOF |
| 16909 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16910 | /* confdefs.h. */ |
| 16911 | _ACEOF |
| 16912 | cat confdefs.h >>conftest.$ac_ext |
| 16913 | cat >>conftest.$ac_ext <<_ACEOF |
| 16914 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 16915 | |
| 16916 | #include <wchar.h> |
| 16917 | int main() |
| 16918 | { |
| 16919 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 1 : 0); |
| 16920 | } |
| 16921 | |
| 16922 | _ACEOF |
| 16923 | rm -f conftest$ac_exeext |
| 16924 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16925 | (eval $ac_link) 2>&5 |
| 16926 | ac_status=$? |
| 16927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16928 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16930 | (eval $ac_try) 2>&5 |
| 16931 | ac_status=$? |
| 16932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16933 | (exit $ac_status); }; }; then |
| 16934 | ac_cv_wchar_t_signed=yes |
| 16935 | else |
| 16936 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16937 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16938 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16939 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 16940 | ( exit $ac_status ) |
| 16941 | ac_cv_wchar_t_signed=no |
| 16942 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16943 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 16944 | fi |
| 16945 | fi |
| 16946 | |
| 16947 | echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5 |
| 16948 | echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6 |
| 16949 | fi |
| 16950 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16951 | echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 16952 | 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] | 16953 | # Check whether --enable-unicode or --disable-unicode was given. |
| 16954 | if test "${enable_unicode+set}" = set; then |
| 16955 | enableval="$enable_unicode" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16956 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16957 | else |
| 16958 | enable_unicode=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16959 | fi; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16960 | |
| 16961 | if test $enable_unicode = yes |
| 16962 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 16963 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 16964 | case "$have_ucs4_tcl" in |
| 16965 | yes) enable_unicode="ucs4" |
| 16966 | ;; |
| 16967 | *) enable_unicode="ucs2" |
| 16968 | ;; |
| 16969 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16970 | fi |
| 16971 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 16972 | |
| 16973 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16974 | case "$enable_unicode" in |
| 16975 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16976 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16977 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16978 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16979 | |
| 16980 | ;; |
| 16981 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16982 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16983 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16984 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16985 | |
| 16986 | ;; |
| 16987 | esac |
| 16988 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16989 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16990 | |
| 16991 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 16992 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16993 | if test "$enable_unicode" = "no" |
| 16994 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 16995 | UNICODE_OBJS="" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16996 | echo "$as_me:$LINENO: result: not used" >&5 |
| 16997 | echo "${ECHO_T}not used" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16998 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 16999 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17000 | |
| 17001 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17002 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17003 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17004 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 17005 | |
| 17006 | # wchar_t is only usable if it maps to an unsigned type |
| 17007 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ |
| 17008 | -a "$ac_cv_wchar_t_signed" == "no" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17009 | then |
| 17010 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17011 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17012 | cat >>confdefs.h <<\_ACEOF |
| 17013 | #define HAVE_USABLE_WCHAR_T 1 |
| 17014 | _ACEOF |
| 17015 | |
| 17016 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17017 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17018 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17019 | |
| 17020 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 17021 | then |
| 17022 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17023 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17024 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17025 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17026 | |
| 17027 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 17028 | then |
| 17029 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17030 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17031 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17032 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17033 | |
| 17034 | else |
| 17035 | PY_UNICODE_TYPE="no type found" |
| 17036 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17037 | echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 17038 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17039 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17040 | |
| 17041 | # check for endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17042 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 17043 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 17044 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 17045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17046 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17047 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 17048 | cat >conftest.$ac_ext <<_ACEOF |
| 17049 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17050 | /* confdefs.h. */ |
| 17051 | _ACEOF |
| 17052 | cat confdefs.h >>conftest.$ac_ext |
| 17053 | cat >>conftest.$ac_ext <<_ACEOF |
| 17054 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17055 | #include <sys/types.h> |
| 17056 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17057 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17058 | int |
| 17059 | main () |
| 17060 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17061 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 17062 | bogus endian macros |
| 17063 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17064 | |
| 17065 | ; |
| 17066 | return 0; |
| 17067 | } |
| 17068 | _ACEOF |
| 17069 | rm -f conftest.$ac_objext |
| 17070 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17071 | (eval $ac_compile) 2>&5 |
| 17072 | ac_status=$? |
| 17073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17074 | (exit $ac_status); } && |
| 17075 | { ac_try='test -s conftest.$ac_objext' |
| 17076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17077 | (eval $ac_try) 2>&5 |
| 17078 | ac_status=$? |
| 17079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17080 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17081 | # 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] | 17082 | cat >conftest.$ac_ext <<_ACEOF |
| 17083 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17084 | /* confdefs.h. */ |
| 17085 | _ACEOF |
| 17086 | cat confdefs.h >>conftest.$ac_ext |
| 17087 | cat >>conftest.$ac_ext <<_ACEOF |
| 17088 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17089 | #include <sys/types.h> |
| 17090 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17091 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17092 | int |
| 17093 | main () |
| 17094 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17095 | #if BYTE_ORDER != BIG_ENDIAN |
| 17096 | not big endian |
| 17097 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17098 | |
| 17099 | ; |
| 17100 | return 0; |
| 17101 | } |
| 17102 | _ACEOF |
| 17103 | rm -f conftest.$ac_objext |
| 17104 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17105 | (eval $ac_compile) 2>&5 |
| 17106 | ac_status=$? |
| 17107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17108 | (exit $ac_status); } && |
| 17109 | { ac_try='test -s conftest.$ac_objext' |
| 17110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17111 | (eval $ac_try) 2>&5 |
| 17112 | ac_status=$? |
| 17113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17114 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17115 | ac_cv_c_bigendian=yes |
| 17116 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17117 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17118 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17119 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17120 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17121 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17122 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17123 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17124 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17125 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17126 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17127 | # It does not; compile a test program. |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17128 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17129 | # try to guess the endianness by grepping values into an object file |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17130 | ac_cv_c_bigendian=unknown |
| 17131 | cat >conftest.$ac_ext <<_ACEOF |
| 17132 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17133 | /* confdefs.h. */ |
| 17134 | _ACEOF |
| 17135 | cat confdefs.h >>conftest.$ac_ext |
| 17136 | cat >>conftest.$ac_ext <<_ACEOF |
| 17137 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17138 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 17139 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 17140 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 17141 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 17142 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 17143 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17144 | int |
| 17145 | main () |
| 17146 | { |
| 17147 | _ascii (); _ebcdic (); |
| 17148 | ; |
| 17149 | return 0; |
| 17150 | } |
| 17151 | _ACEOF |
| 17152 | rm -f conftest.$ac_objext |
| 17153 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17154 | (eval $ac_compile) 2>&5 |
| 17155 | ac_status=$? |
| 17156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17157 | (exit $ac_status); } && |
| 17158 | { ac_try='test -s conftest.$ac_objext' |
| 17159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17160 | (eval $ac_try) 2>&5 |
| 17161 | ac_status=$? |
| 17162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17163 | (exit $ac_status); }; }; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17164 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17165 | ac_cv_c_bigendian=yes |
| 17166 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17167 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17168 | if test "$ac_cv_c_bigendian" = unknown; then |
| 17169 | ac_cv_c_bigendian=no |
| 17170 | else |
| 17171 | # finding both strings is unlikely to happen, but who knows? |
| 17172 | ac_cv_c_bigendian=unknown |
| 17173 | fi |
| 17174 | fi |
| 17175 | else |
| 17176 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17177 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17178 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17179 | fi |
| 17180 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17181 | else |
| 17182 | cat >conftest.$ac_ext <<_ACEOF |
| 17183 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17184 | /* confdefs.h. */ |
| 17185 | _ACEOF |
| 17186 | cat confdefs.h >>conftest.$ac_ext |
| 17187 | cat >>conftest.$ac_ext <<_ACEOF |
| 17188 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17189 | int |
| 17190 | main () |
| 17191 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17192 | /* Are we little or big endian? From Harbison&Steele. */ |
| 17193 | union |
| 17194 | { |
| 17195 | long l; |
| 17196 | char c[sizeof (long)]; |
| 17197 | } u; |
| 17198 | u.l = 1; |
| 17199 | exit (u.c[sizeof (long) - 1] == 1); |
| 17200 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17201 | _ACEOF |
| 17202 | rm -f conftest$ac_exeext |
| 17203 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17204 | (eval $ac_link) 2>&5 |
| 17205 | ac_status=$? |
| 17206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17207 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17209 | (eval $ac_try) 2>&5 |
| 17210 | ac_status=$? |
| 17211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17212 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17213 | ac_cv_c_bigendian=no |
| 17214 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17215 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17216 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17217 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17218 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17219 | ( exit $ac_status ) |
| 17220 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17221 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17222 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17223 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17224 | fi |
| 17225 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17226 | fi |
| 17227 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 17228 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 17229 | case $ac_cv_c_bigendian in |
| 17230 | yes) |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17231 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17232 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17233 | #define WORDS_BIGENDIAN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17234 | _ACEOF |
| 17235 | ;; |
| 17236 | no) |
| 17237 | ;; |
| 17238 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17239 | { { echo "$as_me:$LINENO: error: unknown endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17240 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17241 | echo "$as_me: error: unknown endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17242 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 17243 | { (exit 1); exit 1; }; } ;; |
| 17244 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17245 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17246 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 17247 | # Check whether right shifting a negative integer extends the sign bit |
| 17248 | # 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] | 17249 | echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 17250 | echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6 |
| 17251 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
| 17252 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 17253 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17254 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 17255 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 17256 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 17257 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17258 | cat >conftest.$ac_ext <<_ACEOF |
| 17259 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17260 | /* confdefs.h. */ |
| 17261 | _ACEOF |
| 17262 | cat confdefs.h >>conftest.$ac_ext |
| 17263 | cat >>conftest.$ac_ext <<_ACEOF |
| 17264 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 17265 | |
| 17266 | int main() |
| 17267 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 17268 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 17269 | } |
| 17270 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17271 | _ACEOF |
| 17272 | rm -f conftest$ac_exeext |
| 17273 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17274 | (eval $ac_link) 2>&5 |
| 17275 | ac_status=$? |
| 17276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17277 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17279 | (eval $ac_try) 2>&5 |
| 17280 | ac_status=$? |
| 17281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17282 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 17283 | ac_cv_rshift_extends_sign=yes |
| 17284 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17285 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17286 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17287 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17288 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17289 | ( exit $ac_status ) |
| 17290 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 17291 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17292 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17293 | fi |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 17294 | fi |
| 17295 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17296 | echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 17297 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 17298 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 17299 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17300 | |
| 17301 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 17302 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17303 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 17304 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 17305 | fi |
| 17306 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 17307 | # check for getc_unlocked and related locking functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17308 | echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 17309 | echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6 |
| 17310 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
| 17311 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 17312 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17313 | |
| 17314 | cat >conftest.$ac_ext <<_ACEOF |
| 17315 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17316 | /* confdefs.h. */ |
| 17317 | _ACEOF |
| 17318 | cat confdefs.h >>conftest.$ac_ext |
| 17319 | cat >>conftest.$ac_ext <<_ACEOF |
| 17320 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 17321 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17322 | int |
| 17323 | main () |
| 17324 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 17325 | |
| 17326 | FILE *f = fopen("/dev/null", "r"); |
| 17327 | flockfile(f); |
| 17328 | getc_unlocked(f); |
| 17329 | funlockfile(f); |
| 17330 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17331 | ; |
| 17332 | return 0; |
| 17333 | } |
| 17334 | _ACEOF |
| 17335 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17336 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17337 | (eval $ac_link) 2>&5 |
| 17338 | ac_status=$? |
| 17339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17340 | (exit $ac_status); } && |
| 17341 | { ac_try='test -s conftest$ac_exeext' |
| 17342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17343 | (eval $ac_try) 2>&5 |
| 17344 | ac_status=$? |
| 17345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17346 | (exit $ac_status); }; }; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 17347 | ac_cv_have_getc_unlocked=yes |
| 17348 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17349 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17350 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17351 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17352 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 17353 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17354 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 17355 | fi |
| 17356 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17357 | echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 17358 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 17359 | if test "$ac_cv_have_getc_unlocked" = yes |
| 17360 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17361 | |
| 17362 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 17363 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17364 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 17365 | |
| 17366 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 17367 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 17368 | # check for readline 2.2 |
| 17369 | cat >conftest.$ac_ext <<_ACEOF |
| 17370 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17371 | /* confdefs.h. */ |
| 17372 | _ACEOF |
| 17373 | cat confdefs.h >>conftest.$ac_ext |
| 17374 | cat >>conftest.$ac_ext <<_ACEOF |
| 17375 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 17376 | #include <readline/readline.h> |
| 17377 | _ACEOF |
| 17378 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 17379 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 17380 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17381 | grep -v '^ *+' conftest.er1 >conftest.err |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 17382 | rm -f conftest.er1 |
| 17383 | cat conftest.err >&5 |
| 17384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17385 | (exit $ac_status); } >/dev/null; then |
| 17386 | if test -s conftest.err; then |
| 17387 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 17388 | else |
| 17389 | ac_cpp_err= |
| 17390 | fi |
| 17391 | else |
| 17392 | ac_cpp_err=yes |
| 17393 | fi |
| 17394 | if test -z "$ac_cpp_err"; then |
| 17395 | have_readline=yes |
| 17396 | else |
| 17397 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17398 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17399 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 17400 | have_readline=no |
| 17401 | fi |
| 17402 | rm -f conftest.err conftest.$ac_ext |
| 17403 | if test $have_readline = yes |
| 17404 | then |
| 17405 | cat >conftest.$ac_ext <<_ACEOF |
| 17406 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17407 | /* confdefs.h. */ |
| 17408 | _ACEOF |
| 17409 | cat confdefs.h >>conftest.$ac_ext |
| 17410 | cat >>conftest.$ac_ext <<_ACEOF |
| 17411 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 17412 | #include <readline/readline.h> |
| 17413 | |
| 17414 | _ACEOF |
| 17415 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17416 | $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] | 17417 | |
| 17418 | cat >>confdefs.h <<\_ACEOF |
| 17419 | #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1 |
| 17420 | _ACEOF |
| 17421 | |
| 17422 | fi |
| 17423 | rm -f conftest* |
| 17424 | |
| 17425 | fi |
| 17426 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17427 | # check for readline 4.0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17428 | echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 17429 | echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6 |
| 17430 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
| 17431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 17432 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17433 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 17434 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17435 | cat >conftest.$ac_ext <<_ACEOF |
| 17436 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17437 | /* confdefs.h. */ |
| 17438 | _ACEOF |
| 17439 | cat confdefs.h >>conftest.$ac_ext |
| 17440 | cat >>conftest.$ac_ext <<_ACEOF |
| 17441 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17442 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 17443 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17444 | #ifdef __cplusplus |
| 17445 | extern "C" |
| 17446 | #endif |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 17447 | /* 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] | 17448 | builtin and then its argument prototype would still apply. */ |
| 17449 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17450 | int |
| 17451 | main () |
| 17452 | { |
| 17453 | rl_pre_input_hook (); |
| 17454 | ; |
| 17455 | return 0; |
| 17456 | } |
| 17457 | _ACEOF |
| 17458 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17459 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17460 | (eval $ac_link) 2>&5 |
| 17461 | ac_status=$? |
| 17462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17463 | (exit $ac_status); } && |
| 17464 | { ac_try='test -s conftest$ac_exeext' |
| 17465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17466 | (eval $ac_try) 2>&5 |
| 17467 | ac_status=$? |
| 17468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17469 | (exit $ac_status); }; }; then |
| 17470 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17471 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17472 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17473 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17474 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17475 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17476 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17477 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 17478 | LIBS=$ac_check_lib_save_LIBS |
| 17479 | fi |
| 17480 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 17481 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6 |
| 17482 | 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] | 17483 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17484 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17485 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17486 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17487 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17488 | fi |
| 17489 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17490 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17491 | # check for readline 4.2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17492 | echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 17493 | echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6 |
| 17494 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
| 17495 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17496 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17497 | ac_check_lib_save_LIBS=$LIBS |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17498 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17499 | cat >conftest.$ac_ext <<_ACEOF |
| 17500 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17501 | /* confdefs.h. */ |
| 17502 | _ACEOF |
| 17503 | cat confdefs.h >>conftest.$ac_ext |
| 17504 | cat >>conftest.$ac_ext <<_ACEOF |
| 17505 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17506 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17507 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17508 | #ifdef __cplusplus |
| 17509 | extern "C" |
| 17510 | #endif |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17511 | /* 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] | 17512 | builtin and then its argument prototype would still apply. */ |
| 17513 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17514 | int |
| 17515 | main () |
| 17516 | { |
| 17517 | rl_completion_matches (); |
| 17518 | ; |
| 17519 | return 0; |
| 17520 | } |
| 17521 | _ACEOF |
| 17522 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17523 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17524 | (eval $ac_link) 2>&5 |
| 17525 | ac_status=$? |
| 17526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17527 | (exit $ac_status); } && |
| 17528 | { ac_try='test -s conftest$ac_exeext' |
| 17529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17530 | (eval $ac_try) 2>&5 |
| 17531 | ac_status=$? |
| 17532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17533 | (exit $ac_status); }; }; then |
| 17534 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 17535 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17536 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17537 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17538 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17539 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 17540 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17541 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 17542 | LIBS=$ac_check_lib_save_LIBS |
| 17543 | fi |
| 17544 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 17545 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6 |
| 17546 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17547 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17548 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 17549 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17550 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 17551 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 17552 | fi |
| 17553 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17554 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17555 | echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 17556 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6 |
| 17557 | if test "${ac_cv_broken_nice+set}" = set; then |
| 17558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17559 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17560 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 17561 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 17562 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 17563 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17564 | cat >conftest.$ac_ext <<_ACEOF |
| 17565 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17566 | /* confdefs.h. */ |
| 17567 | _ACEOF |
| 17568 | cat confdefs.h >>conftest.$ac_ext |
| 17569 | cat >>conftest.$ac_ext <<_ACEOF |
| 17570 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 17571 | |
| 17572 | int main() |
| 17573 | { |
| 17574 | int val1 = nice(1); |
| 17575 | if (val1 != -1 && val1 == nice(2)) |
| 17576 | exit(0); |
| 17577 | exit(1); |
| 17578 | } |
| 17579 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17580 | _ACEOF |
| 17581 | rm -f conftest$ac_exeext |
| 17582 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17583 | (eval $ac_link) 2>&5 |
| 17584 | ac_status=$? |
| 17585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17586 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17588 | (eval $ac_try) 2>&5 |
| 17589 | ac_status=$? |
| 17590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17591 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 17592 | ac_cv_broken_nice=yes |
| 17593 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17594 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17595 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17596 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17597 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17598 | ( exit $ac_status ) |
| 17599 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 17600 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17601 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17602 | fi |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 17603 | fi |
| 17604 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17605 | echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 17606 | echo "${ECHO_T}$ac_cv_broken_nice" >&6 |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 17607 | if test "$ac_cv_broken_nice" = yes |
| 17608 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17609 | |
| 17610 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 17611 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17612 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 17613 | |
| 17614 | fi |
| 17615 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 17616 | # tzset(3) exists and works like we expect it to |
| 17617 | echo "$as_me:$LINENO: checking for working tzset()" >&5 |
| 17618 | echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6 |
| 17619 | if test "${ac_cv_working_tzset+set}" = set; then |
| 17620 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17621 | else |
| 17622 | |
| 17623 | if test "$cross_compiling" = yes; then |
| 17624 | ac_cv_working_tzset=no |
| 17625 | else |
| 17626 | cat >conftest.$ac_ext <<_ACEOF |
| 17627 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17628 | /* confdefs.h. */ |
| 17629 | _ACEOF |
| 17630 | cat confdefs.h >>conftest.$ac_ext |
| 17631 | cat >>conftest.$ac_ext <<_ACEOF |
| 17632 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 17633 | |
| 17634 | #include <stdlib.h> |
| 17635 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 17636 | #include <string.h> |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 17637 | int main() |
| 17638 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 17639 | /* Note that we need to ensure that not only does tzset(3) |
| 17640 | do 'something' with localtime, but it works as documented |
| 17641 | in the library reference and as expected by the test suite. |
| 17642 | |
| 17643 | Red Hat 6.2 doesn't understand the southern hemisphere |
| 17644 | after New Year's Day; it thinks swaps on that day. |
| 17645 | */ |
| 17646 | |
| 17647 | time_t groundhogday = 1044144000; /* GMT-based; well, it's a colony */ |
| 17648 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 17649 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 17650 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 17651 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 17652 | if (localtime(&groundhogday)->tm_hour != 0) |
| 17653 | exit(1); |
| 17654 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 17655 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 17656 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 17657 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 17658 | exit(1); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 17659 | |
| 17660 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 17661 | tzset(); |
| 17662 | if (localtime(&groundhogday)->tm_hour != 11) |
| 17663 | exit(1); |
| 17664 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 17665 | exit(1); |
| 17666 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 17667 | exit(1); |
| 17668 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 17669 | exit(0); |
| 17670 | } |
| 17671 | |
| 17672 | _ACEOF |
| 17673 | rm -f conftest$ac_exeext |
| 17674 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17675 | (eval $ac_link) 2>&5 |
| 17676 | ac_status=$? |
| 17677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17678 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17680 | (eval $ac_try) 2>&5 |
| 17681 | ac_status=$? |
| 17682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17683 | (exit $ac_status); }; }; then |
| 17684 | ac_cv_working_tzset=yes |
| 17685 | else |
| 17686 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17687 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17688 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17689 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 17690 | ( exit $ac_status ) |
| 17691 | ac_cv_working_tzset=no |
| 17692 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17693 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 17694 | fi |
| 17695 | fi |
| 17696 | |
| 17697 | echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5 |
| 17698 | echo "${ECHO_T}$ac_cv_working_tzset" >&6 |
| 17699 | if test "$ac_cv_working_tzset" = yes |
| 17700 | then |
| 17701 | |
| 17702 | cat >>confdefs.h <<\_ACEOF |
| 17703 | #define HAVE_WORKING_TZSET 1 |
| 17704 | _ACEOF |
| 17705 | |
| 17706 | fi |
| 17707 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 17708 | # Look for subsecond timestamps in struct stat |
| 17709 | echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 17710 | echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6 |
| 17711 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
| 17712 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17713 | else |
| 17714 | cat >conftest.$ac_ext <<_ACEOF |
| 17715 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17716 | /* confdefs.h. */ |
| 17717 | _ACEOF |
| 17718 | cat confdefs.h >>conftest.$ac_ext |
| 17719 | cat >>conftest.$ac_ext <<_ACEOF |
| 17720 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 17721 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 17722 | int |
| 17723 | main () |
| 17724 | { |
| 17725 | |
| 17726 | struct stat st; |
| 17727 | st.st_mtim.tv_nsec = 1; |
| 17728 | |
| 17729 | ; |
| 17730 | return 0; |
| 17731 | } |
| 17732 | _ACEOF |
| 17733 | rm -f conftest.$ac_objext |
| 17734 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17735 | (eval $ac_compile) 2>&5 |
| 17736 | ac_status=$? |
| 17737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17738 | (exit $ac_status); } && |
| 17739 | { ac_try='test -s conftest.$ac_objext' |
| 17740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17741 | (eval $ac_try) 2>&5 |
| 17742 | ac_status=$? |
| 17743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17744 | (exit $ac_status); }; }; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 17745 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 17746 | else |
| 17747 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17748 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17749 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 17750 | ac_cv_stat_tv_nsec=no |
| 17751 | fi |
| 17752 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17753 | fi |
| 17754 | |
| 17755 | echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 17756 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6 |
| 17757 | if test "$ac_cv_stat_tv_nsec" = yes |
| 17758 | then |
| 17759 | |
| 17760 | cat >>confdefs.h <<\_ACEOF |
| 17761 | #define HAVE_STAT_TV_NSEC 1 |
| 17762 | _ACEOF |
| 17763 | |
| 17764 | fi |
| 17765 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17766 | # 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] | 17767 | echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 17768 | echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6 |
| 17769 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
| 17770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17771 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17772 | cat >conftest.$ac_ext <<_ACEOF |
| 17773 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17774 | /* confdefs.h. */ |
| 17775 | _ACEOF |
| 17776 | cat confdefs.h >>conftest.$ac_ext |
| 17777 | cat >>conftest.$ac_ext <<_ACEOF |
| 17778 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17779 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17780 | int |
| 17781 | main () |
| 17782 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17783 | |
| 17784 | int rtn; |
| 17785 | rtn = mvwdelch(0,0,0); |
| 17786 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17787 | ; |
| 17788 | return 0; |
| 17789 | } |
| 17790 | _ACEOF |
| 17791 | rm -f conftest.$ac_objext |
| 17792 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17793 | (eval $ac_compile) 2>&5 |
| 17794 | ac_status=$? |
| 17795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17796 | (exit $ac_status); } && |
| 17797 | { ac_try='test -s conftest.$ac_objext' |
| 17798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17799 | (eval $ac_try) 2>&5 |
| 17800 | ac_status=$? |
| 17801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17802 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17803 | ac_cv_mvwdelch_is_expression=yes |
| 17804 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17805 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17806 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17807 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17808 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17809 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17810 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17811 | fi |
| 17812 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17813 | echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 17814 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17815 | |
| 17816 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 17817 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17818 | |
| 17819 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17820 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17821 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17822 | |
| 17823 | fi |
| 17824 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17825 | echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 17826 | echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6 |
| 17827 | if test "${ac_cv_window_has_flags+set}" = set; then |
| 17828 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17829 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17830 | cat >conftest.$ac_ext <<_ACEOF |
| 17831 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17832 | /* confdefs.h. */ |
| 17833 | _ACEOF |
| 17834 | cat confdefs.h >>conftest.$ac_ext |
| 17835 | cat >>conftest.$ac_ext <<_ACEOF |
| 17836 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17837 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17838 | int |
| 17839 | main () |
| 17840 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17841 | |
| 17842 | WINDOW *w; |
| 17843 | w->_flags = 0; |
| 17844 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17845 | ; |
| 17846 | return 0; |
| 17847 | } |
| 17848 | _ACEOF |
| 17849 | rm -f conftest.$ac_objext |
| 17850 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17851 | (eval $ac_compile) 2>&5 |
| 17852 | ac_status=$? |
| 17853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17854 | (exit $ac_status); } && |
| 17855 | { ac_try='test -s conftest.$ac_objext' |
| 17856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17857 | (eval $ac_try) 2>&5 |
| 17858 | ac_status=$? |
| 17859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17860 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17861 | ac_cv_window_has_flags=yes |
| 17862 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17863 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17864 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17865 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17866 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17867 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17868 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17869 | fi |
| 17870 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17871 | echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 17872 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17873 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17874 | |
| 17875 | if test "$ac_cv_window_has_flags" = yes |
| 17876 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17877 | |
| 17878 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17879 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17880 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17881 | |
| 17882 | fi |
| 17883 | |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 17884 | echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
| 17885 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6 |
| 17886 | |
| 17887 | if test -e /dev/ptmx |
| 17888 | then |
| 17889 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17890 | echo "${ECHO_T}yes" >&6 |
| 17891 | |
| 17892 | cat >>confdefs.h <<\_ACEOF |
| 17893 | #define HAVE_DEV_PTMX 1 |
| 17894 | _ACEOF |
| 17895 | |
| 17896 | else |
| 17897 | echo "$as_me:$LINENO: result: no" >&5 |
| 17898 | echo "${ECHO_T}no" >&6 |
| 17899 | fi |
| 17900 | |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 17901 | echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 17902 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6 |
| 17903 | |
| 17904 | if test -e /dev/ptc |
| 17905 | then |
| 17906 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17907 | echo "${ECHO_T}yes" >&6 |
| 17908 | |
| 17909 | cat >>confdefs.h <<\_ACEOF |
| 17910 | #define HAVE_DEV_PTC 1 |
| 17911 | _ACEOF |
| 17912 | |
| 17913 | else |
| 17914 | echo "$as_me:$LINENO: result: no" >&5 |
| 17915 | echo "${ECHO_T}no" >&6 |
| 17916 | fi |
| 17917 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17918 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 17919 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
| 17920 | if test "${ac_cv_type_socklen_t+set}" = set; then |
| 17921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 17922 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17923 | cat >conftest.$ac_ext <<_ACEOF |
| 17924 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17925 | /* confdefs.h. */ |
| 17926 | _ACEOF |
| 17927 | cat confdefs.h >>conftest.$ac_ext |
| 17928 | cat >>conftest.$ac_ext <<_ACEOF |
| 17929 | /* end confdefs.h. */ |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 17930 | |
| 17931 | #ifdef HAVE_SYS_TYPES_H |
| 17932 | #include <sys/types.h> |
| 17933 | #endif |
| 17934 | #ifdef HAVE_SYS_SOCKET_H |
| 17935 | #include <sys/socket.h> |
| 17936 | #endif |
| 17937 | |
| 17938 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17939 | int |
| 17940 | main () |
| 17941 | { |
| 17942 | if ((socklen_t *) 0) |
| 17943 | return 0; |
| 17944 | if (sizeof (socklen_t)) |
| 17945 | return 0; |
| 17946 | ; |
| 17947 | return 0; |
| 17948 | } |
| 17949 | _ACEOF |
| 17950 | rm -f conftest.$ac_objext |
| 17951 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17952 | (eval $ac_compile) 2>&5 |
| 17953 | ac_status=$? |
| 17954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17955 | (exit $ac_status); } && |
| 17956 | { ac_try='test -s conftest.$ac_objext' |
| 17957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17958 | (eval $ac_try) 2>&5 |
| 17959 | ac_status=$? |
| 17960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17961 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 17962 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 17963 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17964 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17965 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17966 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17967 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 17968 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17969 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17970 | fi |
| 17971 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 17972 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 |
| 17973 | if test $ac_cv_type_socklen_t = yes; then |
| 17974 | : |
| 17975 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 17976 | |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 17977 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 17978 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17979 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 17980 | |
| 17981 | fi |
| 17982 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17983 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17984 | |
| 17985 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 17986 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 17987 | do |
| 17988 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 17989 | done |
| 17990 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17991 | |
Jack Jansen | 0b06be7 | 2002-06-21 14:48:38 +0000 | [diff] [blame] | 17992 | SRCDIRS="Parser Grammar Objects Python Modules Mac Mac/Python" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17993 | echo "$as_me:$LINENO: checking for build directories" >&5 |
| 17994 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 17995 | for dir in $SRCDIRS; do |
| 17996 | if test ! -d $dir; then |
| 17997 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 17998 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 17999 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18000 | echo "$as_me:$LINENO: result: done" >&5 |
| 18001 | echo "${ECHO_T}done" >&6 |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 18002 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18003 | # generate output files |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18004 | 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] | 18005 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18006 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18007 | # This file is a shell script that caches the results of configure |
| 18008 | # 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] | 18009 | # scripts and configure runs, see configure's option --config-cache. |
| 18010 | # It is not useful on other systems. If it contains results you don't |
| 18011 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18012 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18013 | # config.status only pays attention to the cache file if you give it |
| 18014 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18015 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18016 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18017 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 18018 | # following values. |
| 18019 | |
| 18020 | _ACEOF |
| 18021 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 18022 | # The following way of writing the cache mishandles newlines in values, |
| 18023 | # but we know of no workaround that is simple, portable, and efficient. |
| 18024 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18025 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 18026 | # 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] | 18027 | { |
| 18028 | (set) 2>&1 | |
| 18029 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 18030 | *ac_space=\ *) |
| 18031 | # `set' does not quote correctly, so add quotes (double-quote |
| 18032 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 18033 | sed -n \ |
| 18034 | "s/'/'\\\\''/g; |
| 18035 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 18036 | ;; |
| 18037 | *) |
| 18038 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 18039 | sed -n \ |
| 18040 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 18041 | ;; |
| 18042 | esac; |
| 18043 | } | |
| 18044 | sed ' |
| 18045 | t clear |
| 18046 | : clear |
| 18047 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 18048 | t end |
| 18049 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 18050 | : end' >>confcache |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18051 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18052 | if test -w $cache_file; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18053 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 18054 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18055 | else |
| 18056 | echo "not updating unwritable cache $cache_file" |
| 18057 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18058 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18059 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 18060 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18061 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 18062 | # Let make expand exec_prefix. |
| 18063 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 18064 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18065 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 18066 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 18067 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 18068 | # (actually we leave an empty line to preserve line numbers). |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18069 | if test "x$srcdir" = x.; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18070 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 18071 | s/:*\$(srcdir):*/:/; |
| 18072 | s/:*\${srcdir}:*/:/; |
| 18073 | s/:*@srcdir@:*/:/; |
| 18074 | s/^\([^=]*=[ ]*\):*/\1/; |
| 18075 | s/:*$//; |
| 18076 | s/^[^=]*=[ ]*$//; |
| 18077 | }' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18078 | fi |
| 18079 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18080 | DEFS=-DHAVE_CONFIG_H |
| 18081 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18082 | ac_libobjs= |
| 18083 | ac_ltlibobjs= |
| 18084 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 18085 | # 1. Remove the extension, and $U if already installed. |
| 18086 | ac_i=`echo "$ac_i" | |
| 18087 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 18088 | # 2. Add them. |
| 18089 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 18090 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 18091 | done |
| 18092 | LIBOBJS=$ac_libobjs |
| 18093 | |
| 18094 | LTLIBOBJS=$ac_ltlibobjs |
| 18095 | |
| 18096 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18097 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18098 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18099 | ac_clean_files_save=$ac_clean_files |
| 18100 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 18101 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 18102 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 18103 | cat >$CONFIG_STATUS <<_ACEOF |
| 18104 | #! $SHELL |
| 18105 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18106 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18107 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18108 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18109 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18110 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18111 | ac_cs_recheck=false |
| 18112 | ac_cs_silent=false |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18113 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 18114 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18115 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18116 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18117 | ## --------------------- ## |
| 18118 | ## M4sh Initialization. ## |
| 18119 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18120 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18121 | # Be Bourne compatible |
| 18122 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 18123 | emulate sh |
| 18124 | NULLCMD=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18125 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 18126 | # is contrary to our usage. Disable this feature. |
| 18127 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18128 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 18129 | set -o posix |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18130 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18131 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18132 | # Support unset when possible. |
| 18133 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 18134 | as_unset=unset |
| 18135 | else |
| 18136 | as_unset=false |
| 18137 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18138 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18139 | |
| 18140 | # Work around bugs in pre-3.0 UWIN ksh. |
| 18141 | $as_unset ENV MAIL MAILPATH |
| 18142 | PS1='$ ' |
| 18143 | PS2='> ' |
| 18144 | PS4='+ ' |
| 18145 | |
| 18146 | # NLS nuisances. |
| 18147 | for as_var in \ |
| 18148 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 18149 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 18150 | LC_TELEPHONE LC_TIME |
| 18151 | do |
| 18152 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 18153 | eval $as_var=C; export $as_var |
| 18154 | else |
| 18155 | $as_unset $as_var |
| 18156 | fi |
| 18157 | done |
| 18158 | |
| 18159 | # Required to use basename. |
| 18160 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 18161 | as_expr=expr |
| 18162 | else |
| 18163 | as_expr=false |
| 18164 | fi |
| 18165 | |
| 18166 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 18167 | as_basename=basename |
| 18168 | else |
| 18169 | as_basename=false |
| 18170 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18171 | |
| 18172 | |
| 18173 | # Name of the executable. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18174 | as_me=`$as_basename "$0" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18175 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 18176 | X"$0" : 'X\(//\)$' \| \ |
| 18177 | X"$0" : 'X\(/\)$' \| \ |
| 18178 | . : '\(.\)' 2>/dev/null || |
| 18179 | echo X/"$0" | |
| 18180 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 18181 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 18182 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 18183 | s/.*/./; q'` |
| 18184 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18185 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18186 | # PATH needs CR, and LINENO needs CR and PATH. |
| 18187 | # Avoid depending upon Character Ranges. |
| 18188 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 18189 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 18190 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 18191 | as_cr_digits='0123456789' |
| 18192 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 18193 | |
| 18194 | # The user is always right. |
| 18195 | if test "${PATH_SEPARATOR+set}" != set; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18196 | echo "#! /bin/sh" >conf$$.sh |
| 18197 | echo "exit 0" >>conf$$.sh |
| 18198 | chmod +x conf$$.sh |
| 18199 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18200 | PATH_SEPARATOR=';' |
| 18201 | else |
| 18202 | PATH_SEPARATOR=: |
| 18203 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18204 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18205 | fi |
| 18206 | |
| 18207 | |
| 18208 | as_lineno_1=$LINENO |
| 18209 | as_lineno_2=$LINENO |
| 18210 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 18211 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 18212 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 18213 | # Find who we are. Look in the path if we contain no path at all |
| 18214 | # relative or not. |
| 18215 | case $0 in |
| 18216 | *[\\/]* ) as_myself=$0 ;; |
| 18217 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18218 | for as_dir in $PATH |
| 18219 | do |
| 18220 | IFS=$as_save_IFS |
| 18221 | test -z "$as_dir" && as_dir=. |
| 18222 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 18223 | done |
| 18224 | |
| 18225 | ;; |
| 18226 | esac |
| 18227 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 18228 | # in which case we are not to be found in the path. |
| 18229 | if test "x$as_myself" = x; then |
| 18230 | as_myself=$0 |
| 18231 | fi |
| 18232 | if test ! -f "$as_myself"; then |
| 18233 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 18234 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 18235 | { (exit 1); exit 1; }; } |
| 18236 | fi |
| 18237 | case $CONFIG_SHELL in |
| 18238 | '') |
| 18239 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18240 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 18241 | do |
| 18242 | IFS=$as_save_IFS |
| 18243 | test -z "$as_dir" && as_dir=. |
| 18244 | for as_base in sh bash ksh sh5; do |
| 18245 | case $as_dir in |
| 18246 | /*) |
| 18247 | if ("$as_dir/$as_base" -c ' |
| 18248 | as_lineno_1=$LINENO |
| 18249 | as_lineno_2=$LINENO |
| 18250 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 18251 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 18252 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18253 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 18254 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18255 | CONFIG_SHELL=$as_dir/$as_base |
| 18256 | export CONFIG_SHELL |
| 18257 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 18258 | fi;; |
| 18259 | esac |
| 18260 | done |
| 18261 | done |
| 18262 | ;; |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18263 | esac |
| 18264 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18265 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 18266 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 18267 | # line-number line before each line; the second 'sed' does the real |
| 18268 | # work. The second script uses 'N' to pair each line-number line |
| 18269 | # with the numbered line, and appends trailing '-' during |
| 18270 | # substitution so that $LINENO is not a special case at line end. |
| 18271 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 18272 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 18273 | sed '=' <$as_myself | |
| 18274 | sed ' |
| 18275 | N |
| 18276 | s,$,-, |
| 18277 | : loop |
| 18278 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 18279 | t loop |
| 18280 | s,-$,, |
| 18281 | s,^['$as_cr_digits']*\n,, |
| 18282 | ' >$as_me.lineno && |
| 18283 | chmod +x $as_me.lineno || |
| 18284 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 18285 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 18286 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18287 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18288 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 18289 | # (the dirname of $[0] is not the place where we might find the |
| 18290 | # original and so on. Autoconf is especially sensible to this). |
| 18291 | . ./$as_me.lineno |
| 18292 | # Exit status is that of the last command. |
| 18293 | exit |
| 18294 | } |
| 18295 | |
| 18296 | |
| 18297 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 18298 | *c*,-n*) ECHO_N= ECHO_C=' |
| 18299 | ' ECHO_T=' ' ;; |
| 18300 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 18301 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 18302 | esac |
| 18303 | |
| 18304 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 18305 | as_expr=expr |
| 18306 | else |
| 18307 | as_expr=false |
| 18308 | fi |
| 18309 | |
| 18310 | rm -f conf$$ conf$$.exe conf$$.file |
| 18311 | echo >conf$$.file |
| 18312 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 18313 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 18314 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 18315 | if test -f conf$$.exe; then |
| 18316 | # Don't use ln at all; we don't have any links |
| 18317 | as_ln_s='cp -p' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18318 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18319 | as_ln_s='ln -s' |
| 18320 | fi |
| 18321 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 18322 | as_ln_s=ln |
| 18323 | else |
| 18324 | as_ln_s='cp -p' |
| 18325 | fi |
| 18326 | rm -f conf$$ conf$$.exe conf$$.file |
| 18327 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18328 | if mkdir -p . 2>/dev/null; then |
| 18329 | as_mkdir_p=: |
| 18330 | else |
| 18331 | as_mkdir_p=false |
| 18332 | fi |
| 18333 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18334 | as_executable_p="test -f" |
| 18335 | |
| 18336 | # Sed expression to map a string onto a valid CPP name. |
| 18337 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 18338 | |
| 18339 | # Sed expression to map a string onto a valid variable name. |
| 18340 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 18341 | |
| 18342 | |
| 18343 | # IFS |
| 18344 | # We need space, tab and new line, in precisely that order. |
| 18345 | as_nl=' |
| 18346 | ' |
| 18347 | IFS=" $as_nl" |
| 18348 | |
| 18349 | # CDPATH. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18350 | $as_unset CDPATH |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18351 | |
| 18352 | exec 6>&1 |
| 18353 | |
| 18354 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 18355 | # report actual input values of CONFIG_FILES etc. instead of their |
| 18356 | # values after options handling. Logging --version etc. is OK. |
| 18357 | exec 5>>config.log |
| 18358 | { |
| 18359 | echo |
| 18360 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 18361 | ## Running $as_me. ## |
| 18362 | _ASBOX |
| 18363 | } >&5 |
| 18364 | cat >&5 <<_CSEOF |
| 18365 | |
Fred Drake | 9bd4462 | 2003-07-30 17:39:48 +0000 | [diff] [blame] | 18366 | This file was extended by python $as_me 2.4, which was |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18367 | generated by GNU Autoconf 2.57. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18368 | |
| 18369 | CONFIG_FILES = $CONFIG_FILES |
| 18370 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 18371 | CONFIG_LINKS = $CONFIG_LINKS |
| 18372 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 18373 | $ $0 $@ |
| 18374 | |
| 18375 | _CSEOF |
| 18376 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 18377 | echo >&5 |
| 18378 | _ACEOF |
| 18379 | |
| 18380 | # Files that config.status was made for. |
| 18381 | if test -n "$ac_config_files"; then |
| 18382 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 18383 | fi |
| 18384 | |
| 18385 | if test -n "$ac_config_headers"; then |
| 18386 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 18387 | fi |
| 18388 | |
| 18389 | if test -n "$ac_config_links"; then |
| 18390 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 18391 | fi |
| 18392 | |
| 18393 | if test -n "$ac_config_commands"; then |
| 18394 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 18395 | fi |
| 18396 | |
| 18397 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 18398 | |
| 18399 | ac_cs_usage="\ |
| 18400 | \`$as_me' instantiates files from templates according to the |
| 18401 | current configuration. |
| 18402 | |
| 18403 | Usage: $0 [OPTIONS] [FILE]... |
| 18404 | |
| 18405 | -h, --help print this help, then exit |
| 18406 | -V, --version print version number, then exit |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18407 | -q, --quiet do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18408 | -d, --debug don't remove temporary files |
| 18409 | --recheck update $as_me by reconfiguring in the same conditions |
| 18410 | --file=FILE[:TEMPLATE] |
| 18411 | instantiate the configuration file FILE |
| 18412 | --header=FILE[:TEMPLATE] |
| 18413 | instantiate the configuration header FILE |
| 18414 | |
| 18415 | Configuration files: |
| 18416 | $config_files |
| 18417 | |
| 18418 | Configuration headers: |
| 18419 | $config_headers |
| 18420 | |
| 18421 | Report bugs to <bug-autoconf@gnu.org>." |
| 18422 | _ACEOF |
| 18423 | |
| 18424 | cat >>$CONFIG_STATUS <<_ACEOF |
| 18425 | ac_cs_version="\\ |
Fred Drake | 9bd4462 | 2003-07-30 17:39:48 +0000 | [diff] [blame] | 18426 | python config.status 2.4 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18427 | configured by $0, generated by GNU Autoconf 2.57, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18428 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 18429 | |
| 18430 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 18431 | Free Software Foundation, Inc. |
| 18432 | This config.status script is free software; the Free Software Foundation |
| 18433 | gives unlimited permission to copy, distribute and modify it." |
| 18434 | srcdir=$srcdir |
| 18435 | INSTALL="$INSTALL" |
| 18436 | _ACEOF |
| 18437 | |
| 18438 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 18439 | # If no file are specified by the user, then we need to provide default |
| 18440 | # value. By we need to know if files were specified by the user. |
| 18441 | ac_need_defaults=: |
| 18442 | while test $# != 0 |
| 18443 | do |
| 18444 | case $1 in |
| 18445 | --*=*) |
| 18446 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 18447 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18448 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18449 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18450 | -*) |
| 18451 | ac_option=$1 |
| 18452 | ac_optarg=$2 |
| 18453 | ac_shift=shift |
| 18454 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18455 | *) # This is not an option, so the user has probably given explicit |
| 18456 | # arguments. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18457 | ac_option=$1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18458 | ac_need_defaults=false;; |
| 18459 | esac |
| 18460 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18461 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18462 | # Handling of the options. |
| 18463 | _ACEOF |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 18464 | cat >>$CONFIG_STATUS <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18465 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 18466 | ac_cs_recheck=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18467 | --version | --vers* | -V ) |
| 18468 | echo "$ac_cs_version"; exit 0 ;; |
| 18469 | --he | --h) |
| 18470 | # Conflict between --help and --header |
| 18471 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 18472 | Try \`$0 --help' for more information." >&5 |
| 18473 | echo "$as_me: error: ambiguous option: $1 |
| 18474 | Try \`$0 --help' for more information." >&2;} |
| 18475 | { (exit 1); exit 1; }; };; |
| 18476 | --help | --hel | -h ) |
| 18477 | echo "$ac_cs_usage"; exit 0 ;; |
| 18478 | --debug | --d* | -d ) |
| 18479 | debug=: ;; |
| 18480 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18481 | $ac_shift |
| 18482 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18483 | ac_need_defaults=false;; |
| 18484 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18485 | $ac_shift |
| 18486 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18487 | ac_need_defaults=false;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18488 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 18489 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 18490 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18491 | |
| 18492 | # This is an error. |
| 18493 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 18494 | Try \`$0 --help' for more information." >&5 |
| 18495 | echo "$as_me: error: unrecognized option: $1 |
| 18496 | Try \`$0 --help' for more information." >&2;} |
| 18497 | { (exit 1); exit 1; }; } ;; |
| 18498 | |
| 18499 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 18500 | |
| 18501 | esac |
| 18502 | shift |
| 18503 | done |
| 18504 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18505 | ac_configure_extra_args= |
| 18506 | |
| 18507 | if $ac_cs_silent; then |
| 18508 | exec 6>/dev/null |
| 18509 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 18510 | fi |
| 18511 | |
| 18512 | _ACEOF |
| 18513 | cat >>$CONFIG_STATUS <<_ACEOF |
| 18514 | if \$ac_cs_recheck; then |
| 18515 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 18516 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 18517 | fi |
| 18518 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18519 | _ACEOF |
| 18520 | |
| 18521 | |
| 18522 | |
| 18523 | |
| 18524 | |
| 18525 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 18526 | for ac_config_target in $ac_config_targets |
| 18527 | do |
| 18528 | case "$ac_config_target" in |
| 18529 | # Handling of arguments. |
| 18530 | "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 18531 | "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
| 18532 | "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 18533 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 18534 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 18535 | { (exit 1); exit 1; }; };; |
| 18536 | esac |
| 18537 | done |
| 18538 | |
| 18539 | # If the user did not use the arguments to specify the items to instantiate, |
| 18540 | # then the envvar interface is used. Set only those that are not. |
| 18541 | # We use the long form for the default assignment because of an extremely |
| 18542 | # bizarre bug on SunOS 4.1.3. |
| 18543 | if $ac_need_defaults; then |
| 18544 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 18545 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 18546 | fi |
| 18547 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18548 | # Have a temporary directory for convenience. Make it in the build tree |
| 18549 | # simply because there is no reason to put it here, and in addition, |
| 18550 | # creating and moving files from /tmp can sometimes cause problems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18551 | # Create a temporary directory, and hook for its removal unless debugging. |
| 18552 | $debug || |
| 18553 | { |
| 18554 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 18555 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 18556 | } |
| 18557 | |
| 18558 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18559 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18560 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18561 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18562 | test -n "$tmp" && test -d "$tmp" |
| 18563 | } || |
| 18564 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18565 | tmp=./confstat$$-$RANDOM |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18566 | (umask 077 && mkdir $tmp) |
| 18567 | } || |
| 18568 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18569 | echo "$me: cannot create a temporary directory in ." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18570 | { (exit 1); exit 1; } |
| 18571 | } |
| 18572 | |
| 18573 | _ACEOF |
| 18574 | |
| 18575 | cat >>$CONFIG_STATUS <<_ACEOF |
| 18576 | |
| 18577 | # |
| 18578 | # CONFIG_FILES section. |
| 18579 | # |
| 18580 | |
| 18581 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 18582 | # This happens for instance when ./config.status config.h |
| 18583 | if test -n "\$CONFIG_FILES"; then |
| 18584 | # Protect against being on the right side of a sed subst in config.status. |
| 18585 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 18586 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 18587 | s,@SHELL@,$SHELL,;t t |
| 18588 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 18589 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 18590 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 18591 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 18592 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 18593 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 18594 | s,@exec_prefix@,$exec_prefix,;t t |
| 18595 | s,@prefix@,$prefix,;t t |
| 18596 | s,@program_transform_name@,$program_transform_name,;t t |
| 18597 | s,@bindir@,$bindir,;t t |
| 18598 | s,@sbindir@,$sbindir,;t t |
| 18599 | s,@libexecdir@,$libexecdir,;t t |
| 18600 | s,@datadir@,$datadir,;t t |
| 18601 | s,@sysconfdir@,$sysconfdir,;t t |
| 18602 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 18603 | s,@localstatedir@,$localstatedir,;t t |
| 18604 | s,@libdir@,$libdir,;t t |
| 18605 | s,@includedir@,$includedir,;t t |
| 18606 | s,@oldincludedir@,$oldincludedir,;t t |
| 18607 | s,@infodir@,$infodir,;t t |
| 18608 | s,@mandir@,$mandir,;t t |
| 18609 | s,@build_alias@,$build_alias,;t t |
| 18610 | s,@host_alias@,$host_alias,;t t |
| 18611 | s,@target_alias@,$target_alias,;t t |
| 18612 | s,@DEFS@,$DEFS,;t t |
| 18613 | s,@ECHO_C@,$ECHO_C,;t t |
| 18614 | s,@ECHO_N@,$ECHO_N,;t t |
| 18615 | s,@ECHO_T@,$ECHO_T,;t t |
| 18616 | s,@LIBS@,$LIBS,;t t |
| 18617 | s,@VERSION@,$VERSION,;t t |
| 18618 | s,@SOVERSION@,$SOVERSION,;t t |
| 18619 | s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t |
| 18620 | s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t |
| 18621 | s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t |
| 18622 | s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t |
| 18623 | s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t |
| 18624 | s,@MACHDEP@,$MACHDEP,;t t |
| 18625 | s,@SGI_ABI@,$SGI_ABI,;t t |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 18626 | s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 18627 | s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18628 | s,@CXX@,$CXX,;t t |
| 18629 | s,@MAINOBJ@,$MAINOBJ,;t t |
| 18630 | s,@EXEEXT@,$EXEEXT,;t t |
| 18631 | s,@CC@,$CC,;t t |
| 18632 | s,@CFLAGS@,$CFLAGS,;t t |
| 18633 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 18634 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 18635 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 18636 | s,@OBJEXT@,$OBJEXT,;t t |
| 18637 | s,@CPP@,$CPP,;t t |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18638 | s,@EGREP@,$EGREP,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18639 | s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t |
| 18640 | s,@LIBRARY@,$LIBRARY,;t t |
| 18641 | s,@LDLIBRARY@,$LDLIBRARY,;t t |
| 18642 | s,@DLLLIBRARY@,$DLLLIBRARY,;t t |
| 18643 | s,@BLDLIBRARY@,$BLDLIBRARY,;t t |
| 18644 | s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t |
| 18645 | s,@INSTSONAME@,$INSTSONAME,;t t |
| 18646 | s,@RUNSHARED@,$RUNSHARED,;t t |
| 18647 | s,@LINKCC@,$LINKCC,;t t |
| 18648 | s,@RANLIB@,$RANLIB,;t t |
| 18649 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 18650 | s,@AR@,$AR,;t t |
| 18651 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 18652 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 18653 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 18654 | s,@LN@,$LN,;t t |
| 18655 | s,@OPT@,$OPT,;t t |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 18656 | s,@BASECFLAGS@,$BASECFLAGS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18657 | s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t |
| 18658 | s,@SO@,$SO,;t t |
| 18659 | s,@LDSHARED@,$LDSHARED,;t t |
| 18660 | s,@BLDSHARED@,$BLDSHARED,;t t |
| 18661 | s,@CCSHARED@,$CCSHARED,;t t |
| 18662 | s,@LINKFORSHARED@,$LINKFORSHARED,;t t |
| 18663 | s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 18664 | s,@SHLIBS@,$SHLIBS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18665 | s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t |
| 18666 | s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t |
| 18667 | s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t |
| 18668 | s,@LDLAST@,$LDLAST,;t t |
| 18669 | s,@THREADOBJ@,$THREADOBJ,;t t |
| 18670 | s,@DLINCLDIR@,$DLINCLDIR,;t t |
| 18671 | s,@DYNLOADFILE@,$DYNLOADFILE,;t t |
| 18672 | s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18673 | s,@TRUE@,$TRUE,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18674 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 18675 | s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t |
| 18676 | s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t |
| 18677 | s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t |
| 18678 | s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t |
| 18679 | s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t |
| 18680 | s,@LIBM@,$LIBM,;t t |
| 18681 | s,@LIBC@,$LIBC,;t t |
| 18682 | s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t |
| 18683 | s,@THREADHEADERS@,$THREADHEADERS,;t t |
| 18684 | s,@SRCDIRS@,$SRCDIRS,;t t |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18685 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18686 | CEOF |
| 18687 | |
| 18688 | _ACEOF |
| 18689 | |
| 18690 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 18691 | # Split the substitutions into bite-sized pieces for seds with |
| 18692 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 18693 | ac_max_sed_lines=48 |
| 18694 | ac_sed_frag=1 # Number of current file. |
| 18695 | ac_beg=1 # First line for current file. |
| 18696 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 18697 | ac_more_lines=: |
| 18698 | ac_sed_cmds= |
| 18699 | while $ac_more_lines; do |
| 18700 | if test $ac_beg -gt 1; then |
| 18701 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 18702 | else |
| 18703 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 18704 | fi |
| 18705 | if test ! -s $tmp/subs.frag; then |
| 18706 | ac_more_lines=false |
| 18707 | else |
| 18708 | # The purpose of the label and of the branching condition is to |
| 18709 | # speed up the sed processing (if there are no `@' at all, there |
| 18710 | # is no need to browse any of the substitutions). |
| 18711 | # These are the two extra sed commands mentioned above. |
| 18712 | (echo ':t |
| 18713 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 18714 | if test -z "$ac_sed_cmds"; then |
| 18715 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 18716 | else |
| 18717 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 18718 | fi |
| 18719 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 18720 | ac_beg=$ac_end |
| 18721 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 18722 | fi |
| 18723 | done |
| 18724 | if test -z "$ac_sed_cmds"; then |
| 18725 | ac_sed_cmds=cat |
| 18726 | fi |
| 18727 | fi # test -n "$CONFIG_FILES" |
| 18728 | |
| 18729 | _ACEOF |
| 18730 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 18731 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 18732 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 18733 | case $ac_file in |
| 18734 | - | *:- | *:-:* ) # input from stdin |
| 18735 | cat >$tmp/stdin |
| 18736 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 18737 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 18738 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 18739 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 18740 | * ) ac_file_in=$ac_file.in ;; |
| 18741 | esac |
| 18742 | |
| 18743 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 18744 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 18745 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 18746 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 18747 | X"$ac_file" : 'X\(//\)$' \| \ |
| 18748 | X"$ac_file" : 'X\(/\)' \| \ |
| 18749 | . : '\(.\)' 2>/dev/null || |
| 18750 | echo X"$ac_file" | |
| 18751 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 18752 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 18753 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 18754 | /^X\(\/\).*/{ s//\1/; q; } |
| 18755 | s/.*/./; q'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18756 | { if $as_mkdir_p; then |
| 18757 | mkdir -p "$ac_dir" |
| 18758 | else |
| 18759 | as_dir="$ac_dir" |
| 18760 | as_dirs= |
| 18761 | while test ! -d "$as_dir"; do |
| 18762 | as_dirs="$as_dir $as_dirs" |
| 18763 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 18764 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 18765 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 18766 | X"$as_dir" : 'X\(//\)$' \| \ |
| 18767 | X"$as_dir" : 'X\(/\)' \| \ |
| 18768 | . : '\(.\)' 2>/dev/null || |
| 18769 | echo X"$as_dir" | |
| 18770 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 18771 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 18772 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 18773 | /^X\(\/\).*/{ s//\1/; q; } |
| 18774 | s/.*/./; q'` |
| 18775 | done |
| 18776 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 18777 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 18778 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 18779 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18780 | |
| 18781 | ac_builddir=. |
| 18782 | |
| 18783 | if test "$ac_dir" != .; then |
| 18784 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 18785 | # A "../" for each directory in $ac_dir_suffix. |
| 18786 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 18787 | else |
| 18788 | ac_dir_suffix= ac_top_builddir= |
| 18789 | fi |
| 18790 | |
| 18791 | case $srcdir in |
| 18792 | .) # No --srcdir option. We are building in place. |
| 18793 | ac_srcdir=. |
| 18794 | if test -z "$ac_top_builddir"; then |
| 18795 | ac_top_srcdir=. |
| 18796 | else |
| 18797 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 18798 | fi ;; |
| 18799 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 18800 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 18801 | ac_top_srcdir=$srcdir ;; |
| 18802 | *) # Relative path. |
| 18803 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 18804 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 18805 | esac |
| 18806 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 18807 | # absolute. |
| 18808 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 18809 | 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] | 18810 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 18811 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 18812 | |
| 18813 | |
| 18814 | case $INSTALL in |
| 18815 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 18816 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 18817 | esac |
| 18818 | |
| 18819 | if test x"$ac_file" != x-; then |
| 18820 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 18821 | echo "$as_me: creating $ac_file" >&6;} |
| 18822 | rm -f "$ac_file" |
| 18823 | fi |
| 18824 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 18825 | # use $as_me), people would be surprised to read: |
| 18826 | # /* config.h. Generated by config.status. */ |
| 18827 | if test x"$ac_file" = x-; then |
| 18828 | configure_input= |
| 18829 | else |
| 18830 | configure_input="$ac_file. " |
| 18831 | fi |
| 18832 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 18833 | sed 's,.*/,,'` by configure." |
| 18834 | |
| 18835 | # First look for the input files in the build tree, otherwise in the |
| 18836 | # src tree. |
| 18837 | ac_file_inputs=`IFS=: |
| 18838 | for f in $ac_file_in; do |
| 18839 | case $f in |
| 18840 | -) echo $tmp/stdin ;; |
| 18841 | [\\/$]*) |
| 18842 | # Absolute (can't be DOS-style, as IFS=:) |
| 18843 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 18844 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 18845 | { (exit 1); exit 1; }; } |
| 18846 | echo $f;; |
| 18847 | *) # Relative |
| 18848 | if test -f "$f"; then |
| 18849 | # Build tree |
| 18850 | echo $f |
| 18851 | elif test -f "$srcdir/$f"; then |
| 18852 | # Source tree |
| 18853 | echo $srcdir/$f |
| 18854 | else |
| 18855 | # /dev/null tree |
| 18856 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 18857 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 18858 | { (exit 1); exit 1; }; } |
| 18859 | fi;; |
| 18860 | esac |
| 18861 | done` || { (exit 1); exit 1; } |
| 18862 | _ACEOF |
| 18863 | cat >>$CONFIG_STATUS <<_ACEOF |
| 18864 | sed "$ac_vpsub |
| 18865 | $extrasub |
| 18866 | _ACEOF |
| 18867 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 18868 | :t |
| 18869 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 18870 | s,@configure_input@,$configure_input,;t t |
| 18871 | s,@srcdir@,$ac_srcdir,;t t |
| 18872 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 18873 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 18874 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 18875 | s,@builddir@,$ac_builddir,;t t |
| 18876 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 18877 | s,@top_builddir@,$ac_top_builddir,;t t |
| 18878 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 18879 | s,@INSTALL@,$ac_INSTALL,;t t |
| 18880 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 18881 | rm -f $tmp/stdin |
| 18882 | if test x"$ac_file" != x-; then |
| 18883 | mv $tmp/out $ac_file |
| 18884 | else |
| 18885 | cat $tmp/out |
| 18886 | rm -f $tmp/out |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18887 | fi |
| 18888 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18889 | done |
| 18890 | _ACEOF |
| 18891 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18892 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18893 | # |
| 18894 | # CONFIG_HEADER section. |
| 18895 | # |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18896 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18897 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 18898 | # 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] | 18899 | # |
| 18900 | # ac_d sets the value in "#define NAME VALUE" lines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18901 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 18902 | ac_dB='[ ].*$,\1#\2' |
| 18903 | ac_dC=' ' |
| 18904 | ac_dD=',;t' |
| 18905 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 18906 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 18907 | ac_uB='$,\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18908 | ac_uC=' ' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18909 | ac_uD=',;t' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18910 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18911 | 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] | 18912 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18913 | case $ac_file in |
| 18914 | - | *:- | *:-:* ) # input from stdin |
| 18915 | cat >$tmp/stdin |
| 18916 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 18917 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 18918 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 18919 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 18920 | * ) ac_file_in=$ac_file.in ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18921 | esac |
| 18922 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18923 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 18924 | echo "$as_me: creating $ac_file" >&6;} |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18925 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18926 | # First look for the input files in the build tree, otherwise in the |
| 18927 | # src tree. |
| 18928 | ac_file_inputs=`IFS=: |
| 18929 | for f in $ac_file_in; do |
| 18930 | case $f in |
| 18931 | -) echo $tmp/stdin ;; |
| 18932 | [\\/$]*) |
| 18933 | # Absolute (can't be DOS-style, as IFS=:) |
| 18934 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 18935 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 18936 | { (exit 1); exit 1; }; } |
| 18937 | echo $f;; |
| 18938 | *) # Relative |
| 18939 | if test -f "$f"; then |
| 18940 | # Build tree |
| 18941 | echo $f |
| 18942 | elif test -f "$srcdir/$f"; then |
| 18943 | # Source tree |
| 18944 | echo $srcdir/$f |
| 18945 | else |
| 18946 | # /dev/null tree |
| 18947 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 18948 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 18949 | { (exit 1); exit 1; }; } |
| 18950 | fi;; |
| 18951 | esac |
| 18952 | done` || { (exit 1); exit 1; } |
| 18953 | # Remove the trailing spaces. |
| 18954 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18955 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18956 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18957 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18958 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 18959 | # `conftest.undefs', that substitutes the proper values into |
| 18960 | # config.h.in to produce config.h. The first handles `#define' |
| 18961 | # templates, and the second `#undef' templates. |
| 18962 | # And first: Protect against being on the right side of a sed subst in |
| 18963 | # config.status. Protect against being in an unquoted here document |
| 18964 | # in config.status. |
| 18965 | rm -f conftest.defines conftest.undefs |
| 18966 | # Using a here document instead of a string reduces the quoting nightmare. |
| 18967 | # Putting comments in sed scripts is not portable. |
| 18968 | # |
| 18969 | # `end' is used to avoid that the second main sed command (meant for |
| 18970 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 18971 | # See the Autoconf documentation for `clear'. |
| 18972 | cat >confdef2sed.sed <<\_ACEOF |
| 18973 | s/[\\&,]/\\&/g |
| 18974 | s,[\\$`],\\&,g |
| 18975 | t clear |
| 18976 | : clear |
| 18977 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 18978 | t end |
| 18979 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 18980 | : end |
| 18981 | _ACEOF |
| 18982 | # If some macros were called several times there might be several times |
| 18983 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 18984 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 18985 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 18986 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 18987 | rm -f confdef2sed.sed |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18988 | |
| 18989 | # This sed command replaces #undef with comments. This is necessary, for |
| 18990 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 18991 | # 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] | 18992 | cat >>conftest.undefs <<\_ACEOF |
| 18993 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 18994 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18995 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18996 | # Break up conftest.defines because some shells have a limit on the size |
| 18997 | # of here documents, and old seds have small limits too (100 cmds). |
| 18998 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18999 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19000 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 19001 | echo ' :' >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19002 | rm -f conftest.tail |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19003 | while grep . conftest.defines >/dev/null |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19004 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19005 | # Write a limited-size here document to $tmp/defines.sed. |
| 19006 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 19007 | # Speed up: don't consider the non `#define' lines. |
| 19008 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 19009 | # Work around the forget-to-reset-the-flag bug. |
| 19010 | echo 't clr' >>$CONFIG_STATUS |
| 19011 | echo ': clr' >>$CONFIG_STATUS |
| 19012 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19013 | echo 'CEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19014 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 19015 | rm -f $tmp/in |
| 19016 | mv $tmp/out $tmp/in |
| 19017 | ' >>$CONFIG_STATUS |
| 19018 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 19019 | rm -f conftest.defines |
| 19020 | mv conftest.tail conftest.defines |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19021 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19022 | rm -f conftest.defines |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19023 | echo ' fi # grep' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19024 | echo >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19025 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19026 | # Break up conftest.undefs because some shells have a limit on the size |
| 19027 | # of here documents, and old seds have small limits too (100 cmds). |
| 19028 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 19029 | rm -f conftest.tail |
| 19030 | while grep . conftest.undefs >/dev/null |
| 19031 | do |
| 19032 | # Write a limited-size here document to $tmp/undefs.sed. |
| 19033 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 19034 | # Speed up: don't consider the non `#undef' |
| 19035 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 19036 | # Work around the forget-to-reset-the-flag bug. |
| 19037 | echo 't clr' >>$CONFIG_STATUS |
| 19038 | echo ': clr' >>$CONFIG_STATUS |
| 19039 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 19040 | echo 'CEOF |
| 19041 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 19042 | rm -f $tmp/in |
| 19043 | mv $tmp/out $tmp/in |
| 19044 | ' >>$CONFIG_STATUS |
| 19045 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 19046 | rm -f conftest.undefs |
| 19047 | mv conftest.tail conftest.undefs |
| 19048 | done |
| 19049 | rm -f conftest.undefs |
| 19050 | |
| 19051 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 19052 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 19053 | # use $as_me), people would be surprised to read: |
| 19054 | # /* config.h. Generated by config.status. */ |
| 19055 | if test x"$ac_file" = x-; then |
| 19056 | echo "/* Generated by configure. */" >$tmp/config.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19057 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19058 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19059 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19060 | cat $tmp/in >>$tmp/config.h |
| 19061 | rm -f $tmp/in |
| 19062 | if test x"$ac_file" != x-; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19063 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19064 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 19065 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 19066 | else |
| 19067 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 19068 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 19069 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 19070 | X"$ac_file" : 'X\(//\)$' \| \ |
| 19071 | X"$ac_file" : 'X\(/\)' \| \ |
| 19072 | . : '\(.\)' 2>/dev/null || |
| 19073 | echo X"$ac_file" | |
| 19074 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 19075 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 19076 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 19077 | /^X\(\/\).*/{ s//\1/; q; } |
| 19078 | s/.*/./; q'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19079 | { if $as_mkdir_p; then |
| 19080 | mkdir -p "$ac_dir" |
| 19081 | else |
| 19082 | as_dir="$ac_dir" |
| 19083 | as_dirs= |
| 19084 | while test ! -d "$as_dir"; do |
| 19085 | as_dirs="$as_dir $as_dirs" |
| 19086 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 19087 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 19088 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 19089 | X"$as_dir" : 'X\(//\)$' \| \ |
| 19090 | X"$as_dir" : 'X\(/\)' \| \ |
| 19091 | . : '\(.\)' 2>/dev/null || |
| 19092 | echo X"$as_dir" | |
| 19093 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 19094 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 19095 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 19096 | /^X\(\/\).*/{ s//\1/; q; } |
| 19097 | s/.*/./; q'` |
| 19098 | done |
| 19099 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 19100 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 19101 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 19102 | { (exit 1); exit 1; }; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19103 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19104 | rm -f $ac_file |
| 19105 | mv $tmp/config.h $ac_file |
| 19106 | fi |
| 19107 | else |
| 19108 | cat $tmp/config.h |
| 19109 | rm -f $tmp/config.h |
| 19110 | fi |
| 19111 | done |
| 19112 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19113 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19114 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19115 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19116 | { (exit 0); exit 0; } |
| 19117 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19118 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19119 | ac_clean_files=$ac_clean_files_save |
| 19120 | |
| 19121 | |
| 19122 | # configure is writing to config.log, and then calls config.status. |
| 19123 | # config.status does its own redirection, appending to config.log. |
| 19124 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 19125 | # by configure, so config.status won't be able to write to it; its |
| 19126 | # output is simply discarded. So we exec the FD to /dev/null, |
| 19127 | # effectively closing config.log, so it can be properly (re)opened and |
| 19128 | # appended to by config.status. When coming back to configure, we |
| 19129 | # need to make the FD available again. |
| 19130 | if test "$no_create" != yes; then |
| 19131 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19132 | ac_config_status_args= |
| 19133 | test "$silent" = yes && |
| 19134 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19135 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19136 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19137 | exec 5>>config.log |
| 19138 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 19139 | # would make configure fail if this is the last instruction. |
| 19140 | $ac_cs_success || { (exit 1); exit 1; } |
| 19141 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19142 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 19143 | |
| 19144 | echo "creating Setup" |
| 19145 | if test ! -f Modules/Setup |
| 19146 | then |
| 19147 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 19148 | fi |
| 19149 | |
| 19150 | echo "creating Setup.local" |
| 19151 | if test ! -f Modules/Setup.local |
| 19152 | then |
| 19153 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 19154 | fi |
| 19155 | |
| 19156 | echo "creating Makefile" |
| 19157 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 19158 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 19159 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 19160 | mv config.c Modules |