Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 2 | # From configure.in Revision: 1.456 . |
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 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +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 CONFIGURE_MACOSX_DEPLOYMENT_TARGET 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' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 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 |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 869 | --with(out)-doc-strings disable/enable documentation strings |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 870 | --with(out)-tsc enable/disable timestamp counter profile |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 871 | --with(out)-pymalloc disable/enable specialized mallocs |
| 872 | --with-wctype-functions use wctype.h functions |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 873 | --with-fpectl enable SIGFPE catching |
| 874 | --with-libm=STRING math library |
| 875 | --with-libc=STRING C library |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 876 | |
| 877 | Some influential environment variables: |
| 878 | CC C compiler command |
| 879 | CFLAGS C compiler flags |
| 880 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 881 | nonstandard directory <lib dir> |
| 882 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 883 | headers in a nonstandard directory <include dir> |
| 884 | CPP C preprocessor |
| 885 | |
| 886 | Use these variables to override the choices made by `configure' or to help |
| 887 | it to find libraries and programs with nonstandard names/locations. |
| 888 | |
| 889 | _ACEOF |
| 890 | fi |
| 891 | |
| 892 | if test "$ac_init_help" = "recursive"; then |
| 893 | # If there are subdirs, report their specific --help. |
| 894 | ac_popdir=`pwd` |
| 895 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 896 | test -d $ac_dir || continue |
| 897 | ac_builddir=. |
| 898 | |
| 899 | if test "$ac_dir" != .; then |
| 900 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 901 | # A "../" for each directory in $ac_dir_suffix. |
| 902 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 903 | else |
| 904 | ac_dir_suffix= ac_top_builddir= |
| 905 | fi |
| 906 | |
| 907 | case $srcdir in |
| 908 | .) # No --srcdir option. We are building in place. |
| 909 | ac_srcdir=. |
| 910 | if test -z "$ac_top_builddir"; then |
| 911 | ac_top_srcdir=. |
| 912 | else |
| 913 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 914 | fi ;; |
| 915 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 916 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 917 | ac_top_srcdir=$srcdir ;; |
| 918 | *) # Relative path. |
| 919 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 920 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 921 | esac |
| 922 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 923 | # absolute. |
| 924 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 925 | 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] | 926 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 927 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 928 | |
| 929 | cd $ac_dir |
| 930 | # Check for guested configure; otherwise get Cygnus style configure. |
| 931 | if test -f $ac_srcdir/configure.gnu; then |
| 932 | echo |
| 933 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 934 | elif test -f $ac_srcdir/configure; then |
| 935 | echo |
| 936 | $SHELL $ac_srcdir/configure --help=recursive |
| 937 | elif test -f $ac_srcdir/configure.ac || |
| 938 | test -f $ac_srcdir/configure.in; then |
| 939 | echo |
| 940 | $ac_configure --help |
| 941 | else |
| 942 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 943 | fi |
| 944 | cd $ac_popdir |
| 945 | done |
| 946 | fi |
| 947 | |
| 948 | test -n "$ac_init_help" && exit 0 |
| 949 | if $ac_init_version; then |
| 950 | cat <<\_ACEOF |
Fred Drake | 9bd4462 | 2003-07-30 17:39:48 +0000 | [diff] [blame] | 951 | python configure 2.4 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 952 | generated by GNU Autoconf 2.57 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 953 | |
| 954 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
| 955 | Free Software Foundation, Inc. |
| 956 | This configure script is free software; the Free Software Foundation |
| 957 | gives unlimited permission to copy, distribute and modify it. |
| 958 | _ACEOF |
| 959 | exit 0 |
| 960 | fi |
| 961 | exec 5>config.log |
| 962 | cat >&5 <<_ACEOF |
| 963 | This file contains any messages produced by compilers while |
| 964 | running configure, to aid debugging if configure makes a mistake. |
| 965 | |
Fred Drake | 9bd4462 | 2003-07-30 17:39:48 +0000 | [diff] [blame] | 966 | It was created by python $as_me 2.4, which was |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 967 | generated by GNU Autoconf 2.57. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 968 | |
| 969 | $ $0 $@ |
| 970 | |
| 971 | _ACEOF |
| 972 | { |
| 973 | cat <<_ASUNAME |
| 974 | ## --------- ## |
| 975 | ## Platform. ## |
| 976 | ## --------- ## |
| 977 | |
| 978 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 979 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 980 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 981 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 982 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 983 | |
| 984 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 985 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 986 | |
| 987 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 988 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 989 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 990 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 991 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 992 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 993 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 994 | |
| 995 | _ASUNAME |
| 996 | |
| 997 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 998 | for as_dir in $PATH |
| 999 | do |
| 1000 | IFS=$as_save_IFS |
| 1001 | test -z "$as_dir" && as_dir=. |
| 1002 | echo "PATH: $as_dir" |
| 1003 | done |
| 1004 | |
| 1005 | } >&5 |
| 1006 | |
| 1007 | cat >&5 <<_ACEOF |
| 1008 | |
| 1009 | |
| 1010 | ## ----------- ## |
| 1011 | ## Core tests. ## |
| 1012 | ## ----------- ## |
| 1013 | |
| 1014 | _ACEOF |
| 1015 | |
| 1016 | |
| 1017 | # Keep a trace of the command line. |
| 1018 | # 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] | 1019 | # 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] | 1020 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1021 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1022 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1023 | ac_configure_args0= |
| 1024 | ac_configure_args1= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1025 | ac_sep= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1026 | ac_must_keep_next=false |
| 1027 | for ac_pass in 1 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1028 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1029 | for ac_arg |
| 1030 | do |
| 1031 | case $ac_arg in |
| 1032 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1033 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1034 | | -silent | --silent | --silen | --sile | --sil) |
| 1035 | continue ;; |
| 1036 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1037 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1038 | esac |
| 1039 | case $ac_pass in |
| 1040 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1041 | 2) |
| 1042 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1043 | if test $ac_must_keep_next = true; then |
| 1044 | ac_must_keep_next=false # Got value, back to normal. |
| 1045 | else |
| 1046 | case $ac_arg in |
| 1047 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1048 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1049 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1050 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1051 | case "$ac_configure_args0 " in |
| 1052 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1053 | esac |
| 1054 | ;; |
| 1055 | -* ) ac_must_keep_next=true ;; |
| 1056 | esac |
| 1057 | fi |
| 1058 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1059 | # Get rid of the leading space. |
| 1060 | ac_sep=" " |
| 1061 | ;; |
| 1062 | esac |
| 1063 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1064 | done |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1065 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1066 | $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] | 1067 | |
| 1068 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1069 | # config.log. We remove comments because anyway the quotes in there |
| 1070 | # would cause problems or look ugly. |
| 1071 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1072 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1073 | trap 'exit_status=$? |
| 1074 | # Save into config.log some information that might help in debugging. |
| 1075 | { |
| 1076 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1077 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1078 | cat <<\_ASBOX |
| 1079 | ## ---------------- ## |
| 1080 | ## Cache variables. ## |
| 1081 | ## ---------------- ## |
| 1082 | _ASBOX |
| 1083 | echo |
| 1084 | # The following way of writing the cache mishandles newlines in values, |
| 1085 | { |
| 1086 | (set) 2>&1 | |
| 1087 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1088 | *ac_space=\ *) |
| 1089 | sed -n \ |
| 1090 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1091 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1092 | ;; |
| 1093 | *) |
| 1094 | sed -n \ |
| 1095 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1096 | ;; |
| 1097 | esac; |
| 1098 | } |
| 1099 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1100 | |
| 1101 | cat <<\_ASBOX |
| 1102 | ## ----------------- ## |
| 1103 | ## Output variables. ## |
| 1104 | ## ----------------- ## |
| 1105 | _ASBOX |
| 1106 | echo |
| 1107 | for ac_var in $ac_subst_vars |
| 1108 | do |
| 1109 | eval ac_val=$`echo $ac_var` |
| 1110 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1111 | done | sort |
| 1112 | echo |
| 1113 | |
| 1114 | if test -n "$ac_subst_files"; then |
| 1115 | cat <<\_ASBOX |
| 1116 | ## ------------- ## |
| 1117 | ## Output files. ## |
| 1118 | ## ------------- ## |
| 1119 | _ASBOX |
| 1120 | echo |
| 1121 | for ac_var in $ac_subst_files |
| 1122 | do |
| 1123 | eval ac_val=$`echo $ac_var` |
| 1124 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1125 | done | sort |
| 1126 | echo |
| 1127 | fi |
| 1128 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1129 | if test -s confdefs.h; then |
| 1130 | cat <<\_ASBOX |
| 1131 | ## ----------- ## |
| 1132 | ## confdefs.h. ## |
| 1133 | ## ----------- ## |
| 1134 | _ASBOX |
| 1135 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1136 | sed "/^$/d" confdefs.h | sort |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1137 | echo |
| 1138 | fi |
| 1139 | test "$ac_signal" != 0 && |
| 1140 | echo "$as_me: caught signal $ac_signal" |
| 1141 | echo "$as_me: exit $exit_status" |
| 1142 | } >&5 |
| 1143 | rm -f core core.* *.core && |
| 1144 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1145 | exit $exit_status |
| 1146 | ' 0 |
| 1147 | for ac_signal in 1 2 13 15; do |
| 1148 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1149 | done |
| 1150 | ac_signal=0 |
| 1151 | |
| 1152 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1153 | rm -rf conftest* confdefs.h |
| 1154 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1155 | echo >confdefs.h |
| 1156 | |
| 1157 | # Predefined preprocessor variables. |
| 1158 | |
| 1159 | cat >>confdefs.h <<_ACEOF |
| 1160 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1161 | _ACEOF |
| 1162 | |
| 1163 | |
| 1164 | cat >>confdefs.h <<_ACEOF |
| 1165 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1166 | _ACEOF |
| 1167 | |
| 1168 | |
| 1169 | cat >>confdefs.h <<_ACEOF |
| 1170 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1171 | _ACEOF |
| 1172 | |
| 1173 | |
| 1174 | cat >>confdefs.h <<_ACEOF |
| 1175 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1176 | _ACEOF |
| 1177 | |
| 1178 | |
| 1179 | cat >>confdefs.h <<_ACEOF |
| 1180 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1181 | _ACEOF |
| 1182 | |
| 1183 | |
| 1184 | # 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] | 1185 | # Prefer explicitly selected file to automatically selected ones. |
| 1186 | if test -z "$CONFIG_SITE"; then |
| 1187 | if test "x$prefix" != xNONE; then |
| 1188 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1189 | else |
| 1190 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1191 | fi |
| 1192 | fi |
| 1193 | for ac_site_file in $CONFIG_SITE; do |
| 1194 | if test -r "$ac_site_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1195 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1196 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1197 | sed 's/^/| /' "$ac_site_file" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1198 | . "$ac_site_file" |
| 1199 | fi |
| 1200 | done |
| 1201 | |
| 1202 | if test -r "$cache_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1203 | # Some versions of bash will fail to source /dev/null (special |
| 1204 | # files actually), so we avoid doing that. |
| 1205 | if test -f "$cache_file"; then |
| 1206 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1207 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1208 | case $cache_file in |
| 1209 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1210 | *) . ./$cache_file;; |
| 1211 | esac |
| 1212 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1213 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1214 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1215 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1216 | >$cache_file |
| 1217 | fi |
| 1218 | |
| 1219 | # Check that the precious variables saved in the cache have kept the same |
| 1220 | # value. |
| 1221 | ac_cache_corrupted=false |
| 1222 | for ac_var in `(set) 2>&1 | |
| 1223 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1224 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1225 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1226 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1227 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1228 | case $ac_old_set,$ac_new_set in |
| 1229 | set,) |
| 1230 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1231 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1232 | ac_cache_corrupted=: ;; |
| 1233 | ,set) |
| 1234 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1235 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1236 | ac_cache_corrupted=: ;; |
| 1237 | ,);; |
| 1238 | *) |
| 1239 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1240 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1241 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1242 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1243 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1244 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1245 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1246 | ac_cache_corrupted=: |
| 1247 | fi;; |
| 1248 | esac |
| 1249 | # Pass precious variables to config.status. |
| 1250 | if test "$ac_new_set" = set; then |
| 1251 | case $ac_new_val in |
| 1252 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1253 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1254 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1255 | esac |
| 1256 | case " $ac_configure_args " in |
| 1257 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1258 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1259 | esac |
| 1260 | fi |
| 1261 | done |
| 1262 | if $ac_cache_corrupted; then |
| 1263 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1264 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1265 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1266 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1267 | { (exit 1); exit 1; }; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1268 | fi |
| 1269 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1270 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1271 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1272 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1273 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1274 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1275 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1276 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1277 | |
| 1278 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1279 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1280 | |
| 1281 | |
| 1282 | |
| 1283 | |
| 1284 | |
| 1285 | |
| 1286 | |
| 1287 | |
| 1288 | |
| 1289 | |
| 1290 | |
| 1291 | |
| 1292 | |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1293 | |
| 1294 | |
| 1295 | |
| 1296 | |
| 1297 | |
| 1298 | |
| 1299 | |
| 1300 | |
| 1301 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1302 | |
| 1303 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1304 | |
| 1305 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1306 | |
| 1307 | |
| 1308 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1309 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1310 | |
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 1311 | # We don't use PACKAGE_ variables, and they cause conflicts |
| 1312 | # with other autoconf-based packages that include Python.h |
| 1313 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| 1314 | rm confdefs.h |
| 1315 | mv confdefs.h.new confdefs.h |
| 1316 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1317 | |
Fred Drake | 9bd4462 | 2003-07-30 17:39:48 +0000 | [diff] [blame] | 1318 | VERSION=2.4 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1319 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 1320 | |
| 1321 | SOVERSION=1.0 |
| 1322 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1323 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 1324 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 1325 | |
| 1326 | cat >>confdefs.h <<\_ACEOF |
| 1327 | #define _GNU_SOURCE 1 |
| 1328 | _ACEOF |
| 1329 | |
| 1330 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 1331 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1332 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 1333 | # them. |
| 1334 | |
| 1335 | cat >>confdefs.h <<\_ACEOF |
| 1336 | #define _NETBSD_SOURCE 1 |
| 1337 | _ACEOF |
| 1338 | |
| 1339 | |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 1340 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1341 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| 1342 | # them. |
| 1343 | |
| 1344 | cat >>confdefs.h <<\_ACEOF |
| 1345 | #define __BSD_VISIBLE 1 |
| 1346 | _ACEOF |
| 1347 | |
| 1348 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1349 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1350 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 1351 | # Arguments passed to configure. |
| 1352 | |
| 1353 | CONFIG_ARGS="$ac_configure_args" |
| 1354 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1355 | # Check whether --enable-framework or --disable-framework was given. |
| 1356 | if test "${enable_framework+set}" = set; then |
| 1357 | enableval="$enable_framework" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1358 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1359 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1360 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1361 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1362 | esac |
| 1363 | case $enableval in |
| 1364 | no) |
| 1365 | PYTHONFRAMEWORK= |
| 1366 | PYTHONFRAMEWORKDIR=no-framework |
| 1367 | PYTHONFRAMEWORKPREFIX= |
| 1368 | PYTHONFRAMEWORKINSTALLDIR= |
| 1369 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1370 | ;; |
| 1371 | *) |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1372 | PYTHONFRAMEWORK=Python |
| 1373 | PYTHONFRAMEWORKDIR=Python.framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1374 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1375 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
| 1376 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1377 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1378 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1379 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1380 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1381 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1382 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1383 | PYTHONFRAMEWORKPREFIX= |
| 1384 | PYTHONFRAMEWORKINSTALLDIR= |
| 1385 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1386 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1387 | fi; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1388 | |
| 1389 | |
| 1390 | |
| 1391 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1392 | |
| 1393 | ##AC_ARG_WITH(dyld, |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1394 | ## AC_HELP_STRING(--with-dyld, |
| 1395 | ## Use (OpenStep|Rhapsody) dynamic linker)) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1396 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1397 | # Set name for machine-dependent library files |
| 1398 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1399 | echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 1400 | echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1401 | if test -z "$MACHDEP" |
| 1402 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1403 | ac_sys_system=`uname -s` |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 1404 | if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \ |
| 1405 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1406 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1407 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1408 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1409 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1410 | ac_md_system=`echo $ac_sys_system | |
| 1411 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 1412 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 1413 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1414 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1415 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 1416 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 1417 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 1418 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 1419 | atheos*) MACHDEP="atheos";; |
Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 1420 | irix646) MACHDEP="irix6";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1421 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1422 | esac |
| 1423 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1424 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1425 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 1426 | # disable features if it is defined, without any means to access these |
| 1427 | # features as extensions. For these systems, we skip the definition of |
| 1428 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 1429 | # some feature, make sure there is no alternative way to access this |
| 1430 | # feature. Also, when using wildcards, make sure you have verified the |
| 1431 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 1432 | # wildcard, and that the wildcard does not include future systems |
| 1433 | # (which may remove their limitations). |
| 1434 | case $ac_sys_system/$ac_sys_release in |
| 1435 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 1436 | # 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] | 1437 | # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. |
| 1438 | OpenBSD/2.* | OpenBSD/3.[01234]) |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1439 | define_xopen_source=no;; |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 1440 | # On Solaris 2.6, sys/wait.h is inconsistent in the usage |
| 1441 | # of union __?sigval. Reported by Stuart Bishop. |
| 1442 | SunOS/5.6) |
| 1443 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 1444 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| 1445 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 1446 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 1447 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 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 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 1532 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
| 1533 | # it may influence the way we can build extensions, so distutils |
| 1534 | # needs to check it |
| 1535 | |
| 1536 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
| 1537 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1538 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1539 | |
| 1540 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 1541 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 1542 | # just to get things to compile and link. Users are free to override OPT |
| 1543 | # when running configure or make. The build should not break if they do. |
| 1544 | # BASECFLAGS should generally not be messed with, however. |
| 1545 | |
| 1546 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 1547 | # on that fiddles with OPT and BASECFLAGS? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1548 | echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 1549 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6 |
| 1550 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1551 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1552 | if test "${with_gcc+set}" = set; then |
| 1553 | withval="$with_gcc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1554 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1555 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1556 | no) CC=cc |
| 1557 | without_gcc=yes;; |
| 1558 | yes) CC=gcc |
| 1559 | without_gcc=no;; |
| 1560 | *) CC=$withval |
| 1561 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1562 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1563 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1564 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1565 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1566 | AIX*) CC=cc_r |
| 1567 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1568 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1569 | case $BE_HOST_CPU in |
| 1570 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1571 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1572 | without_gcc=yes |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1573 | BASECFLAGS="$BASECFLAGS -export pragma" |
| 1574 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1575 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1576 | ;; |
| 1577 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1578 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1579 | without_gcc=no |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1580 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1581 | ;; |
| 1582 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1583 | { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| 1584 | echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;} |
| 1585 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1586 | ;; |
| 1587 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1588 | AR="\$(srcdir)/Modules/ar_beos" |
| 1589 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1590 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1591 | Monterey*) |
| 1592 | RANLIB=: |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1593 | without_gcc=;; |
| 1594 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1595 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1596 | fi; |
| 1597 | echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 1598 | echo "${ECHO_T}$without_gcc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1599 | |
| 1600 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1601 | |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1602 | MAINOBJ=python.o |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1603 | echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5 |
| 1604 | echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6 |
| 1605 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1606 | # Check whether --with-cxx or --without-cxx was given. |
| 1607 | if test "${with_cxx+set}" = set; then |
| 1608 | withval="$with_cxx" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1609 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1610 | check_cxx=no |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1611 | case $withval in |
| 1612 | no) CXX= |
| 1613 | with_cxx=no;; |
| 1614 | *) CXX=$withval |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1615 | MAINOBJ=ccpython.o |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1616 | with_cxx=$withval;; |
| 1617 | esac |
| 1618 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1619 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1620 | with_cxx=no |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1621 | check_cxx=yes |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1622 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1623 | fi; |
| 1624 | echo "$as_me:$LINENO: result: $with_cxx" >&5 |
| 1625 | echo "${ECHO_T}$with_cxx" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1626 | |
| 1627 | if test "$with_cxx" = "yes" |
| 1628 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1629 | { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5 |
| 1630 | echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;} |
| 1631 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1632 | fi |
| 1633 | |
| 1634 | |
| 1635 | |
| 1636 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1637 | if test "$check_cxx" = "yes" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1638 | then |
| 1639 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 1640 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1641 | # 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] | 1642 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1643 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1644 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1645 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 1646 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1647 | else |
| 1648 | if test -n "$CXX"; then |
| 1649 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 1650 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1651 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1652 | for as_dir in $PATH |
| 1653 | do |
| 1654 | IFS=$as_save_IFS |
| 1655 | test -z "$as_dir" && as_dir=. |
| 1656 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1657 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1658 | ac_cv_prog_CXX="$ac_prog" |
| 1659 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1660 | break 2 |
| 1661 | fi |
| 1662 | done |
| 1663 | done |
| 1664 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1665 | fi |
| 1666 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1667 | CXX=$ac_cv_prog_CXX |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1668 | if test -n "$CXX"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1669 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 1670 | echo "${ECHO_T}$CXX" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1671 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1672 | echo "$as_me:$LINENO: result: no" >&5 |
| 1673 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1674 | fi |
| 1675 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1676 | test -n "$CXX" && break |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1677 | done |
| 1678 | test -n "$CXX" || CXX="notfound" |
| 1679 | |
| 1680 | if test "$CXX" = "notfound" |
| 1681 | then |
| 1682 | CXX= |
| 1683 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1684 | ac_ext=cc |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1685 | ac_cpp='$CXXCPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1686 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1687 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1688 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 1689 | cat >conftest.$ac_ext <<_ACEOF |
| 1690 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1691 | /* confdefs.h. */ |
| 1692 | _ACEOF |
| 1693 | cat confdefs.h >>conftest.$ac_ext |
| 1694 | cat >>conftest.$ac_ext <<_ACEOF |
| 1695 | /* end confdefs.h. */ |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1696 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1697 | int |
| 1698 | main () |
| 1699 | { |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1700 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1701 | ; |
| 1702 | return 0; |
| 1703 | } |
| 1704 | _ACEOF |
| 1705 | ac_clean_files_save=$ac_clean_files |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1706 | 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] | 1707 | # Try to create an executable without -o first, disregard a.out. |
| 1708 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1709 | # of exeext. |
| 1710 | echo "$as_me:$LINENO: checking for C++ compiler default output" >&5 |
| 1711 | echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6 |
| 1712 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1713 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1714 | (eval $ac_link_default) 2>&5 |
| 1715 | ac_status=$? |
| 1716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1717 | (exit $ac_status); }; then |
| 1718 | # Find the output, starting from the most likely. This scheme is |
| 1719 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1720 | # resort. |
| 1721 | |
| 1722 | # Be careful to initialize this variable, since it used to be cached. |
| 1723 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1724 | ac_cv_exeext= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1725 | # b.out is created by i960 compilers. |
| 1726 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 1727 | do |
| 1728 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1729 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1730 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 1731 | ;; |
| 1732 | conftest.$ac_ext ) |
| 1733 | # This is the source file. |
| 1734 | ;; |
| 1735 | [ab].out ) |
| 1736 | # We found the default executable, but exeext='' is most |
| 1737 | # certainly right. |
| 1738 | break;; |
| 1739 | *.* ) |
| 1740 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1741 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1742 | # but it would be cool to find out if it's true. Does anybody |
| 1743 | # maintain Libtool? --akim. |
| 1744 | export ac_cv_exeext |
| 1745 | break;; |
| 1746 | * ) |
| 1747 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1748 | esac |
| 1749 | done |
| 1750 | else |
| 1751 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1752 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1753 | |
| 1754 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
| 1755 | See \`config.log' for more details." >&5 |
| 1756 | echo "$as_me: error: C++ compiler cannot create executables |
| 1757 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1758 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1759 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1760 | |
| 1761 | ac_exeext=$ac_cv_exeext |
| 1762 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1763 | echo "${ECHO_T}$ac_file" >&6 |
| 1764 | |
| 1765 | # Check the compiler produces executables we can run. If not, either |
| 1766 | # the compiler is broken, or we cross compile. |
| 1767 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
| 1768 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
| 1769 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1770 | # If not cross compiling, check that we can run a simple program. |
| 1771 | if test "$cross_compiling" != yes; then |
| 1772 | if { ac_try='./$ac_file' |
| 1773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1774 | (eval $ac_try) 2>&5 |
| 1775 | ac_status=$? |
| 1776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1777 | (exit $ac_status); }; }; then |
| 1778 | cross_compiling=no |
| 1779 | else |
| 1780 | if test "$cross_compiling" = maybe; then |
| 1781 | cross_compiling=yes |
| 1782 | else |
| 1783 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1784 | If you meant to cross compile, use \`--host'. |
| 1785 | See \`config.log' for more details." >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1786 | echo "$as_me: error: cannot run C++ compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1787 | If you meant to cross compile, use \`--host'. |
| 1788 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1789 | { (exit 1); exit 1; }; } |
| 1790 | fi |
| 1791 | fi |
| 1792 | fi |
| 1793 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1794 | echo "${ECHO_T}yes" >&6 |
| 1795 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1796 | 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] | 1797 | ac_clean_files=$ac_clean_files_save |
| 1798 | # Check the compiler produces executables we can run. If not, either |
| 1799 | # the compiler is broken, or we cross compile. |
| 1800 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1801 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1802 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1803 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1804 | |
| 1805 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1806 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1807 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1808 | (eval $ac_link) 2>&5 |
| 1809 | ac_status=$? |
| 1810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1811 | (exit $ac_status); }; then |
| 1812 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1813 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1814 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1815 | # `rm'. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1816 | for ac_file in conftest.exe conftest conftest.*; do |
| 1817 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1818 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1819 | *.$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] | 1820 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1821 | export ac_cv_exeext |
| 1822 | break;; |
| 1823 | * ) break;; |
| 1824 | esac |
| 1825 | done |
| 1826 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1827 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1828 | See \`config.log' for more details." >&5 |
| 1829 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 1830 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1831 | { (exit 1); exit 1; }; } |
| 1832 | fi |
| 1833 | |
| 1834 | rm -f conftest$ac_cv_exeext |
| 1835 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1836 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1837 | |
| 1838 | rm -f conftest.$ac_ext |
| 1839 | EXEEXT=$ac_cv_exeext |
| 1840 | ac_exeext=$EXEEXT |
| 1841 | |
| 1842 | ac_ext=c |
| 1843 | ac_cpp='$CPP $CPPFLAGS' |
| 1844 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1845 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1846 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1847 | |
| 1848 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1849 | |
| 1850 | fi |
| 1851 | fi |
| 1852 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1853 | # If the user switches compilers, we can't believe the cache |
| 1854 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 1855 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1856 | { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file |
| 1857 | (it is also a good idea to do 'make clean' before compiling)" >&5 |
| 1858 | echo "$as_me: error: cached CC is different -- throw away $cache_file |
| 1859 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 1860 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1861 | fi |
| 1862 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1863 | ac_ext=c |
| 1864 | ac_cpp='$CPP $CPPFLAGS' |
| 1865 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1866 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1867 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1868 | if test -n "$ac_tool_prefix"; then |
| 1869 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1870 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1871 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1872 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1873 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1874 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1875 | else |
| 1876 | if test -n "$CC"; then |
| 1877 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1878 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1879 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1880 | for as_dir in $PATH |
| 1881 | do |
| 1882 | IFS=$as_save_IFS |
| 1883 | test -z "$as_dir" && as_dir=. |
| 1884 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1885 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1886 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1887 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1888 | break 2 |
| 1889 | fi |
| 1890 | done |
| 1891 | done |
| 1892 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1893 | fi |
| 1894 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1895 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1896 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1897 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1898 | echo "${ECHO_T}$CC" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1899 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1900 | echo "$as_me:$LINENO: result: no" >&5 |
| 1901 | echo "${ECHO_T}no" >&6 |
| 1902 | fi |
| 1903 | |
| 1904 | fi |
| 1905 | if test -z "$ac_cv_prog_CC"; then |
| 1906 | ac_ct_CC=$CC |
| 1907 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1908 | set dummy gcc; ac_word=$2 |
| 1909 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1910 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1911 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1912 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1913 | else |
| 1914 | if test -n "$ac_ct_CC"; then |
| 1915 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1916 | else |
| 1917 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1918 | for as_dir in $PATH |
| 1919 | do |
| 1920 | IFS=$as_save_IFS |
| 1921 | test -z "$as_dir" && as_dir=. |
| 1922 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1923 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1924 | ac_cv_prog_ac_ct_CC="gcc" |
| 1925 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1926 | break 2 |
| 1927 | fi |
| 1928 | done |
| 1929 | done |
| 1930 | |
| 1931 | fi |
| 1932 | fi |
| 1933 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1934 | if test -n "$ac_ct_CC"; then |
| 1935 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1936 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1937 | else |
| 1938 | echo "$as_me:$LINENO: result: no" >&5 |
| 1939 | echo "${ECHO_T}no" >&6 |
| 1940 | fi |
| 1941 | |
| 1942 | CC=$ac_ct_CC |
| 1943 | else |
| 1944 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1945 | fi |
| 1946 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1947 | if test -z "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1948 | if test -n "$ac_tool_prefix"; then |
| 1949 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1950 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1951 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1952 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1953 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1954 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1955 | else |
| 1956 | if test -n "$CC"; then |
| 1957 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1958 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1959 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1960 | for as_dir in $PATH |
| 1961 | do |
| 1962 | IFS=$as_save_IFS |
| 1963 | test -z "$as_dir" && as_dir=. |
| 1964 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1965 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1966 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1967 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1968 | break 2 |
| 1969 | fi |
| 1970 | done |
| 1971 | done |
| 1972 | |
| 1973 | fi |
| 1974 | fi |
| 1975 | CC=$ac_cv_prog_CC |
| 1976 | if test -n "$CC"; then |
| 1977 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1978 | echo "${ECHO_T}$CC" >&6 |
| 1979 | else |
| 1980 | echo "$as_me:$LINENO: result: no" >&5 |
| 1981 | echo "${ECHO_T}no" >&6 |
| 1982 | fi |
| 1983 | |
| 1984 | fi |
| 1985 | if test -z "$ac_cv_prog_CC"; then |
| 1986 | ac_ct_CC=$CC |
| 1987 | # Extract the first word of "cc", so it can be a program name with args. |
| 1988 | set dummy cc; ac_word=$2 |
| 1989 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1990 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1991 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1992 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1993 | else |
| 1994 | if test -n "$ac_ct_CC"; then |
| 1995 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1996 | else |
| 1997 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1998 | for as_dir in $PATH |
| 1999 | do |
| 2000 | IFS=$as_save_IFS |
| 2001 | test -z "$as_dir" && as_dir=. |
| 2002 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2003 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2004 | ac_cv_prog_ac_ct_CC="cc" |
| 2005 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2006 | break 2 |
| 2007 | fi |
| 2008 | done |
| 2009 | done |
| 2010 | |
| 2011 | fi |
| 2012 | fi |
| 2013 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2014 | if test -n "$ac_ct_CC"; then |
| 2015 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2016 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2017 | else |
| 2018 | echo "$as_me:$LINENO: result: no" >&5 |
| 2019 | echo "${ECHO_T}no" >&6 |
| 2020 | fi |
| 2021 | |
| 2022 | CC=$ac_ct_CC |
| 2023 | else |
| 2024 | CC="$ac_cv_prog_CC" |
| 2025 | fi |
| 2026 | |
| 2027 | fi |
| 2028 | if test -z "$CC"; then |
| 2029 | # Extract the first word of "cc", so it can be a program name with args. |
| 2030 | set dummy cc; ac_word=$2 |
| 2031 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2032 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2033 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2035 | else |
| 2036 | if test -n "$CC"; then |
| 2037 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2038 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2039 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2040 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2041 | for as_dir in $PATH |
| 2042 | do |
| 2043 | IFS=$as_save_IFS |
| 2044 | test -z "$as_dir" && as_dir=. |
| 2045 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2046 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2047 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2048 | ac_prog_rejected=yes |
| 2049 | continue |
| 2050 | fi |
| 2051 | ac_cv_prog_CC="cc" |
| 2052 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2053 | break 2 |
| 2054 | fi |
| 2055 | done |
| 2056 | done |
| 2057 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2058 | if test $ac_prog_rejected = yes; then |
| 2059 | # We found a bogon in the path, so make sure we never use it. |
| 2060 | set dummy $ac_cv_prog_CC |
| 2061 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2062 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2063 | # We chose a different compiler from the bogus one. |
| 2064 | # However, it has the same basename, so the bogon will be chosen |
| 2065 | # first if we set CC to just the basename; use the full file name. |
| 2066 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2067 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2068 | fi |
| 2069 | fi |
| 2070 | fi |
| 2071 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2072 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2073 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2074 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2075 | echo "${ECHO_T}$CC" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2076 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2077 | echo "$as_me:$LINENO: result: no" >&5 |
| 2078 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2079 | fi |
| 2080 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2081 | fi |
| 2082 | if test -z "$CC"; then |
| 2083 | if test -n "$ac_tool_prefix"; then |
| 2084 | for ac_prog in cl |
| 2085 | do |
| 2086 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2087 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2088 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2089 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2090 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2091 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2092 | else |
| 2093 | if test -n "$CC"; then |
| 2094 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2095 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2097 | for as_dir in $PATH |
| 2098 | do |
| 2099 | IFS=$as_save_IFS |
| 2100 | test -z "$as_dir" && as_dir=. |
| 2101 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2102 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2103 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2104 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2105 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2106 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2107 | done |
| 2108 | done |
| 2109 | |
| 2110 | fi |
| 2111 | fi |
| 2112 | CC=$ac_cv_prog_CC |
| 2113 | if test -n "$CC"; then |
| 2114 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2115 | echo "${ECHO_T}$CC" >&6 |
| 2116 | else |
| 2117 | echo "$as_me:$LINENO: result: no" >&5 |
| 2118 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2119 | fi |
| 2120 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2121 | test -n "$CC" && break |
| 2122 | done |
| 2123 | fi |
| 2124 | if test -z "$CC"; then |
| 2125 | ac_ct_CC=$CC |
| 2126 | for ac_prog in cl |
| 2127 | do |
| 2128 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2129 | set dummy $ac_prog; ac_word=$2 |
| 2130 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2131 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2132 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2134 | else |
| 2135 | if test -n "$ac_ct_CC"; then |
| 2136 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2137 | else |
| 2138 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2139 | for as_dir in $PATH |
| 2140 | do |
| 2141 | IFS=$as_save_IFS |
| 2142 | test -z "$as_dir" && as_dir=. |
| 2143 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2144 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2145 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2146 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2147 | break 2 |
| 2148 | fi |
| 2149 | done |
| 2150 | done |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2151 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2152 | fi |
| 2153 | fi |
| 2154 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2155 | if test -n "$ac_ct_CC"; then |
| 2156 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2157 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2158 | else |
| 2159 | echo "$as_me:$LINENO: result: no" >&5 |
| 2160 | echo "${ECHO_T}no" >&6 |
| 2161 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2162 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2163 | test -n "$ac_ct_CC" && break |
| 2164 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2165 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2166 | CC=$ac_ct_CC |
| 2167 | fi |
| 2168 | |
| 2169 | fi |
| 2170 | |
| 2171 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2172 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2173 | See \`config.log' for more details." >&5 |
| 2174 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2175 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2176 | { (exit 1); exit 1; }; } |
| 2177 | |
| 2178 | # Provide some information about the compiler. |
| 2179 | echo "$as_me:$LINENO:" \ |
| 2180 | "checking for C compiler version" >&5 |
| 2181 | ac_compiler=`set X $ac_compile; echo $2` |
| 2182 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2183 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2184 | ac_status=$? |
| 2185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2186 | (exit $ac_status); } |
| 2187 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2188 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2189 | ac_status=$? |
| 2190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2191 | (exit $ac_status); } |
| 2192 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2193 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2194 | ac_status=$? |
| 2195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2196 | (exit $ac_status); } |
| 2197 | |
| 2198 | cat >conftest.$ac_ext <<_ACEOF |
| 2199 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2200 | /* confdefs.h. */ |
| 2201 | _ACEOF |
| 2202 | cat confdefs.h >>conftest.$ac_ext |
| 2203 | cat >>conftest.$ac_ext <<_ACEOF |
| 2204 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2205 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2206 | int |
| 2207 | main () |
| 2208 | { |
| 2209 | |
| 2210 | ; |
| 2211 | return 0; |
| 2212 | } |
| 2213 | _ACEOF |
| 2214 | ac_clean_files_save=$ac_clean_files |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2215 | 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] | 2216 | # Try to create an executable without -o first, disregard a.out. |
| 2217 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2218 | # of exeext. |
| 2219 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
| 2220 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 2221 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2222 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2223 | (eval $ac_link_default) 2>&5 |
| 2224 | ac_status=$? |
| 2225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2226 | (exit $ac_status); }; then |
| 2227 | # Find the output, starting from the most likely. This scheme is |
| 2228 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2229 | # resort. |
| 2230 | |
| 2231 | # Be careful to initialize this variable, since it used to be cached. |
| 2232 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2233 | ac_cv_exeext= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2234 | # b.out is created by i960 compilers. |
| 2235 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 2236 | do |
| 2237 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2238 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2239 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 2240 | ;; |
| 2241 | conftest.$ac_ext ) |
| 2242 | # This is the source file. |
| 2243 | ;; |
| 2244 | [ab].out ) |
| 2245 | # We found the default executable, but exeext='' is most |
| 2246 | # certainly right. |
| 2247 | break;; |
| 2248 | *.* ) |
| 2249 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2250 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 2251 | # but it would be cool to find out if it's true. Does anybody |
| 2252 | # maintain Libtool? --akim. |
| 2253 | export ac_cv_exeext |
| 2254 | break;; |
| 2255 | * ) |
| 2256 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2257 | esac |
| 2258 | done |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2259 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2260 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2261 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2262 | |
| 2263 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2264 | See \`config.log' for more details." >&5 |
| 2265 | echo "$as_me: error: C compiler cannot create executables |
| 2266 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2267 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2268 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2269 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2270 | ac_exeext=$ac_cv_exeext |
| 2271 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2272 | echo "${ECHO_T}$ac_file" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2273 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2274 | # Check the compiler produces executables we can run. If not, either |
| 2275 | # the compiler is broken, or we cross compile. |
| 2276 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2277 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2278 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2279 | # If not cross compiling, check that we can run a simple program. |
| 2280 | if test "$cross_compiling" != yes; then |
| 2281 | if { ac_try='./$ac_file' |
| 2282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2283 | (eval $ac_try) 2>&5 |
| 2284 | ac_status=$? |
| 2285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2286 | (exit $ac_status); }; }; then |
| 2287 | cross_compiling=no |
| 2288 | else |
| 2289 | if test "$cross_compiling" = maybe; then |
| 2290 | cross_compiling=yes |
| 2291 | else |
| 2292 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2293 | If you meant to cross compile, use \`--host'. |
| 2294 | See \`config.log' for more details." >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2295 | echo "$as_me: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2296 | If you meant to cross compile, use \`--host'. |
| 2297 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2298 | { (exit 1); exit 1; }; } |
| 2299 | fi |
| 2300 | fi |
| 2301 | fi |
| 2302 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2303 | echo "${ECHO_T}yes" >&6 |
| 2304 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2305 | 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] | 2306 | ac_clean_files=$ac_clean_files_save |
| 2307 | # Check the compiler produces executables we can run. If not, either |
| 2308 | # the compiler is broken, or we cross compile. |
| 2309 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2310 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2311 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2312 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2313 | |
| 2314 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2315 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2316 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2317 | (eval $ac_link) 2>&5 |
| 2318 | ac_status=$? |
| 2319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2320 | (exit $ac_status); }; then |
| 2321 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2322 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2323 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2324 | # `rm'. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2325 | for ac_file in conftest.exe conftest conftest.*; do |
| 2326 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2327 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2328 | *.$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] | 2329 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2330 | export ac_cv_exeext |
| 2331 | break;; |
| 2332 | * ) break;; |
| 2333 | esac |
| 2334 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2335 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2336 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2337 | See \`config.log' for more details." >&5 |
| 2338 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2339 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2340 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2341 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2342 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2343 | rm -f conftest$ac_cv_exeext |
| 2344 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2345 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2346 | |
| 2347 | rm -f conftest.$ac_ext |
| 2348 | EXEEXT=$ac_cv_exeext |
| 2349 | ac_exeext=$EXEEXT |
| 2350 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2351 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2352 | if test "${ac_cv_objext+set}" = set; then |
| 2353 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2354 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2355 | cat >conftest.$ac_ext <<_ACEOF |
| 2356 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2357 | /* confdefs.h. */ |
| 2358 | _ACEOF |
| 2359 | cat confdefs.h >>conftest.$ac_ext |
| 2360 | cat >>conftest.$ac_ext <<_ACEOF |
| 2361 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2362 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2363 | int |
| 2364 | main () |
| 2365 | { |
| 2366 | |
| 2367 | ; |
| 2368 | return 0; |
| 2369 | } |
| 2370 | _ACEOF |
| 2371 | rm -f conftest.o conftest.obj |
| 2372 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2373 | (eval $ac_compile) 2>&5 |
| 2374 | ac_status=$? |
| 2375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2376 | (exit $ac_status); }; then |
| 2377 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2378 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2379 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2380 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2381 | break;; |
| 2382 | esac |
| 2383 | done |
| 2384 | else |
| 2385 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2386 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2387 | |
| 2388 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2389 | See \`config.log' for more details." >&5 |
| 2390 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2391 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2392 | { (exit 1); exit 1; }; } |
| 2393 | fi |
| 2394 | |
| 2395 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2396 | fi |
| 2397 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2398 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2399 | OBJEXT=$ac_cv_objext |
| 2400 | ac_objext=$OBJEXT |
| 2401 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2402 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2403 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2404 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2405 | else |
| 2406 | cat >conftest.$ac_ext <<_ACEOF |
| 2407 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2408 | /* confdefs.h. */ |
| 2409 | _ACEOF |
| 2410 | cat confdefs.h >>conftest.$ac_ext |
| 2411 | cat >>conftest.$ac_ext <<_ACEOF |
| 2412 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2413 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2414 | int |
| 2415 | main () |
| 2416 | { |
| 2417 | #ifndef __GNUC__ |
| 2418 | choke me |
| 2419 | #endif |
| 2420 | |
| 2421 | ; |
| 2422 | return 0; |
| 2423 | } |
| 2424 | _ACEOF |
| 2425 | rm -f conftest.$ac_objext |
| 2426 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2427 | (eval $ac_compile) 2>&5 |
| 2428 | ac_status=$? |
| 2429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2430 | (exit $ac_status); } && |
| 2431 | { ac_try='test -s conftest.$ac_objext' |
| 2432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2433 | (eval $ac_try) 2>&5 |
| 2434 | ac_status=$? |
| 2435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2436 | (exit $ac_status); }; }; then |
| 2437 | ac_compiler_gnu=yes |
| 2438 | else |
| 2439 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2440 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2441 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2442 | ac_compiler_gnu=no |
| 2443 | fi |
| 2444 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2445 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2446 | |
| 2447 | fi |
| 2448 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2449 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2450 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2451 | ac_test_CFLAGS=${CFLAGS+set} |
| 2452 | ac_save_CFLAGS=$CFLAGS |
| 2453 | CFLAGS="-g" |
| 2454 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2455 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2456 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2458 | else |
| 2459 | cat >conftest.$ac_ext <<_ACEOF |
| 2460 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2461 | /* confdefs.h. */ |
| 2462 | _ACEOF |
| 2463 | cat confdefs.h >>conftest.$ac_ext |
| 2464 | cat >>conftest.$ac_ext <<_ACEOF |
| 2465 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2466 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2467 | int |
| 2468 | main () |
| 2469 | { |
| 2470 | |
| 2471 | ; |
| 2472 | return 0; |
| 2473 | } |
| 2474 | _ACEOF |
| 2475 | rm -f conftest.$ac_objext |
| 2476 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2477 | (eval $ac_compile) 2>&5 |
| 2478 | ac_status=$? |
| 2479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2480 | (exit $ac_status); } && |
| 2481 | { ac_try='test -s conftest.$ac_objext' |
| 2482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2483 | (eval $ac_try) 2>&5 |
| 2484 | ac_status=$? |
| 2485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2486 | (exit $ac_status); }; }; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2487 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2488 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2489 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2490 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2491 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2492 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2493 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2494 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2495 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2496 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2497 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2498 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2499 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2500 | elif test $ac_cv_prog_cc_g = yes; then |
| 2501 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2502 | CFLAGS="-g -O2" |
| 2503 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2504 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2505 | fi |
| 2506 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2507 | if test "$GCC" = yes; then |
| 2508 | CFLAGS="-O2" |
| 2509 | else |
| 2510 | CFLAGS= |
| 2511 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2512 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2513 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2514 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2515 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2517 | else |
| 2518 | ac_cv_prog_cc_stdc=no |
| 2519 | ac_save_CC=$CC |
| 2520 | cat >conftest.$ac_ext <<_ACEOF |
| 2521 | #line $LINENO "configure" |
| 2522 | /* confdefs.h. */ |
| 2523 | _ACEOF |
| 2524 | cat confdefs.h >>conftest.$ac_ext |
| 2525 | cat >>conftest.$ac_ext <<_ACEOF |
| 2526 | /* end confdefs.h. */ |
| 2527 | #include <stdarg.h> |
| 2528 | #include <stdio.h> |
| 2529 | #include <sys/types.h> |
| 2530 | #include <sys/stat.h> |
| 2531 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2532 | struct buf { int x; }; |
| 2533 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2534 | static char *e (p, i) |
| 2535 | char **p; |
| 2536 | int i; |
| 2537 | { |
| 2538 | return p[i]; |
| 2539 | } |
| 2540 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2541 | { |
| 2542 | char *s; |
| 2543 | va_list v; |
| 2544 | va_start (v,p); |
| 2545 | s = g (p, va_arg (v,int)); |
| 2546 | va_end (v); |
| 2547 | return s; |
| 2548 | } |
| 2549 | int test (int i, double x); |
| 2550 | struct s1 {int (*f) (int a);}; |
| 2551 | struct s2 {int (*f) (double a);}; |
| 2552 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2553 | int argc; |
| 2554 | char **argv; |
| 2555 | int |
| 2556 | main () |
| 2557 | { |
| 2558 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2559 | ; |
| 2560 | return 0; |
| 2561 | } |
| 2562 | _ACEOF |
| 2563 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2564 | # breaks some systems' header files. |
| 2565 | # AIX -qlanglvl=ansi |
| 2566 | # Ultrix and OSF/1 -std1 |
| 2567 | # HP-UX 10.20 and later -Ae |
| 2568 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2569 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2570 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2571 | do |
| 2572 | CC="$ac_save_CC $ac_arg" |
| 2573 | rm -f conftest.$ac_objext |
| 2574 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2575 | (eval $ac_compile) 2>&5 |
| 2576 | ac_status=$? |
| 2577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2578 | (exit $ac_status); } && |
| 2579 | { ac_try='test -s conftest.$ac_objext' |
| 2580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2581 | (eval $ac_try) 2>&5 |
| 2582 | ac_status=$? |
| 2583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2584 | (exit $ac_status); }; }; then |
| 2585 | ac_cv_prog_cc_stdc=$ac_arg |
| 2586 | break |
| 2587 | else |
| 2588 | echo "$as_me: failed program was:" >&5 |
| 2589 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2590 | |
| 2591 | fi |
| 2592 | rm -f conftest.$ac_objext |
| 2593 | done |
| 2594 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2595 | CC=$ac_save_CC |
| 2596 | |
| 2597 | fi |
| 2598 | |
| 2599 | case "x$ac_cv_prog_cc_stdc" in |
| 2600 | x|xno) |
| 2601 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2602 | echo "${ECHO_T}none needed" >&6 ;; |
| 2603 | *) |
| 2604 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2605 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2606 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2607 | esac |
| 2608 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2609 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2610 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2611 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2612 | # the declaration of exit, since it's the most demanding environment. |
| 2613 | cat >conftest.$ac_ext <<_ACEOF |
| 2614 | #ifndef __cplusplus |
| 2615 | choke me |
| 2616 | #endif |
| 2617 | _ACEOF |
| 2618 | rm -f conftest.$ac_objext |
| 2619 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2620 | (eval $ac_compile) 2>&5 |
| 2621 | ac_status=$? |
| 2622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2623 | (exit $ac_status); } && |
| 2624 | { ac_try='test -s conftest.$ac_objext' |
| 2625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2626 | (eval $ac_try) 2>&5 |
| 2627 | ac_status=$? |
| 2628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2629 | (exit $ac_status); }; }; then |
| 2630 | for ac_declaration in \ |
| 2631 | ''\ |
| 2632 | '#include <stdlib.h>' \ |
| 2633 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2634 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2635 | 'extern "C" void exit (int) throw ();' \ |
| 2636 | 'extern "C" void exit (int);' \ |
| 2637 | 'void exit (int);' |
| 2638 | do |
| 2639 | cat >conftest.$ac_ext <<_ACEOF |
| 2640 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2641 | /* confdefs.h. */ |
| 2642 | _ACEOF |
| 2643 | cat confdefs.h >>conftest.$ac_ext |
| 2644 | cat >>conftest.$ac_ext <<_ACEOF |
| 2645 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2646 | #include <stdlib.h> |
| 2647 | $ac_declaration |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2648 | int |
| 2649 | main () |
| 2650 | { |
| 2651 | exit (42); |
| 2652 | ; |
| 2653 | return 0; |
| 2654 | } |
| 2655 | _ACEOF |
| 2656 | rm -f conftest.$ac_objext |
| 2657 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2658 | (eval $ac_compile) 2>&5 |
| 2659 | ac_status=$? |
| 2660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2661 | (exit $ac_status); } && |
| 2662 | { ac_try='test -s conftest.$ac_objext' |
| 2663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2664 | (eval $ac_try) 2>&5 |
| 2665 | ac_status=$? |
| 2666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2667 | (exit $ac_status); }; }; then |
| 2668 | : |
| 2669 | else |
| 2670 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2671 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2672 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2673 | continue |
| 2674 | fi |
| 2675 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2676 | cat >conftest.$ac_ext <<_ACEOF |
| 2677 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2678 | /* confdefs.h. */ |
| 2679 | _ACEOF |
| 2680 | cat confdefs.h >>conftest.$ac_ext |
| 2681 | cat >>conftest.$ac_ext <<_ACEOF |
| 2682 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2683 | $ac_declaration |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2684 | int |
| 2685 | main () |
| 2686 | { |
| 2687 | exit (42); |
| 2688 | ; |
| 2689 | return 0; |
| 2690 | } |
| 2691 | _ACEOF |
| 2692 | rm -f conftest.$ac_objext |
| 2693 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2694 | (eval $ac_compile) 2>&5 |
| 2695 | ac_status=$? |
| 2696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2697 | (exit $ac_status); } && |
| 2698 | { ac_try='test -s conftest.$ac_objext' |
| 2699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2700 | (eval $ac_try) 2>&5 |
| 2701 | ac_status=$? |
| 2702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2703 | (exit $ac_status); }; }; then |
| 2704 | break |
| 2705 | else |
| 2706 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2707 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2708 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2709 | fi |
| 2710 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2711 | done |
| 2712 | rm -f conftest* |
| 2713 | if test -n "$ac_declaration"; then |
| 2714 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2715 | echo $ac_declaration >>confdefs.h |
| 2716 | echo '#endif' >>confdefs.h |
| 2717 | fi |
| 2718 | |
| 2719 | else |
| 2720 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2721 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2722 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2723 | fi |
| 2724 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2725 | ac_ext=c |
| 2726 | ac_cpp='$CPP $CPPFLAGS' |
| 2727 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2728 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2729 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2730 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2731 | |
| 2732 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2733 | |
| 2734 | ac_ext=c |
| 2735 | ac_cpp='$CPP $CPPFLAGS' |
| 2736 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2737 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2738 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2739 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2740 | 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] | 2741 | # On Suns, sometimes $CPP names a directory. |
| 2742 | if test -n "$CPP" && test -d "$CPP"; then |
| 2743 | CPP= |
| 2744 | fi |
| 2745 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2746 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2747 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2748 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2749 | # Double quotes because CPP needs to be expanded |
| 2750 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2751 | do |
| 2752 | ac_preproc_ok=false |
| 2753 | for ac_c_preproc_warn_flag in '' yes |
| 2754 | do |
| 2755 | # Use a header file that comes with gcc, so configuring glibc |
| 2756 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2757 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2758 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2759 | # 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] | 2760 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2761 | cat >conftest.$ac_ext <<_ACEOF |
| 2762 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2763 | /* confdefs.h. */ |
| 2764 | _ACEOF |
| 2765 | cat confdefs.h >>conftest.$ac_ext |
| 2766 | cat >>conftest.$ac_ext <<_ACEOF |
| 2767 | /* end confdefs.h. */ |
| 2768 | #ifdef __STDC__ |
| 2769 | # include <limits.h> |
| 2770 | #else |
| 2771 | # include <assert.h> |
| 2772 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2773 | Syntax error |
| 2774 | _ACEOF |
| 2775 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2776 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2777 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2778 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2779 | rm -f conftest.er1 |
| 2780 | cat conftest.err >&5 |
| 2781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2782 | (exit $ac_status); } >/dev/null; then |
| 2783 | if test -s conftest.err; then |
| 2784 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2785 | else |
| 2786 | ac_cpp_err= |
| 2787 | fi |
| 2788 | else |
| 2789 | ac_cpp_err=yes |
| 2790 | fi |
| 2791 | if test -z "$ac_cpp_err"; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2792 | : |
| 2793 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2794 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2795 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2796 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2797 | # Broken: fails on valid input. |
| 2798 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2799 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2800 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2801 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2802 | # OK, works on sane cases. Now check whether non-existent headers |
| 2803 | # can be detected and how. |
| 2804 | cat >conftest.$ac_ext <<_ACEOF |
| 2805 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2806 | /* confdefs.h. */ |
| 2807 | _ACEOF |
| 2808 | cat confdefs.h >>conftest.$ac_ext |
| 2809 | cat >>conftest.$ac_ext <<_ACEOF |
| 2810 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2811 | #include <ac_nonexistent.h> |
| 2812 | _ACEOF |
| 2813 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2814 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2815 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2816 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2817 | rm -f conftest.er1 |
| 2818 | cat conftest.err >&5 |
| 2819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2820 | (exit $ac_status); } >/dev/null; then |
| 2821 | if test -s conftest.err; then |
| 2822 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2823 | else |
| 2824 | ac_cpp_err= |
| 2825 | fi |
| 2826 | else |
| 2827 | ac_cpp_err=yes |
| 2828 | fi |
| 2829 | if test -z "$ac_cpp_err"; then |
| 2830 | # Broken: success on invalid input. |
| 2831 | continue |
| 2832 | else |
| 2833 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2834 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2835 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2836 | # Passes both tests. |
| 2837 | ac_preproc_ok=: |
| 2838 | break |
| 2839 | fi |
| 2840 | rm -f conftest.err conftest.$ac_ext |
| 2841 | |
| 2842 | done |
| 2843 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2844 | rm -f conftest.err conftest.$ac_ext |
| 2845 | if $ac_preproc_ok; then |
| 2846 | break |
| 2847 | fi |
| 2848 | |
| 2849 | done |
| 2850 | ac_cv_prog_CPP=$CPP |
| 2851 | |
| 2852 | fi |
| 2853 | CPP=$ac_cv_prog_CPP |
| 2854 | else |
| 2855 | ac_cv_prog_CPP=$CPP |
| 2856 | fi |
| 2857 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2858 | echo "${ECHO_T}$CPP" >&6 |
| 2859 | ac_preproc_ok=false |
| 2860 | for ac_c_preproc_warn_flag in '' yes |
| 2861 | do |
| 2862 | # Use a header file that comes with gcc, so configuring glibc |
| 2863 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2864 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2865 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2866 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2867 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2868 | cat >conftest.$ac_ext <<_ACEOF |
| 2869 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2870 | /* confdefs.h. */ |
| 2871 | _ACEOF |
| 2872 | cat confdefs.h >>conftest.$ac_ext |
| 2873 | cat >>conftest.$ac_ext <<_ACEOF |
| 2874 | /* end confdefs.h. */ |
| 2875 | #ifdef __STDC__ |
| 2876 | # include <limits.h> |
| 2877 | #else |
| 2878 | # include <assert.h> |
| 2879 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2880 | Syntax error |
| 2881 | _ACEOF |
| 2882 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2883 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2884 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2885 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2886 | rm -f conftest.er1 |
| 2887 | cat conftest.err >&5 |
| 2888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2889 | (exit $ac_status); } >/dev/null; then |
| 2890 | if test -s conftest.err; then |
| 2891 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2892 | else |
| 2893 | ac_cpp_err= |
| 2894 | fi |
| 2895 | else |
| 2896 | ac_cpp_err=yes |
| 2897 | fi |
| 2898 | if test -z "$ac_cpp_err"; then |
| 2899 | : |
| 2900 | else |
| 2901 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2902 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2903 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2904 | # Broken: fails on valid input. |
| 2905 | continue |
| 2906 | fi |
| 2907 | rm -f conftest.err conftest.$ac_ext |
| 2908 | |
| 2909 | # OK, works on sane cases. Now check whether non-existent headers |
| 2910 | # can be detected and how. |
| 2911 | cat >conftest.$ac_ext <<_ACEOF |
| 2912 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2913 | /* confdefs.h. */ |
| 2914 | _ACEOF |
| 2915 | cat confdefs.h >>conftest.$ac_ext |
| 2916 | cat >>conftest.$ac_ext <<_ACEOF |
| 2917 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2918 | #include <ac_nonexistent.h> |
| 2919 | _ACEOF |
| 2920 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2921 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2922 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2923 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2924 | rm -f conftest.er1 |
| 2925 | cat conftest.err >&5 |
| 2926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2927 | (exit $ac_status); } >/dev/null; then |
| 2928 | if test -s conftest.err; then |
| 2929 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2930 | else |
| 2931 | ac_cpp_err= |
| 2932 | fi |
| 2933 | else |
| 2934 | ac_cpp_err=yes |
| 2935 | fi |
| 2936 | if test -z "$ac_cpp_err"; then |
| 2937 | # Broken: success on invalid input. |
| 2938 | continue |
| 2939 | else |
| 2940 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2941 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2942 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2943 | # Passes both tests. |
| 2944 | ac_preproc_ok=: |
| 2945 | break |
| 2946 | fi |
| 2947 | rm -f conftest.err conftest.$ac_ext |
| 2948 | |
| 2949 | done |
| 2950 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2951 | rm -f conftest.err conftest.$ac_ext |
| 2952 | if $ac_preproc_ok; then |
| 2953 | : |
| 2954 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2955 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 2956 | See \`config.log' for more details." >&5 |
| 2957 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 2958 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2959 | { (exit 1); exit 1; }; } |
| 2960 | fi |
| 2961 | |
| 2962 | ac_ext=c |
| 2963 | ac_cpp='$CPP $CPPFLAGS' |
| 2964 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2965 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2966 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2967 | |
| 2968 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2969 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 2970 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 2971 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 2972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2973 | else |
| 2974 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 2975 | then ac_cv_prog_egrep='grep -E' |
| 2976 | else ac_cv_prog_egrep='egrep' |
| 2977 | fi |
| 2978 | fi |
| 2979 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 2980 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 2981 | EGREP=$ac_cv_prog_egrep |
| 2982 | |
| 2983 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2984 | |
| 2985 | echo "$as_me:$LINENO: checking for AIX" >&5 |
| 2986 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
| 2987 | cat >conftest.$ac_ext <<_ACEOF |
| 2988 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2989 | /* confdefs.h. */ |
| 2990 | _ACEOF |
| 2991 | cat confdefs.h >>conftest.$ac_ext |
| 2992 | cat >>conftest.$ac_ext <<_ACEOF |
| 2993 | /* end confdefs.h. */ |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2994 | #ifdef _AIX |
| 2995 | yes |
| 2996 | #endif |
| 2997 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2998 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2999 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3000 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3001 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3002 | echo "${ECHO_T}yes" >&6 |
| 3003 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3004 | #define _ALL_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3005 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3006 | |
| 3007 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3008 | echo "$as_me:$LINENO: result: no" >&5 |
| 3009 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3010 | fi |
| 3011 | rm -f conftest* |
| 3012 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3013 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3014 | |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 3015 | # Check for unsupported systems |
| 3016 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 3017 | Linux*/1*) |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 3018 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 3019 | echo See README for details. |
| 3020 | exit 1;; |
| 3021 | esac |
| 3022 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3023 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3024 | echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 3025 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3026 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3027 | # Check whether --with-suffix or --without-suffix was given. |
| 3028 | if test "${with_suffix+set}" = set; then |
| 3029 | withval="$with_suffix" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3030 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3031 | case $withval in |
| 3032 | no) EXEEXT=;; |
| 3033 | yes) EXEEXT=.exe;; |
| 3034 | *) EXEEXT=$withval;; |
| 3035 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3036 | fi; |
| 3037 | echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 3038 | echo "${ECHO_T}$EXEEXT" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3039 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3040 | # Test whether we're running on a non-case-sensitive system, in which |
| 3041 | # case we give a warning if no ext is given |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3042 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3043 | echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 3044 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6 |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3045 | if test ! -d CaseSensitiveTestDir; then |
| 3046 | mkdir CaseSensitiveTestDir |
| 3047 | fi |
| 3048 | |
| 3049 | if test -d casesensitivetestdir |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3050 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3051 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3052 | echo "${ECHO_T}yes" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3053 | BUILDEXEEXT=.exe |
| 3054 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3055 | echo "$as_me:$LINENO: result: no" >&5 |
| 3056 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3057 | BUILDEXEEXT=$EXEEXT |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3058 | fi |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3059 | rmdir CaseSensitiveTestDir |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 3060 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 3061 | case $MACHDEP in |
| 3062 | bsdos*) |
| 3063 | case $CC in |
| 3064 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 3065 | esac;; |
| 3066 | esac |
| 3067 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3068 | case $ac_sys_system in |
| 3069 | hp*|HP*) |
| 3070 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 3071 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3072 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3073 | Monterey*) |
| 3074 | case $CC in |
| 3075 | cc) CC="$CC -Wl,-Bexport";; |
| 3076 | esac;; |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3077 | SunOS*) |
| 3078 | # 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] | 3079 | |
| 3080 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3081 | #define __EXTENSIONS__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3082 | _ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3083 | |
| 3084 | ;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3085 | esac |
| 3086 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3087 | |
| 3088 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3089 | echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 3090 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3091 | if test -z "$LIBRARY" |
| 3092 | then |
| 3093 | LIBRARY='libpython$(VERSION).a' |
| 3094 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3095 | echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 3096 | echo "${ECHO_T}$LIBRARY" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3097 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3098 | # 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] | 3099 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3100 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3101 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3102 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3103 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3104 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3105 | # DLLLIBRARY is the shared (i.e., DLL) library. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3106 | # |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3107 | # RUNSHARED is used to run shared python without installed libraries |
| 3108 | # |
| 3109 | # INSTSONAME is the name of the shared library that will be use to install |
| 3110 | # on the system - some systems like version suffix, others don't |
| 3111 | |
| 3112 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3113 | |
| 3114 | |
| 3115 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3116 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3117 | LDLIBRARY="$LIBRARY" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3118 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 09bdf72 | 2002-05-08 08:51:29 +0000 | [diff] [blame] | 3119 | INSTSONAME='$(LDLIBRARY)' |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 3120 | DLLLIBRARY='' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3121 | LDLIBRARYDIR='' |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3122 | RUNSHARED='' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3123 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3124 | # 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] | 3125 | # If CXX is set, and if it is needed to link a main function that was |
| 3126 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 3127 | # python might then depend on the C++ runtime |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3128 | # 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] | 3129 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3130 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3131 | echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 3132 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3133 | if test -z "$LINKCC" |
| 3134 | then |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 3135 | if test -z "$CXX"; then |
| 3136 | LINKCC="\$(PURIFY) \$(CC)" |
| 3137 | else |
Martin v. Löwis | 1931ca7 | 2002-06-01 21:39:58 +0000 | [diff] [blame] | 3138 | 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] | 3139 | $CXX -c conftest.$ac_ext 2>&5 |
| 3140 | if $CC -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 3141 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 3142 | then |
| 3143 | LINKCC="\$(PURIFY) \$(CC)" |
| 3144 | else |
| 3145 | LINKCC="\$(PURIFY) \$(CXX)" |
| 3146 | fi |
| 3147 | rm -fr conftest* |
| 3148 | fi |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3149 | case $ac_sys_system in |
| 3150 | AIX*) |
Neal Norwitz | 0b27ff9 | 2003-03-31 15:53:49 +0000 | [diff] [blame] | 3151 | exp_extra="\"\"" |
| 3152 | if test $ac_sys_release -ge 5 -o \ |
| 3153 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 3154 | exp_extra="." |
| 3155 | fi |
| 3156 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3157 | Monterey64*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3158 | LINKCC="$LINKCC -L/usr/lib/ia64l64";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3159 | esac |
| 3160 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3161 | echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 3162 | echo "${ECHO_T}$LINKCC" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3163 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3164 | echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 3165 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3166 | # Check whether --enable-shared or --disable-shared was given. |
| 3167 | if test "${enable_shared+set}" = set; then |
| 3168 | enableval="$enable_shared" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3169 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3170 | fi; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3171 | |
| 3172 | if test -z "$enable_shared" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3173 | then |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3174 | case $ac_sys_system in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3175 | CYGWIN* | atheos*) |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3176 | enable_shared="yes";; |
| 3177 | *) |
| 3178 | enable_shared="no";; |
| 3179 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3180 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3181 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 3182 | echo "${ECHO_T}$enable_shared" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3183 | |
| 3184 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3185 | echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 3186 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3187 | |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 3188 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 3189 | # library that we build, but we do not want to link against it (we |
| 3190 | # will find it with a -framework option). For this reason there is an |
| 3191 | # extra variable BLDLIBRARY against which Python and the extension |
| 3192 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 3193 | # LDLIBRARY, but empty for MacOSX framework builds. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3194 | if test "$enable_framework" |
| 3195 | then |
| 3196 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 66b8483 | 2003-07-04 12:14:39 +0000 | [diff] [blame] | 3197 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3198 | BLDLIBRARY='' |
| 3199 | else |
| 3200 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3201 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3202 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3203 | # Other platforms follow |
| 3204 | if test $enable_shared = "yes"; then |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 3205 | |
| 3206 | cat >>confdefs.h <<\_ACEOF |
| 3207 | #define Py_ENABLE_SHARED 1 |
| 3208 | _ACEOF |
| 3209 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3210 | case $ac_sys_system in |
| 3211 | BeOS*) |
| 3212 | LDLIBRARY='libpython$(VERSION).so' |
| 3213 | ;; |
| 3214 | CYGWIN*) |
| 3215 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3216 | DLLLIBRARY='libpython$(VERSION).dll' |
| 3217 | ;; |
| 3218 | SunOS*) |
| 3219 | LDLIBRARY='libpython$(VERSION).so' |
Martin v. Löwis | d141a8c | 2003-06-14 15:20:28 +0000 | [diff] [blame] | 3220 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -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 | 2389c41 | 2003-10-31 15:42:07 +0000 | [diff] [blame] | 3222 | INSTSONAME="$LDLIBRARY".$SOVERSION |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3223 | ;; |
Martin v. Löwis | 96ce805 | 2003-05-31 07:58:45 +0000 | [diff] [blame] | 3224 | Linux*|GNU*|NetBSD*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3225 | LDLIBRARY='libpython$(VERSION).so' |
| 3226 | BLDLIBRARY='-L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3227 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3228 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 3229 | ;; |
| 3230 | hp*|HP*) |
| 3231 | LDLIBRARY='libpython$(VERSION).sl' |
| 3232 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3233 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3234 | ;; |
| 3235 | OSF*) |
| 3236 | LDLIBRARY='libpython$(VERSION).so' |
| 3237 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3238 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3239 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3240 | atheos*) |
| 3241 | LDLIBRARY='libpython$(VERSION).so' |
| 3242 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3243 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 3244 | ;; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3245 | esac |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 3246 | else # shared is disabled |
| 3247 | case $ac_sys_system in |
| 3248 | CYGWIN*) |
| 3249 | BLDLIBRARY='$(LIBRARY)' |
| 3250 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3251 | ;; |
| 3252 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3253 | fi |
| 3254 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3255 | echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 3256 | echo "${ECHO_T}$LDLIBRARY" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3257 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3258 | if test -n "$ac_tool_prefix"; then |
| 3259 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3260 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3261 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3262 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3263 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3264 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3265 | else |
| 3266 | if test -n "$RANLIB"; then |
| 3267 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3268 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3269 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3270 | for as_dir in $PATH |
| 3271 | do |
| 3272 | IFS=$as_save_IFS |
| 3273 | test -z "$as_dir" && as_dir=. |
| 3274 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3275 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3276 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3277 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3278 | break 2 |
| 3279 | fi |
| 3280 | done |
| 3281 | done |
| 3282 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3283 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3284 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3285 | RANLIB=$ac_cv_prog_RANLIB |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3286 | if test -n "$RANLIB"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3287 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3288 | echo "${ECHO_T}$RANLIB" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3289 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3290 | echo "$as_me:$LINENO: result: no" >&5 |
| 3291 | echo "${ECHO_T}no" >&6 |
| 3292 | fi |
| 3293 | |
| 3294 | fi |
| 3295 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3296 | ac_ct_RANLIB=$RANLIB |
| 3297 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3298 | set dummy ranlib; ac_word=$2 |
| 3299 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3300 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3301 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3302 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3303 | else |
| 3304 | if test -n "$ac_ct_RANLIB"; then |
| 3305 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3306 | else |
| 3307 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3308 | for as_dir in $PATH |
| 3309 | do |
| 3310 | IFS=$as_save_IFS |
| 3311 | test -z "$as_dir" && as_dir=. |
| 3312 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3313 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3314 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3315 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3316 | break 2 |
| 3317 | fi |
| 3318 | done |
| 3319 | done |
| 3320 | |
| 3321 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3322 | fi |
| 3323 | fi |
| 3324 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3325 | if test -n "$ac_ct_RANLIB"; then |
| 3326 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3327 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3328 | else |
| 3329 | echo "$as_me:$LINENO: result: no" >&5 |
| 3330 | echo "${ECHO_T}no" >&6 |
| 3331 | fi |
| 3332 | |
| 3333 | RANLIB=$ac_ct_RANLIB |
| 3334 | else |
| 3335 | RANLIB="$ac_cv_prog_RANLIB" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3336 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3337 | |
| 3338 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3339 | for ac_prog in ar aal |
| 3340 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3341 | # 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] | 3342 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3343 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3344 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3345 | if test "${ac_cv_prog_AR+set}" = set; then |
| 3346 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3347 | else |
| 3348 | if test -n "$AR"; then |
| 3349 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 3350 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3351 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3352 | for as_dir in $PATH |
| 3353 | do |
| 3354 | IFS=$as_save_IFS |
| 3355 | test -z "$as_dir" && as_dir=. |
| 3356 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3357 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3358 | ac_cv_prog_AR="$ac_prog" |
| 3359 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3360 | break 2 |
| 3361 | fi |
| 3362 | done |
| 3363 | done |
| 3364 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3365 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3366 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3367 | AR=$ac_cv_prog_AR |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3368 | if test -n "$AR"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3369 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 3370 | echo "${ECHO_T}$AR" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3371 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3372 | echo "$as_me:$LINENO: result: no" >&5 |
| 3373 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3374 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3375 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3376 | test -n "$AR" && break |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3377 | done |
| 3378 | test -n "$AR" || AR="ar" |
| 3379 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3380 | |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3381 | case $MACHDEP in |
Neil Schemenauer | af5567f | 2001-10-21 22:32:04 +0000 | [diff] [blame] | 3382 | bsdos*|hp*|HP*) |
| 3383 | # install -d does not work on BSDI or HP-UX |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3384 | if test -z "$INSTALL" |
| 3385 | then |
| 3386 | INSTALL="${srcdir}/install-sh -c" |
| 3387 | fi |
| 3388 | esac |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3389 | ac_aux_dir= |
| 3390 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 3391 | if test -f $ac_dir/install-sh; then |
| 3392 | ac_aux_dir=$ac_dir |
| 3393 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3394 | break |
| 3395 | elif test -f $ac_dir/install.sh; then |
| 3396 | ac_aux_dir=$ac_dir |
| 3397 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3398 | break |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3399 | elif test -f $ac_dir/shtool; then |
| 3400 | ac_aux_dir=$ac_dir |
| 3401 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3402 | break |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3403 | fi |
| 3404 | done |
| 3405 | if test -z "$ac_aux_dir"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3406 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 3407 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 3408 | { (exit 1); exit 1; }; } |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3409 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3410 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 3411 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 3412 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3413 | |
| 3414 | # Find a good install program. We prefer a C program (faster), |
| 3415 | # so one script is as good as another. But avoid the broken or |
| 3416 | # incompatible versions: |
| 3417 | # SysV /etc/install, /usr/sbin/install |
| 3418 | # SunOS /usr/etc/install |
| 3419 | # IRIX /sbin/install |
| 3420 | # AIX /bin/install |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3421 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3422 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3423 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3424 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3425 | # ./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] | 3426 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 3427 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3428 | if test -z "$INSTALL"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3429 | if test "${ac_cv_path_install+set}" = set; then |
| 3430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3431 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3432 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3433 | for as_dir in $PATH |
| 3434 | do |
| 3435 | IFS=$as_save_IFS |
| 3436 | test -z "$as_dir" && as_dir=. |
| 3437 | # Account for people who put trailing slashes in PATH elements. |
| 3438 | case $as_dir/ in |
| 3439 | ./ | .// | /cC/* | \ |
| 3440 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3441 | /usr/ucb/* ) ;; |
| 3442 | *) |
| 3443 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3444 | # Don't use installbsd from OSF since it installs stuff as root |
| 3445 | # by default. |
| 3446 | for ac_prog in ginstall scoinst install; do |
| 3447 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3448 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3449 | if test $ac_prog = install && |
| 3450 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3451 | # AIX install. It has an incompatible calling convention. |
| 3452 | : |
| 3453 | elif test $ac_prog = install && |
| 3454 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3455 | # program-specific install script used by HP pwplus--don't use. |
| 3456 | : |
| 3457 | else |
| 3458 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3459 | break 3 |
| 3460 | fi |
| 3461 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3462 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3463 | done |
| 3464 | ;; |
| 3465 | esac |
| 3466 | done |
| 3467 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3468 | |
| 3469 | fi |
| 3470 | if test "${ac_cv_path_install+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3471 | INSTALL=$ac_cv_path_install |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3472 | else |
| 3473 | # As a last resort, use the slow shell script. We don't cache a |
| 3474 | # path for INSTALL within a source directory, because that will |
| 3475 | # break other packages using the cache if that directory is |
| 3476 | # removed, or if the path is relative. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3477 | INSTALL=$ac_install_sh |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3478 | fi |
| 3479 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3480 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 3481 | echo "${ECHO_T}$INSTALL" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3482 | |
| 3483 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3484 | # It thinks the first close brace ends the variable substitution. |
| 3485 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3486 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3487 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3488 | |
| 3489 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3490 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3491 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3492 | # Not every filesystem supports hard links |
| 3493 | |
| 3494 | if test -z "$LN" ; then |
| 3495 | case $ac_sys_system in |
| 3496 | BeOS*) LN="ln -s";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3497 | CYGWIN*) LN="ln -s";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3498 | atheos*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3499 | *) LN=ln;; |
| 3500 | esac |
| 3501 | fi |
| 3502 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3503 | # Check for --with-pydebug |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3504 | echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 3505 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6 |
| 3506 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3507 | # Check whether --with-pydebug or --without-pydebug was given. |
| 3508 | if test "${with_pydebug+set}" = set; then |
| 3509 | withval="$with_pydebug" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3510 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3511 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3512 | then |
| 3513 | |
| 3514 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3515 | #define Py_DEBUG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3516 | _ACEOF |
| 3517 | |
| 3518 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3519 | echo "${ECHO_T}yes" >&6; |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 3520 | Py_DEBUG='true' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3521 | else echo "$as_me:$LINENO: result: no" >&5 |
| 3522 | echo "${ECHO_T}no" >&6; Py_DEBUG='false' |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3523 | fi |
| 3524 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3525 | echo "$as_me:$LINENO: result: no" >&5 |
| 3526 | echo "${ECHO_T}no" >&6 |
| 3527 | fi; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3528 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3529 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 3530 | # merged with this chunk of code? |
| 3531 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3532 | # Optimizer/debugger flags |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3533 | # ------------------------ |
| 3534 | # (The following bit of code is complicated enough - please keep things |
| 3535 | # indented properly. Just pretend you're editing Python code. ;-) |
| 3536 | |
| 3537 | # There are two parallel sets of case statements below, one that checks to |
| 3538 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 3539 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 3540 | # user set OPT. |
| 3541 | |
| 3542 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 3543 | # it on the command line |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3544 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3545 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3546 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3547 | case $GCC in |
| 3548 | yes) |
| 3549 | case $ac_cv_prog_cc_g in |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3550 | yes) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3551 | if test "$Py_DEBUG" = 'true' ; then |
| 3552 | # Optimization messes up debuggers, so turn it off for |
| 3553 | # debug builds. |
| 3554 | OPT="-g -Wall -Wstrict-prototypes" |
| 3555 | else |
| 3556 | OPT="-g -O3 -Wall -Wstrict-prototypes" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3557 | fi |
| 3558 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3559 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3560 | OPT="-O3 -Wall -Wstrict-prototypes" |
| 3561 | ;; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3562 | esac |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3563 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3564 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 3565 | ;; |
| 3566 | esac |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3567 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3568 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3569 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3570 | OPT="-O" |
| 3571 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3572 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3573 | |
| 3574 | # The current (beta) Monterey compiler dies with optimizations |
| 3575 | # 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] | 3576 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3577 | Monterey*) |
| 3578 | OPT="" |
| 3579 | ;; |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3580 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3581 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3582 | fi |
| 3583 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3584 | |
| 3585 | # tweak BASECFLAGS based on compiler and platform |
| 3586 | case $GCC in |
| 3587 | yes) |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3588 | # Python violates C99 rules, by casting between incompatible |
| 3589 | # pointer types. GCC may generate bad code as a result of that, |
| 3590 | # so use -fno-strict-aliasing if supported. |
| 3591 | echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5 |
| 3592 | echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6 |
| 3593 | ac_save_cc="$CC" |
| 3594 | CC="$CC -fno-strict-aliasing" |
| 3595 | if test "$cross_compiling" = yes; then |
| 3596 | ac_cv_no_strict_aliasing_ok=no |
| 3597 | else |
| 3598 | cat >conftest.$ac_ext <<_ACEOF |
| 3599 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3600 | /* confdefs.h. */ |
| 3601 | _ACEOF |
| 3602 | cat confdefs.h >>conftest.$ac_ext |
| 3603 | cat >>conftest.$ac_ext <<_ACEOF |
| 3604 | /* end confdefs.h. */ |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3605 | int main() { return 0; } |
| 3606 | _ACEOF |
| 3607 | rm -f conftest$ac_exeext |
| 3608 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3609 | (eval $ac_link) 2>&5 |
| 3610 | ac_status=$? |
| 3611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3612 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3614 | (eval $ac_try) 2>&5 |
| 3615 | ac_status=$? |
| 3616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3617 | (exit $ac_status); }; }; then |
| 3618 | ac_cv_no_strict_aliasing_ok=yes |
| 3619 | else |
| 3620 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3621 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3622 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3623 | |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3624 | ( exit $ac_status ) |
| 3625 | ac_cv_no_strict_aliasing_ok=no |
| 3626 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3627 | 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] | 3628 | fi |
| 3629 | CC="$ac_save_cc" |
| 3630 | echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5 |
| 3631 | echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6 |
| 3632 | if test $ac_cv_no_strict_aliasing_ok = yes |
| 3633 | then |
| 3634 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 3635 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3636 | case $ac_sys_system in |
| 3637 | SCO_SV*) |
| 3638 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 3639 | ;; |
| 3640 | # is there any other compiler on Darwin besides gcc? |
| 3641 | Darwin*) |
Jack Jansen | e004041 | 2003-07-23 22:17:28 +0000 | [diff] [blame] | 3642 | BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3643 | ;; |
| 3644 | esac |
| 3645 | ;; |
| 3646 | |
| 3647 | *) |
| 3648 | case $ac_sys_system in |
| 3649 | OpenUNIX*|UnixWare*) |
| 3650 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 3651 | ;; |
Neal Norwitz | b44f165 | 2003-05-26 14:11:55 +0000 | [diff] [blame] | 3652 | OSF*) |
| 3653 | BASECFLAGS="$BASECFLAGS -ieee -std" |
| 3654 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3655 | SCO_SV*) |
| 3656 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 3657 | ;; |
| 3658 | esac |
| 3659 | ;; |
| 3660 | esac |
| 3661 | |
Fred Drake | e1ceaa0 | 2001-12-04 20:55:47 +0000 | [diff] [blame] | 3662 | if test "$Py_DEBUG" = 'true'; then |
| 3663 | : |
| 3664 | else |
| 3665 | OPT="-DNDEBUG $OPT" |
| 3666 | fi |
| 3667 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3668 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3669 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3670 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3671 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3672 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3673 | echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 3674 | echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6 |
| 3675 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
| 3676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3677 | else |
| 3678 | ac_save_cc="$CC" |
| 3679 | CC="$CC -OPT:Olimit=0" |
| 3680 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3681 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3682 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3683 | cat >conftest.$ac_ext <<_ACEOF |
| 3684 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3685 | /* confdefs.h. */ |
| 3686 | _ACEOF |
| 3687 | cat confdefs.h >>conftest.$ac_ext |
| 3688 | cat >>conftest.$ac_ext <<_ACEOF |
| 3689 | /* end confdefs.h. */ |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3690 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3691 | _ACEOF |
| 3692 | rm -f conftest$ac_exeext |
| 3693 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3694 | (eval $ac_link) 2>&5 |
| 3695 | ac_status=$? |
| 3696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3697 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3699 | (eval $ac_try) 2>&5 |
| 3700 | ac_status=$? |
| 3701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3702 | (exit $ac_status); }; }; then |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3703 | ac_cv_opt_olimit_ok=yes |
| 3704 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3705 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3706 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3707 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3708 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3709 | ( exit $ac_status ) |
| 3710 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3711 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3712 | 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] | 3713 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3714 | CC="$ac_save_cc" |
| 3715 | fi |
| 3716 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3717 | echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 3718 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 3719 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3720 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3721 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 3722 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 3723 | # environment? |
| 3724 | Darwin*) |
| 3725 | ;; |
| 3726 | *) |
| 3727 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 3728 | ;; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3729 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3730 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3731 | echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 3732 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6 |
| 3733 | if test "${ac_cv_olimit_ok+set}" = set; then |
| 3734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3735 | else |
| 3736 | ac_save_cc="$CC" |
| 3737 | CC="$CC -Olimit 1500" |
| 3738 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3739 | ac_cv_olimit_ok=no |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3740 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3741 | cat >conftest.$ac_ext <<_ACEOF |
| 3742 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3743 | /* confdefs.h. */ |
| 3744 | _ACEOF |
| 3745 | cat confdefs.h >>conftest.$ac_ext |
| 3746 | cat >>conftest.$ac_ext <<_ACEOF |
| 3747 | /* end confdefs.h. */ |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3748 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3749 | _ACEOF |
| 3750 | rm -f conftest$ac_exeext |
| 3751 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3752 | (eval $ac_link) 2>&5 |
| 3753 | ac_status=$? |
| 3754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3755 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3757 | (eval $ac_try) 2>&5 |
| 3758 | ac_status=$? |
| 3759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3760 | (exit $ac_status); }; }; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3761 | ac_cv_olimit_ok=yes |
| 3762 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3763 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3764 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3765 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3766 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3767 | ( exit $ac_status ) |
| 3768 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 3769 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3770 | 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] | 3771 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3772 | CC="$ac_save_cc" |
| 3773 | fi |
| 3774 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3775 | echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 3776 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3777 | if test $ac_cv_olimit_ok = yes; then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3778 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3779 | fi |
| 3780 | fi |
| 3781 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3782 | # On some compilers, pthreads are available without further options |
| 3783 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 3784 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 3785 | # So we have to see first whether pthreads are available without |
| 3786 | # options before we can check whether -Kpthread improves anything. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3787 | echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 3788 | echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6 |
| 3789 | if test "${ac_cv_pthread_is_default+set}" = set; then |
| 3790 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3791 | else |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3792 | if test "$cross_compiling" = yes; then |
| 3793 | ac_cv_pthread_is_default=no |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3794 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3795 | cat >conftest.$ac_ext <<_ACEOF |
| 3796 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3797 | /* confdefs.h. */ |
| 3798 | _ACEOF |
| 3799 | cat confdefs.h >>conftest.$ac_ext |
| 3800 | cat >>conftest.$ac_ext <<_ACEOF |
| 3801 | /* end confdefs.h. */ |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3802 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3803 | #include <pthread.h> |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3804 | |
| 3805 | void* routine(void* p){return NULL;} |
| 3806 | |
| 3807 | int main(){ |
| 3808 | pthread_t p; |
| 3809 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3810 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3811 | (void)pthread_detach(p); |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3812 | return 0; |
| 3813 | } |
| 3814 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3815 | _ACEOF |
| 3816 | rm -f conftest$ac_exeext |
| 3817 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3818 | (eval $ac_link) 2>&5 |
| 3819 | ac_status=$? |
| 3820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3821 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3823 | (eval $ac_try) 2>&5 |
| 3824 | ac_status=$? |
| 3825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3826 | (exit $ac_status); }; }; then |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 3827 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3828 | ac_cv_pthread_is_default=yes |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 3829 | ac_cv_kthread=no |
| 3830 | ac_cv_pthread=no |
| 3831 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3832 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3833 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3834 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3835 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3836 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3837 | ( exit $ac_status ) |
| 3838 | ac_cv_pthread_is_default=no |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3839 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3840 | 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] | 3841 | fi |
| 3842 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3843 | fi |
| 3844 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3845 | echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 3846 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3847 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3848 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3849 | if test $ac_cv_pthread_is_default = yes |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3850 | then |
| 3851 | ac_cv_kpthread=no |
| 3852 | else |
| 3853 | # -Kpthread, if available, provides the right #defines |
| 3854 | # and linker options to make pthread_create available |
| 3855 | # Some compilers won't report that they do not support -Kpthread, |
| 3856 | # so we need to run a program to see whether it really made the |
| 3857 | # function available. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3858 | echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 3859 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6 |
| 3860 | if test "${ac_cv_kpthread+set}" = set; then |
| 3861 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3862 | else |
| 3863 | ac_save_cc="$CC" |
| 3864 | CC="$CC -Kpthread" |
| 3865 | if test "$cross_compiling" = yes; then |
| 3866 | ac_cv_kpthread=no |
| 3867 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3868 | cat >conftest.$ac_ext <<_ACEOF |
| 3869 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3870 | /* confdefs.h. */ |
| 3871 | _ACEOF |
| 3872 | cat confdefs.h >>conftest.$ac_ext |
| 3873 | cat >>conftest.$ac_ext <<_ACEOF |
| 3874 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3875 | |
| 3876 | #include <pthread.h> |
| 3877 | |
| 3878 | void* routine(void* p){return NULL;} |
| 3879 | |
| 3880 | int main(){ |
| 3881 | pthread_t p; |
| 3882 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3883 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3884 | (void)pthread_detach(p); |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3885 | return 0; |
| 3886 | } |
| 3887 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3888 | _ACEOF |
| 3889 | rm -f conftest$ac_exeext |
| 3890 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3891 | (eval $ac_link) 2>&5 |
| 3892 | ac_status=$? |
| 3893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3894 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3896 | (eval $ac_try) 2>&5 |
| 3897 | ac_status=$? |
| 3898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3899 | (exit $ac_status); }; }; then |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3900 | ac_cv_kpthread=yes |
| 3901 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3902 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3903 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3904 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3905 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3906 | ( exit $ac_status ) |
| 3907 | ac_cv_kpthread=no |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3908 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3909 | 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] | 3910 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3911 | CC="$ac_save_cc" |
| 3912 | fi |
| 3913 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3914 | echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 3915 | echo "${ECHO_T}$ac_cv_kpthread" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3916 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3917 | |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 3918 | 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] | 3919 | then |
| 3920 | # -Kthread, if available, provides the right #defines |
| 3921 | # and linker options to make pthread_create available |
| 3922 | # Some compilers won't report that they do not support -Kthread, |
| 3923 | # so we need to run a program to see whether it really made the |
| 3924 | # function available. |
| 3925 | echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5 |
| 3926 | echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6 |
| 3927 | if test "${ac_cv_kthread+set}" = set; then |
| 3928 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3929 | else |
| 3930 | ac_save_cc="$CC" |
| 3931 | CC="$CC -Kthread" |
| 3932 | if test "$cross_compiling" = yes; then |
| 3933 | ac_cv_kthread=no |
| 3934 | else |
| 3935 | cat >conftest.$ac_ext <<_ACEOF |
| 3936 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3937 | /* confdefs.h. */ |
| 3938 | _ACEOF |
| 3939 | cat confdefs.h >>conftest.$ac_ext |
| 3940 | cat >>conftest.$ac_ext <<_ACEOF |
| 3941 | /* end confdefs.h. */ |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 3942 | |
| 3943 | #include <pthread.h> |
| 3944 | |
| 3945 | void* routine(void* p){return NULL;} |
| 3946 | |
| 3947 | int main(){ |
| 3948 | pthread_t p; |
| 3949 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3950 | return 1; |
| 3951 | (void)pthread_detach(p); |
| 3952 | return 0; |
| 3953 | } |
| 3954 | |
| 3955 | _ACEOF |
| 3956 | rm -f conftest$ac_exeext |
| 3957 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3958 | (eval $ac_link) 2>&5 |
| 3959 | ac_status=$? |
| 3960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3961 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3963 | (eval $ac_try) 2>&5 |
| 3964 | ac_status=$? |
| 3965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3966 | (exit $ac_status); }; }; then |
| 3967 | ac_cv_kthread=yes |
| 3968 | else |
| 3969 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3970 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3971 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3972 | |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 3973 | ( exit $ac_status ) |
| 3974 | ac_cv_kthread=no |
| 3975 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3976 | 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] | 3977 | fi |
| 3978 | CC="$ac_save_cc" |
| 3979 | fi |
| 3980 | |
| 3981 | echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5 |
| 3982 | echo "${ECHO_T}$ac_cv_kthread" >&6 |
| 3983 | fi |
| 3984 | |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 3985 | 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] | 3986 | then |
| 3987 | # -pthread, if available, provides the right #defines |
| 3988 | # and linker options to make pthread_create available |
| 3989 | # Some compilers won't report that they do not support -pthread, |
| 3990 | # so we need to run a program to see whether it really made the |
| 3991 | # function available. |
| 3992 | echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5 |
| 3993 | echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6 |
| 3994 | if test "${ac_cv_thread+set}" = set; then |
| 3995 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3996 | else |
| 3997 | ac_save_cc="$CC" |
| 3998 | CC="$CC -pthread" |
| 3999 | if test "$cross_compiling" = yes; then |
| 4000 | ac_cv_pthread=no |
| 4001 | else |
| 4002 | cat >conftest.$ac_ext <<_ACEOF |
| 4003 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4004 | /* confdefs.h. */ |
| 4005 | _ACEOF |
| 4006 | cat confdefs.h >>conftest.$ac_ext |
| 4007 | cat >>conftest.$ac_ext <<_ACEOF |
| 4008 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 4009 | |
| 4010 | #include <pthread.h> |
| 4011 | |
| 4012 | void* routine(void* p){return NULL;} |
| 4013 | |
| 4014 | int main(){ |
| 4015 | pthread_t p; |
| 4016 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4017 | return 1; |
| 4018 | (void)pthread_detach(p); |
| 4019 | return 0; |
| 4020 | } |
| 4021 | |
| 4022 | _ACEOF |
| 4023 | rm -f conftest$ac_exeext |
| 4024 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4025 | (eval $ac_link) 2>&5 |
| 4026 | ac_status=$? |
| 4027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4028 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4030 | (eval $ac_try) 2>&5 |
| 4031 | ac_status=$? |
| 4032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4033 | (exit $ac_status); }; }; then |
| 4034 | ac_cv_pthread=yes |
| 4035 | else |
| 4036 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4037 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4038 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4039 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 4040 | ( exit $ac_status ) |
| 4041 | ac_cv_pthread=no |
| 4042 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4043 | 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] | 4044 | fi |
| 4045 | CC="$ac_save_cc" |
| 4046 | fi |
| 4047 | |
| 4048 | echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5 |
| 4049 | echo "${ECHO_T}$ac_cv_pthread" >&6 |
| 4050 | fi |
| 4051 | |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4052 | # If we have set a CC compiler flag for thread support then |
| 4053 | # check if it works for CXX, too. |
| 4054 | ac_cv_cxx_thread=no |
| 4055 | if test ! -z "$CXX" |
| 4056 | then |
| 4057 | echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5 |
| 4058 | echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6 |
| 4059 | ac_save_cxx="$CXX" |
| 4060 | |
| 4061 | if test "$ac_cv_kpthread" = "yes" |
| 4062 | then |
| 4063 | CXX="$CXX -Kpthread" |
| 4064 | ac_cv_cxx_thread=yes |
| 4065 | elif test "$ac_cv_kthread" = "yes" |
| 4066 | then |
| 4067 | CXX="$CXX -Kthread" |
| 4068 | ac_cv_cxx_thread=yes |
| 4069 | elif test "$ac_cv_pthread" = "yes" |
| 4070 | then |
| 4071 | CXX="$CXX -pthread" |
| 4072 | ac_cv_cxx_thread=yes |
| 4073 | fi |
| 4074 | |
| 4075 | if test $ac_cv_cxx_thread = yes |
| 4076 | then |
| 4077 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 4078 | $CXX -c conftest.$ac_ext 2>&5 |
| 4079 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 4080 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 4081 | then |
| 4082 | ac_cv_cxx_thread=yes |
| 4083 | else |
| 4084 | ac_cv_cxx_thread=no |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4085 | fi |
| 4086 | rm -fr conftest* |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4087 | fi |
| 4088 | fi |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 4089 | CXX="$ac_save_cxx" |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4090 | echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5 |
| 4091 | echo "${ECHO_T}$ac_cv_cxx_thread" >&6 |
| 4092 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4093 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4094 | # checks for header files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4095 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4096 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 4097 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4098 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4099 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4100 | cat >conftest.$ac_ext <<_ACEOF |
| 4101 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4102 | /* confdefs.h. */ |
| 4103 | _ACEOF |
| 4104 | cat confdefs.h >>conftest.$ac_ext |
| 4105 | cat >>conftest.$ac_ext <<_ACEOF |
| 4106 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4107 | #include <stdlib.h> |
| 4108 | #include <stdarg.h> |
| 4109 | #include <string.h> |
| 4110 | #include <float.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4111 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4112 | int |
| 4113 | main () |
| 4114 | { |
| 4115 | |
| 4116 | ; |
| 4117 | return 0; |
| 4118 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4119 | _ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4120 | rm -f conftest.$ac_objext |
| 4121 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4122 | (eval $ac_compile) 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4123 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4125 | (exit $ac_status); } && |
| 4126 | { ac_try='test -s conftest.$ac_objext' |
| 4127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4128 | (eval $ac_try) 2>&5 |
| 4129 | ac_status=$? |
| 4130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4131 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4132 | ac_cv_header_stdc=yes |
| 4133 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4134 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4135 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4136 | |
| 4137 | ac_cv_header_stdc=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4138 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4139 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4140 | |
| 4141 | if test $ac_cv_header_stdc = yes; then |
| 4142 | # 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] | 4143 | cat >conftest.$ac_ext <<_ACEOF |
| 4144 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4145 | /* confdefs.h. */ |
| 4146 | _ACEOF |
| 4147 | cat confdefs.h >>conftest.$ac_ext |
| 4148 | cat >>conftest.$ac_ext <<_ACEOF |
| 4149 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4150 | #include <string.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4151 | |
| 4152 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4153 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4154 | $EGREP "memchr" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4155 | : |
| 4156 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4157 | ac_cv_header_stdc=no |
| 4158 | fi |
| 4159 | rm -f conftest* |
| 4160 | |
| 4161 | fi |
| 4162 | |
| 4163 | if test $ac_cv_header_stdc = yes; then |
| 4164 | # 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] | 4165 | cat >conftest.$ac_ext <<_ACEOF |
| 4166 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4167 | /* confdefs.h. */ |
| 4168 | _ACEOF |
| 4169 | cat confdefs.h >>conftest.$ac_ext |
| 4170 | cat >>conftest.$ac_ext <<_ACEOF |
| 4171 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4172 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4173 | |
| 4174 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4175 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4176 | $EGREP "free" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4177 | : |
| 4178 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4179 | ac_cv_header_stdc=no |
| 4180 | fi |
| 4181 | rm -f conftest* |
| 4182 | |
| 4183 | fi |
| 4184 | |
| 4185 | if test $ac_cv_header_stdc = yes; then |
| 4186 | # /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] | 4187 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4188 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4189 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4190 | cat >conftest.$ac_ext <<_ACEOF |
| 4191 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4192 | /* confdefs.h. */ |
| 4193 | _ACEOF |
| 4194 | cat confdefs.h >>conftest.$ac_ext |
| 4195 | cat >>conftest.$ac_ext <<_ACEOF |
| 4196 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4197 | #include <ctype.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4198 | #if ((' ' & 0x0FF) == 0x020) |
| 4199 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4200 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4201 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4202 | # define ISLOWER(c) \ |
| 4203 | (('a' <= (c) && (c) <= 'i') \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4204 | || ('j' <= (c) && (c) <= 'r') \ |
| 4205 | || ('s' <= (c) && (c) <= 'z')) |
| 4206 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4207 | #endif |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4208 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4209 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4210 | int |
| 4211 | main () |
| 4212 | { |
| 4213 | int i; |
| 4214 | for (i = 0; i < 256; i++) |
| 4215 | if (XOR (islower (i), ISLOWER (i)) |
| 4216 | || toupper (i) != TOUPPER (i)) |
| 4217 | exit(2); |
| 4218 | exit (0); |
| 4219 | } |
| 4220 | _ACEOF |
| 4221 | rm -f conftest$ac_exeext |
| 4222 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4223 | (eval $ac_link) 2>&5 |
| 4224 | ac_status=$? |
| 4225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4226 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4228 | (eval $ac_try) 2>&5 |
| 4229 | ac_status=$? |
| 4230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4231 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4232 | : |
| 4233 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4234 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4235 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4236 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4237 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4238 | ( exit $ac_status ) |
| 4239 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4240 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4241 | 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] | 4242 | fi |
| 4243 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4244 | fi |
| 4245 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4246 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4247 | if test $ac_cv_header_stdc = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4248 | |
| 4249 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4250 | #define STDC_HEADERS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4251 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4252 | |
| 4253 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4254 | |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4255 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4256 | |
| 4257 | |
| 4258 | |
| 4259 | |
| 4260 | |
| 4261 | |
| 4262 | |
| 4263 | |
| 4264 | |
| 4265 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4266 | inttypes.h stdint.h unistd.h |
| 4267 | do |
| 4268 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4269 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4270 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4271 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4273 | else |
| 4274 | cat >conftest.$ac_ext <<_ACEOF |
| 4275 | #line $LINENO "configure" |
| 4276 | /* confdefs.h. */ |
| 4277 | _ACEOF |
| 4278 | cat confdefs.h >>conftest.$ac_ext |
| 4279 | cat >>conftest.$ac_ext <<_ACEOF |
| 4280 | /* end confdefs.h. */ |
| 4281 | $ac_includes_default |
| 4282 | |
| 4283 | #include <$ac_header> |
| 4284 | _ACEOF |
| 4285 | rm -f conftest.$ac_objext |
| 4286 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4287 | (eval $ac_compile) 2>&5 |
| 4288 | ac_status=$? |
| 4289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4290 | (exit $ac_status); } && |
| 4291 | { ac_try='test -s conftest.$ac_objext' |
| 4292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4293 | (eval $ac_try) 2>&5 |
| 4294 | ac_status=$? |
| 4295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4296 | (exit $ac_status); }; }; then |
| 4297 | eval "$as_ac_Header=yes" |
| 4298 | else |
| 4299 | echo "$as_me: failed program was:" >&5 |
| 4300 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4301 | |
| 4302 | eval "$as_ac_Header=no" |
| 4303 | fi |
| 4304 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4305 | fi |
| 4306 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4307 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4308 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4309 | cat >>confdefs.h <<_ACEOF |
| 4310 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4311 | _ACEOF |
| 4312 | |
| 4313 | fi |
| 4314 | |
| 4315 | done |
| 4316 | |
| 4317 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | |
| 4349 | |
| 4350 | |
| 4351 | |
| 4352 | |
| 4353 | |
Skip Montanaro | 7befb99 | 2004-02-10 16:50:21 +0000 | [diff] [blame] | 4354 | for ac_header in dlfcn.h fcntl.h grp.h langinfo.h \ |
| 4355 | libintl.h ncurses.h poll.h pthread.h \ |
| 4356 | stropts.h termios.h thread.h \ |
Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 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 | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9403 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 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 ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9414 | Darwin/*) |
| 9415 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
| 9416 | # This allows an extension to be used in any Python |
| 9417 | if test ${MACOSX_DEPLOYMENT_TARGET-10.1} '>' 10.2 |
| 9418 | then |
| 9419 | LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup' |
| 9420 | BLDSHARED="$LDSHARED" |
| 9421 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=$MACOSX_DEPLOYMENT_TARGET |
| 9422 | else |
| 9423 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 9424 | if test "$enable_framework" ; then |
| 9425 | # Link against the framework. All externals should be defined. |
| 9426 | BLDSHARED="$LDSHARED "'-Wl,-F. -framework $(PYTHONFRAMEWORK)' |
| 9427 | LDSHARED="$LDSHARED "'-Wl,-F$(PYTHONFRAMEWORKPREFIX) -framework $(PYTHONFRAMEWORK)' |
| 9428 | else |
| 9429 | # No framework, use the Python app as bundle-loader |
| 9430 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 9431 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
| 9432 | fi |
| 9433 | fi |
| 9434 | ;; |
Martin v. Löwis | 3cba5c0 | 2002-09-16 17:50:59 +0000 | [diff] [blame] | 9435 | Linux*|GNU*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 9436 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 9437 | OpenBSD*|FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 9438 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9439 | then |
| 9440 | LDSHARED="cc -shared ${LDFLAGS}" |
| 9441 | else |
| 9442 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 9443 | fi;; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 9444 | NetBSD*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9445 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9446 | if test "$GCC" = "yes" |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 9447 | then LDSHARED='$(CC) -shared' |
| 9448 | else LDSHARED='$(CC) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9449 | fi;; |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 9450 | SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9451 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 9452 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9453 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9454 | *) LDSHARED="ld";; |
| 9455 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9456 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9457 | echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 9458 | echo "${ECHO_T}$LDSHARED" >&6 |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9459 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9460 | # 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] | 9461 | # library (module) -- this is only needed for a few systems |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9462 | echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 9463 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9464 | if test -z "$CCSHARED" |
| 9465 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9466 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 9467 | SunOS*) if test "$GCC" = yes; |
| 9468 | then CCSHARED="-fPIC"; |
| 9469 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9470 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 9471 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9472 | else CCSHARED="+z"; |
| 9473 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9474 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9475 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 9476 | FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9477 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9478 | if test "$GCC" = "yes" |
| 9479 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9480 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9481 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9482 | SCO_SV*) |
| 9483 | if test "$GCC" = "yes" |
| 9484 | then CCSHARED="-fPIC" |
| 9485 | else CCSHARED="-Kpic -belf" |
| 9486 | fi;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9487 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9488 | IRIX*/6*) case $CC in |
| 9489 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 9490 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9491 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9492 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9493 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9494 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9495 | echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 9496 | echo "${ECHO_T}$CCSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9497 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9498 | # 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] | 9499 | echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 9500 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9501 | if test -z "$LINKFORSHARED" |
| 9502 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9503 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9504 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 9505 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 9506 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 9507 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9508 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9509 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9510 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9511 | Darwin/*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9512 | # -u __dummy makes the linker aware of the objc runtime |
| 9513 | # in System.framework; otherwise, __objcInit (referenced in |
| 9514 | # crt1.o) gets erroneously defined as common, which breaks dynamic |
| 9515 | # loading of any modules which reference it in System.framework. |
| 9516 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, which is |
| 9517 | # not used by the core itself but which needs to be in the core so |
| 9518 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 9519 | # -prebind is no longer used, because it actually seems to give a |
| 9520 | # slowdown in stead of a speedup, maybe due to the large number of |
| 9521 | # dynamic loads Python does. |
| 9522 | LINKFORSHARED="$extra_undefs -framework System" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9523 | if test "$enable_framework" |
| 9524 | then |
Jack Jansen | c8607b7 | 2003-12-08 01:10:12 +0000 | [diff] [blame] | 9525 | LINKFORSHARED="$LINKFORSHARED -Wl,-F. -framework Python" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9526 | fi |
| 9527 | LINKFORSHARED="$LINKFORSHARED $extra_frameworks";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9528 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9529 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 9530 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9531 | FreeBSD*|NetBSD*|OpenBSD*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 9532 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 9533 | then |
| 9534 | LINKFORSHARED="-Wl,--export-dynamic" |
| 9535 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9536 | SunOS/5*) case $CC in |
| 9537 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 9538 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 9539 | then |
| 9540 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9541 | fi;; |
| 9542 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 9543 | CYGWIN*) |
| 9544 | if test $enable_shared = "no" |
| 9545 | then |
| 9546 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 9547 | fi;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9548 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9549 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9550 | echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 9551 | echo "${ECHO_T}$LINKFORSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9552 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9553 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9554 | echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 9555 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9556 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 9557 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 9558 | case $ac_sys_system in |
| 9559 | CYGWIN*) |
| 9560 | # Cygwin needs CCSHARED when building extension DLLs |
| 9561 | # but not when building the interpreter DLL. |
| 9562 | CFLAGSFORSHARED='';; |
| 9563 | *) |
| 9564 | CFLAGSFORSHARED='$(CCSHARED)' |
| 9565 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9566 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9567 | echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 9568 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9569 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9570 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 9571 | # library (with --enable-shared). |
| 9572 | # 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] | 9573 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 9574 | # if it is not required, since it creates a dependency of the shared library |
| 9575 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 9576 | # don't need to link LIBS explicitly. The default should be only changed |
| 9577 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9578 | |
| 9579 | echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 9580 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6 |
| 9581 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9582 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 9583 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9584 | esac |
| 9585 | echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 9586 | echo "${ECHO_T}$SHLIBS" >&6 |
| 9587 | |
| 9588 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9589 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9590 | |
| 9591 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9592 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 9593 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9595 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9596 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9597 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9598 | cat >conftest.$ac_ext <<_ACEOF |
| 9599 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9600 | /* confdefs.h. */ |
| 9601 | _ACEOF |
| 9602 | cat confdefs.h >>conftest.$ac_ext |
| 9603 | cat >>conftest.$ac_ext <<_ACEOF |
| 9604 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9605 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9606 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9607 | #ifdef __cplusplus |
| 9608 | extern "C" |
| 9609 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9610 | /* 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] | 9611 | builtin and then its argument prototype would still apply. */ |
| 9612 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9613 | int |
| 9614 | main () |
| 9615 | { |
| 9616 | dlopen (); |
| 9617 | ; |
| 9618 | return 0; |
| 9619 | } |
| 9620 | _ACEOF |
| 9621 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9622 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9623 | (eval $ac_link) 2>&5 |
| 9624 | ac_status=$? |
| 9625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9626 | (exit $ac_status); } && |
| 9627 | { ac_try='test -s conftest$ac_exeext' |
| 9628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9629 | (eval $ac_try) 2>&5 |
| 9630 | ac_status=$? |
| 9631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9632 | (exit $ac_status); }; }; then |
| 9633 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9634 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9635 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9636 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9637 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9638 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9639 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9640 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9641 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9642 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9643 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9644 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 9645 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 9646 | cat >>confdefs.h <<_ACEOF |
| 9647 | #define HAVE_LIBDL 1 |
| 9648 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9649 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9650 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9651 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9652 | fi |
| 9653 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9654 | |
| 9655 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 9656 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 9657 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 9658 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9659 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9660 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9661 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9662 | cat >conftest.$ac_ext <<_ACEOF |
| 9663 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9664 | /* confdefs.h. */ |
| 9665 | _ACEOF |
| 9666 | cat confdefs.h >>conftest.$ac_ext |
| 9667 | cat >>conftest.$ac_ext <<_ACEOF |
| 9668 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9669 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9670 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9671 | #ifdef __cplusplus |
| 9672 | extern "C" |
| 9673 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9674 | /* 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] | 9675 | builtin and then its argument prototype would still apply. */ |
| 9676 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9677 | int |
| 9678 | main () |
| 9679 | { |
| 9680 | shl_load (); |
| 9681 | ; |
| 9682 | return 0; |
| 9683 | } |
| 9684 | _ACEOF |
| 9685 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9686 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9687 | (eval $ac_link) 2>&5 |
| 9688 | ac_status=$? |
| 9689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9690 | (exit $ac_status); } && |
| 9691 | { ac_try='test -s conftest$ac_exeext' |
| 9692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9693 | (eval $ac_try) 2>&5 |
| 9694 | ac_status=$? |
| 9695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9696 | (exit $ac_status); }; }; then |
| 9697 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9698 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9699 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9700 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9701 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9702 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9703 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9704 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9705 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9706 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9707 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9708 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 9709 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 9710 | cat >>confdefs.h <<_ACEOF |
| 9711 | #define HAVE_LIBDLD 1 |
| 9712 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9713 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9714 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9715 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9716 | fi |
| 9717 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9718 | |
| 9719 | # only check for sem_ini if thread support is requested |
| 9720 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
| 9721 | 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] | 9722 | echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6 |
| 9723 | if test "${ac_cv_search_sem_init+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9724 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9725 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9726 | ac_func_search_save_LIBS=$LIBS |
| 9727 | ac_cv_search_sem_init=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9728 | cat >conftest.$ac_ext <<_ACEOF |
| 9729 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9730 | /* confdefs.h. */ |
| 9731 | _ACEOF |
| 9732 | cat confdefs.h >>conftest.$ac_ext |
| 9733 | cat >>conftest.$ac_ext <<_ACEOF |
| 9734 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9735 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9736 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9737 | #ifdef __cplusplus |
| 9738 | extern "C" |
| 9739 | #endif |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9740 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9741 | builtin and then its argument prototype would still apply. */ |
| 9742 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9743 | int |
| 9744 | main () |
| 9745 | { |
| 9746 | sem_init (); |
| 9747 | ; |
| 9748 | return 0; |
| 9749 | } |
| 9750 | _ACEOF |
| 9751 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9752 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9753 | (eval $ac_link) 2>&5 |
| 9754 | ac_status=$? |
| 9755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9756 | (exit $ac_status); } && |
| 9757 | { ac_try='test -s conftest$ac_exeext' |
| 9758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9759 | (eval $ac_try) 2>&5 |
| 9760 | ac_status=$? |
| 9761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9762 | (exit $ac_status); }; }; then |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9763 | ac_cv_search_sem_init="none required" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9764 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9765 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9766 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9767 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9768 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9769 | 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] | 9770 | if test "$ac_cv_search_sem_init" = no; then |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 9771 | for ac_lib in pthread rt posix4; do |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9772 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9773 | cat >conftest.$ac_ext <<_ACEOF |
| 9774 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9775 | /* confdefs.h. */ |
| 9776 | _ACEOF |
| 9777 | cat confdefs.h >>conftest.$ac_ext |
| 9778 | cat >>conftest.$ac_ext <<_ACEOF |
| 9779 | /* end confdefs.h. */ |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9780 | |
| 9781 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9782 | #ifdef __cplusplus |
| 9783 | extern "C" |
| 9784 | #endif |
| 9785 | /* We use char because int might match the return type of a gcc2 |
| 9786 | builtin and then its argument prototype would still apply. */ |
| 9787 | char sem_init (); |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9788 | int |
| 9789 | main () |
| 9790 | { |
| 9791 | sem_init (); |
| 9792 | ; |
| 9793 | return 0; |
| 9794 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9795 | _ACEOF |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9796 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9797 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9798 | (eval $ac_link) 2>&5 |
| 9799 | ac_status=$? |
| 9800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9801 | (exit $ac_status); } && |
| 9802 | { ac_try='test -s conftest$ac_exeext' |
| 9803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9804 | (eval $ac_try) 2>&5 |
| 9805 | ac_status=$? |
| 9806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9807 | (exit $ac_status); }; }; then |
| 9808 | ac_cv_search_sem_init="-l$ac_lib" |
| 9809 | break |
| 9810 | else |
| 9811 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9812 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9813 | |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9814 | fi |
| 9815 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9816 | done |
| 9817 | fi |
| 9818 | LIBS=$ac_func_search_save_LIBS |
| 9819 | fi |
| 9820 | echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 9821 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6 |
| 9822 | if test "$ac_cv_search_sem_init" != no; then |
| 9823 | 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] | 9824 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9825 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 9826 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9827 | # posix4 on Solaris 2.6 |
| 9828 | # pthread (first!) on Linux |
| 9829 | fi |
| 9830 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9831 | # check if we need libintl for locale functions |
| 9832 | echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5 |
| 9833 | echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6 |
| 9834 | if test "${ac_cv_lib_intl_textdomain+set}" = set; then |
| 9835 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9836 | else |
| 9837 | ac_check_lib_save_LIBS=$LIBS |
| 9838 | LIBS="-lintl $LIBS" |
| 9839 | cat >conftest.$ac_ext <<_ACEOF |
| 9840 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9841 | /* confdefs.h. */ |
| 9842 | _ACEOF |
| 9843 | cat confdefs.h >>conftest.$ac_ext |
| 9844 | cat >>conftest.$ac_ext <<_ACEOF |
| 9845 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9846 | |
| 9847 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9848 | #ifdef __cplusplus |
| 9849 | extern "C" |
| 9850 | #endif |
| 9851 | /* We use char because int might match the return type of a gcc2 |
| 9852 | builtin and then its argument prototype would still apply. */ |
| 9853 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9854 | int |
| 9855 | main () |
| 9856 | { |
| 9857 | textdomain (); |
| 9858 | ; |
| 9859 | return 0; |
| 9860 | } |
| 9861 | _ACEOF |
| 9862 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9863 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9864 | (eval $ac_link) 2>&5 |
| 9865 | ac_status=$? |
| 9866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9867 | (exit $ac_status); } && |
| 9868 | { ac_try='test -s conftest$ac_exeext' |
| 9869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9870 | (eval $ac_try) 2>&5 |
| 9871 | ac_status=$? |
| 9872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9873 | (exit $ac_status); }; }; then |
| 9874 | ac_cv_lib_intl_textdomain=yes |
| 9875 | else |
| 9876 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9877 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9878 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9879 | ac_cv_lib_intl_textdomain=no |
| 9880 | fi |
| 9881 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9882 | LIBS=$ac_check_lib_save_LIBS |
| 9883 | fi |
| 9884 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5 |
| 9885 | echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6 |
| 9886 | if test $ac_cv_lib_intl_textdomain = yes; then |
| 9887 | |
| 9888 | cat >>confdefs.h <<\_ACEOF |
| 9889 | #define WITH_LIBINTL 1 |
| 9890 | _ACEOF |
| 9891 | |
| 9892 | fi |
| 9893 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9894 | |
| 9895 | # checks for system dependent C++ extensions support |
| 9896 | case "$ac_sys_system" in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9897 | AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 9898 | echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6 |
| 9899 | cat >conftest.$ac_ext <<_ACEOF |
| 9900 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9901 | /* confdefs.h. */ |
| 9902 | _ACEOF |
| 9903 | cat confdefs.h >>conftest.$ac_ext |
| 9904 | cat >>conftest.$ac_ext <<_ACEOF |
| 9905 | /* end confdefs.h. */ |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9906 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9907 | int |
| 9908 | main () |
| 9909 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9910 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9911 | ; |
| 9912 | return 0; |
| 9913 | } |
| 9914 | _ACEOF |
| 9915 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9916 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9917 | (eval $ac_link) 2>&5 |
| 9918 | ac_status=$? |
| 9919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9920 | (exit $ac_status); } && |
| 9921 | { ac_try='test -s conftest$ac_exeext' |
| 9922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9923 | (eval $ac_try) 2>&5 |
| 9924 | ac_status=$? |
| 9925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9926 | (exit $ac_status); }; }; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9927 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9928 | cat >>confdefs.h <<\_ACEOF |
| 9929 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 9930 | _ACEOF |
| 9931 | |
| 9932 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9933 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9934 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9935 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9936 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9937 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9938 | echo "$as_me:$LINENO: result: no" >&5 |
| 9939 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9940 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9941 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9942 | *) ;; |
| 9943 | esac |
| 9944 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9945 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9946 | # BeOS' sockets are stashed in libnet. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9947 | echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 9948 | echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6 |
| 9949 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
| 9950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9951 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9952 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9953 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9954 | cat >conftest.$ac_ext <<_ACEOF |
| 9955 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9956 | /* confdefs.h. */ |
| 9957 | _ACEOF |
| 9958 | cat confdefs.h >>conftest.$ac_ext |
| 9959 | cat >>conftest.$ac_ext <<_ACEOF |
| 9960 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9961 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9962 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9963 | #ifdef __cplusplus |
| 9964 | extern "C" |
| 9965 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9966 | /* 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] | 9967 | builtin and then its argument prototype would still apply. */ |
| 9968 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9969 | int |
| 9970 | main () |
| 9971 | { |
| 9972 | t_open (); |
| 9973 | ; |
| 9974 | return 0; |
| 9975 | } |
| 9976 | _ACEOF |
| 9977 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9978 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9979 | (eval $ac_link) 2>&5 |
| 9980 | ac_status=$? |
| 9981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9982 | (exit $ac_status); } && |
| 9983 | { ac_try='test -s conftest$ac_exeext' |
| 9984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9985 | (eval $ac_try) 2>&5 |
| 9986 | ac_status=$? |
| 9987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9988 | (exit $ac_status); }; }; then |
| 9989 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9990 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9991 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9992 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9993 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9994 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9995 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9996 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9997 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9998 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9999 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 10000 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6 |
| 10001 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10002 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10003 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 10004 | # SVR4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10005 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 10006 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 10007 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 10008 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10009 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10010 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10011 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10012 | cat >conftest.$ac_ext <<_ACEOF |
| 10013 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10014 | /* confdefs.h. */ |
| 10015 | _ACEOF |
| 10016 | cat confdefs.h >>conftest.$ac_ext |
| 10017 | cat >>conftest.$ac_ext <<_ACEOF |
| 10018 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10019 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10020 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10021 | #ifdef __cplusplus |
| 10022 | extern "C" |
| 10023 | #endif |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10024 | /* 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] | 10025 | builtin and then its argument prototype would still apply. */ |
| 10026 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10027 | int |
| 10028 | main () |
| 10029 | { |
| 10030 | socket (); |
| 10031 | ; |
| 10032 | return 0; |
| 10033 | } |
| 10034 | _ACEOF |
| 10035 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10036 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10037 | (eval $ac_link) 2>&5 |
| 10038 | ac_status=$? |
| 10039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10040 | (exit $ac_status); } && |
| 10041 | { ac_try='test -s conftest$ac_exeext' |
| 10042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10043 | (eval $ac_try) 2>&5 |
| 10044 | ac_status=$? |
| 10045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10046 | (exit $ac_status); }; }; then |
| 10047 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10048 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10049 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10050 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10051 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10052 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10053 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10054 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10055 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10056 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10057 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 10058 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 10059 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10060 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10061 | fi |
| 10062 | # SVR4 sockets |
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 10063 | |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 10064 | case "$ac_sys_system" in |
| 10065 | BeOS*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10066 | echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 10067 | echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6 |
| 10068 | if test "${ac_cv_lib_net_socket+set}" = set; then |
| 10069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10070 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10071 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10072 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10073 | cat >conftest.$ac_ext <<_ACEOF |
| 10074 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10075 | /* confdefs.h. */ |
| 10076 | _ACEOF |
| 10077 | cat confdefs.h >>conftest.$ac_ext |
| 10078 | cat >>conftest.$ac_ext <<_ACEOF |
| 10079 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10080 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10081 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10082 | #ifdef __cplusplus |
| 10083 | extern "C" |
| 10084 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10085 | /* 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] | 10086 | builtin and then its argument prototype would still apply. */ |
| 10087 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10088 | int |
| 10089 | main () |
| 10090 | { |
| 10091 | socket (); |
| 10092 | ; |
| 10093 | return 0; |
| 10094 | } |
| 10095 | _ACEOF |
| 10096 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10097 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10098 | (eval $ac_link) 2>&5 |
| 10099 | ac_status=$? |
| 10100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10101 | (exit $ac_status); } && |
| 10102 | { ac_try='test -s conftest$ac_exeext' |
| 10103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10104 | (eval $ac_try) 2>&5 |
| 10105 | ac_status=$? |
| 10106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10107 | (exit $ac_status); }; }; then |
| 10108 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10109 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10110 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10111 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10112 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10113 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10114 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10115 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10116 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10117 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10118 | echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 10119 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6 |
| 10120 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10121 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10122 | fi |
| 10123 | # BeOS |
| 10124 | ;; |
| 10125 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 10126 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10127 | echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 10128 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6 |
| 10129 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 10130 | # Check whether --with-libs or --without-libs was given. |
| 10131 | if test "${with_libs+set}" = set; then |
| 10132 | withval="$with_libs" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10133 | |
| 10134 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 10135 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 10136 | LIBS="$withval $LIBS" |
| 10137 | |
| 10138 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10139 | echo "$as_me:$LINENO: result: no" >&5 |
| 10140 | echo "${ECHO_T}no" >&6 |
| 10141 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10142 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10143 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10144 | |
| 10145 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10146 | echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 10147 | echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6 |
| 10148 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10149 | # Check whether --with-signal-module or --without-signal-module was given. |
| 10150 | if test "${with_signal_module+set}" = set; then |
| 10151 | withval="$with_signal_module" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10152 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10153 | fi; |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10154 | |
| 10155 | if test -z "$with_signal_module" |
| 10156 | then with_signal_module="yes" |
| 10157 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10158 | echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 10159 | echo "${ECHO_T}$with_signal_module" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10160 | |
| 10161 | if test "${with_signal_module}" = "yes"; then |
| 10162 | USE_SIGNAL_MODULE="" |
| 10163 | SIGNAL_OBJS="" |
| 10164 | else |
| 10165 | USE_SIGNAL_MODULE="#" |
| 10166 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 10167 | fi |
| 10168 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 10169 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 10170 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10171 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 10172 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10173 | echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 10174 | echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6 |
| 10175 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10176 | |
| 10177 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 10178 | if test "${with_dec_threads+set}" = set; then |
| 10179 | withval="$with_dec_threads" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10180 | |
| 10181 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 10182 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10183 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 10184 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10185 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 10186 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10187 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10188 | echo "$as_me:$LINENO: result: no" >&5 |
| 10189 | echo "${ECHO_T}no" >&6 |
| 10190 | fi; |
| 10191 | |
| 10192 | # Templates for things AC_DEFINEd more than once. |
| 10193 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10194 | |
| 10195 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10196 | |
| 10197 | |
| 10198 | |
| 10199 | |
| 10200 | |
| 10201 | echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 10202 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6 |
| 10203 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10204 | # Check whether --with-threads or --without-threads was given. |
| 10205 | if test "${with_threads+set}" = set; then |
| 10206 | withval="$with_threads" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10207 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10208 | fi; |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10209 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10210 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10211 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10212 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10213 | if test "${with_thread+set}" = set; then |
| 10214 | withval="$with_thread" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10215 | with_threads=$with_thread |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10216 | fi; |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10217 | |
| 10218 | if test -z "$with_threads" |
| 10219 | then with_threads="yes" |
| 10220 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10221 | echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 10222 | echo "${ECHO_T}$with_threads" >&6 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10223 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10224 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10225 | if test "$with_threads" = "no" |
| 10226 | then |
| 10227 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10228 | elif test "$ac_cv_pthread_is_default" = yes |
| 10229 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10230 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10231 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10232 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10233 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10234 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10235 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10236 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10237 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10238 | |
| 10239 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10240 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10241 | elif test "$ac_cv_kpthread" = "yes" |
| 10242 | then |
| 10243 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10244 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 10245 | CXX="$CXX -Kpthread" |
| 10246 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10247 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 10248 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10249 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 10250 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10251 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10252 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10253 | elif test "$ac_cv_kthread" = "yes" |
| 10254 | then |
| 10255 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10256 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 10257 | CXX="$CXX -Kthread" |
| 10258 | fi |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10259 | cat >>confdefs.h <<\_ACEOF |
| 10260 | #define WITH_THREAD 1 |
| 10261 | _ACEOF |
| 10262 | |
| 10263 | posix_threads=yes |
| 10264 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10265 | elif test "$ac_cv_pthread" = "yes" |
| 10266 | then |
| 10267 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10268 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 10269 | CXX="$CXX -pthread" |
| 10270 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10271 | cat >>confdefs.h <<\_ACEOF |
| 10272 | #define WITH_THREAD 1 |
| 10273 | _ACEOF |
| 10274 | |
| 10275 | posix_threads=yes |
| 10276 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10277 | else |
| 10278 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 10279 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 10280 | fi |
| 10281 | if test ! -z "$withval" -a -d "$withval" |
| 10282 | then LDFLAGS="$LDFLAGS -L$withval" |
| 10283 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10284 | |
| 10285 | # According to the POSIX spec, a pthreads implementation must |
| 10286 | # 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] | 10287 | echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 10288 | echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6 |
| 10289 | cat >conftest.$ac_ext <<_ACEOF |
| 10290 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10291 | /* confdefs.h. */ |
| 10292 | _ACEOF |
| 10293 | cat confdefs.h >>conftest.$ac_ext |
| 10294 | cat >>conftest.$ac_ext <<_ACEOF |
| 10295 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10296 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10297 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10298 | #ifdef _POSIX_THREADS |
| 10299 | yes |
| 10300 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10301 | |
| 10302 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10303 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10304 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10305 | unistd_defines_pthreads=yes |
| 10306 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10307 | unistd_defines_pthreads=no |
| 10308 | fi |
| 10309 | rm -f conftest* |
| 10310 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10311 | echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 10312 | echo "${ECHO_T}$unistd_defines_pthreads" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10313 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10314 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10315 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10316 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10317 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10318 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10319 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 10320 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 10321 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10322 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10323 | fi |
| 10324 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 10325 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10326 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10327 | # Is the header compilable? |
| 10328 | echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 10329 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6 |
| 10330 | cat >conftest.$ac_ext <<_ACEOF |
| 10331 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10332 | /* confdefs.h. */ |
| 10333 | _ACEOF |
| 10334 | cat confdefs.h >>conftest.$ac_ext |
| 10335 | cat >>conftest.$ac_ext <<_ACEOF |
| 10336 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10337 | $ac_includes_default |
| 10338 | #include <cthreads.h> |
| 10339 | _ACEOF |
| 10340 | rm -f conftest.$ac_objext |
| 10341 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10342 | (eval $ac_compile) 2>&5 |
| 10343 | ac_status=$? |
| 10344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10345 | (exit $ac_status); } && |
| 10346 | { ac_try='test -s conftest.$ac_objext' |
| 10347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10348 | (eval $ac_try) 2>&5 |
| 10349 | ac_status=$? |
| 10350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10351 | (exit $ac_status); }; }; then |
| 10352 | ac_header_compiler=yes |
| 10353 | else |
| 10354 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10355 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10356 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10357 | ac_header_compiler=no |
| 10358 | fi |
| 10359 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10360 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10361 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10362 | |
| 10363 | # Is the header present? |
| 10364 | echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 10365 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6 |
| 10366 | cat >conftest.$ac_ext <<_ACEOF |
| 10367 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10368 | /* confdefs.h. */ |
| 10369 | _ACEOF |
| 10370 | cat confdefs.h >>conftest.$ac_ext |
| 10371 | cat >>conftest.$ac_ext <<_ACEOF |
| 10372 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10373 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10374 | _ACEOF |
| 10375 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10376 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10377 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10378 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10379 | rm -f conftest.er1 |
| 10380 | cat conftest.err >&5 |
| 10381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10382 | (exit $ac_status); } >/dev/null; then |
| 10383 | if test -s conftest.err; then |
| 10384 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10385 | else |
| 10386 | ac_cpp_err= |
| 10387 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10388 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10389 | ac_cpp_err=yes |
| 10390 | fi |
| 10391 | if test -z "$ac_cpp_err"; then |
| 10392 | ac_header_preproc=yes |
| 10393 | else |
| 10394 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10395 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10396 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10397 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10398 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10399 | rm -f conftest.err conftest.$ac_ext |
| 10400 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10401 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10402 | |
| 10403 | # So? What about this header? |
| 10404 | case $ac_header_compiler:$ac_header_preproc in |
| 10405 | yes:no ) |
| 10406 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10407 | echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10408 | { 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] | 10409 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 10410 | ( |
| 10411 | cat <<\_ASBOX |
| 10412 | ## ------------------------------------ ## |
| 10413 | ## Report this to bug-autoconf@gnu.org. ## |
| 10414 | ## ------------------------------------ ## |
| 10415 | _ASBOX |
| 10416 | ) | |
| 10417 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10418 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10419 | no:yes ) |
| 10420 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 10421 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
| 10422 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 10423 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 10424 | { 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] | 10425 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 10426 | ( |
| 10427 | cat <<\_ASBOX |
| 10428 | ## ------------------------------------ ## |
| 10429 | ## Report this to bug-autoconf@gnu.org. ## |
| 10430 | ## ------------------------------------ ## |
| 10431 | _ASBOX |
| 10432 | ) | |
| 10433 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10434 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10435 | esac |
| 10436 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 10437 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 10438 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10440 | else |
| 10441 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10442 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10443 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 10444 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
| 10445 | |
| 10446 | fi |
| 10447 | if test $ac_cv_header_cthreads_h = yes; then |
| 10448 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10449 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10450 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10451 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10452 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10453 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10454 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10455 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10456 | |
| 10457 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10458 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10459 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10460 | |
| 10461 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10462 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10463 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10464 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10465 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 10466 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 10467 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 10468 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 10469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10470 | fi |
| 10471 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 10472 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10473 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10474 | # Is the header compilable? |
| 10475 | echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 10476 | echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6 |
| 10477 | cat >conftest.$ac_ext <<_ACEOF |
| 10478 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10479 | /* confdefs.h. */ |
| 10480 | _ACEOF |
| 10481 | cat confdefs.h >>conftest.$ac_ext |
| 10482 | cat >>conftest.$ac_ext <<_ACEOF |
| 10483 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10484 | $ac_includes_default |
| 10485 | #include <mach/cthreads.h> |
| 10486 | _ACEOF |
| 10487 | rm -f conftest.$ac_objext |
| 10488 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10489 | (eval $ac_compile) 2>&5 |
| 10490 | ac_status=$? |
| 10491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10492 | (exit $ac_status); } && |
| 10493 | { ac_try='test -s conftest.$ac_objext' |
| 10494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10495 | (eval $ac_try) 2>&5 |
| 10496 | ac_status=$? |
| 10497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10498 | (exit $ac_status); }; }; then |
| 10499 | ac_header_compiler=yes |
| 10500 | else |
| 10501 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10502 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10503 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10504 | ac_header_compiler=no |
| 10505 | fi |
| 10506 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10507 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10508 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10509 | |
| 10510 | # Is the header present? |
| 10511 | echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 10512 | echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6 |
| 10513 | cat >conftest.$ac_ext <<_ACEOF |
| 10514 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10515 | /* confdefs.h. */ |
| 10516 | _ACEOF |
| 10517 | cat confdefs.h >>conftest.$ac_ext |
| 10518 | cat >>conftest.$ac_ext <<_ACEOF |
| 10519 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10520 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10521 | _ACEOF |
| 10522 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10523 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10524 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10525 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10526 | rm -f conftest.er1 |
| 10527 | cat conftest.err >&5 |
| 10528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10529 | (exit $ac_status); } >/dev/null; then |
| 10530 | if test -s conftest.err; then |
| 10531 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10532 | else |
| 10533 | ac_cpp_err= |
| 10534 | fi |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10535 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10536 | ac_cpp_err=yes |
| 10537 | fi |
| 10538 | if test -z "$ac_cpp_err"; then |
| 10539 | ac_header_preproc=yes |
| 10540 | else |
| 10541 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10542 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10543 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10544 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10545 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10546 | rm -f conftest.err conftest.$ac_ext |
| 10547 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10548 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10549 | |
| 10550 | # So? What about this header? |
| 10551 | case $ac_header_compiler:$ac_header_preproc in |
| 10552 | yes:no ) |
| 10553 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10554 | echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10555 | { 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] | 10556 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 10557 | ( |
| 10558 | cat <<\_ASBOX |
| 10559 | ## ------------------------------------ ## |
| 10560 | ## Report this to bug-autoconf@gnu.org. ## |
| 10561 | ## ------------------------------------ ## |
| 10562 | _ASBOX |
| 10563 | ) | |
| 10564 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10565 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10566 | no:yes ) |
| 10567 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 10568 | echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
| 10569 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 10570 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 10571 | { 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] | 10572 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 10573 | ( |
| 10574 | cat <<\_ASBOX |
| 10575 | ## ------------------------------------ ## |
| 10576 | ## Report this to bug-autoconf@gnu.org. ## |
| 10577 | ## ------------------------------------ ## |
| 10578 | _ASBOX |
| 10579 | ) | |
| 10580 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10581 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10582 | esac |
| 10583 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 10584 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 10585 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 10586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10587 | else |
| 10588 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10589 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10590 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 10591 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
| 10592 | |
| 10593 | fi |
| 10594 | if test $ac_cv_header_mach_cthreads_h = yes; then |
| 10595 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10596 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10597 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10598 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10599 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10600 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10601 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10602 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10603 | |
| 10604 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10605 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10606 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10607 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10608 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10609 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10610 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10611 | echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 10612 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6 |
| 10613 | |
| 10614 | # Check whether --with-pth or --without-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10615 | if test "${with_pth+set}" = set; then |
| 10616 | withval="$with_pth" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10617 | echo "$as_me:$LINENO: result: $withval" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10618 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10619 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10620 | #define WITH_THREAD 1 |
| 10621 | _ACEOF |
| 10622 | |
| 10623 | |
| 10624 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10625 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10626 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10627 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10628 | LIBS="-lpth $LIBS" |
| 10629 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10630 | else |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10631 | echo "$as_me:$LINENO: result: no" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10632 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10633 | |
| 10634 | # Just looking for pthread_create in libpthread is not enough: |
| 10635 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 10636 | # So we really have to include pthread.h, and then link. |
| 10637 | _libs=$LIBS |
| 10638 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10639 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 10640 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| 10641 | cat >conftest.$ac_ext <<_ACEOF |
| 10642 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10643 | /* confdefs.h. */ |
| 10644 | _ACEOF |
| 10645 | cat confdefs.h >>conftest.$ac_ext |
| 10646 | cat >>conftest.$ac_ext <<_ACEOF |
| 10647 | /* end confdefs.h. */ |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10648 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10649 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10650 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10651 | int |
| 10652 | main () |
| 10653 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10654 | |
| 10655 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10656 | ; |
| 10657 | return 0; |
| 10658 | } |
| 10659 | _ACEOF |
| 10660 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10661 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10662 | (eval $ac_link) 2>&5 |
| 10663 | ac_status=$? |
| 10664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10665 | (exit $ac_status); } && |
| 10666 | { ac_try='test -s conftest$ac_exeext' |
| 10667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10668 | (eval $ac_try) 2>&5 |
| 10669 | ac_status=$? |
| 10670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10671 | (exit $ac_status); }; }; then |
| 10672 | |
| 10673 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10674 | echo "${ECHO_T}yes" >&6 |
| 10675 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10676 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10677 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10678 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10679 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10680 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10681 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10682 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10683 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10684 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10685 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10686 | LIBS=$_libs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10687 | echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 10688 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6 |
| 10689 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
| 10690 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10691 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10692 | cat >conftest.$ac_ext <<_ACEOF |
| 10693 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10694 | /* confdefs.h. */ |
| 10695 | _ACEOF |
| 10696 | cat confdefs.h >>conftest.$ac_ext |
| 10697 | cat >>conftest.$ac_ext <<_ACEOF |
| 10698 | /* end confdefs.h. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10699 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10700 | which can conflict with char pthread_detach (); below. |
| 10701 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 10702 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 10703 | including <limits.h> includes <sys/time.h> and causes problems |
| 10704 | checking for functions defined therein. */ |
| 10705 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10706 | # include <limits.h> |
| 10707 | #else |
| 10708 | # include <assert.h> |
| 10709 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10710 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10711 | #ifdef __cplusplus |
| 10712 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10713 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10714 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10715 | /* 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] | 10716 | builtin and then its argument prototype would still apply. */ |
| 10717 | char pthread_detach (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10718 | /* The GNU C library defines this for functions which it implements |
| 10719 | to always fail with ENOSYS. Some functions are actually named |
| 10720 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 10721 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10722 | choke me |
| 10723 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10724 | char (*f) () = pthread_detach; |
| 10725 | #endif |
| 10726 | #ifdef __cplusplus |
| 10727 | } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10728 | #endif |
| 10729 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10730 | int |
| 10731 | main () |
| 10732 | { |
| 10733 | return f != pthread_detach; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10734 | ; |
| 10735 | return 0; |
| 10736 | } |
| 10737 | _ACEOF |
| 10738 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10739 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10740 | (eval $ac_link) 2>&5 |
| 10741 | ac_status=$? |
| 10742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10743 | (exit $ac_status); } && |
| 10744 | { ac_try='test -s conftest$ac_exeext' |
| 10745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10746 | (eval $ac_try) 2>&5 |
| 10747 | ac_status=$? |
| 10748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10749 | (exit $ac_status); }; }; then |
| 10750 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10751 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10752 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10753 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10754 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10755 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10756 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10757 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10758 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10759 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 10760 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6 |
| 10761 | if test $ac_cv_func_pthread_detach = yes; then |
| 10762 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10763 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10764 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10765 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10766 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10767 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10768 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10769 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10770 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10771 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 10772 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 10773 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10775 | fi |
| 10776 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 10777 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 10778 | else |
| 10779 | # Is the header compilable? |
| 10780 | echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 10781 | echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6 |
| 10782 | cat >conftest.$ac_ext <<_ACEOF |
| 10783 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10784 | /* confdefs.h. */ |
| 10785 | _ACEOF |
| 10786 | cat confdefs.h >>conftest.$ac_ext |
| 10787 | cat >>conftest.$ac_ext <<_ACEOF |
| 10788 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10789 | $ac_includes_default |
| 10790 | #include <atheos/threads.h> |
| 10791 | _ACEOF |
| 10792 | rm -f conftest.$ac_objext |
| 10793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10794 | (eval $ac_compile) 2>&5 |
| 10795 | ac_status=$? |
| 10796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10797 | (exit $ac_status); } && |
| 10798 | { ac_try='test -s conftest.$ac_objext' |
| 10799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10800 | (eval $ac_try) 2>&5 |
| 10801 | ac_status=$? |
| 10802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10803 | (exit $ac_status); }; }; then |
| 10804 | ac_header_compiler=yes |
| 10805 | else |
| 10806 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10807 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10808 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10809 | ac_header_compiler=no |
| 10810 | fi |
| 10811 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10812 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10813 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10814 | |
| 10815 | # Is the header present? |
| 10816 | echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 10817 | echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6 |
| 10818 | cat >conftest.$ac_ext <<_ACEOF |
| 10819 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10820 | /* confdefs.h. */ |
| 10821 | _ACEOF |
| 10822 | cat confdefs.h >>conftest.$ac_ext |
| 10823 | cat >>conftest.$ac_ext <<_ACEOF |
| 10824 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10825 | #include <atheos/threads.h> |
| 10826 | _ACEOF |
| 10827 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10828 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10829 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10830 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10831 | rm -f conftest.er1 |
| 10832 | cat conftest.err >&5 |
| 10833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10834 | (exit $ac_status); } >/dev/null; then |
| 10835 | if test -s conftest.err; then |
| 10836 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10837 | else |
| 10838 | ac_cpp_err= |
| 10839 | fi |
| 10840 | else |
| 10841 | ac_cpp_err=yes |
| 10842 | fi |
| 10843 | if test -z "$ac_cpp_err"; then |
| 10844 | ac_header_preproc=yes |
| 10845 | else |
| 10846 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10847 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10848 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10849 | ac_header_preproc=no |
| 10850 | fi |
| 10851 | rm -f conftest.err conftest.$ac_ext |
| 10852 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10853 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10854 | |
| 10855 | # So? What about this header? |
| 10856 | case $ac_header_compiler:$ac_header_preproc in |
| 10857 | yes:no ) |
| 10858 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10859 | echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10860 | { 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] | 10861 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;} |
| 10862 | ( |
| 10863 | cat <<\_ASBOX |
| 10864 | ## ------------------------------------ ## |
| 10865 | ## Report this to bug-autoconf@gnu.org. ## |
| 10866 | ## ------------------------------------ ## |
| 10867 | _ASBOX |
| 10868 | ) | |
| 10869 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10870 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10871 | no:yes ) |
| 10872 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 10873 | echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;} |
| 10874 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 10875 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 10876 | { 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] | 10877 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;} |
| 10878 | ( |
| 10879 | cat <<\_ASBOX |
| 10880 | ## ------------------------------------ ## |
| 10881 | ## Report this to bug-autoconf@gnu.org. ## |
| 10882 | ## ------------------------------------ ## |
| 10883 | _ASBOX |
| 10884 | ) | |
| 10885 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10886 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10887 | esac |
| 10888 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 10889 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 10890 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10891 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10892 | else |
| 10893 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 10894 | fi |
| 10895 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 10896 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 10897 | |
| 10898 | fi |
| 10899 | if test $ac_cv_header_atheos_threads_h = yes; then |
| 10900 | cat >>confdefs.h <<\_ACEOF |
| 10901 | #define WITH_THREAD 1 |
| 10902 | _ACEOF |
| 10903 | |
| 10904 | |
| 10905 | cat >>confdefs.h <<\_ACEOF |
| 10906 | #define ATHEOS_THREADS 1 |
| 10907 | _ACEOF |
| 10908 | |
| 10909 | THREADOBJ="Python/thread.o" |
| 10910 | else |
| 10911 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10912 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10913 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 10914 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 10915 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10916 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10917 | fi |
| 10918 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 10919 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10920 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10921 | # Is the header compilable? |
| 10922 | echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 10923 | echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6 |
| 10924 | cat >conftest.$ac_ext <<_ACEOF |
| 10925 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10926 | /* confdefs.h. */ |
| 10927 | _ACEOF |
| 10928 | cat confdefs.h >>conftest.$ac_ext |
| 10929 | cat >>conftest.$ac_ext <<_ACEOF |
| 10930 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10931 | $ac_includes_default |
| 10932 | #include <kernel/OS.h> |
| 10933 | _ACEOF |
| 10934 | rm -f conftest.$ac_objext |
| 10935 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10936 | (eval $ac_compile) 2>&5 |
| 10937 | ac_status=$? |
| 10938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10939 | (exit $ac_status); } && |
| 10940 | { ac_try='test -s conftest.$ac_objext' |
| 10941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10942 | (eval $ac_try) 2>&5 |
| 10943 | ac_status=$? |
| 10944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10945 | (exit $ac_status); }; }; then |
| 10946 | ac_header_compiler=yes |
| 10947 | else |
| 10948 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10949 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10950 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10951 | ac_header_compiler=no |
| 10952 | fi |
| 10953 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10954 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10955 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10956 | |
| 10957 | # Is the header present? |
| 10958 | echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 10959 | echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6 |
| 10960 | cat >conftest.$ac_ext <<_ACEOF |
| 10961 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10962 | /* confdefs.h. */ |
| 10963 | _ACEOF |
| 10964 | cat confdefs.h >>conftest.$ac_ext |
| 10965 | cat >>conftest.$ac_ext <<_ACEOF |
| 10966 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10967 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10968 | _ACEOF |
| 10969 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10970 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10971 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10972 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10973 | rm -f conftest.er1 |
| 10974 | cat conftest.err >&5 |
| 10975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10976 | (exit $ac_status); } >/dev/null; then |
| 10977 | if test -s conftest.err; then |
| 10978 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10979 | else |
| 10980 | ac_cpp_err= |
| 10981 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10982 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10983 | ac_cpp_err=yes |
| 10984 | fi |
| 10985 | if test -z "$ac_cpp_err"; then |
| 10986 | ac_header_preproc=yes |
| 10987 | else |
| 10988 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10989 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10990 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10991 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10992 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10993 | rm -f conftest.err conftest.$ac_ext |
| 10994 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10995 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10996 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10997 | # So? What about this header? |
| 10998 | case $ac_header_compiler:$ac_header_preproc in |
| 10999 | yes:no ) |
| 11000 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11001 | echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11002 | { 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] | 11003 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;} |
| 11004 | ( |
| 11005 | cat <<\_ASBOX |
| 11006 | ## ------------------------------------ ## |
| 11007 | ## Report this to bug-autoconf@gnu.org. ## |
| 11008 | ## ------------------------------------ ## |
| 11009 | _ASBOX |
| 11010 | ) | |
| 11011 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11012 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11013 | no:yes ) |
| 11014 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 11015 | echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;} |
| 11016 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 11017 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 11018 | { 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] | 11019 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;} |
| 11020 | ( |
| 11021 | cat <<\_ASBOX |
| 11022 | ## ------------------------------------ ## |
| 11023 | ## Report this to bug-autoconf@gnu.org. ## |
| 11024 | ## ------------------------------------ ## |
| 11025 | _ASBOX |
| 11026 | ) | |
| 11027 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11028 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11029 | esac |
| 11030 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 11031 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 11032 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 11033 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11034 | else |
| 11035 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 11036 | fi |
| 11037 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 11038 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
| 11039 | |
| 11040 | fi |
| 11041 | if test $ac_cv_header_kernel_OS_h = yes; then |
| 11042 | cat >>confdefs.h <<\_ACEOF |
| 11043 | #define WITH_THREAD 1 |
| 11044 | _ACEOF |
| 11045 | |
| 11046 | |
| 11047 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11048 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11049 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11050 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11051 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11052 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11053 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11054 | echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 11055 | echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6 |
| 11056 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
| 11057 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11058 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11059 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11060 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11061 | cat >conftest.$ac_ext <<_ACEOF |
| 11062 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11063 | /* confdefs.h. */ |
| 11064 | _ACEOF |
| 11065 | cat confdefs.h >>conftest.$ac_ext |
| 11066 | cat >>conftest.$ac_ext <<_ACEOF |
| 11067 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11068 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11069 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11070 | #ifdef __cplusplus |
| 11071 | extern "C" |
| 11072 | #endif |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11073 | /* 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] | 11074 | builtin and then its argument prototype would still apply. */ |
| 11075 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11076 | int |
| 11077 | main () |
| 11078 | { |
| 11079 | pthread_create (); |
| 11080 | ; |
| 11081 | return 0; |
| 11082 | } |
| 11083 | _ACEOF |
| 11084 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11085 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11086 | (eval $ac_link) 2>&5 |
| 11087 | ac_status=$? |
| 11088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11089 | (exit $ac_status); } && |
| 11090 | { ac_try='test -s conftest$ac_exeext' |
| 11091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11092 | (eval $ac_try) 2>&5 |
| 11093 | ac_status=$? |
| 11094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11095 | (exit $ac_status); }; }; then |
| 11096 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11097 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11098 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11099 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11100 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11101 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11102 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11103 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11104 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11105 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11106 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 11107 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6 |
| 11108 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
| 11109 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11110 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11111 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11112 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11113 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11114 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11115 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11116 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11117 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11118 | echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 11119 | echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6 |
| 11120 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
| 11121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11122 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11123 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11124 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11125 | cat >conftest.$ac_ext <<_ACEOF |
| 11126 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11127 | /* confdefs.h. */ |
| 11128 | _ACEOF |
| 11129 | cat confdefs.h >>conftest.$ac_ext |
| 11130 | cat >>conftest.$ac_ext <<_ACEOF |
| 11131 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11132 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11133 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11134 | #ifdef __cplusplus |
| 11135 | extern "C" |
| 11136 | #endif |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11137 | /* 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] | 11138 | builtin and then its argument prototype would still apply. */ |
| 11139 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11140 | int |
| 11141 | main () |
| 11142 | { |
| 11143 | pthread_create (); |
| 11144 | ; |
| 11145 | return 0; |
| 11146 | } |
| 11147 | _ACEOF |
| 11148 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11149 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11150 | (eval $ac_link) 2>&5 |
| 11151 | ac_status=$? |
| 11152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11153 | (exit $ac_status); } && |
| 11154 | { ac_try='test -s conftest$ac_exeext' |
| 11155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11156 | (eval $ac_try) 2>&5 |
| 11157 | ac_status=$? |
| 11158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11159 | (exit $ac_status); }; }; then |
| 11160 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11161 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11162 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11163 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11164 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11165 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11166 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11167 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11168 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11169 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11170 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 11171 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6 |
| 11172 | if test $ac_cv_lib_c_r_pthread_create = yes; then |
| 11173 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11174 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11175 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11176 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11177 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11178 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11179 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11180 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11181 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11182 | echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 11183 | echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6 |
| 11184 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
| 11185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11186 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11187 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11188 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11189 | cat >conftest.$ac_ext <<_ACEOF |
| 11190 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11191 | /* confdefs.h. */ |
| 11192 | _ACEOF |
| 11193 | cat confdefs.h >>conftest.$ac_ext |
| 11194 | cat >>conftest.$ac_ext <<_ACEOF |
| 11195 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11196 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11197 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11198 | #ifdef __cplusplus |
| 11199 | extern "C" |
| 11200 | #endif |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11201 | /* 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] | 11202 | builtin and then its argument prototype would still apply. */ |
| 11203 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11204 | int |
| 11205 | main () |
| 11206 | { |
| 11207 | __pthread_create_system (); |
| 11208 | ; |
| 11209 | return 0; |
| 11210 | } |
| 11211 | _ACEOF |
| 11212 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11213 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11214 | (eval $ac_link) 2>&5 |
| 11215 | ac_status=$? |
| 11216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11217 | (exit $ac_status); } && |
| 11218 | { ac_try='test -s conftest$ac_exeext' |
| 11219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11220 | (eval $ac_try) 2>&5 |
| 11221 | ac_status=$? |
| 11222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11223 | (exit $ac_status); }; }; then |
| 11224 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11225 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11226 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11227 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11228 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11229 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11230 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11231 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11232 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11233 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11234 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 11235 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6 |
| 11236 | if test $ac_cv_lib_pthread___pthread_create_system = yes; then |
| 11237 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11238 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11239 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11240 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11241 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11242 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11243 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11244 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11245 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11246 | echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 11247 | echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6 |
| 11248 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
| 11249 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11250 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11251 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11252 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11253 | cat >conftest.$ac_ext <<_ACEOF |
| 11254 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11255 | /* confdefs.h. */ |
| 11256 | _ACEOF |
| 11257 | cat confdefs.h >>conftest.$ac_ext |
| 11258 | cat >>conftest.$ac_ext <<_ACEOF |
| 11259 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11260 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11261 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11262 | #ifdef __cplusplus |
| 11263 | extern "C" |
| 11264 | #endif |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11265 | /* 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] | 11266 | builtin and then its argument prototype would still apply. */ |
| 11267 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11268 | int |
| 11269 | main () |
| 11270 | { |
| 11271 | pthread_create (); |
| 11272 | ; |
| 11273 | return 0; |
| 11274 | } |
| 11275 | _ACEOF |
| 11276 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11277 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11278 | (eval $ac_link) 2>&5 |
| 11279 | ac_status=$? |
| 11280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11281 | (exit $ac_status); } && |
| 11282 | { ac_try='test -s conftest$ac_exeext' |
| 11283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11284 | (eval $ac_try) 2>&5 |
| 11285 | ac_status=$? |
| 11286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11287 | (exit $ac_status); }; }; then |
| 11288 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11289 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11290 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11291 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11292 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11293 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11294 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11295 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11296 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11297 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11298 | echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 11299 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6 |
| 11300 | if test $ac_cv_lib_cma_pthread_create = yes; then |
| 11301 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11302 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11303 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11304 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11305 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11306 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11307 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11308 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 11309 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11310 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 11311 | fi |
| 11312 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11313 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11314 | fi |
| 11315 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 11316 | fi |
| 11317 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11318 | fi |
| 11319 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11320 | fi |
| 11321 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11322 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11323 | fi |
| 11324 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11325 | |
| 11326 | fi |
| 11327 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11328 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11329 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11330 | fi; |
| 11331 | fi |
| 11332 | |
| 11333 | |
| 11334 | fi |
| 11335 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11336 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11337 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11338 | echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 11339 | echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6 |
| 11340 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
| 11341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11342 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11343 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11344 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11345 | cat >conftest.$ac_ext <<_ACEOF |
| 11346 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11347 | /* confdefs.h. */ |
| 11348 | _ACEOF |
| 11349 | cat confdefs.h >>conftest.$ac_ext |
| 11350 | cat >>conftest.$ac_ext <<_ACEOF |
| 11351 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11352 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11353 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11354 | #ifdef __cplusplus |
| 11355 | extern "C" |
| 11356 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11357 | /* 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] | 11358 | builtin and then its argument prototype would still apply. */ |
| 11359 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11360 | int |
| 11361 | main () |
| 11362 | { |
| 11363 | usconfig (); |
| 11364 | ; |
| 11365 | return 0; |
| 11366 | } |
| 11367 | _ACEOF |
| 11368 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11369 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11370 | (eval $ac_link) 2>&5 |
| 11371 | ac_status=$? |
| 11372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11373 | (exit $ac_status); } && |
| 11374 | { ac_try='test -s conftest$ac_exeext' |
| 11375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11376 | (eval $ac_try) 2>&5 |
| 11377 | ac_status=$? |
| 11378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11379 | (exit $ac_status); }; }; then |
| 11380 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11381 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11382 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11383 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11384 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11385 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11386 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11387 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11388 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11389 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11390 | echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 11391 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6 |
| 11392 | if test $ac_cv_lib_mpc_usconfig = yes; then |
| 11393 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11394 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11395 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11396 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11397 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11398 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11399 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11400 | fi |
| 11401 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11402 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 11403 | if test "$posix_threads" != "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11404 | echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 11405 | echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6 |
| 11406 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
| 11407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11408 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11409 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11410 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11411 | cat >conftest.$ac_ext <<_ACEOF |
| 11412 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11413 | /* confdefs.h. */ |
| 11414 | _ACEOF |
| 11415 | cat confdefs.h >>conftest.$ac_ext |
| 11416 | cat >>conftest.$ac_ext <<_ACEOF |
| 11417 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11418 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11419 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11420 | #ifdef __cplusplus |
| 11421 | extern "C" |
| 11422 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11423 | /* 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] | 11424 | builtin and then its argument prototype would still apply. */ |
| 11425 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11426 | int |
| 11427 | main () |
| 11428 | { |
| 11429 | thr_create (); |
| 11430 | ; |
| 11431 | return 0; |
| 11432 | } |
| 11433 | _ACEOF |
| 11434 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11435 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11436 | (eval $ac_link) 2>&5 |
| 11437 | ac_status=$? |
| 11438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11439 | (exit $ac_status); } && |
| 11440 | { ac_try='test -s conftest$ac_exeext' |
| 11441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11442 | (eval $ac_try) 2>&5 |
| 11443 | ac_status=$? |
| 11444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11445 | (exit $ac_status); }; }; then |
| 11446 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11447 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11448 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11449 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11450 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11451 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11452 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11453 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11454 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11455 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11456 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 11457 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6 |
| 11458 | if test $ac_cv_lib_thread_thr_create = yes; then |
| 11459 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11460 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11461 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11462 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11463 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11464 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11465 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11466 | fi |
| 11467 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11468 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11469 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11470 | if test "$USE_THREAD_MODULE" != "#" |
| 11471 | then |
| 11472 | # If the above checks didn't disable threads, (at least) OSF1 |
| 11473 | # needs this '-threads' argument during linking. |
| 11474 | case $ac_sys_system in |
| 11475 | OSF1) LDLAST=-threads;; |
| 11476 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 11477 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11478 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 11479 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11480 | if test "$posix_threads" = "yes"; then |
| 11481 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 11482 | |
| 11483 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11484 | #define _POSIX_THREADS 1 |
| 11485 | _ACEOF |
| 11486 | |
| 11487 | fi |
| 11488 | |
| 11489 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 11490 | case $ac_sys_system/$ac_sys_release in |
| 11491 | SunOS/5.6) |
| 11492 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 11493 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 11494 | _ACEOF |
| 11495 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11496 | ;; |
| 11497 | SunOS/5.8) |
| 11498 | cat >>confdefs.h <<\_ACEOF |
| 11499 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 11500 | _ACEOF |
| 11501 | |
| 11502 | ;; |
| 11503 | esac |
| 11504 | |
| 11505 | echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 11506 | echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6 |
| 11507 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
| 11508 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11509 | else |
| 11510 | if test "$cross_compiling" = yes; then |
| 11511 | ac_cv_pthread_system_supported=no |
| 11512 | else |
| 11513 | cat >conftest.$ac_ext <<_ACEOF |
| 11514 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11515 | /* confdefs.h. */ |
| 11516 | _ACEOF |
| 11517 | cat confdefs.h >>conftest.$ac_ext |
| 11518 | cat >>conftest.$ac_ext <<_ACEOF |
| 11519 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11520 | #include <pthread.h> |
| 11521 | void *foo(void *parm) { |
| 11522 | return NULL; |
| 11523 | } |
| 11524 | main() { |
| 11525 | pthread_attr_t attr; |
| 11526 | pthread_t id; |
| 11527 | if (pthread_attr_init(&attr)) exit(-1); |
| 11528 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 11529 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 11530 | exit(0); |
| 11531 | } |
| 11532 | _ACEOF |
| 11533 | rm -f conftest$ac_exeext |
| 11534 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11535 | (eval $ac_link) 2>&5 |
| 11536 | ac_status=$? |
| 11537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11538 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11540 | (eval $ac_try) 2>&5 |
| 11541 | ac_status=$? |
| 11542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11543 | (exit $ac_status); }; }; then |
| 11544 | ac_cv_pthread_system_supported=yes |
| 11545 | else |
| 11546 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11547 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11548 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11549 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11550 | ( exit $ac_status ) |
| 11551 | ac_cv_pthread_system_supported=no |
| 11552 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11553 | 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] | 11554 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 11555 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11556 | fi |
| 11557 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11558 | echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 11559 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6 |
| 11560 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 11561 | |
| 11562 | cat >>confdefs.h <<\_ACEOF |
| 11563 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
| 11564 | _ACEOF |
| 11565 | |
| 11566 | fi |
| 11567 | |
| 11568 | for ac_func in pthread_sigmask |
| 11569 | do |
| 11570 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11571 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11572 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11573 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11574 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11575 | else |
| 11576 | cat >conftest.$ac_ext <<_ACEOF |
| 11577 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11578 | /* confdefs.h. */ |
| 11579 | _ACEOF |
| 11580 | cat confdefs.h >>conftest.$ac_ext |
| 11581 | cat >>conftest.$ac_ext <<_ACEOF |
| 11582 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11583 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11584 | which can conflict with char $ac_func (); below. |
| 11585 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 11586 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 11587 | including <limits.h> includes <sys/time.h> and causes problems |
| 11588 | checking for functions defined therein. */ |
| 11589 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11590 | # include <limits.h> |
| 11591 | #else |
| 11592 | # include <assert.h> |
| 11593 | #endif |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11594 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11595 | #ifdef __cplusplus |
| 11596 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11597 | { |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11598 | #endif |
| 11599 | /* We use char because int might match the return type of a gcc2 |
| 11600 | builtin and then its argument prototype would still apply. */ |
| 11601 | char $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11602 | /* The GNU C library defines this for functions which it implements |
| 11603 | to always fail with ENOSYS. Some functions are actually named |
| 11604 | something starting with __ and the normal name is an alias. */ |
| 11605 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11606 | choke me |
| 11607 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11608 | char (*f) () = $ac_func; |
| 11609 | #endif |
| 11610 | #ifdef __cplusplus |
| 11611 | } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11612 | #endif |
| 11613 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11614 | int |
| 11615 | main () |
| 11616 | { |
| 11617 | return f != $ac_func; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11618 | ; |
| 11619 | return 0; |
| 11620 | } |
| 11621 | _ACEOF |
| 11622 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11623 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11624 | (eval $ac_link) 2>&5 |
| 11625 | ac_status=$? |
| 11626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11627 | (exit $ac_status); } && |
| 11628 | { ac_try='test -s conftest$ac_exeext' |
| 11629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11630 | (eval $ac_try) 2>&5 |
| 11631 | ac_status=$? |
| 11632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11633 | (exit $ac_status); }; }; then |
| 11634 | eval "$as_ac_var=yes" |
| 11635 | else |
| 11636 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11637 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11638 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11639 | eval "$as_ac_var=no" |
| 11640 | fi |
| 11641 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11642 | fi |
| 11643 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11644 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11645 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11646 | cat >>confdefs.h <<_ACEOF |
| 11647 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11648 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 11649 | case $ac_sys_system in |
| 11650 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11651 | |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 11652 | cat >>confdefs.h <<\_ACEOF |
| 11653 | #define HAVE_BROKEN_PTHREAD_SIGMASK 1 |
| 11654 | _ACEOF |
| 11655 | |
| 11656 | ;; |
| 11657 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11658 | fi |
| 11659 | done |
| 11660 | |
| 11661 | fi |
| 11662 | |
| 11663 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11664 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11665 | |
| 11666 | |
| 11667 | echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 11668 | 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] | 11669 | # Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 11670 | if test "${enable_ipv6+set}" = set; then |
| 11671 | enableval="$enable_ipv6" |
| 11672 | case "$enableval" in |
| 11673 | no) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11674 | echo "$as_me:$LINENO: result: no" >&5 |
| 11675 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11676 | ipv6=no |
| 11677 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11678 | *) echo "$as_me:$LINENO: result: yes" >&5 |
| 11679 | echo "${ECHO_T}yes" >&6 |
| 11680 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11681 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11682 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11683 | |
| 11684 | ipv6=yes |
| 11685 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11686 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11687 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11688 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11689 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11690 | echo "$as_me:$LINENO: result: no" >&5 |
| 11691 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11692 | ipv6=no |
| 11693 | |
| 11694 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11695 | cat >conftest.$ac_ext <<_ACEOF |
| 11696 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11697 | /* confdefs.h. */ |
| 11698 | _ACEOF |
| 11699 | cat confdefs.h >>conftest.$ac_ext |
| 11700 | cat >>conftest.$ac_ext <<_ACEOF |
| 11701 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11702 | /* AF_INET6 available check */ |
| 11703 | #include <sys/types.h> |
| 11704 | #include <sys/socket.h> |
| 11705 | main() |
| 11706 | { |
| 11707 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 11708 | exit(1); |
| 11709 | else |
| 11710 | exit(0); |
| 11711 | } |
| 11712 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11713 | _ACEOF |
| 11714 | rm -f conftest$ac_exeext |
| 11715 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11716 | (eval $ac_link) 2>&5 |
| 11717 | ac_status=$? |
| 11718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11719 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11721 | (eval $ac_try) 2>&5 |
| 11722 | ac_status=$? |
| 11723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11724 | (exit $ac_status); }; }; then |
| 11725 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11726 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11727 | ipv6=yes |
| 11728 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11729 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11730 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11731 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11732 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11733 | ( exit $ac_status ) |
| 11734 | echo "$as_me:$LINENO: result: no" >&5 |
| 11735 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11736 | ipv6=no |
| 11737 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11738 | 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] | 11739 | fi |
| 11740 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11741 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11742 | echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 11743 | echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6 |
| 11744 | cat >conftest.$ac_ext <<_ACEOF |
| 11745 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11746 | /* confdefs.h. */ |
| 11747 | _ACEOF |
| 11748 | cat confdefs.h >>conftest.$ac_ext |
| 11749 | cat >>conftest.$ac_ext <<_ACEOF |
| 11750 | /* end confdefs.h. */ |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11751 | #include <sys/types.h> |
| 11752 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11753 | int |
| 11754 | main () |
| 11755 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11756 | struct sockaddr_in6 x; |
| 11757 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11758 | ; |
| 11759 | return 0; |
| 11760 | } |
| 11761 | _ACEOF |
| 11762 | rm -f conftest.$ac_objext |
| 11763 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11764 | (eval $ac_compile) 2>&5 |
| 11765 | ac_status=$? |
| 11766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11767 | (exit $ac_status); } && |
| 11768 | { ac_try='test -s conftest.$ac_objext' |
| 11769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11770 | (eval $ac_try) 2>&5 |
| 11771 | ac_status=$? |
| 11772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11773 | (exit $ac_status); }; }; then |
| 11774 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11775 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11776 | ipv6=yes |
| 11777 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11778 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11779 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11780 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11781 | echo "$as_me:$LINENO: result: no" >&5 |
| 11782 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11783 | ipv6=no |
| 11784 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11785 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11786 | fi |
| 11787 | |
| 11788 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11789 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11790 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11791 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11792 | |
| 11793 | fi |
| 11794 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11795 | fi; |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11796 | |
| 11797 | ipv6type=unknown |
| 11798 | ipv6lib=none |
| 11799 | ipv6trylibc=no |
| 11800 | |
| 11801 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11802 | echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 11803 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 11804 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 11805 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11806 | case $i in |
| 11807 | inria) |
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 IPV6_INRIA_VERSION |
| 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 | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11823 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11824 | fi |
| 11825 | rm -f conftest* |
| 11826 | |
| 11827 | ;; |
| 11828 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11829 | cat >conftest.$ac_ext <<_ACEOF |
| 11830 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11831 | /* confdefs.h. */ |
| 11832 | _ACEOF |
| 11833 | cat confdefs.h >>conftest.$ac_ext |
| 11834 | cat >>conftest.$ac_ext <<_ACEOF |
| 11835 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11836 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11837 | #include <netinet/in.h> |
| 11838 | #ifdef __KAME__ |
| 11839 | yes |
| 11840 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11841 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11842 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11843 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11844 | ipv6type=$i; |
| 11845 | ipv6lib=inet6 |
| 11846 | ipv6libdir=/usr/local/v6/lib |
| 11847 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11848 | fi |
| 11849 | rm -f conftest* |
| 11850 | |
| 11851 | ;; |
| 11852 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11853 | cat >conftest.$ac_ext <<_ACEOF |
| 11854 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11855 | /* confdefs.h. */ |
| 11856 | _ACEOF |
| 11857 | cat confdefs.h >>conftest.$ac_ext |
| 11858 | cat >>conftest.$ac_ext <<_ACEOF |
| 11859 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11860 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11861 | #include <features.h> |
| 11862 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 11863 | yes |
| 11864 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11865 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11866 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11867 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11868 | ipv6type=$i; |
| 11869 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11870 | fi |
| 11871 | rm -f conftest* |
| 11872 | |
| 11873 | ;; |
| 11874 | linux-inet6) |
| 11875 | if test -d /usr/inet6; then |
| 11876 | ipv6type=$i |
| 11877 | ipv6lib=inet6 |
| 11878 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 11879 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11880 | fi |
| 11881 | ;; |
| 11882 | solaris) |
| 11883 | if test -f /etc/netconfig; then |
| 11884 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 11885 | ipv6type=$i |
| 11886 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11887 | fi |
| 11888 | fi |
| 11889 | ;; |
| 11890 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11891 | cat >conftest.$ac_ext <<_ACEOF |
| 11892 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11893 | /* confdefs.h. */ |
| 11894 | _ACEOF |
| 11895 | cat confdefs.h >>conftest.$ac_ext |
| 11896 | cat >>conftest.$ac_ext <<_ACEOF |
| 11897 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11898 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11899 | #include <sys/param.h> |
| 11900 | #ifdef _TOSHIBA_INET6 |
| 11901 | yes |
| 11902 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11903 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11904 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11905 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11906 | ipv6type=$i; |
| 11907 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11908 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11909 | fi |
| 11910 | rm -f conftest* |
| 11911 | |
| 11912 | ;; |
| 11913 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11914 | cat >conftest.$ac_ext <<_ACEOF |
| 11915 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11916 | /* confdefs.h. */ |
| 11917 | _ACEOF |
| 11918 | cat confdefs.h >>conftest.$ac_ext |
| 11919 | cat >>conftest.$ac_ext <<_ACEOF |
| 11920 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11921 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11922 | #include </usr/local/v6/include/sys/v6config.h> |
| 11923 | #ifdef __V6D__ |
| 11924 | yes |
| 11925 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11926 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11927 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11928 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11929 | ipv6type=$i; |
| 11930 | ipv6lib=v6; |
| 11931 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 11932 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11933 | fi |
| 11934 | rm -f conftest* |
| 11935 | |
| 11936 | ;; |
| 11937 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11938 | cat >conftest.$ac_ext <<_ACEOF |
| 11939 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11940 | /* confdefs.h. */ |
| 11941 | _ACEOF |
| 11942 | cat confdefs.h >>conftest.$ac_ext |
| 11943 | cat >>conftest.$ac_ext <<_ACEOF |
| 11944 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11945 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11946 | #include <sys/param.h> |
| 11947 | #ifdef _ZETA_MINAMI_INET6 |
| 11948 | yes |
| 11949 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11950 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11951 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11952 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11953 | ipv6type=$i; |
| 11954 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11955 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11956 | fi |
| 11957 | rm -f conftest* |
| 11958 | |
| 11959 | ;; |
| 11960 | esac |
| 11961 | if test "$ipv6type" != "unknown"; then |
| 11962 | break |
| 11963 | fi |
| 11964 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11965 | echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 11966 | echo "${ECHO_T}$ipv6type" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11967 | fi |
| 11968 | |
| 11969 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 11970 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 11971 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 11972 | echo "using lib$ipv6lib" |
| 11973 | else |
| 11974 | if test $ipv6trylibc = "yes"; then |
| 11975 | echo "using libc" |
| 11976 | else |
| 11977 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 11978 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 11979 | echo 'ipv6 kit and compile beforehand.' |
| 11980 | exit 1 |
| 11981 | fi |
| 11982 | fi |
| 11983 | fi |
| 11984 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11985 | # Check for --with-doc-strings |
| 11986 | echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 11987 | echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6 |
| 11988 | |
| 11989 | # Check whether --with-doc-strings or --without-doc-strings was given. |
| 11990 | if test "${with_doc_strings+set}" = set; then |
| 11991 | withval="$with_doc_strings" |
| 11992 | |
| 11993 | fi; |
| 11994 | |
| 11995 | if test -z "$with_doc_strings" |
| 11996 | then with_doc_strings="yes" |
| 11997 | fi |
| 11998 | if test "$with_doc_strings" != "no" |
| 11999 | then |
| 12000 | |
| 12001 | cat >>confdefs.h <<\_ACEOF |
| 12002 | #define WITH_DOC_STRINGS 1 |
| 12003 | _ACEOF |
| 12004 | |
| 12005 | fi |
| 12006 | echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 12007 | echo "${ECHO_T}$with_doc_strings" >&6 |
| 12008 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 12009 | # Check for Python-specific malloc support |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 12010 | echo "$as_me:$LINENO: checking for --with-tsc" >&5 |
| 12011 | echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6 |
| 12012 | |
| 12013 | # Check whether --with-tsc or --without-tsc was given. |
| 12014 | if test "${with_tsc+set}" = set; then |
| 12015 | withval="$with_tsc" |
| 12016 | |
| 12017 | if test "$withval" != no |
| 12018 | then |
| 12019 | |
| 12020 | cat >>confdefs.h <<\_ACEOF |
| 12021 | #define WITH_TSC 1 |
| 12022 | _ACEOF |
| 12023 | |
| 12024 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12025 | echo "${ECHO_T}yes" >&6 |
| 12026 | else echo "$as_me:$LINENO: result: no" >&5 |
| 12027 | echo "${ECHO_T}no" >&6 |
| 12028 | fi |
| 12029 | else |
| 12030 | echo "$as_me:$LINENO: result: no" >&5 |
| 12031 | echo "${ECHO_T}no" >&6 |
| 12032 | fi; |
| 12033 | |
| 12034 | # Check for Python-specific malloc support |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12035 | echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 12036 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6 |
| 12037 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 12038 | # Check whether --with-pymalloc or --without-pymalloc was given. |
| 12039 | if test "${with_pymalloc+set}" = set; then |
| 12040 | withval="$with_pymalloc" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12041 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12042 | fi; |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 12043 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 12044 | if test -z "$with_pymalloc" |
| 12045 | then with_pymalloc="yes" |
| 12046 | fi |
| 12047 | if test "$with_pymalloc" != "no" |
| 12048 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12049 | |
| 12050 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 12051 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12052 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 12053 | |
| 12054 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12055 | echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 12056 | echo "${ECHO_T}$with_pymalloc" >&6 |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 12057 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 12058 | # Check for --with-wctype-functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12059 | echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 12060 | echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6 |
| 12061 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 12062 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 12063 | if test "${with_wctype_functions+set}" = set; then |
| 12064 | withval="$with_wctype_functions" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12065 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 12066 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12067 | then |
| 12068 | |
| 12069 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 12070 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12071 | _ACEOF |
| 12072 | |
| 12073 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12074 | echo "${ECHO_T}yes" >&6 |
| 12075 | else echo "$as_me:$LINENO: result: no" >&5 |
| 12076 | echo "${ECHO_T}no" >&6 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 12077 | fi |
| 12078 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12079 | echo "$as_me:$LINENO: result: no" >&5 |
| 12080 | echo "${ECHO_T}no" >&6 |
| 12081 | fi; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 12082 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12083 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12084 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 12085 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12086 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12087 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 12088 | # 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] | 12089 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12090 | for ac_func in dlopen |
| 12091 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12092 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12093 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12094 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12095 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12096 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12097 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12098 | cat >conftest.$ac_ext <<_ACEOF |
| 12099 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12100 | /* confdefs.h. */ |
| 12101 | _ACEOF |
| 12102 | cat confdefs.h >>conftest.$ac_ext |
| 12103 | cat >>conftest.$ac_ext <<_ACEOF |
| 12104 | /* end confdefs.h. */ |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12105 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12106 | which can conflict with char $ac_func (); below. |
| 12107 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 12108 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 12109 | including <limits.h> includes <sys/time.h> and causes problems |
| 12110 | checking for functions defined therein. */ |
| 12111 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12112 | # include <limits.h> |
| 12113 | #else |
| 12114 | # include <assert.h> |
| 12115 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12116 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12117 | #ifdef __cplusplus |
| 12118 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12119 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12120 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12121 | /* 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] | 12122 | builtin and then its argument prototype would still apply. */ |
| 12123 | char $ac_func (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12124 | /* The GNU C library defines this for functions which it implements |
| 12125 | to always fail with ENOSYS. Some functions are actually named |
| 12126 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12127 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12128 | choke me |
| 12129 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12130 | char (*f) () = $ac_func; |
| 12131 | #endif |
| 12132 | #ifdef __cplusplus |
| 12133 | } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12134 | #endif |
| 12135 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12136 | int |
| 12137 | main () |
| 12138 | { |
| 12139 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12140 | ; |
| 12141 | return 0; |
| 12142 | } |
| 12143 | _ACEOF |
| 12144 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12145 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12146 | (eval $ac_link) 2>&5 |
| 12147 | ac_status=$? |
| 12148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12149 | (exit $ac_status); } && |
| 12150 | { ac_try='test -s conftest$ac_exeext' |
| 12151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12152 | (eval $ac_try) 2>&5 |
| 12153 | ac_status=$? |
| 12154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12155 | (exit $ac_status); }; }; then |
| 12156 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12157 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12158 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12159 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12160 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12161 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12162 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12163 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12164 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12165 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12166 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12167 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12168 | cat >>confdefs.h <<_ACEOF |
| 12169 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12170 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12171 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12172 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12173 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12174 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12175 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12176 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 12177 | # loading of modules. |
| 12178 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12179 | echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 12180 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12181 | if test -z "$DYNLOADFILE" |
| 12182 | then |
| 12183 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 12184 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
| 12185 | if test "$ac_cv_func_dlopen" = yes |
| 12186 | then DYNLOADFILE="dynload_shlib.o" |
| 12187 | else DYNLOADFILE="dynload_aix.o" |
| 12188 | fi |
| 12189 | ;; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12190 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 12191 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12192 | Darwin/*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12193 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12194 | *) |
| 12195 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 12196 | # out any dynamic loading |
| 12197 | if test "$ac_cv_func_dlopen" = yes |
| 12198 | then DYNLOADFILE="dynload_shlib.o" |
| 12199 | else DYNLOADFILE="dynload_stub.o" |
| 12200 | fi |
| 12201 | ;; |
| 12202 | esac |
| 12203 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12204 | echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 12205 | echo "${ECHO_T}$DYNLOADFILE" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12206 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 12207 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12208 | |
| 12209 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12210 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12211 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12212 | |
| 12213 | fi |
| 12214 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 12215 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 12216 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12217 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12218 | echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 12219 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 12220 | if test -z "$MACHDEP_OBJS" |
| 12221 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12222 | MACHDEP_OBJS=$extra_machdep_objs |
| 12223 | else |
| 12224 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 12225 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12226 | echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 12227 | echo "${ECHO_T}MACHDEP_OBJS" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 12228 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12229 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | |
| 12282 | |
| 12283 | |
| 12284 | |
| 12285 | |
| 12286 | |
| 12287 | |
| 12288 | |
| 12289 | |
| 12290 | |
| 12291 | |
| 12292 | |
| 12293 | |
| 12294 | |
| 12295 | |
| 12296 | |
| 12297 | |
| 12298 | |
| 12299 | |
| 12300 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12301 | for ac_func in alarm chown clock confstr ctermid execv \ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 12302 | fork fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 12303 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | 49ee14d | 2003-11-10 06:35:36 +0000 | [diff] [blame] | 12304 | getpriority getpwent getsid getwd \ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12305 | kill killpg lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 12306 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 12307 | putenv readlink realpath \ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12308 | select setegid seteuid setgid \ |
Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 12309 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
Skip Montanaro | 7e11a01 | 2004-02-07 12:55:46 +0000 | [diff] [blame] | 12310 | sigaction siginterrupt sigrelse strftime \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 12311 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 12312 | truncate uname unsetenv utimes waitpid wcscoll _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12313 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12314 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12315 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12316 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12317 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12319 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12320 | cat >conftest.$ac_ext <<_ACEOF |
| 12321 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12322 | /* confdefs.h. */ |
| 12323 | _ACEOF |
| 12324 | cat confdefs.h >>conftest.$ac_ext |
| 12325 | cat >>conftest.$ac_ext <<_ACEOF |
| 12326 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12327 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12328 | which can conflict with char $ac_func (); below. |
| 12329 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 12330 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 12331 | including <limits.h> includes <sys/time.h> and causes problems |
| 12332 | checking for functions defined therein. */ |
| 12333 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12334 | # include <limits.h> |
| 12335 | #else |
| 12336 | # include <assert.h> |
| 12337 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12338 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12339 | #ifdef __cplusplus |
| 12340 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12341 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12342 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12343 | /* 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] | 12344 | builtin and then its argument prototype would still apply. */ |
| 12345 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12346 | /* The GNU C library defines this for functions which it implements |
| 12347 | to always fail with ENOSYS. Some functions are actually named |
| 12348 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12349 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12350 | choke me |
| 12351 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12352 | char (*f) () = $ac_func; |
| 12353 | #endif |
| 12354 | #ifdef __cplusplus |
| 12355 | } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12356 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12357 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12358 | int |
| 12359 | main () |
| 12360 | { |
| 12361 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12362 | ; |
| 12363 | return 0; |
| 12364 | } |
| 12365 | _ACEOF |
| 12366 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12367 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12368 | (eval $ac_link) 2>&5 |
| 12369 | ac_status=$? |
| 12370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12371 | (exit $ac_status); } && |
| 12372 | { ac_try='test -s conftest$ac_exeext' |
| 12373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12374 | (eval $ac_try) 2>&5 |
| 12375 | ac_status=$? |
| 12376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12377 | (exit $ac_status); }; }; then |
| 12378 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12379 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12380 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12381 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12382 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12383 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12384 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12385 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12386 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12387 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12388 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12389 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12390 | cat >>confdefs.h <<_ACEOF |
| 12391 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12392 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12393 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12394 | fi |
| 12395 | done |
| 12396 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12397 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12398 | # For some functions, having a definition is not sufficient, since |
| 12399 | # we want to take their address. |
| 12400 | echo "$as_me:$LINENO: checking for chroot" >&5 |
| 12401 | echo $ECHO_N "checking for chroot... $ECHO_C" >&6 |
| 12402 | cat >conftest.$ac_ext <<_ACEOF |
| 12403 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12404 | /* confdefs.h. */ |
| 12405 | _ACEOF |
| 12406 | cat confdefs.h >>conftest.$ac_ext |
| 12407 | cat >>conftest.$ac_ext <<_ACEOF |
| 12408 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12409 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12410 | int |
| 12411 | main () |
| 12412 | { |
| 12413 | void *x=chroot |
| 12414 | ; |
| 12415 | return 0; |
| 12416 | } |
| 12417 | _ACEOF |
| 12418 | rm -f conftest.$ac_objext |
| 12419 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12420 | (eval $ac_compile) 2>&5 |
| 12421 | ac_status=$? |
| 12422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12423 | (exit $ac_status); } && |
| 12424 | { ac_try='test -s conftest.$ac_objext' |
| 12425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12426 | (eval $ac_try) 2>&5 |
| 12427 | ac_status=$? |
| 12428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12429 | (exit $ac_status); }; }; then |
| 12430 | |
| 12431 | cat >>confdefs.h <<\_ACEOF |
| 12432 | #define HAVE_CHROOT 1 |
| 12433 | _ACEOF |
| 12434 | |
| 12435 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12436 | echo "${ECHO_T}yes" >&6 |
| 12437 | else |
| 12438 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12439 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12440 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12441 | echo "$as_me:$LINENO: result: no" >&5 |
| 12442 | echo "${ECHO_T}no" >&6 |
| 12443 | |
| 12444 | fi |
| 12445 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12446 | echo "$as_me:$LINENO: checking for link" >&5 |
| 12447 | echo $ECHO_N "checking for link... $ECHO_C" >&6 |
| 12448 | cat >conftest.$ac_ext <<_ACEOF |
| 12449 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12450 | /* confdefs.h. */ |
| 12451 | _ACEOF |
| 12452 | cat confdefs.h >>conftest.$ac_ext |
| 12453 | cat >>conftest.$ac_ext <<_ACEOF |
| 12454 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12455 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12456 | int |
| 12457 | main () |
| 12458 | { |
| 12459 | void *x=link |
| 12460 | ; |
| 12461 | return 0; |
| 12462 | } |
| 12463 | _ACEOF |
| 12464 | rm -f conftest.$ac_objext |
| 12465 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12466 | (eval $ac_compile) 2>&5 |
| 12467 | ac_status=$? |
| 12468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12469 | (exit $ac_status); } && |
| 12470 | { ac_try='test -s conftest.$ac_objext' |
| 12471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12472 | (eval $ac_try) 2>&5 |
| 12473 | ac_status=$? |
| 12474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12475 | (exit $ac_status); }; }; then |
| 12476 | |
| 12477 | cat >>confdefs.h <<\_ACEOF |
| 12478 | #define HAVE_LINK 1 |
| 12479 | _ACEOF |
| 12480 | |
| 12481 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12482 | echo "${ECHO_T}yes" >&6 |
| 12483 | else |
| 12484 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12485 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12486 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12487 | echo "$as_me:$LINENO: result: no" >&5 |
| 12488 | echo "${ECHO_T}no" >&6 |
| 12489 | |
| 12490 | fi |
| 12491 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12492 | echo "$as_me:$LINENO: checking for symlink" >&5 |
| 12493 | echo $ECHO_N "checking for symlink... $ECHO_C" >&6 |
| 12494 | cat >conftest.$ac_ext <<_ACEOF |
| 12495 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12496 | /* confdefs.h. */ |
| 12497 | _ACEOF |
| 12498 | cat confdefs.h >>conftest.$ac_ext |
| 12499 | cat >>conftest.$ac_ext <<_ACEOF |
| 12500 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12501 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12502 | int |
| 12503 | main () |
| 12504 | { |
| 12505 | void *x=symlink |
| 12506 | ; |
| 12507 | return 0; |
| 12508 | } |
| 12509 | _ACEOF |
| 12510 | rm -f conftest.$ac_objext |
| 12511 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12512 | (eval $ac_compile) 2>&5 |
| 12513 | ac_status=$? |
| 12514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12515 | (exit $ac_status); } && |
| 12516 | { ac_try='test -s conftest.$ac_objext' |
| 12517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12518 | (eval $ac_try) 2>&5 |
| 12519 | ac_status=$? |
| 12520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12521 | (exit $ac_status); }; }; then |
| 12522 | |
| 12523 | cat >>confdefs.h <<\_ACEOF |
| 12524 | #define HAVE_SYMLINK 1 |
| 12525 | _ACEOF |
| 12526 | |
| 12527 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12528 | echo "${ECHO_T}yes" >&6 |
| 12529 | else |
| 12530 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12531 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12532 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12533 | echo "$as_me:$LINENO: result: no" >&5 |
| 12534 | echo "${ECHO_T}no" >&6 |
| 12535 | |
| 12536 | fi |
| 12537 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 12538 | echo "$as_me:$LINENO: checking for fchdir" >&5 |
| 12539 | echo $ECHO_N "checking for fchdir... $ECHO_C" >&6 |
| 12540 | cat >conftest.$ac_ext <<_ACEOF |
| 12541 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12542 | /* confdefs.h. */ |
| 12543 | _ACEOF |
| 12544 | cat confdefs.h >>conftest.$ac_ext |
| 12545 | cat >>conftest.$ac_ext <<_ACEOF |
| 12546 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 12547 | #include <unistd.h> |
| 12548 | int |
| 12549 | main () |
| 12550 | { |
| 12551 | void *x=fchdir |
| 12552 | ; |
| 12553 | return 0; |
| 12554 | } |
| 12555 | _ACEOF |
| 12556 | rm -f conftest.$ac_objext |
| 12557 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12558 | (eval $ac_compile) 2>&5 |
| 12559 | ac_status=$? |
| 12560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12561 | (exit $ac_status); } && |
| 12562 | { ac_try='test -s conftest.$ac_objext' |
| 12563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12564 | (eval $ac_try) 2>&5 |
| 12565 | ac_status=$? |
| 12566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12567 | (exit $ac_status); }; }; then |
| 12568 | |
| 12569 | cat >>confdefs.h <<\_ACEOF |
| 12570 | #define HAVE_FCHDIR 1 |
| 12571 | _ACEOF |
| 12572 | |
| 12573 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12574 | echo "${ECHO_T}yes" >&6 |
| 12575 | else |
| 12576 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12577 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12578 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 12579 | echo "$as_me:$LINENO: result: no" >&5 |
| 12580 | echo "${ECHO_T}no" >&6 |
| 12581 | |
| 12582 | fi |
| 12583 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12584 | echo "$as_me:$LINENO: checking for fsync" >&5 |
| 12585 | echo $ECHO_N "checking for fsync... $ECHO_C" >&6 |
| 12586 | cat >conftest.$ac_ext <<_ACEOF |
| 12587 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12588 | /* confdefs.h. */ |
| 12589 | _ACEOF |
| 12590 | cat confdefs.h >>conftest.$ac_ext |
| 12591 | cat >>conftest.$ac_ext <<_ACEOF |
| 12592 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 12593 | #include <unistd.h> |
| 12594 | int |
| 12595 | main () |
| 12596 | { |
| 12597 | void *x=fsync |
| 12598 | ; |
| 12599 | return 0; |
| 12600 | } |
| 12601 | _ACEOF |
| 12602 | rm -f conftest.$ac_objext |
| 12603 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12604 | (eval $ac_compile) 2>&5 |
| 12605 | ac_status=$? |
| 12606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12607 | (exit $ac_status); } && |
| 12608 | { ac_try='test -s conftest.$ac_objext' |
| 12609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12610 | (eval $ac_try) 2>&5 |
| 12611 | ac_status=$? |
| 12612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12613 | (exit $ac_status); }; }; then |
| 12614 | |
| 12615 | cat >>confdefs.h <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12616 | #define HAVE_FSYNC 1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 12617 | _ACEOF |
| 12618 | |
| 12619 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12620 | echo "${ECHO_T}yes" >&6 |
| 12621 | else |
| 12622 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12623 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12624 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 12625 | echo "$as_me:$LINENO: result: no" >&5 |
| 12626 | echo "${ECHO_T}no" >&6 |
| 12627 | |
| 12628 | fi |
| 12629 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12630 | echo "$as_me:$LINENO: checking for fdatasync" >&5 |
| 12631 | echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6 |
| 12632 | cat >conftest.$ac_ext <<_ACEOF |
| 12633 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12634 | /* confdefs.h. */ |
| 12635 | _ACEOF |
| 12636 | cat confdefs.h >>conftest.$ac_ext |
| 12637 | cat >>conftest.$ac_ext <<_ACEOF |
| 12638 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 12639 | #include <unistd.h> |
| 12640 | int |
| 12641 | main () |
| 12642 | { |
| 12643 | void *x=fdatasync |
| 12644 | ; |
| 12645 | return 0; |
| 12646 | } |
| 12647 | _ACEOF |
| 12648 | rm -f conftest.$ac_objext |
| 12649 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12650 | (eval $ac_compile) 2>&5 |
| 12651 | ac_status=$? |
| 12652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12653 | (exit $ac_status); } && |
| 12654 | { ac_try='test -s conftest.$ac_objext' |
| 12655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12656 | (eval $ac_try) 2>&5 |
| 12657 | ac_status=$? |
| 12658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12659 | (exit $ac_status); }; }; then |
| 12660 | |
| 12661 | cat >>confdefs.h <<\_ACEOF |
| 12662 | #define HAVE_FDATASYNC 1 |
| 12663 | _ACEOF |
| 12664 | |
| 12665 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12666 | echo "${ECHO_T}yes" >&6 |
| 12667 | else |
| 12668 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12669 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12670 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 12671 | echo "$as_me:$LINENO: result: no" >&5 |
| 12672 | echo "${ECHO_T}no" >&6 |
| 12673 | |
| 12674 | fi |
| 12675 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12676 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12677 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 12678 | # functions ctermid_r, setgroups in the library, but no prototype |
| 12679 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 12680 | # address to avoid compiler warnings and potential miscompilations |
| 12681 | # because of the missing prototypes. |
| 12682 | |
| 12683 | echo "$as_me:$LINENO: checking for ctermid_r" >&5 |
| 12684 | echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6 |
| 12685 | cat >conftest.$ac_ext <<_ACEOF |
| 12686 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12687 | /* confdefs.h. */ |
| 12688 | _ACEOF |
| 12689 | cat confdefs.h >>conftest.$ac_ext |
| 12690 | cat >>conftest.$ac_ext <<_ACEOF |
| 12691 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12692 | |
| 12693 | #include "confdefs.h" |
| 12694 | #include <stdio.h> |
| 12695 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12696 | int |
| 12697 | main () |
| 12698 | { |
| 12699 | void* p = ctermid_r |
| 12700 | ; |
| 12701 | return 0; |
| 12702 | } |
| 12703 | _ACEOF |
| 12704 | rm -f conftest.$ac_objext |
| 12705 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12706 | (eval $ac_compile) 2>&5 |
| 12707 | ac_status=$? |
| 12708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12709 | (exit $ac_status); } && |
| 12710 | { ac_try='test -s conftest.$ac_objext' |
| 12711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12712 | (eval $ac_try) 2>&5 |
| 12713 | ac_status=$? |
| 12714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12715 | (exit $ac_status); }; }; then |
| 12716 | |
| 12717 | cat >>confdefs.h <<\_ACEOF |
| 12718 | #define HAVE_CTERMID_R 1 |
| 12719 | _ACEOF |
| 12720 | |
| 12721 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12722 | echo "${ECHO_T}yes" >&6 |
| 12723 | else |
| 12724 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12725 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12726 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12727 | echo "$as_me:$LINENO: result: no" >&5 |
| 12728 | echo "${ECHO_T}no" >&6 |
| 12729 | |
| 12730 | fi |
| 12731 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12732 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12733 | echo "$as_me:$LINENO: checking for flock" >&5 |
| 12734 | echo $ECHO_N "checking for flock... $ECHO_C" >&6 |
| 12735 | cat >conftest.$ac_ext <<_ACEOF |
| 12736 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12737 | /* confdefs.h. */ |
| 12738 | _ACEOF |
| 12739 | cat confdefs.h >>conftest.$ac_ext |
| 12740 | cat >>conftest.$ac_ext <<_ACEOF |
| 12741 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12742 | |
| 12743 | #include "confdefs.h" |
| 12744 | #include <sys/file.h> |
| 12745 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12746 | int |
| 12747 | main () |
| 12748 | { |
| 12749 | void* p = flock |
| 12750 | ; |
| 12751 | return 0; |
| 12752 | } |
| 12753 | _ACEOF |
| 12754 | rm -f conftest.$ac_objext |
| 12755 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12756 | (eval $ac_compile) 2>&5 |
| 12757 | ac_status=$? |
| 12758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12759 | (exit $ac_status); } && |
| 12760 | { ac_try='test -s conftest.$ac_objext' |
| 12761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12762 | (eval $ac_try) 2>&5 |
| 12763 | ac_status=$? |
| 12764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12765 | (exit $ac_status); }; }; then |
| 12766 | |
| 12767 | cat >>confdefs.h <<\_ACEOF |
| 12768 | #define HAVE_FLOCK 1 |
| 12769 | _ACEOF |
| 12770 | |
| 12771 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12772 | echo "${ECHO_T}yes" >&6 |
| 12773 | else |
| 12774 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12775 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12776 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12777 | echo "$as_me:$LINENO: result: no" >&5 |
| 12778 | echo "${ECHO_T}no" >&6 |
| 12779 | |
| 12780 | fi |
| 12781 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12782 | |
| 12783 | echo "$as_me:$LINENO: checking for getpagesize" >&5 |
| 12784 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6 |
| 12785 | cat >conftest.$ac_ext <<_ACEOF |
| 12786 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12787 | /* confdefs.h. */ |
| 12788 | _ACEOF |
| 12789 | cat confdefs.h >>conftest.$ac_ext |
| 12790 | cat >>conftest.$ac_ext <<_ACEOF |
| 12791 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12792 | |
| 12793 | #include "confdefs.h" |
| 12794 | #include <unistd.h> |
| 12795 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12796 | int |
| 12797 | main () |
| 12798 | { |
| 12799 | void* p = getpagesize |
| 12800 | ; |
| 12801 | return 0; |
| 12802 | } |
| 12803 | _ACEOF |
| 12804 | rm -f conftest.$ac_objext |
| 12805 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12806 | (eval $ac_compile) 2>&5 |
| 12807 | ac_status=$? |
| 12808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12809 | (exit $ac_status); } && |
| 12810 | { ac_try='test -s conftest.$ac_objext' |
| 12811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12812 | (eval $ac_try) 2>&5 |
| 12813 | ac_status=$? |
| 12814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12815 | (exit $ac_status); }; }; then |
| 12816 | |
| 12817 | cat >>confdefs.h <<\_ACEOF |
| 12818 | #define HAVE_GETPAGESIZE 1 |
| 12819 | _ACEOF |
| 12820 | |
| 12821 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12822 | echo "${ECHO_T}yes" >&6 |
| 12823 | else |
| 12824 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12825 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12826 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12827 | echo "$as_me:$LINENO: result: no" >&5 |
| 12828 | echo "${ECHO_T}no" >&6 |
| 12829 | |
| 12830 | fi |
| 12831 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12832 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12833 | for ac_prog in true |
| 12834 | do |
| 12835 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 12836 | set dummy $ac_prog; ac_word=$2 |
| 12837 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12838 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 12839 | if test "${ac_cv_prog_TRUE+set}" = set; then |
| 12840 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12841 | else |
| 12842 | if test -n "$TRUE"; then |
| 12843 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 12844 | else |
| 12845 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12846 | for as_dir in $PATH |
| 12847 | do |
| 12848 | IFS=$as_save_IFS |
| 12849 | test -z "$as_dir" && as_dir=. |
| 12850 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12851 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 12852 | ac_cv_prog_TRUE="$ac_prog" |
| 12853 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12854 | break 2 |
| 12855 | fi |
| 12856 | done |
| 12857 | done |
| 12858 | |
| 12859 | fi |
| 12860 | fi |
| 12861 | TRUE=$ac_cv_prog_TRUE |
| 12862 | if test -n "$TRUE"; then |
| 12863 | echo "$as_me:$LINENO: result: $TRUE" >&5 |
| 12864 | echo "${ECHO_T}$TRUE" >&6 |
| 12865 | else |
| 12866 | echo "$as_me:$LINENO: result: no" >&5 |
| 12867 | echo "${ECHO_T}no" >&6 |
| 12868 | fi |
| 12869 | |
| 12870 | test -n "$TRUE" && break |
| 12871 | done |
| 12872 | test -n "$TRUE" || TRUE="/bin/true" |
| 12873 | |
| 12874 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12875 | echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5 |
| 12876 | echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6 |
| 12877 | if test "${ac_cv_lib_c_inet_aton+set}" = set; then |
| 12878 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12879 | else |
| 12880 | ac_check_lib_save_LIBS=$LIBS |
| 12881 | LIBS="-lc $LIBS" |
| 12882 | cat >conftest.$ac_ext <<_ACEOF |
| 12883 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12884 | /* confdefs.h. */ |
| 12885 | _ACEOF |
| 12886 | cat confdefs.h >>conftest.$ac_ext |
| 12887 | cat >>conftest.$ac_ext <<_ACEOF |
| 12888 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12889 | |
| 12890 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12891 | #ifdef __cplusplus |
| 12892 | extern "C" |
| 12893 | #endif |
| 12894 | /* We use char because int might match the return type of a gcc2 |
| 12895 | builtin and then its argument prototype would still apply. */ |
| 12896 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12897 | int |
| 12898 | main () |
| 12899 | { |
| 12900 | inet_aton (); |
| 12901 | ; |
| 12902 | return 0; |
| 12903 | } |
| 12904 | _ACEOF |
| 12905 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12906 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12907 | (eval $ac_link) 2>&5 |
| 12908 | ac_status=$? |
| 12909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12910 | (exit $ac_status); } && |
| 12911 | { ac_try='test -s conftest$ac_exeext' |
| 12912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12913 | (eval $ac_try) 2>&5 |
| 12914 | ac_status=$? |
| 12915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12916 | (exit $ac_status); }; }; then |
| 12917 | ac_cv_lib_c_inet_aton=yes |
| 12918 | else |
| 12919 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12920 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12921 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12922 | ac_cv_lib_c_inet_aton=no |
| 12923 | fi |
| 12924 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12925 | LIBS=$ac_check_lib_save_LIBS |
| 12926 | fi |
| 12927 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5 |
| 12928 | echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6 |
| 12929 | if test $ac_cv_lib_c_inet_aton = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12930 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12931 | else |
| 12932 | |
| 12933 | echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
| 12934 | echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6 |
| 12935 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
| 12936 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12937 | else |
| 12938 | ac_check_lib_save_LIBS=$LIBS |
| 12939 | LIBS="-lresolv $LIBS" |
| 12940 | cat >conftest.$ac_ext <<_ACEOF |
| 12941 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12942 | /* confdefs.h. */ |
| 12943 | _ACEOF |
| 12944 | cat confdefs.h >>conftest.$ac_ext |
| 12945 | cat >>conftest.$ac_ext <<_ACEOF |
| 12946 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12947 | |
| 12948 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12949 | #ifdef __cplusplus |
| 12950 | extern "C" |
| 12951 | #endif |
| 12952 | /* We use char because int might match the return type of a gcc2 |
| 12953 | builtin and then its argument prototype would still apply. */ |
| 12954 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12955 | int |
| 12956 | main () |
| 12957 | { |
| 12958 | inet_aton (); |
| 12959 | ; |
| 12960 | return 0; |
| 12961 | } |
| 12962 | _ACEOF |
| 12963 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12964 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12965 | (eval $ac_link) 2>&5 |
| 12966 | ac_status=$? |
| 12967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12968 | (exit $ac_status); } && |
| 12969 | { ac_try='test -s conftest$ac_exeext' |
| 12970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12971 | (eval $ac_try) 2>&5 |
| 12972 | ac_status=$? |
| 12973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12974 | (exit $ac_status); }; }; then |
| 12975 | ac_cv_lib_resolv_inet_aton=yes |
| 12976 | else |
| 12977 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12978 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12979 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12980 | ac_cv_lib_resolv_inet_aton=no |
| 12981 | fi |
| 12982 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12983 | LIBS=$ac_check_lib_save_LIBS |
| 12984 | fi |
| 12985 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 12986 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6 |
| 12987 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
| 12988 | cat >>confdefs.h <<_ACEOF |
| 12989 | #define HAVE_LIBRESOLV 1 |
| 12990 | _ACEOF |
| 12991 | |
| 12992 | LIBS="-lresolv $LIBS" |
| 12993 | |
| 12994 | fi |
| 12995 | |
| 12996 | |
| 12997 | fi |
| 12998 | |
| 12999 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13000 | echo "$as_me:$LINENO: checking for hstrerror" >&5 |
| 13001 | echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6 |
| 13002 | cat >conftest.$ac_ext <<_ACEOF |
| 13003 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13004 | /* confdefs.h. */ |
| 13005 | _ACEOF |
| 13006 | cat confdefs.h >>conftest.$ac_ext |
| 13007 | cat >>conftest.$ac_ext <<_ACEOF |
| 13008 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13009 | |
| 13010 | #include "confdefs.h" |
| 13011 | #include <netdb.h> |
| 13012 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13013 | int |
| 13014 | main () |
| 13015 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13016 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13017 | ; |
| 13018 | return 0; |
| 13019 | } |
| 13020 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13021 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13022 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13023 | (eval $ac_link) 2>&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13024 | ac_status=$? |
| 13025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13026 | (exit $ac_status); } && |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13027 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13029 | (eval $ac_try) 2>&5 |
| 13030 | ac_status=$? |
| 13031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13032 | (exit $ac_status); }; }; then |
| 13033 | |
| 13034 | cat >>confdefs.h <<\_ACEOF |
| 13035 | #define HAVE_HSTRERROR 1 |
| 13036 | _ACEOF |
| 13037 | |
| 13038 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13039 | echo "${ECHO_T}yes" >&6 |
| 13040 | else |
| 13041 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13042 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13043 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13044 | echo "$as_me:$LINENO: result: no" >&5 |
| 13045 | echo "${ECHO_T}no" >&6 |
| 13046 | |
| 13047 | fi |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13048 | 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] | 13049 | |
| 13050 | echo "$as_me:$LINENO: checking for inet_aton" >&5 |
| 13051 | echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6 |
| 13052 | cat >conftest.$ac_ext <<_ACEOF |
| 13053 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13054 | /* confdefs.h. */ |
| 13055 | _ACEOF |
| 13056 | cat confdefs.h >>conftest.$ac_ext |
| 13057 | cat >>conftest.$ac_ext <<_ACEOF |
| 13058 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13059 | |
| 13060 | #include "confdefs.h" |
| 13061 | #include <sys/socket.h> |
| 13062 | #include <netinet/in.h> |
| 13063 | #include <arpa/inet.h> |
| 13064 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13065 | int |
| 13066 | main () |
| 13067 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13068 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13069 | ; |
| 13070 | return 0; |
| 13071 | } |
| 13072 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13073 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13074 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13075 | (eval $ac_link) 2>&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13076 | ac_status=$? |
| 13077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13078 | (exit $ac_status); } && |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13079 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13081 | (eval $ac_try) 2>&5 |
| 13082 | ac_status=$? |
| 13083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13084 | (exit $ac_status); }; }; then |
| 13085 | |
| 13086 | cat >>confdefs.h <<\_ACEOF |
| 13087 | #define HAVE_INET_ATON 1 |
| 13088 | _ACEOF |
| 13089 | |
| 13090 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13091 | echo "${ECHO_T}yes" >&6 |
| 13092 | else |
| 13093 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13094 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13095 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13096 | echo "$as_me:$LINENO: result: no" >&5 |
| 13097 | echo "${ECHO_T}no" >&6 |
| 13098 | |
| 13099 | fi |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13100 | 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] | 13101 | |
| 13102 | echo "$as_me:$LINENO: checking for inet_pton" >&5 |
| 13103 | echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6 |
| 13104 | cat >conftest.$ac_ext <<_ACEOF |
| 13105 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13106 | /* confdefs.h. */ |
| 13107 | _ACEOF |
| 13108 | cat confdefs.h >>conftest.$ac_ext |
| 13109 | cat >>conftest.$ac_ext <<_ACEOF |
| 13110 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13111 | |
| 13112 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 13113 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13114 | #include <sys/socket.h> |
| 13115 | #include <netinet/in.h> |
| 13116 | #include <arpa/inet.h> |
| 13117 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13118 | int |
| 13119 | main () |
| 13120 | { |
| 13121 | void* p = inet_pton |
| 13122 | ; |
| 13123 | return 0; |
| 13124 | } |
| 13125 | _ACEOF |
| 13126 | rm -f conftest.$ac_objext |
| 13127 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13128 | (eval $ac_compile) 2>&5 |
| 13129 | ac_status=$? |
| 13130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13131 | (exit $ac_status); } && |
| 13132 | { ac_try='test -s conftest.$ac_objext' |
| 13133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13134 | (eval $ac_try) 2>&5 |
| 13135 | ac_status=$? |
| 13136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13137 | (exit $ac_status); }; }; then |
| 13138 | |
| 13139 | cat >>confdefs.h <<\_ACEOF |
| 13140 | #define HAVE_INET_PTON 1 |
| 13141 | _ACEOF |
| 13142 | |
| 13143 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13144 | echo "${ECHO_T}yes" >&6 |
| 13145 | else |
| 13146 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13147 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13148 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13149 | echo "$as_me:$LINENO: result: no" >&5 |
| 13150 | echo "${ECHO_T}no" >&6 |
| 13151 | |
| 13152 | fi |
| 13153 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13154 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 13155 | # 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] | 13156 | echo "$as_me:$LINENO: checking for setgroups" >&5 |
| 13157 | echo $ECHO_N "checking for setgroups... $ECHO_C" >&6 |
| 13158 | cat >conftest.$ac_ext <<_ACEOF |
| 13159 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13160 | /* confdefs.h. */ |
| 13161 | _ACEOF |
| 13162 | cat confdefs.h >>conftest.$ac_ext |
| 13163 | cat >>conftest.$ac_ext <<_ACEOF |
| 13164 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13165 | |
| 13166 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 13167 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 13168 | #ifdef HAVE_GRP_H |
| 13169 | #include <grp.h> |
| 13170 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13171 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13172 | int |
| 13173 | main () |
| 13174 | { |
| 13175 | void* p = setgroups |
| 13176 | ; |
| 13177 | return 0; |
| 13178 | } |
| 13179 | _ACEOF |
| 13180 | rm -f conftest.$ac_objext |
| 13181 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13182 | (eval $ac_compile) 2>&5 |
| 13183 | ac_status=$? |
| 13184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13185 | (exit $ac_status); } && |
| 13186 | { ac_try='test -s conftest.$ac_objext' |
| 13187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13188 | (eval $ac_try) 2>&5 |
| 13189 | ac_status=$? |
| 13190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13191 | (exit $ac_status); }; }; then |
| 13192 | |
| 13193 | cat >>confdefs.h <<\_ACEOF |
| 13194 | #define HAVE_SETGROUPS 1 |
| 13195 | _ACEOF |
| 13196 | |
| 13197 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13198 | echo "${ECHO_T}yes" >&6 |
| 13199 | else |
| 13200 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13201 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13202 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13203 | echo "$as_me:$LINENO: result: no" >&5 |
| 13204 | echo "${ECHO_T}no" >&6 |
| 13205 | |
| 13206 | fi |
| 13207 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13208 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13209 | # check for openpty and forkpty |
| 13210 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13211 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13212 | for ac_func in openpty |
| 13213 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13214 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13215 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13216 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13217 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13219 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13220 | cat >conftest.$ac_ext <<_ACEOF |
| 13221 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13222 | /* confdefs.h. */ |
| 13223 | _ACEOF |
| 13224 | cat confdefs.h >>conftest.$ac_ext |
| 13225 | cat >>conftest.$ac_ext <<_ACEOF |
| 13226 | /* end confdefs.h. */ |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13227 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13228 | which can conflict with char $ac_func (); below. |
| 13229 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 13230 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 13231 | including <limits.h> includes <sys/time.h> and causes problems |
| 13232 | checking for functions defined therein. */ |
| 13233 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13234 | # include <limits.h> |
| 13235 | #else |
| 13236 | # include <assert.h> |
| 13237 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13238 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13239 | #ifdef __cplusplus |
| 13240 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13241 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13242 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13243 | /* 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] | 13244 | builtin and then its argument prototype would still apply. */ |
| 13245 | char $ac_func (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13246 | /* The GNU C library defines this for functions which it implements |
| 13247 | to always fail with ENOSYS. Some functions are actually named |
| 13248 | something starting with __ and the normal name is an alias. */ |
| 13249 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13250 | choke me |
| 13251 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13252 | char (*f) () = $ac_func; |
| 13253 | #endif |
| 13254 | #ifdef __cplusplus |
| 13255 | } |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13256 | #endif |
| 13257 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13258 | int |
| 13259 | main () |
| 13260 | { |
| 13261 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13262 | ; |
| 13263 | return 0; |
| 13264 | } |
| 13265 | _ACEOF |
| 13266 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13267 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13268 | (eval $ac_link) 2>&5 |
| 13269 | ac_status=$? |
| 13270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13271 | (exit $ac_status); } && |
| 13272 | { ac_try='test -s conftest$ac_exeext' |
| 13273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13274 | (eval $ac_try) 2>&5 |
| 13275 | ac_status=$? |
| 13276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13277 | (exit $ac_status); }; }; then |
| 13278 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13279 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13280 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13281 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13282 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13283 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13284 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13285 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13286 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13287 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13288 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13289 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13290 | cat >>confdefs.h <<_ACEOF |
| 13291 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13292 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13293 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13294 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13295 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 13296 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
| 13297 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
| 13298 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13299 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13300 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13301 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13302 | cat >conftest.$ac_ext <<_ACEOF |
| 13303 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13304 | /* confdefs.h. */ |
| 13305 | _ACEOF |
| 13306 | cat confdefs.h >>conftest.$ac_ext |
| 13307 | cat >>conftest.$ac_ext <<_ACEOF |
| 13308 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13309 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13310 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13311 | #ifdef __cplusplus |
| 13312 | extern "C" |
| 13313 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13314 | /* 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] | 13315 | builtin and then its argument prototype would still apply. */ |
| 13316 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13317 | int |
| 13318 | main () |
| 13319 | { |
| 13320 | openpty (); |
| 13321 | ; |
| 13322 | return 0; |
| 13323 | } |
| 13324 | _ACEOF |
| 13325 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13326 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13327 | (eval $ac_link) 2>&5 |
| 13328 | ac_status=$? |
| 13329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13330 | (exit $ac_status); } && |
| 13331 | { ac_try='test -s conftest$ac_exeext' |
| 13332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13333 | (eval $ac_try) 2>&5 |
| 13334 | ac_status=$? |
| 13335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13336 | (exit $ac_status); }; }; then |
| 13337 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13338 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13339 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13340 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13341 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13342 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13343 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13344 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 13345 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13346 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13347 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 13348 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
| 13349 | if test $ac_cv_lib_util_openpty = yes; then |
| 13350 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13351 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13352 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13353 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13354 | fi |
| 13355 | |
| 13356 | fi |
| 13357 | done |
| 13358 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13359 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13360 | for ac_func in forkpty |
| 13361 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13362 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13363 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13364 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13365 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13366 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13367 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13368 | cat >conftest.$ac_ext <<_ACEOF |
| 13369 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13370 | /* confdefs.h. */ |
| 13371 | _ACEOF |
| 13372 | cat confdefs.h >>conftest.$ac_ext |
| 13373 | cat >>conftest.$ac_ext <<_ACEOF |
| 13374 | /* end confdefs.h. */ |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13375 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13376 | which can conflict with char $ac_func (); below. |
| 13377 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 13378 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 13379 | including <limits.h> includes <sys/time.h> and causes problems |
| 13380 | checking for functions defined therein. */ |
| 13381 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13382 | # include <limits.h> |
| 13383 | #else |
| 13384 | # include <assert.h> |
| 13385 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13386 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13387 | #ifdef __cplusplus |
| 13388 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13389 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13390 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13391 | /* 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] | 13392 | builtin and then its argument prototype would still apply. */ |
| 13393 | char $ac_func (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13394 | /* The GNU C library defines this for functions which it implements |
| 13395 | to always fail with ENOSYS. Some functions are actually named |
| 13396 | something starting with __ and the normal name is an alias. */ |
| 13397 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13398 | choke me |
| 13399 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13400 | char (*f) () = $ac_func; |
| 13401 | #endif |
| 13402 | #ifdef __cplusplus |
| 13403 | } |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13404 | #endif |
| 13405 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13406 | int |
| 13407 | main () |
| 13408 | { |
| 13409 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13410 | ; |
| 13411 | return 0; |
| 13412 | } |
| 13413 | _ACEOF |
| 13414 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13415 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13416 | (eval $ac_link) 2>&5 |
| 13417 | ac_status=$? |
| 13418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13419 | (exit $ac_status); } && |
| 13420 | { ac_try='test -s conftest$ac_exeext' |
| 13421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13422 | (eval $ac_try) 2>&5 |
| 13423 | ac_status=$? |
| 13424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13425 | (exit $ac_status); }; }; then |
| 13426 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13427 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13428 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13429 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13430 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13431 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13432 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13433 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13434 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13435 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13436 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13437 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13438 | cat >>confdefs.h <<_ACEOF |
| 13439 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13440 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13441 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13442 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13443 | echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 13444 | echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6 |
| 13445 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
| 13446 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13447 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13448 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13449 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13450 | cat >conftest.$ac_ext <<_ACEOF |
| 13451 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13452 | /* confdefs.h. */ |
| 13453 | _ACEOF |
| 13454 | cat confdefs.h >>conftest.$ac_ext |
| 13455 | cat >>conftest.$ac_ext <<_ACEOF |
| 13456 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13457 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13458 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13459 | #ifdef __cplusplus |
| 13460 | extern "C" |
| 13461 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13462 | /* 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] | 13463 | builtin and then its argument prototype would still apply. */ |
| 13464 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13465 | int |
| 13466 | main () |
| 13467 | { |
| 13468 | forkpty (); |
| 13469 | ; |
| 13470 | return 0; |
| 13471 | } |
| 13472 | _ACEOF |
| 13473 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13474 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13475 | (eval $ac_link) 2>&5 |
| 13476 | ac_status=$? |
| 13477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13478 | (exit $ac_status); } && |
| 13479 | { ac_try='test -s conftest$ac_exeext' |
| 13480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13481 | (eval $ac_try) 2>&5 |
| 13482 | ac_status=$? |
| 13483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13484 | (exit $ac_status); }; }; then |
| 13485 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13486 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13487 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13488 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13489 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13490 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13491 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13492 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 13493 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13494 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13495 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 13496 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6 |
| 13497 | if test $ac_cv_lib_util_forkpty = yes; then |
| 13498 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13499 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13500 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13501 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13502 | fi |
| 13503 | |
| 13504 | fi |
| 13505 | done |
| 13506 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13507 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13508 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13509 | |
| 13510 | |
| 13511 | |
| 13512 | |
| 13513 | |
| 13514 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13515 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 13516 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13517 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13518 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13519 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13520 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13522 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13523 | cat >conftest.$ac_ext <<_ACEOF |
| 13524 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13525 | /* confdefs.h. */ |
| 13526 | _ACEOF |
| 13527 | cat confdefs.h >>conftest.$ac_ext |
| 13528 | cat >>conftest.$ac_ext <<_ACEOF |
| 13529 | /* end confdefs.h. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13530 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13531 | which can conflict with char $ac_func (); below. |
| 13532 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 13533 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 13534 | including <limits.h> includes <sys/time.h> and causes problems |
| 13535 | checking for functions defined therein. */ |
| 13536 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13537 | # include <limits.h> |
| 13538 | #else |
| 13539 | # include <assert.h> |
| 13540 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13541 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13542 | #ifdef __cplusplus |
| 13543 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13544 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13545 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13546 | /* 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] | 13547 | builtin and then its argument prototype would still apply. */ |
| 13548 | char $ac_func (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13549 | /* The GNU C library defines this for functions which it implements |
| 13550 | to always fail with ENOSYS. Some functions are actually named |
| 13551 | something starting with __ and the normal name is an alias. */ |
| 13552 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13553 | choke me |
| 13554 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13555 | char (*f) () = $ac_func; |
| 13556 | #endif |
| 13557 | #ifdef __cplusplus |
| 13558 | } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13559 | #endif |
| 13560 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13561 | int |
| 13562 | main () |
| 13563 | { |
| 13564 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13565 | ; |
| 13566 | return 0; |
| 13567 | } |
| 13568 | _ACEOF |
| 13569 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13570 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13571 | (eval $ac_link) 2>&5 |
| 13572 | ac_status=$? |
| 13573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13574 | (exit $ac_status); } && |
| 13575 | { ac_try='test -s conftest$ac_exeext' |
| 13576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13577 | (eval $ac_try) 2>&5 |
| 13578 | ac_status=$? |
| 13579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13580 | (exit $ac_status); }; }; then |
| 13581 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13582 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13583 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13584 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13585 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13586 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13587 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13588 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13589 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13590 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13591 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13592 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13593 | cat >>confdefs.h <<_ACEOF |
| 13594 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13595 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13596 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13597 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13598 | done |
| 13599 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13600 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13601 | |
| 13602 | |
| 13603 | |
| 13604 | |
| 13605 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13606 | for ac_func in dup2 getcwd strdup strerror memmove |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13607 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13608 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13609 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13610 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13611 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13613 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13614 | cat >conftest.$ac_ext <<_ACEOF |
| 13615 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13616 | /* confdefs.h. */ |
| 13617 | _ACEOF |
| 13618 | cat confdefs.h >>conftest.$ac_ext |
| 13619 | cat >>conftest.$ac_ext <<_ACEOF |
| 13620 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13621 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13622 | which can conflict with char $ac_func (); below. |
| 13623 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 13624 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 13625 | including <limits.h> includes <sys/time.h> and causes problems |
| 13626 | checking for functions defined therein. */ |
| 13627 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13628 | # include <limits.h> |
| 13629 | #else |
| 13630 | # include <assert.h> |
| 13631 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13632 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13633 | #ifdef __cplusplus |
| 13634 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13635 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13636 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13637 | /* 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] | 13638 | builtin and then its argument prototype would still apply. */ |
| 13639 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13640 | /* The GNU C library defines this for functions which it implements |
| 13641 | to always fail with ENOSYS. Some functions are actually named |
| 13642 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13643 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13644 | choke me |
| 13645 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13646 | char (*f) () = $ac_func; |
| 13647 | #endif |
| 13648 | #ifdef __cplusplus |
| 13649 | } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13650 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13651 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13652 | int |
| 13653 | main () |
| 13654 | { |
| 13655 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13656 | ; |
| 13657 | return 0; |
| 13658 | } |
| 13659 | _ACEOF |
| 13660 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13661 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13662 | (eval $ac_link) 2>&5 |
| 13663 | ac_status=$? |
| 13664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13665 | (exit $ac_status); } && |
| 13666 | { ac_try='test -s conftest$ac_exeext' |
| 13667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13668 | (eval $ac_try) 2>&5 |
| 13669 | ac_status=$? |
| 13670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13671 | (exit $ac_status); }; }; then |
| 13672 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13673 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13674 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13675 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13676 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13677 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13678 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13679 | 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] | 13680 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13681 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13682 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13683 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13684 | cat >>confdefs.h <<_ACEOF |
| 13685 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13686 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13687 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13688 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13689 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13690 | fi |
| 13691 | done |
| 13692 | |
| 13693 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13694 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13695 | for ac_func in getpgrp |
| 13696 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13697 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13698 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13699 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13700 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13702 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13703 | cat >conftest.$ac_ext <<_ACEOF |
| 13704 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13705 | /* confdefs.h. */ |
| 13706 | _ACEOF |
| 13707 | cat confdefs.h >>conftest.$ac_ext |
| 13708 | cat >>conftest.$ac_ext <<_ACEOF |
| 13709 | /* end confdefs.h. */ |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13710 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13711 | which can conflict with char $ac_func (); below. |
| 13712 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 13713 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 13714 | including <limits.h> includes <sys/time.h> and causes problems |
| 13715 | checking for functions defined therein. */ |
| 13716 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13717 | # include <limits.h> |
| 13718 | #else |
| 13719 | # include <assert.h> |
| 13720 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13721 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13722 | #ifdef __cplusplus |
| 13723 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13724 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13725 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13726 | /* 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] | 13727 | builtin and then its argument prototype would still apply. */ |
| 13728 | char $ac_func (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13729 | /* The GNU C library defines this for functions which it implements |
| 13730 | to always fail with ENOSYS. Some functions are actually named |
| 13731 | something starting with __ and the normal name is an alias. */ |
| 13732 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13733 | choke me |
| 13734 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13735 | char (*f) () = $ac_func; |
| 13736 | #endif |
| 13737 | #ifdef __cplusplus |
| 13738 | } |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13739 | #endif |
| 13740 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13741 | int |
| 13742 | main () |
| 13743 | { |
| 13744 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13745 | ; |
| 13746 | return 0; |
| 13747 | } |
| 13748 | _ACEOF |
| 13749 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13750 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13751 | (eval $ac_link) 2>&5 |
| 13752 | ac_status=$? |
| 13753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13754 | (exit $ac_status); } && |
| 13755 | { ac_try='test -s conftest$ac_exeext' |
| 13756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13757 | (eval $ac_try) 2>&5 |
| 13758 | ac_status=$? |
| 13759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13760 | (exit $ac_status); }; }; then |
| 13761 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13762 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13763 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13764 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13765 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13766 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13767 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13768 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13769 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13770 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13771 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13772 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13773 | cat >>confdefs.h <<_ACEOF |
| 13774 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13775 | _ACEOF |
| 13776 | cat >conftest.$ac_ext <<_ACEOF |
| 13777 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13778 | /* confdefs.h. */ |
| 13779 | _ACEOF |
| 13780 | cat confdefs.h >>conftest.$ac_ext |
| 13781 | cat >>conftest.$ac_ext <<_ACEOF |
| 13782 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13783 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13784 | int |
| 13785 | main () |
| 13786 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13787 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13788 | ; |
| 13789 | return 0; |
| 13790 | } |
| 13791 | _ACEOF |
| 13792 | rm -f conftest.$ac_objext |
| 13793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13794 | (eval $ac_compile) 2>&5 |
| 13795 | ac_status=$? |
| 13796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13797 | (exit $ac_status); } && |
| 13798 | { ac_try='test -s conftest.$ac_objext' |
| 13799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13800 | (eval $ac_try) 2>&5 |
| 13801 | ac_status=$? |
| 13802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13803 | (exit $ac_status); }; }; then |
| 13804 | |
| 13805 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13806 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13807 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13808 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13809 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13810 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13811 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13812 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13813 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13814 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13815 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13816 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13817 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13818 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13819 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13820 | |
| 13821 | for ac_func in setpgrp |
| 13822 | do |
| 13823 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13824 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13825 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13826 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13828 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13829 | cat >conftest.$ac_ext <<_ACEOF |
| 13830 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13831 | /* confdefs.h. */ |
| 13832 | _ACEOF |
| 13833 | cat confdefs.h >>conftest.$ac_ext |
| 13834 | cat >>conftest.$ac_ext <<_ACEOF |
| 13835 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13836 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13837 | which can conflict with char $ac_func (); below. |
| 13838 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 13839 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 13840 | including <limits.h> includes <sys/time.h> and causes problems |
| 13841 | checking for functions defined therein. */ |
| 13842 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13843 | # include <limits.h> |
| 13844 | #else |
| 13845 | # include <assert.h> |
| 13846 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13847 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 13848 | #ifdef __cplusplus |
| 13849 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13850 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13851 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13852 | /* We use char because int might match the return type of a gcc2 |
| 13853 | builtin and then its argument prototype would still apply. */ |
| 13854 | char $ac_func (); |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13855 | /* The GNU C library defines this for functions which it implements |
| 13856 | to always fail with ENOSYS. Some functions are actually named |
| 13857 | something starting with __ and the normal name is an alias. */ |
| 13858 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13859 | choke me |
| 13860 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13861 | char (*f) () = $ac_func; |
| 13862 | #endif |
| 13863 | #ifdef __cplusplus |
| 13864 | } |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13865 | #endif |
| 13866 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13867 | int |
| 13868 | main () |
| 13869 | { |
| 13870 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13871 | ; |
| 13872 | return 0; |
| 13873 | } |
| 13874 | _ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13875 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13876 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13877 | (eval $ac_link) 2>&5 |
| 13878 | ac_status=$? |
| 13879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13880 | (exit $ac_status); } && |
| 13881 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13883 | (eval $ac_try) 2>&5 |
| 13884 | ac_status=$? |
| 13885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13886 | (exit $ac_status); }; }; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13887 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13888 | else |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13889 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13890 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13891 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13892 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13893 | fi |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13894 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13895 | fi |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13896 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13897 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13898 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13899 | cat >>confdefs.h <<_ACEOF |
| 13900 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13901 | _ACEOF |
| 13902 | cat >conftest.$ac_ext <<_ACEOF |
| 13903 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13904 | /* confdefs.h. */ |
| 13905 | _ACEOF |
| 13906 | cat confdefs.h >>conftest.$ac_ext |
| 13907 | cat >>conftest.$ac_ext <<_ACEOF |
| 13908 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13909 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13910 | int |
| 13911 | main () |
| 13912 | { |
| 13913 | setpgrp(0,0); |
| 13914 | ; |
| 13915 | return 0; |
| 13916 | } |
| 13917 | _ACEOF |
| 13918 | rm -f conftest.$ac_objext |
| 13919 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13920 | (eval $ac_compile) 2>&5 |
| 13921 | ac_status=$? |
| 13922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13923 | (exit $ac_status); } && |
| 13924 | { ac_try='test -s conftest.$ac_objext' |
| 13925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13926 | (eval $ac_try) 2>&5 |
| 13927 | ac_status=$? |
| 13928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13929 | (exit $ac_status); }; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13930 | |
| 13931 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13932 | #define SETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13933 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 13934 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13935 | |
| 13936 | else |
| 13937 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13938 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13939 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 13940 | fi |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13941 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13942 | |
| 13943 | fi |
| 13944 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 13945 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13946 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13947 | for ac_func in gettimeofday |
| 13948 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13949 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13950 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13951 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13952 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13953 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13954 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13955 | cat >conftest.$ac_ext <<_ACEOF |
| 13956 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13957 | /* confdefs.h. */ |
| 13958 | _ACEOF |
| 13959 | cat confdefs.h >>conftest.$ac_ext |
| 13960 | cat >>conftest.$ac_ext <<_ACEOF |
| 13961 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13962 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13963 | which can conflict with char $ac_func (); below. |
| 13964 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 13965 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 13966 | including <limits.h> includes <sys/time.h> and causes problems |
| 13967 | checking for functions defined therein. */ |
| 13968 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13969 | # include <limits.h> |
| 13970 | #else |
| 13971 | # include <assert.h> |
| 13972 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13973 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13974 | #ifdef __cplusplus |
| 13975 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13976 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13977 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13978 | /* 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] | 13979 | builtin and then its argument prototype would still apply. */ |
| 13980 | char $ac_func (); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13981 | /* The GNU C library defines this for functions which it implements |
| 13982 | to always fail with ENOSYS. Some functions are actually named |
| 13983 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13984 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13985 | choke me |
| 13986 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13987 | char (*f) () = $ac_func; |
| 13988 | #endif |
| 13989 | #ifdef __cplusplus |
| 13990 | } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13991 | #endif |
| 13992 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13993 | int |
| 13994 | main () |
| 13995 | { |
| 13996 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13997 | ; |
| 13998 | return 0; |
| 13999 | } |
| 14000 | _ACEOF |
| 14001 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14002 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14003 | (eval $ac_link) 2>&5 |
| 14004 | ac_status=$? |
| 14005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14006 | (exit $ac_status); } && |
| 14007 | { ac_try='test -s conftest$ac_exeext' |
| 14008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14009 | (eval $ac_try) 2>&5 |
| 14010 | ac_status=$? |
| 14011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14012 | (exit $ac_status); }; }; then |
| 14013 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14014 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14015 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14016 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14017 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14018 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14019 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14020 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14021 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14022 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14023 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14024 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14025 | cat >>confdefs.h <<_ACEOF |
| 14026 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14027 | _ACEOF |
| 14028 | cat >conftest.$ac_ext <<_ACEOF |
| 14029 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14030 | /* confdefs.h. */ |
| 14031 | _ACEOF |
| 14032 | cat confdefs.h >>conftest.$ac_ext |
| 14033 | cat >>conftest.$ac_ext <<_ACEOF |
| 14034 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14035 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14036 | int |
| 14037 | main () |
| 14038 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14039 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14040 | ; |
| 14041 | return 0; |
| 14042 | } |
| 14043 | _ACEOF |
| 14044 | rm -f conftest.$ac_objext |
| 14045 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14046 | (eval $ac_compile) 2>&5 |
| 14047 | ac_status=$? |
| 14048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14049 | (exit $ac_status); } && |
| 14050 | { ac_try='test -s conftest.$ac_objext' |
| 14051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14052 | (eval $ac_try) 2>&5 |
| 14053 | ac_status=$? |
| 14054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14055 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14056 | : |
| 14057 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14058 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14059 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14060 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14061 | |
| 14062 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14063 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14064 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14065 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14066 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14067 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14068 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14069 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14070 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14071 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14072 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14073 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14074 | echo "$as_me:$LINENO: checking for major" >&5 |
| 14075 | echo $ECHO_N "checking for major... $ECHO_C" >&6 |
| 14076 | cat >conftest.$ac_ext <<_ACEOF |
| 14077 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14078 | /* confdefs.h. */ |
| 14079 | _ACEOF |
| 14080 | cat confdefs.h >>conftest.$ac_ext |
| 14081 | cat >>conftest.$ac_ext <<_ACEOF |
| 14082 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14083 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 14084 | #if defined(MAJOR_IN_MKDEV) |
| 14085 | #include <sys/mkdev.h> |
| 14086 | #elif defined(MAJOR_IN_SYSMACROS) |
| 14087 | #include <sys/sysmacros.h> |
| 14088 | #else |
| 14089 | #include <sys/types.h> |
| 14090 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14091 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14092 | int |
| 14093 | main () |
| 14094 | { |
| 14095 | |
| 14096 | makedev(major(0),minor(0)); |
| 14097 | |
| 14098 | ; |
| 14099 | return 0; |
| 14100 | } |
| 14101 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 14102 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14103 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14104 | (eval $ac_link) 2>&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14105 | ac_status=$? |
| 14106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14107 | (exit $ac_status); } && |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 14108 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14110 | (eval $ac_try) 2>&5 |
| 14111 | ac_status=$? |
| 14112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14113 | (exit $ac_status); }; }; then |
| 14114 | |
| 14115 | |
| 14116 | cat >>confdefs.h <<\_ACEOF |
| 14117 | #define HAVE_DEVICE_MACROS 1 |
| 14118 | _ACEOF |
| 14119 | |
| 14120 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14121 | echo "${ECHO_T}yes" >&6 |
| 14122 | |
| 14123 | else |
| 14124 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14125 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14126 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14127 | |
| 14128 | echo "$as_me:$LINENO: result: no" >&5 |
| 14129 | echo "${ECHO_T}no" >&6 |
| 14130 | |
| 14131 | fi |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 14132 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14133 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 14134 | # 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] | 14135 | # for [no]getaddrinfo in netdb.h. |
| 14136 | echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 14137 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6 |
| 14138 | cat >conftest.$ac_ext <<_ACEOF |
| 14139 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14140 | /* confdefs.h. */ |
| 14141 | _ACEOF |
| 14142 | cat confdefs.h >>conftest.$ac_ext |
| 14143 | cat >>conftest.$ac_ext <<_ACEOF |
| 14144 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 14145 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 14146 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 14147 | #include <sys/socket.h> |
| 14148 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 14149 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14150 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14151 | int |
| 14152 | main () |
| 14153 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14154 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 14155 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14156 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14157 | ; |
| 14158 | return 0; |
| 14159 | } |
| 14160 | _ACEOF |
| 14161 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14162 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14163 | (eval $ac_link) 2>&5 |
| 14164 | ac_status=$? |
| 14165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14166 | (exit $ac_status); } && |
| 14167 | { ac_try='test -s conftest$ac_exeext' |
| 14168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14169 | (eval $ac_try) 2>&5 |
| 14170 | ac_status=$? |
| 14171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14172 | (exit $ac_status); }; }; then |
| 14173 | |
| 14174 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14175 | echo "${ECHO_T}yes" >&6 |
| 14176 | echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| 14177 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14178 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14179 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 14180 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14181 | buggygetaddrinfo=yes |
| 14182 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14183 | cat >conftest.$ac_ext <<_ACEOF |
| 14184 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14185 | /* confdefs.h. */ |
| 14186 | _ACEOF |
| 14187 | cat confdefs.h >>conftest.$ac_ext |
| 14188 | cat >>conftest.$ac_ext <<_ACEOF |
| 14189 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14190 | |
| 14191 | #include <sys/types.h> |
| 14192 | #include <netdb.h> |
| 14193 | #include <string.h> |
| 14194 | #include <sys/socket.h> |
| 14195 | #include <netinet/in.h> |
| 14196 | |
| 14197 | main() |
| 14198 | { |
| 14199 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 14200 | struct addrinfo hints, *ai, *aitop; |
| 14201 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 14202 | |
| 14203 | for (passive = 0; passive <= 1; passive++) { |
| 14204 | memset(&hints, 0, sizeof(hints)); |
| 14205 | hints.ai_family = AF_UNSPEC; |
| 14206 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 14207 | hints.ai_socktype = SOCK_STREAM; |
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 14208 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14209 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 14210 | (void)gai_strerror(gaierr); |
| 14211 | goto bad; |
| 14212 | } |
| 14213 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 14214 | if (ai->ai_addr == NULL || |
| 14215 | ai->ai_addrlen == 0 || |
| 14216 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 14217 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 14218 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 14219 | goto bad; |
| 14220 | } |
| 14221 | switch (ai->ai_family) { |
| 14222 | case AF_INET: |
| 14223 | if (strcmp(strport, "54321") != 0) { |
| 14224 | goto bad; |
| 14225 | } |
| 14226 | if (passive) { |
| 14227 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 14228 | goto bad; |
| 14229 | } |
| 14230 | } else { |
| 14231 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 14232 | goto bad; |
| 14233 | } |
| 14234 | } |
| 14235 | inet4++; |
| 14236 | break; |
| 14237 | case AF_INET6: |
| 14238 | if (strcmp(strport, "54321") != 0) { |
| 14239 | goto bad; |
| 14240 | } |
| 14241 | if (passive) { |
| 14242 | if (strcmp(straddr, "::") != 0) { |
| 14243 | goto bad; |
| 14244 | } |
| 14245 | } else { |
| 14246 | if (strcmp(straddr, "::1") != 0) { |
| 14247 | goto bad; |
| 14248 | } |
| 14249 | } |
| 14250 | inet6++; |
| 14251 | break; |
| 14252 | case AF_UNSPEC: |
| 14253 | goto bad; |
| 14254 | break; |
| 14255 | default: |
| 14256 | /* another family support? */ |
| 14257 | break; |
| 14258 | } |
| 14259 | } |
| 14260 | } |
| 14261 | |
| 14262 | if (!(inet4 == 0 || inet4 == 2)) |
| 14263 | goto bad; |
| 14264 | if (!(inet6 == 0 || inet6 == 2)) |
| 14265 | goto bad; |
| 14266 | |
| 14267 | if (aitop) |
| 14268 | freeaddrinfo(aitop); |
| 14269 | exit(0); |
| 14270 | |
| 14271 | bad: |
| 14272 | if (aitop) |
| 14273 | freeaddrinfo(aitop); |
| 14274 | exit(1); |
| 14275 | } |
| 14276 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14277 | _ACEOF |
| 14278 | rm -f conftest$ac_exeext |
| 14279 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14280 | (eval $ac_link) 2>&5 |
| 14281 | ac_status=$? |
| 14282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14283 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 14284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14285 | (eval $ac_try) 2>&5 |
| 14286 | ac_status=$? |
| 14287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14288 | (exit $ac_status); }; }; then |
| 14289 | echo "$as_me:$LINENO: result: good" >&5 |
| 14290 | echo "${ECHO_T}good" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14291 | buggygetaddrinfo=no |
| 14292 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14293 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14294 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14295 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14296 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14297 | ( exit $ac_status ) |
| 14298 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 14299 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14300 | buggygetaddrinfo=yes |
| 14301 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14302 | 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] | 14303 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14304 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14305 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14306 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14307 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14308 | |
| 14309 | echo "$as_me:$LINENO: result: no" >&5 |
| 14310 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14311 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14312 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 14313 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14314 | 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] | 14315 | |
| 14316 | if test "$buggygetaddrinfo" = "yes"; then |
| 14317 | if test "$ipv6" = "yes"; then |
| 14318 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 14319 | echo ' or you can specify "--disable-ipv6"'. |
| 14320 | exit 1 |
| 14321 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 14322 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14323 | |
| 14324 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 14325 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14326 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 14327 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14328 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14329 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 14330 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14331 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14332 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14333 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14334 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14335 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14336 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14337 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14338 | cat >conftest.$ac_ext <<_ACEOF |
| 14339 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14340 | /* confdefs.h. */ |
| 14341 | _ACEOF |
| 14342 | cat confdefs.h >>conftest.$ac_ext |
| 14343 | cat >>conftest.$ac_ext <<_ACEOF |
| 14344 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14345 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14346 | which can conflict with char $ac_func (); below. |
| 14347 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14348 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14349 | including <limits.h> includes <sys/time.h> and causes problems |
| 14350 | checking for functions defined therein. */ |
| 14351 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14352 | # include <limits.h> |
| 14353 | #else |
| 14354 | # include <assert.h> |
| 14355 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14356 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14357 | #ifdef __cplusplus |
| 14358 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14359 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14360 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14361 | /* 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] | 14362 | builtin and then its argument prototype would still apply. */ |
| 14363 | char $ac_func (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14364 | /* The GNU C library defines this for functions which it implements |
| 14365 | to always fail with ENOSYS. Some functions are actually named |
| 14366 | something starting with __ and the normal name is an alias. */ |
| 14367 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14368 | choke me |
| 14369 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14370 | char (*f) () = $ac_func; |
| 14371 | #endif |
| 14372 | #ifdef __cplusplus |
| 14373 | } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14374 | #endif |
| 14375 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14376 | int |
| 14377 | main () |
| 14378 | { |
| 14379 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14380 | ; |
| 14381 | return 0; |
| 14382 | } |
| 14383 | _ACEOF |
| 14384 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14385 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14386 | (eval $ac_link) 2>&5 |
| 14387 | ac_status=$? |
| 14388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14389 | (exit $ac_status); } && |
| 14390 | { ac_try='test -s conftest$ac_exeext' |
| 14391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14392 | (eval $ac_try) 2>&5 |
| 14393 | ac_status=$? |
| 14394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14395 | (exit $ac_status); }; }; then |
| 14396 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14397 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14398 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14399 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14400 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14401 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14402 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14403 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14404 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14405 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14406 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14407 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14408 | cat >>confdefs.h <<_ACEOF |
| 14409 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14410 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14411 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14412 | fi |
| 14413 | done |
| 14414 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14415 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14416 | # checks for structures |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14417 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 14418 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 14419 | if test "${ac_cv_header_time+set}" = set; then |
| 14420 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14421 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14422 | cat >conftest.$ac_ext <<_ACEOF |
| 14423 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14424 | /* confdefs.h. */ |
| 14425 | _ACEOF |
| 14426 | cat confdefs.h >>conftest.$ac_ext |
| 14427 | cat >>conftest.$ac_ext <<_ACEOF |
| 14428 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14429 | #include <sys/types.h> |
| 14430 | #include <sys/time.h> |
| 14431 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14432 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14433 | int |
| 14434 | main () |
| 14435 | { |
| 14436 | if ((struct tm *) 0) |
| 14437 | return 0; |
| 14438 | ; |
| 14439 | return 0; |
| 14440 | } |
| 14441 | _ACEOF |
| 14442 | rm -f conftest.$ac_objext |
| 14443 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14444 | (eval $ac_compile) 2>&5 |
| 14445 | ac_status=$? |
| 14446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14447 | (exit $ac_status); } && |
| 14448 | { ac_try='test -s conftest.$ac_objext' |
| 14449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14450 | (eval $ac_try) 2>&5 |
| 14451 | ac_status=$? |
| 14452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14453 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14454 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14455 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14456 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14457 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14458 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14459 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14460 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14461 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14462 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14463 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 14464 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14465 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14466 | |
| 14467 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14468 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14469 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14470 | |
| 14471 | fi |
| 14472 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14473 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 14474 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 14475 | if test "${ac_cv_struct_tm+set}" = set; then |
| 14476 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14477 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14478 | cat >conftest.$ac_ext <<_ACEOF |
| 14479 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14480 | /* confdefs.h. */ |
| 14481 | _ACEOF |
| 14482 | cat confdefs.h >>conftest.$ac_ext |
| 14483 | cat >>conftest.$ac_ext <<_ACEOF |
| 14484 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14485 | #include <sys/types.h> |
| 14486 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14487 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14488 | int |
| 14489 | main () |
| 14490 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14491 | struct tm *tp; tp->tm_sec; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14492 | ; |
| 14493 | return 0; |
| 14494 | } |
| 14495 | _ACEOF |
| 14496 | rm -f conftest.$ac_objext |
| 14497 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14498 | (eval $ac_compile) 2>&5 |
| 14499 | ac_status=$? |
| 14500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14501 | (exit $ac_status); } && |
| 14502 | { ac_try='test -s conftest.$ac_objext' |
| 14503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14504 | (eval $ac_try) 2>&5 |
| 14505 | ac_status=$? |
| 14506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14507 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14508 | ac_cv_struct_tm=time.h |
| 14509 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14510 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14511 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14512 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14513 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14514 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14515 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14516 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14517 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 14518 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14519 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14520 | |
| 14521 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14522 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14523 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14524 | |
| 14525 | fi |
| 14526 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14527 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 14528 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 14529 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 14530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14531 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14532 | cat >conftest.$ac_ext <<_ACEOF |
| 14533 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14534 | /* confdefs.h. */ |
| 14535 | _ACEOF |
| 14536 | cat confdefs.h >>conftest.$ac_ext |
| 14537 | cat >>conftest.$ac_ext <<_ACEOF |
| 14538 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14539 | #include <sys/types.h> |
| 14540 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14541 | |
| 14542 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14543 | int |
| 14544 | main () |
| 14545 | { |
| 14546 | static struct tm ac_aggr; |
| 14547 | if (ac_aggr.tm_zone) |
| 14548 | return 0; |
| 14549 | ; |
| 14550 | return 0; |
| 14551 | } |
| 14552 | _ACEOF |
| 14553 | rm -f conftest.$ac_objext |
| 14554 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14555 | (eval $ac_compile) 2>&5 |
| 14556 | ac_status=$? |
| 14557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14558 | (exit $ac_status); } && |
| 14559 | { ac_try='test -s conftest.$ac_objext' |
| 14560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14561 | (eval $ac_try) 2>&5 |
| 14562 | ac_status=$? |
| 14563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14564 | (exit $ac_status); }; }; then |
| 14565 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14566 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14567 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14568 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14569 | |
| 14570 | cat >conftest.$ac_ext <<_ACEOF |
| 14571 | #line $LINENO "configure" |
| 14572 | /* confdefs.h. */ |
| 14573 | _ACEOF |
| 14574 | cat confdefs.h >>conftest.$ac_ext |
| 14575 | cat >>conftest.$ac_ext <<_ACEOF |
| 14576 | /* end confdefs.h. */ |
| 14577 | #include <sys/types.h> |
| 14578 | #include <$ac_cv_struct_tm> |
| 14579 | |
| 14580 | |
| 14581 | int |
| 14582 | main () |
| 14583 | { |
| 14584 | static struct tm ac_aggr; |
| 14585 | if (sizeof ac_aggr.tm_zone) |
| 14586 | return 0; |
| 14587 | ; |
| 14588 | return 0; |
| 14589 | } |
| 14590 | _ACEOF |
| 14591 | rm -f conftest.$ac_objext |
| 14592 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14593 | (eval $ac_compile) 2>&5 |
| 14594 | ac_status=$? |
| 14595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14596 | (exit $ac_status); } && |
| 14597 | { ac_try='test -s conftest.$ac_objext' |
| 14598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14599 | (eval $ac_try) 2>&5 |
| 14600 | ac_status=$? |
| 14601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14602 | (exit $ac_status); }; }; then |
| 14603 | ac_cv_member_struct_tm_tm_zone=yes |
| 14604 | else |
| 14605 | echo "$as_me: failed program was:" >&5 |
| 14606 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14607 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14608 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14609 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14610 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14611 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14612 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14613 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14614 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 14615 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 14616 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 14617 | |
| 14618 | cat >>confdefs.h <<_ACEOF |
| 14619 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 14620 | _ACEOF |
| 14621 | |
| 14622 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14623 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14624 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14625 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 14626 | |
| 14627 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14628 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14629 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14630 | |
| 14631 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14632 | echo "$as_me:$LINENO: checking for tzname" >&5 |
| 14633 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 14634 | if test "${ac_cv_var_tzname+set}" = set; then |
| 14635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14636 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14637 | cat >conftest.$ac_ext <<_ACEOF |
| 14638 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14639 | /* confdefs.h. */ |
| 14640 | _ACEOF |
| 14641 | cat confdefs.h >>conftest.$ac_ext |
| 14642 | cat >>conftest.$ac_ext <<_ACEOF |
| 14643 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14644 | #include <time.h> |
| 14645 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14646 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14647 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14648 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14649 | int |
| 14650 | main () |
| 14651 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14652 | atoi(*tzname); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14653 | ; |
| 14654 | return 0; |
| 14655 | } |
| 14656 | _ACEOF |
| 14657 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14658 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14659 | (eval $ac_link) 2>&5 |
| 14660 | ac_status=$? |
| 14661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14662 | (exit $ac_status); } && |
| 14663 | { ac_try='test -s conftest$ac_exeext' |
| 14664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14665 | (eval $ac_try) 2>&5 |
| 14666 | ac_status=$? |
| 14667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14668 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14669 | ac_cv_var_tzname=yes |
| 14670 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14671 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14672 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14673 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14674 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14675 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14676 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14677 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14678 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 14679 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14680 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14681 | |
| 14682 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14683 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14684 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14685 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14686 | fi |
| 14687 | fi |
| 14688 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14689 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 14690 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 |
| 14691 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
| 14692 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14693 | else |
| 14694 | cat >conftest.$ac_ext <<_ACEOF |
| 14695 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14696 | /* confdefs.h. */ |
| 14697 | _ACEOF |
| 14698 | cat confdefs.h >>conftest.$ac_ext |
| 14699 | cat >>conftest.$ac_ext <<_ACEOF |
| 14700 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14701 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14702 | int |
| 14703 | main () |
| 14704 | { |
| 14705 | static struct stat ac_aggr; |
| 14706 | if (ac_aggr.st_rdev) |
| 14707 | return 0; |
| 14708 | ; |
| 14709 | return 0; |
| 14710 | } |
| 14711 | _ACEOF |
| 14712 | rm -f conftest.$ac_objext |
| 14713 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14714 | (eval $ac_compile) 2>&5 |
| 14715 | ac_status=$? |
| 14716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14717 | (exit $ac_status); } && |
| 14718 | { ac_try='test -s conftest.$ac_objext' |
| 14719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14720 | (eval $ac_try) 2>&5 |
| 14721 | ac_status=$? |
| 14722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14723 | (exit $ac_status); }; }; then |
| 14724 | ac_cv_member_struct_stat_st_rdev=yes |
| 14725 | else |
| 14726 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14727 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14728 | |
| 14729 | cat >conftest.$ac_ext <<_ACEOF |
| 14730 | #line $LINENO "configure" |
| 14731 | /* confdefs.h. */ |
| 14732 | _ACEOF |
| 14733 | cat confdefs.h >>conftest.$ac_ext |
| 14734 | cat >>conftest.$ac_ext <<_ACEOF |
| 14735 | /* end confdefs.h. */ |
| 14736 | $ac_includes_default |
| 14737 | int |
| 14738 | main () |
| 14739 | { |
| 14740 | static struct stat ac_aggr; |
| 14741 | if (sizeof ac_aggr.st_rdev) |
| 14742 | return 0; |
| 14743 | ; |
| 14744 | return 0; |
| 14745 | } |
| 14746 | _ACEOF |
| 14747 | rm -f conftest.$ac_objext |
| 14748 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14749 | (eval $ac_compile) 2>&5 |
| 14750 | ac_status=$? |
| 14751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14752 | (exit $ac_status); } && |
| 14753 | { ac_try='test -s conftest.$ac_objext' |
| 14754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14755 | (eval $ac_try) 2>&5 |
| 14756 | ac_status=$? |
| 14757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14758 | (exit $ac_status); }; }; then |
| 14759 | ac_cv_member_struct_stat_st_rdev=yes |
| 14760 | else |
| 14761 | echo "$as_me: failed program was:" >&5 |
| 14762 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14763 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14764 | ac_cv_member_struct_stat_st_rdev=no |
| 14765 | fi |
| 14766 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14767 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14768 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14769 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14770 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 14771 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 |
| 14772 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
| 14773 | |
| 14774 | cat >>confdefs.h <<_ACEOF |
| 14775 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 14776 | _ACEOF |
| 14777 | |
| 14778 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14779 | fi |
| 14780 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14781 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 14782 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 |
| 14783 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
| 14784 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14785 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14786 | cat >conftest.$ac_ext <<_ACEOF |
| 14787 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14788 | /* confdefs.h. */ |
| 14789 | _ACEOF |
| 14790 | cat confdefs.h >>conftest.$ac_ext |
| 14791 | cat >>conftest.$ac_ext <<_ACEOF |
| 14792 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14793 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14794 | int |
| 14795 | main () |
| 14796 | { |
| 14797 | static struct stat ac_aggr; |
| 14798 | if (ac_aggr.st_blksize) |
| 14799 | return 0; |
| 14800 | ; |
| 14801 | return 0; |
| 14802 | } |
| 14803 | _ACEOF |
| 14804 | rm -f conftest.$ac_objext |
| 14805 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14806 | (eval $ac_compile) 2>&5 |
| 14807 | ac_status=$? |
| 14808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14809 | (exit $ac_status); } && |
| 14810 | { ac_try='test -s conftest.$ac_objext' |
| 14811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14812 | (eval $ac_try) 2>&5 |
| 14813 | ac_status=$? |
| 14814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14815 | (exit $ac_status); }; }; then |
| 14816 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14817 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14818 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14819 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14820 | |
| 14821 | cat >conftest.$ac_ext <<_ACEOF |
| 14822 | #line $LINENO "configure" |
| 14823 | /* confdefs.h. */ |
| 14824 | _ACEOF |
| 14825 | cat confdefs.h >>conftest.$ac_ext |
| 14826 | cat >>conftest.$ac_ext <<_ACEOF |
| 14827 | /* end confdefs.h. */ |
| 14828 | $ac_includes_default |
| 14829 | int |
| 14830 | main () |
| 14831 | { |
| 14832 | static struct stat ac_aggr; |
| 14833 | if (sizeof ac_aggr.st_blksize) |
| 14834 | return 0; |
| 14835 | ; |
| 14836 | return 0; |
| 14837 | } |
| 14838 | _ACEOF |
| 14839 | rm -f conftest.$ac_objext |
| 14840 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14841 | (eval $ac_compile) 2>&5 |
| 14842 | ac_status=$? |
| 14843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14844 | (exit $ac_status); } && |
| 14845 | { ac_try='test -s conftest.$ac_objext' |
| 14846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14847 | (eval $ac_try) 2>&5 |
| 14848 | ac_status=$? |
| 14849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14850 | (exit $ac_status); }; }; then |
| 14851 | ac_cv_member_struct_stat_st_blksize=yes |
| 14852 | else |
| 14853 | echo "$as_me: failed program was:" >&5 |
| 14854 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14855 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14856 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14857 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14858 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14859 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14860 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14861 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14862 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 14863 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 |
| 14864 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14865 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14866 | cat >>confdefs.h <<_ACEOF |
| 14867 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 14868 | _ACEOF |
| 14869 | |
| 14870 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14871 | fi |
| 14872 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14873 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 14874 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 |
| 14875 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 14876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14877 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14878 | cat >conftest.$ac_ext <<_ACEOF |
| 14879 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14880 | /* confdefs.h. */ |
| 14881 | _ACEOF |
| 14882 | cat confdefs.h >>conftest.$ac_ext |
| 14883 | cat >>conftest.$ac_ext <<_ACEOF |
| 14884 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14885 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14886 | int |
| 14887 | main () |
| 14888 | { |
| 14889 | static struct stat ac_aggr; |
| 14890 | if (ac_aggr.st_blocks) |
| 14891 | return 0; |
| 14892 | ; |
| 14893 | return 0; |
| 14894 | } |
| 14895 | _ACEOF |
| 14896 | rm -f conftest.$ac_objext |
| 14897 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14898 | (eval $ac_compile) 2>&5 |
| 14899 | ac_status=$? |
| 14900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14901 | (exit $ac_status); } && |
| 14902 | { ac_try='test -s conftest.$ac_objext' |
| 14903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14904 | (eval $ac_try) 2>&5 |
| 14905 | ac_status=$? |
| 14906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14907 | (exit $ac_status); }; }; then |
| 14908 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14909 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14910 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14911 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14912 | |
| 14913 | cat >conftest.$ac_ext <<_ACEOF |
| 14914 | #line $LINENO "configure" |
| 14915 | /* confdefs.h. */ |
| 14916 | _ACEOF |
| 14917 | cat confdefs.h >>conftest.$ac_ext |
| 14918 | cat >>conftest.$ac_ext <<_ACEOF |
| 14919 | /* end confdefs.h. */ |
| 14920 | $ac_includes_default |
| 14921 | int |
| 14922 | main () |
| 14923 | { |
| 14924 | static struct stat ac_aggr; |
| 14925 | if (sizeof ac_aggr.st_blocks) |
| 14926 | return 0; |
| 14927 | ; |
| 14928 | return 0; |
| 14929 | } |
| 14930 | _ACEOF |
| 14931 | rm -f conftest.$ac_objext |
| 14932 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14933 | (eval $ac_compile) 2>&5 |
| 14934 | ac_status=$? |
| 14935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14936 | (exit $ac_status); } && |
| 14937 | { ac_try='test -s conftest.$ac_objext' |
| 14938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14939 | (eval $ac_try) 2>&5 |
| 14940 | ac_status=$? |
| 14941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14942 | (exit $ac_status); }; }; then |
| 14943 | ac_cv_member_struct_stat_st_blocks=yes |
| 14944 | else |
| 14945 | echo "$as_me: failed program was:" >&5 |
| 14946 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14947 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14948 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14949 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14950 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14951 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14952 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14953 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14954 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 14955 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 |
| 14956 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14957 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14958 | cat >>confdefs.h <<_ACEOF |
| 14959 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 14960 | _ACEOF |
| 14961 | |
| 14962 | |
| 14963 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14964 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14965 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14966 | |
| 14967 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14968 | LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14969 | fi |
| 14970 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14971 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14972 | |
| 14973 | echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 14974 | echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6 |
| 14975 | if test "${ac_cv_header_time_altzone+set}" = set; then |
| 14976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14977 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14978 | cat >conftest.$ac_ext <<_ACEOF |
| 14979 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14980 | /* confdefs.h. */ |
| 14981 | _ACEOF |
| 14982 | cat confdefs.h >>conftest.$ac_ext |
| 14983 | cat >>conftest.$ac_ext <<_ACEOF |
| 14984 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14985 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14986 | int |
| 14987 | main () |
| 14988 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14989 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14990 | ; |
| 14991 | return 0; |
| 14992 | } |
| 14993 | _ACEOF |
| 14994 | rm -f conftest.$ac_objext |
| 14995 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14996 | (eval $ac_compile) 2>&5 |
| 14997 | ac_status=$? |
| 14998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14999 | (exit $ac_status); } && |
| 15000 | { ac_try='test -s conftest.$ac_objext' |
| 15001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15002 | (eval $ac_try) 2>&5 |
| 15003 | ac_status=$? |
| 15004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15005 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15006 | ac_cv_header_time_altzone=yes |
| 15007 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15008 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15009 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15010 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15011 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15012 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15013 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15014 | fi |
| 15015 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15016 | echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 15017 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15018 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15019 | |
| 15020 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15021 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15022 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15023 | |
| 15024 | fi |
| 15025 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15026 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15027 | echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 15028 | echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 15029 | cat >conftest.$ac_ext <<_ACEOF |
| 15030 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15031 | /* confdefs.h. */ |
| 15032 | _ACEOF |
| 15033 | cat confdefs.h >>conftest.$ac_ext |
| 15034 | cat >>conftest.$ac_ext <<_ACEOF |
| 15035 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15036 | |
| 15037 | #include <sys/types.h> |
| 15038 | #include <sys/select.h> |
| 15039 | #include <sys/time.h> |
| 15040 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15041 | int |
| 15042 | main () |
| 15043 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15044 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15045 | ; |
| 15046 | return 0; |
| 15047 | } |
| 15048 | _ACEOF |
| 15049 | rm -f conftest.$ac_objext |
| 15050 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15051 | (eval $ac_compile) 2>&5 |
| 15052 | ac_status=$? |
| 15053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15054 | (exit $ac_status); } && |
| 15055 | { ac_try='test -s conftest.$ac_objext' |
| 15056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15057 | (eval $ac_try) 2>&5 |
| 15058 | ac_status=$? |
| 15059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15060 | (exit $ac_status); }; }; then |
| 15061 | |
| 15062 | |
| 15063 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15064 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15065 | _ACEOF |
| 15066 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15067 | was_it_defined=yes |
| 15068 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15069 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15070 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15071 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15072 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15073 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15074 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15075 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 15076 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15077 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15078 | echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 15079 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6 |
| 15080 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
| 15081 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15082 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15083 | cat >conftest.$ac_ext <<_ACEOF |
| 15084 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15085 | /* confdefs.h. */ |
| 15086 | _ACEOF |
| 15087 | cat confdefs.h >>conftest.$ac_ext |
| 15088 | cat >>conftest.$ac_ext <<_ACEOF |
| 15089 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15090 | |
| 15091 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15092 | int |
| 15093 | main () |
| 15094 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15095 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15096 | ; |
| 15097 | return 0; |
| 15098 | } |
| 15099 | _ACEOF |
| 15100 | rm -f conftest.$ac_objext |
| 15101 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15102 | (eval $ac_compile) 2>&5 |
| 15103 | ac_status=$? |
| 15104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15105 | (exit $ac_status); } && |
| 15106 | { ac_try='test -s conftest.$ac_objext' |
| 15107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15108 | (eval $ac_try) 2>&5 |
| 15109 | ac_status=$? |
| 15110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15111 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15112 | ac_cv_struct_addrinfo=yes |
| 15113 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15114 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15115 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15116 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15117 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15118 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15119 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15120 | fi |
| 15121 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15122 | echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 15123 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15124 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15125 | |
| 15126 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15127 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15128 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15129 | |
| 15130 | fi |
| 15131 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15132 | echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 15133 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6 |
| 15134 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
| 15135 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15136 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15137 | cat >conftest.$ac_ext <<_ACEOF |
| 15138 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15139 | /* confdefs.h. */ |
| 15140 | _ACEOF |
| 15141 | cat confdefs.h >>conftest.$ac_ext |
| 15142 | cat >>conftest.$ac_ext <<_ACEOF |
| 15143 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15144 | |
| 15145 | # include <sys/types.h> |
| 15146 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15147 | int |
| 15148 | main () |
| 15149 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15150 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15151 | ; |
| 15152 | return 0; |
| 15153 | } |
| 15154 | _ACEOF |
| 15155 | rm -f conftest.$ac_objext |
| 15156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15157 | (eval $ac_compile) 2>&5 |
| 15158 | ac_status=$? |
| 15159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15160 | (exit $ac_status); } && |
| 15161 | { ac_try='test -s conftest.$ac_objext' |
| 15162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15163 | (eval $ac_try) 2>&5 |
| 15164 | ac_status=$? |
| 15165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15166 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15167 | ac_cv_struct_sockaddr_storage=yes |
| 15168 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15169 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15170 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15171 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15172 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15173 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15174 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15175 | fi |
| 15176 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15177 | echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 15178 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15179 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15180 | |
| 15181 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15182 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15183 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15184 | |
| 15185 | fi |
| 15186 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15187 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15188 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15189 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15190 | echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 15191 | echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 |
| 15192 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
| 15193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15194 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15195 | cat >conftest.$ac_ext <<_ACEOF |
| 15196 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15197 | /* confdefs.h. */ |
| 15198 | _ACEOF |
| 15199 | cat confdefs.h >>conftest.$ac_ext |
| 15200 | cat >>conftest.$ac_ext <<_ACEOF |
| 15201 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15202 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15203 | int |
| 15204 | main () |
| 15205 | { |
| 15206 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 15207 | test_array [0] = 0 |
| 15208 | |
| 15209 | ; |
| 15210 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15211 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15212 | _ACEOF |
| 15213 | rm -f conftest.$ac_objext |
| 15214 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15215 | (eval $ac_compile) 2>&5 |
| 15216 | ac_status=$? |
| 15217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15218 | (exit $ac_status); } && |
| 15219 | { ac_try='test -s conftest.$ac_objext' |
| 15220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15221 | (eval $ac_try) 2>&5 |
| 15222 | ac_status=$? |
| 15223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15224 | (exit $ac_status); }; }; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15225 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15226 | else |
| 15227 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15228 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15229 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15230 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15231 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15232 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15233 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15234 | echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 15235 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15236 | 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] | 15237 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15238 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15239 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15240 | |
| 15241 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15242 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15243 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 15244 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 15245 | if test "${ac_cv_c_const+set}" = set; then |
| 15246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15247 | else |
| 15248 | cat >conftest.$ac_ext <<_ACEOF |
| 15249 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15250 | /* confdefs.h. */ |
| 15251 | _ACEOF |
| 15252 | cat confdefs.h >>conftest.$ac_ext |
| 15253 | cat >>conftest.$ac_ext <<_ACEOF |
| 15254 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15255 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15256 | int |
| 15257 | main () |
| 15258 | { |
| 15259 | /* FIXME: Include the comments suggested by Paul. */ |
| 15260 | #ifndef __cplusplus |
| 15261 | /* Ultrix mips cc rejects this. */ |
| 15262 | typedef int charset[2]; |
| 15263 | const charset x; |
| 15264 | /* SunOS 4.1.1 cc rejects this. */ |
| 15265 | char const *const *ccp; |
| 15266 | char **p; |
| 15267 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 15268 | struct point {int x, y;}; |
| 15269 | static struct point const zero = {0,0}; |
| 15270 | /* AIX XL C 1.02.0.0 rejects this. |
| 15271 | It does not let you subtract one const X* pointer from another in |
| 15272 | an arm of an if-expression whose if-part is not a constant |
| 15273 | expression */ |
| 15274 | const char *g = "string"; |
| 15275 | ccp = &g + (g ? g-g : 0); |
| 15276 | /* HPUX 7.0 cc rejects these. */ |
| 15277 | ++ccp; |
| 15278 | p = (char**) ccp; |
| 15279 | ccp = (char const *const *) p; |
| 15280 | { /* SCO 3.2v4 cc rejects this. */ |
| 15281 | char *t; |
| 15282 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15283 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15284 | *t++ = 0; |
| 15285 | } |
| 15286 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 15287 | int x[] = {25, 17}; |
| 15288 | const int *foo = &x[0]; |
| 15289 | ++foo; |
| 15290 | } |
| 15291 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 15292 | typedef const int *iptr; |
| 15293 | iptr p = 0; |
| 15294 | ++p; |
| 15295 | } |
| 15296 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 15297 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 15298 | struct s { int j; const int *ap[3]; }; |
| 15299 | struct s *b; b->j = 5; |
| 15300 | } |
| 15301 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 15302 | const int foo = 10; |
| 15303 | } |
| 15304 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15305 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15306 | ; |
| 15307 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15308 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15309 | _ACEOF |
| 15310 | rm -f conftest.$ac_objext |
| 15311 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15312 | (eval $ac_compile) 2>&5 |
| 15313 | ac_status=$? |
| 15314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15315 | (exit $ac_status); } && |
| 15316 | { ac_try='test -s conftest.$ac_objext' |
| 15317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15318 | (eval $ac_try) 2>&5 |
| 15319 | ac_status=$? |
| 15320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15321 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15322 | ac_cv_c_const=yes |
| 15323 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15324 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15325 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15326 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15327 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15328 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15329 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15330 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15331 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 15332 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15333 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15334 | |
| 15335 | cat >>confdefs.h <<\_ACEOF |
| 15336 | #define const |
| 15337 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15338 | |
| 15339 | fi |
| 15340 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15341 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15342 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15343 | echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 15344 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
| 15345 | cat >conftest.$ac_ext <<_ACEOF |
| 15346 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15347 | /* confdefs.h. */ |
| 15348 | _ACEOF |
| 15349 | cat confdefs.h >>conftest.$ac_ext |
| 15350 | cat >>conftest.$ac_ext <<_ACEOF |
| 15351 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15352 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15353 | int |
| 15354 | main () |
| 15355 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15356 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15357 | ; |
| 15358 | return 0; |
| 15359 | } |
| 15360 | _ACEOF |
| 15361 | rm -f conftest.$ac_objext |
| 15362 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15363 | (eval $ac_compile) 2>&5 |
| 15364 | ac_status=$? |
| 15365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15366 | (exit $ac_status); } && |
| 15367 | { ac_try='test -s conftest.$ac_objext' |
| 15368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15369 | (eval $ac_try) 2>&5 |
| 15370 | ac_status=$? |
| 15371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15372 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15373 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15374 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15375 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15376 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15377 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15378 | |
| 15379 | cat >>confdefs.h <<\_ACEOF |
| 15380 | #define volatile |
| 15381 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15382 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15383 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15384 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15385 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15386 | echo "$as_me:$LINENO: result: $works" >&5 |
| 15387 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15388 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15389 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15390 | echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 15391 | echo $ECHO_N "checking for working signed char... $ECHO_C" >&6 |
| 15392 | cat >conftest.$ac_ext <<_ACEOF |
| 15393 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15394 | /* confdefs.h. */ |
| 15395 | _ACEOF |
| 15396 | cat confdefs.h >>conftest.$ac_ext |
| 15397 | cat >>conftest.$ac_ext <<_ACEOF |
| 15398 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 15399 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15400 | int |
| 15401 | main () |
| 15402 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15403 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15404 | ; |
| 15405 | return 0; |
| 15406 | } |
| 15407 | _ACEOF |
| 15408 | rm -f conftest.$ac_objext |
| 15409 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15410 | (eval $ac_compile) 2>&5 |
| 15411 | ac_status=$? |
| 15412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15413 | (exit $ac_status); } && |
| 15414 | { ac_try='test -s conftest.$ac_objext' |
| 15415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15416 | (eval $ac_try) 2>&5 |
| 15417 | ac_status=$? |
| 15418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15419 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15420 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 15421 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15422 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15423 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15424 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15425 | |
| 15426 | cat >>confdefs.h <<\_ACEOF |
| 15427 | #define signed |
| 15428 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15429 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15430 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15431 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15432 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15433 | echo "$as_me:$LINENO: result: $works" >&5 |
| 15434 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15435 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15436 | have_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15437 | echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 15438 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6 |
| 15439 | cat >conftest.$ac_ext <<_ACEOF |
| 15440 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15441 | /* confdefs.h. */ |
| 15442 | _ACEOF |
| 15443 | cat confdefs.h >>conftest.$ac_ext |
| 15444 | cat >>conftest.$ac_ext <<_ACEOF |
| 15445 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15446 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15447 | int |
| 15448 | main () |
| 15449 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15450 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15451 | ; |
| 15452 | return 0; |
| 15453 | } |
| 15454 | _ACEOF |
| 15455 | rm -f conftest.$ac_objext |
| 15456 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15457 | (eval $ac_compile) 2>&5 |
| 15458 | ac_status=$? |
| 15459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15460 | (exit $ac_status); } && |
| 15461 | { ac_try='test -s conftest.$ac_objext' |
| 15462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15463 | (eval $ac_try) 2>&5 |
| 15464 | ac_status=$? |
| 15465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15466 | (exit $ac_status); }; }; then |
| 15467 | |
| 15468 | |
| 15469 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15470 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15471 | _ACEOF |
| 15472 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15473 | have_prototypes=yes |
| 15474 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15475 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15476 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15477 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15478 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15479 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15480 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15481 | echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 15482 | echo "${ECHO_T}$have_prototypes" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15483 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15484 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15485 | echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 15486 | echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6 |
| 15487 | cat >conftest.$ac_ext <<_ACEOF |
| 15488 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15489 | /* confdefs.h. */ |
| 15490 | _ACEOF |
| 15491 | cat confdefs.h >>conftest.$ac_ext |
| 15492 | cat >>conftest.$ac_ext <<_ACEOF |
| 15493 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15494 | |
| 15495 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 15496 | int foo(int x, ...) { |
| 15497 | va_list va; |
| 15498 | va_start(va, x); |
| 15499 | va_arg(va, int); |
| 15500 | va_arg(va, char *); |
| 15501 | va_arg(va, double); |
| 15502 | return 0; |
| 15503 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15504 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15505 | int |
| 15506 | main () |
| 15507 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 15508 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15509 | ; |
| 15510 | return 0; |
| 15511 | } |
| 15512 | _ACEOF |
| 15513 | rm -f conftest.$ac_objext |
| 15514 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15515 | (eval $ac_compile) 2>&5 |
| 15516 | ac_status=$? |
| 15517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15518 | (exit $ac_status); } && |
| 15519 | { ac_try='test -s conftest.$ac_objext' |
| 15520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15521 | (eval $ac_try) 2>&5 |
| 15522 | ac_status=$? |
| 15523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15524 | (exit $ac_status); }; }; then |
| 15525 | |
| 15526 | |
| 15527 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15528 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15529 | _ACEOF |
| 15530 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15531 | works=yes |
| 15532 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15533 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15534 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15535 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15536 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15537 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15538 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15539 | echo "$as_me:$LINENO: result: $works" >&5 |
| 15540 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15541 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15542 | # check if sockaddr has sa_len member |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15543 | echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 15544 | echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6 |
| 15545 | cat >conftest.$ac_ext <<_ACEOF |
| 15546 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15547 | /* confdefs.h. */ |
| 15548 | _ACEOF |
| 15549 | cat confdefs.h >>conftest.$ac_ext |
| 15550 | cat >>conftest.$ac_ext <<_ACEOF |
| 15551 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15552 | #include <sys/types.h> |
| 15553 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15554 | int |
| 15555 | main () |
| 15556 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15557 | struct sockaddr x; |
| 15558 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15559 | ; |
| 15560 | return 0; |
| 15561 | } |
| 15562 | _ACEOF |
| 15563 | rm -f conftest.$ac_objext |
| 15564 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15565 | (eval $ac_compile) 2>&5 |
| 15566 | ac_status=$? |
| 15567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15568 | (exit $ac_status); } && |
| 15569 | { ac_try='test -s conftest.$ac_objext' |
| 15570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15571 | (eval $ac_try) 2>&5 |
| 15572 | ac_status=$? |
| 15573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15574 | (exit $ac_status); }; }; then |
| 15575 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15576 | echo "${ECHO_T}yes" >&6 |
| 15577 | |
| 15578 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15579 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15580 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15581 | |
| 15582 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15583 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15584 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15585 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15586 | echo "$as_me:$LINENO: result: no" >&5 |
| 15587 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15588 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15589 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15590 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15591 | va_list_is_array=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15592 | echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 15593 | echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6 |
| 15594 | cat >conftest.$ac_ext <<_ACEOF |
| 15595 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15596 | /* confdefs.h. */ |
| 15597 | _ACEOF |
| 15598 | cat confdefs.h >>conftest.$ac_ext |
| 15599 | cat >>conftest.$ac_ext <<_ACEOF |
| 15600 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15601 | |
| 15602 | #ifdef HAVE_STDARG_PROTOTYPES |
| 15603 | #include <stdarg.h> |
| 15604 | #else |
| 15605 | #include <varargs.h> |
| 15606 | #endif |
| 15607 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15608 | int |
| 15609 | main () |
| 15610 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15611 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15612 | ; |
| 15613 | return 0; |
| 15614 | } |
| 15615 | _ACEOF |
| 15616 | rm -f conftest.$ac_objext |
| 15617 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15618 | (eval $ac_compile) 2>&5 |
| 15619 | ac_status=$? |
| 15620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15621 | (exit $ac_status); } && |
| 15622 | { ac_try='test -s conftest.$ac_objext' |
| 15623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15624 | (eval $ac_try) 2>&5 |
| 15625 | ac_status=$? |
| 15626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15627 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15628 | : |
| 15629 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15630 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15631 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15632 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15633 | |
| 15634 | |
| 15635 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15636 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15637 | _ACEOF |
| 15638 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15639 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15640 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15641 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15642 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15643 | echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 15644 | echo "${ECHO_T}$va_list_is_array" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15645 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15646 | # 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] | 15647 | |
| 15648 | |
| 15649 | |
| 15650 | echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 15651 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6 |
| 15652 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
| 15653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15654 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15655 | cat >conftest.$ac_ext <<_ACEOF |
| 15656 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15657 | /* confdefs.h. */ |
| 15658 | _ACEOF |
| 15659 | cat confdefs.h >>conftest.$ac_ext |
| 15660 | cat >>conftest.$ac_ext <<_ACEOF |
| 15661 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15662 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15663 | which can conflict with char gethostbyname_r (); below. |
| 15664 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 15665 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 15666 | including <limits.h> includes <sys/time.h> and causes problems |
| 15667 | checking for functions defined therein. */ |
| 15668 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15669 | # include <limits.h> |
| 15670 | #else |
| 15671 | # include <assert.h> |
| 15672 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15673 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15674 | #ifdef __cplusplus |
| 15675 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15676 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15677 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15678 | /* 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] | 15679 | builtin and then its argument prototype would still apply. */ |
| 15680 | char gethostbyname_r (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15681 | /* The GNU C library defines this for functions which it implements |
| 15682 | to always fail with ENOSYS. Some functions are actually named |
| 15683 | something starting with __ and the normal name is an alias. */ |
| 15684 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 15685 | choke me |
| 15686 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15687 | char (*f) () = gethostbyname_r; |
| 15688 | #endif |
| 15689 | #ifdef __cplusplus |
| 15690 | } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15691 | #endif |
| 15692 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15693 | int |
| 15694 | main () |
| 15695 | { |
| 15696 | return f != gethostbyname_r; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15697 | ; |
| 15698 | return 0; |
| 15699 | } |
| 15700 | _ACEOF |
| 15701 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15702 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15703 | (eval $ac_link) 2>&5 |
| 15704 | ac_status=$? |
| 15705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15706 | (exit $ac_status); } && |
| 15707 | { ac_try='test -s conftest$ac_exeext' |
| 15708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15709 | (eval $ac_try) 2>&5 |
| 15710 | ac_status=$? |
| 15711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15712 | (exit $ac_status); }; }; then |
| 15713 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15714 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15715 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15716 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15717 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15718 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15719 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15720 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15721 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15722 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 15723 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6 |
| 15724 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15725 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15726 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15727 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15728 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15729 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15730 | echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 15731 | 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] | 15732 | OLD_CFLAGS=$CFLAGS |
| 15733 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15734 | cat >conftest.$ac_ext <<_ACEOF |
| 15735 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15736 | /* confdefs.h. */ |
| 15737 | _ACEOF |
| 15738 | cat confdefs.h >>conftest.$ac_ext |
| 15739 | cat >>conftest.$ac_ext <<_ACEOF |
| 15740 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15741 | |
| 15742 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15743 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15744 | int |
| 15745 | main () |
| 15746 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15747 | |
| 15748 | char *name; |
| 15749 | struct hostent *he, *res; |
| 15750 | char buffer[2048]; |
| 15751 | int buflen = 2048; |
| 15752 | int h_errnop; |
| 15753 | |
| 15754 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15755 | |
| 15756 | ; |
| 15757 | return 0; |
| 15758 | } |
| 15759 | _ACEOF |
| 15760 | rm -f conftest.$ac_objext |
| 15761 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15762 | (eval $ac_compile) 2>&5 |
| 15763 | ac_status=$? |
| 15764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15765 | (exit $ac_status); } && |
| 15766 | { ac_try='test -s conftest.$ac_objext' |
| 15767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15768 | (eval $ac_try) 2>&5 |
| 15769 | ac_status=$? |
| 15770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15771 | (exit $ac_status); }; }; then |
| 15772 | |
| 15773 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 15774 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15775 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 15776 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15777 | |
| 15778 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15779 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15780 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15781 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15782 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15783 | echo "${ECHO_T}yes" >&6 |
| 15784 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15785 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15786 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15787 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15788 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15789 | |
| 15790 | echo "$as_me:$LINENO: result: no" >&5 |
| 15791 | echo "${ECHO_T}no" >&6 |
| 15792 | echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 15793 | echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6 |
| 15794 | cat >conftest.$ac_ext <<_ACEOF |
| 15795 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15796 | /* confdefs.h. */ |
| 15797 | _ACEOF |
| 15798 | cat confdefs.h >>conftest.$ac_ext |
| 15799 | cat >>conftest.$ac_ext <<_ACEOF |
| 15800 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15801 | |
| 15802 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15803 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15804 | int |
| 15805 | main () |
| 15806 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15807 | |
| 15808 | char *name; |
| 15809 | struct hostent *he; |
| 15810 | char buffer[2048]; |
| 15811 | int buflen = 2048; |
| 15812 | int h_errnop; |
| 15813 | |
| 15814 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15815 | |
| 15816 | ; |
| 15817 | return 0; |
| 15818 | } |
| 15819 | _ACEOF |
| 15820 | rm -f conftest.$ac_objext |
| 15821 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15822 | (eval $ac_compile) 2>&5 |
| 15823 | ac_status=$? |
| 15824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15825 | (exit $ac_status); } && |
| 15826 | { ac_try='test -s conftest.$ac_objext' |
| 15827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15828 | (eval $ac_try) 2>&5 |
| 15829 | ac_status=$? |
| 15830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15831 | (exit $ac_status); }; }; then |
| 15832 | |
| 15833 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 15834 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15835 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 15836 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15837 | |
| 15838 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15839 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15840 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15841 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15842 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15843 | echo "${ECHO_T}yes" >&6 |
| 15844 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15845 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15846 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15847 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15848 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15849 | |
| 15850 | echo "$as_me:$LINENO: result: no" >&5 |
| 15851 | echo "${ECHO_T}no" >&6 |
| 15852 | echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 15853 | echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6 |
| 15854 | cat >conftest.$ac_ext <<_ACEOF |
| 15855 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15856 | /* confdefs.h. */ |
| 15857 | _ACEOF |
| 15858 | cat confdefs.h >>conftest.$ac_ext |
| 15859 | cat >>conftest.$ac_ext <<_ACEOF |
| 15860 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15861 | |
| 15862 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15863 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15864 | int |
| 15865 | main () |
| 15866 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15867 | |
| 15868 | char *name; |
| 15869 | struct hostent *he; |
| 15870 | struct hostent_data data; |
| 15871 | |
| 15872 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15873 | |
| 15874 | ; |
| 15875 | return 0; |
| 15876 | } |
| 15877 | _ACEOF |
| 15878 | rm -f conftest.$ac_objext |
| 15879 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15880 | (eval $ac_compile) 2>&5 |
| 15881 | ac_status=$? |
| 15882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15883 | (exit $ac_status); } && |
| 15884 | { ac_try='test -s conftest.$ac_objext' |
| 15885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15886 | (eval $ac_try) 2>&5 |
| 15887 | ac_status=$? |
| 15888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15889 | (exit $ac_status); }; }; then |
| 15890 | |
| 15891 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 15892 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15893 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 15894 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15895 | |
| 15896 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15897 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15898 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15899 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15900 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15901 | echo "${ECHO_T}yes" >&6 |
| 15902 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15903 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15904 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15905 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15906 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15907 | |
| 15908 | echo "$as_me:$LINENO: result: no" >&5 |
| 15909 | echo "${ECHO_T}no" >&6 |
| 15910 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15911 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15912 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15913 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15914 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15915 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15916 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15917 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15918 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15919 | CFLAGS=$OLD_CFLAGS |
| 15920 | |
| 15921 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15922 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15923 | |
| 15924 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15925 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15926 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15927 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15928 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15929 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15931 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15932 | cat >conftest.$ac_ext <<_ACEOF |
| 15933 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15934 | /* confdefs.h. */ |
| 15935 | _ACEOF |
| 15936 | cat confdefs.h >>conftest.$ac_ext |
| 15937 | cat >>conftest.$ac_ext <<_ACEOF |
| 15938 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15939 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15940 | which can conflict with char $ac_func (); below. |
| 15941 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 15942 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 15943 | including <limits.h> includes <sys/time.h> and causes problems |
| 15944 | checking for functions defined therein. */ |
| 15945 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15946 | # include <limits.h> |
| 15947 | #else |
| 15948 | # include <assert.h> |
| 15949 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15950 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15951 | #ifdef __cplusplus |
| 15952 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15953 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15954 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15955 | /* 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] | 15956 | builtin and then its argument prototype would still apply. */ |
| 15957 | char $ac_func (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15958 | /* The GNU C library defines this for functions which it implements |
| 15959 | to always fail with ENOSYS. Some functions are actually named |
| 15960 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15961 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15962 | choke me |
| 15963 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15964 | char (*f) () = $ac_func; |
| 15965 | #endif |
| 15966 | #ifdef __cplusplus |
| 15967 | } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15968 | #endif |
| 15969 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15970 | int |
| 15971 | main () |
| 15972 | { |
| 15973 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15974 | ; |
| 15975 | return 0; |
| 15976 | } |
| 15977 | _ACEOF |
| 15978 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15979 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15980 | (eval $ac_link) 2>&5 |
| 15981 | ac_status=$? |
| 15982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15983 | (exit $ac_status); } && |
| 15984 | { ac_try='test -s conftest$ac_exeext' |
| 15985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15986 | (eval $ac_try) 2>&5 |
| 15987 | ac_status=$? |
| 15988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15989 | (exit $ac_status); }; }; then |
| 15990 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15991 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15992 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15993 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15994 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15995 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15996 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15997 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15998 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15999 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 16000 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 16001 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16002 | cat >>confdefs.h <<_ACEOF |
| 16003 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16004 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16005 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16006 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 16007 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16008 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16009 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16010 | fi |
| 16011 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16012 | |
| 16013 | |
| 16014 | |
| 16015 | |
| 16016 | |
| 16017 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16018 | # checks for system services |
| 16019 | # (none yet) |
| 16020 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16021 | # Linux requires this for correct f.p. operations |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16022 | echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 16023 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6 |
| 16024 | if test "${ac_cv_func___fpu_control+set}" = set; then |
| 16025 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16026 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16027 | cat >conftest.$ac_ext <<_ACEOF |
| 16028 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16029 | /* confdefs.h. */ |
| 16030 | _ACEOF |
| 16031 | cat confdefs.h >>conftest.$ac_ext |
| 16032 | cat >>conftest.$ac_ext <<_ACEOF |
| 16033 | /* end confdefs.h. */ |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16034 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16035 | which can conflict with char __fpu_control (); below. |
| 16036 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 16037 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 16038 | including <limits.h> includes <sys/time.h> and causes problems |
| 16039 | checking for functions defined therein. */ |
| 16040 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16041 | # include <limits.h> |
| 16042 | #else |
| 16043 | # include <assert.h> |
| 16044 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16045 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16046 | #ifdef __cplusplus |
| 16047 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16048 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16049 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16050 | /* 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] | 16051 | builtin and then its argument prototype would still apply. */ |
| 16052 | char __fpu_control (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16053 | /* The GNU C library defines this for functions which it implements |
| 16054 | to always fail with ENOSYS. Some functions are actually named |
| 16055 | something starting with __ and the normal name is an alias. */ |
| 16056 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 16057 | choke me |
| 16058 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16059 | char (*f) () = __fpu_control; |
| 16060 | #endif |
| 16061 | #ifdef __cplusplus |
| 16062 | } |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16063 | #endif |
| 16064 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16065 | int |
| 16066 | main () |
| 16067 | { |
| 16068 | return f != __fpu_control; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16069 | ; |
| 16070 | return 0; |
| 16071 | } |
| 16072 | _ACEOF |
| 16073 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16074 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16075 | (eval $ac_link) 2>&5 |
| 16076 | ac_status=$? |
| 16077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16078 | (exit $ac_status); } && |
| 16079 | { ac_try='test -s conftest$ac_exeext' |
| 16080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16081 | (eval $ac_try) 2>&5 |
| 16082 | ac_status=$? |
| 16083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16084 | (exit $ac_status); }; }; then |
| 16085 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16086 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16087 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16088 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16089 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16090 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16091 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16092 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16093 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16094 | echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 16095 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6 |
| 16096 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16097 | : |
| 16098 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16099 | |
| 16100 | echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 16101 | echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6 |
| 16102 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
| 16103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16104 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16105 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16106 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16107 | cat >conftest.$ac_ext <<_ACEOF |
| 16108 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16109 | /* confdefs.h. */ |
| 16110 | _ACEOF |
| 16111 | cat confdefs.h >>conftest.$ac_ext |
| 16112 | cat >>conftest.$ac_ext <<_ACEOF |
| 16113 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16114 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 16115 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16116 | #ifdef __cplusplus |
| 16117 | extern "C" |
| 16118 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 16119 | /* 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] | 16120 | builtin and then its argument prototype would still apply. */ |
| 16121 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16122 | int |
| 16123 | main () |
| 16124 | { |
| 16125 | __fpu_control (); |
| 16126 | ; |
| 16127 | return 0; |
| 16128 | } |
| 16129 | _ACEOF |
| 16130 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16131 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16132 | (eval $ac_link) 2>&5 |
| 16133 | ac_status=$? |
| 16134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16135 | (exit $ac_status); } && |
| 16136 | { ac_try='test -s conftest$ac_exeext' |
| 16137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16138 | (eval $ac_try) 2>&5 |
| 16139 | ac_status=$? |
| 16140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16141 | (exit $ac_status); }; }; then |
| 16142 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16143 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16144 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16145 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16146 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16147 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16148 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16149 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 16150 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16151 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16152 | echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 16153 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6 |
| 16154 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
| 16155 | cat >>confdefs.h <<_ACEOF |
| 16156 | #define HAVE_LIBIEEE 1 |
| 16157 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16158 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16159 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16160 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16161 | fi |
| 16162 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16163 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16164 | fi |
| 16165 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16166 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16167 | # Check for --with-fpectl |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16168 | echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 16169 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6 |
| 16170 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16171 | # Check whether --with-fpectl or --without-fpectl was given. |
| 16172 | if test "${with_fpectl+set}" = set; then |
| 16173 | withval="$with_fpectl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16174 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16175 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16176 | then |
| 16177 | |
| 16178 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16179 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16180 | _ACEOF |
| 16181 | |
| 16182 | echo "$as_me:$LINENO: result: yes" >&5 |
| 16183 | echo "${ECHO_T}yes" >&6 |
| 16184 | else echo "$as_me:$LINENO: result: no" >&5 |
| 16185 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16186 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16187 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16188 | echo "$as_me:$LINENO: result: no" >&5 |
| 16189 | echo "${ECHO_T}no" >&6 |
| 16190 | fi; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16191 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16192 | # check for --with-libm=... |
| 16193 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 16194 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 16195 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16196 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 16197 | *) LIBM=-lm |
| 16198 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16199 | echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 16200 | echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6 |
| 16201 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16202 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 16203 | if test "${with_libm+set}" = set; then |
| 16204 | withval="$with_libm" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16205 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16206 | if test "$withval" = no |
| 16207 | then LIBM= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16208 | echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 16209 | echo "${ECHO_T}force LIBM empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16210 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16211 | then LIBM=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16212 | echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 16213 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6 |
| 16214 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 16215 | echo "$as_me: error: proper usage is --with-libm=STRING" >&2;} |
| 16216 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16217 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16218 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16219 | echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 16220 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6 |
| 16221 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16222 | |
| 16223 | # check for --with-libc=... |
| 16224 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16225 | echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 16226 | echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6 |
| 16227 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16228 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 16229 | if test "${with_libc+set}" = set; then |
| 16230 | withval="$with_libc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16231 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16232 | if test "$withval" = no |
| 16233 | then LIBC= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16234 | echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 16235 | echo "${ECHO_T}force LIBC empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16236 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16237 | then LIBC=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16238 | echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 16239 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6 |
| 16240 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 16241 | echo "$as_me: error: proper usage is --with-libc=STRING" >&2;} |
| 16242 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16243 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16244 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16245 | echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 16246 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6 |
| 16247 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16248 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 16249 | # check for hypot() in math library |
| 16250 | LIBS_SAVE=$LIBS |
| 16251 | LIBS="$LIBS $LIBM" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16252 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 16253 | for ac_func in hypot |
| 16254 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16255 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16256 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16257 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 16258 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 16259 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 16260 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16261 | cat >conftest.$ac_ext <<_ACEOF |
| 16262 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16263 | /* confdefs.h. */ |
| 16264 | _ACEOF |
| 16265 | cat confdefs.h >>conftest.$ac_ext |
| 16266 | cat >>conftest.$ac_ext <<_ACEOF |
| 16267 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16268 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16269 | which can conflict with char $ac_func (); below. |
| 16270 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 16271 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 16272 | including <limits.h> includes <sys/time.h> and causes problems |
| 16273 | checking for functions defined therein. */ |
| 16274 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16275 | # include <limits.h> |
| 16276 | #else |
| 16277 | # include <assert.h> |
| 16278 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16279 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16280 | #ifdef __cplusplus |
| 16281 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16282 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16283 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 16284 | /* 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] | 16285 | builtin and then its argument prototype would still apply. */ |
| 16286 | char $ac_func (); |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 16287 | /* The GNU C library defines this for functions which it implements |
| 16288 | to always fail with ENOSYS. Some functions are actually named |
| 16289 | something starting with __ and the normal name is an alias. */ |
| 16290 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 16291 | choke me |
| 16292 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16293 | char (*f) () = $ac_func; |
| 16294 | #endif |
| 16295 | #ifdef __cplusplus |
| 16296 | } |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 16297 | #endif |
| 16298 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16299 | int |
| 16300 | main () |
| 16301 | { |
| 16302 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16303 | ; |
| 16304 | return 0; |
| 16305 | } |
| 16306 | _ACEOF |
| 16307 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16308 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16309 | (eval $ac_link) 2>&5 |
| 16310 | ac_status=$? |
| 16311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16312 | (exit $ac_status); } && |
| 16313 | { ac_try='test -s conftest$ac_exeext' |
| 16314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16315 | (eval $ac_try) 2>&5 |
| 16316 | ac_status=$? |
| 16317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16318 | (exit $ac_status); }; }; then |
| 16319 | eval "$as_ac_var=yes" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 16320 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16321 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16322 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16323 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16324 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16325 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16326 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16327 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16328 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 16329 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 16330 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16331 | cat >>confdefs.h <<_ACEOF |
| 16332 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16333 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16334 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16335 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16336 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 16337 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 16338 | done |
| 16339 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16340 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 16341 | LIBS=$LIBS_SAVE |
| 16342 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16343 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16344 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 16345 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 16346 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 16347 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 16348 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16349 | fi |
| 16350 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 16351 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16352 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16353 | # Is the header compilable? |
| 16354 | echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 16355 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6 |
| 16356 | cat >conftest.$ac_ext <<_ACEOF |
| 16357 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16358 | /* confdefs.h. */ |
| 16359 | _ACEOF |
| 16360 | cat confdefs.h >>conftest.$ac_ext |
| 16361 | cat >>conftest.$ac_ext <<_ACEOF |
| 16362 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16363 | $ac_includes_default |
| 16364 | #include <wchar.h> |
| 16365 | _ACEOF |
| 16366 | rm -f conftest.$ac_objext |
| 16367 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16368 | (eval $ac_compile) 2>&5 |
| 16369 | ac_status=$? |
| 16370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16371 | (exit $ac_status); } && |
| 16372 | { ac_try='test -s conftest.$ac_objext' |
| 16373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16374 | (eval $ac_try) 2>&5 |
| 16375 | ac_status=$? |
| 16376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16377 | (exit $ac_status); }; }; then |
| 16378 | ac_header_compiler=yes |
| 16379 | else |
| 16380 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16381 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16382 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16383 | ac_header_compiler=no |
| 16384 | fi |
| 16385 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16386 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16387 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 16388 | |
| 16389 | # Is the header present? |
| 16390 | echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 16391 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6 |
| 16392 | cat >conftest.$ac_ext <<_ACEOF |
| 16393 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16394 | /* confdefs.h. */ |
| 16395 | _ACEOF |
| 16396 | cat confdefs.h >>conftest.$ac_ext |
| 16397 | cat >>conftest.$ac_ext <<_ACEOF |
| 16398 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16399 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16400 | _ACEOF |
| 16401 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 16402 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 16403 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16404 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16405 | rm -f conftest.er1 |
| 16406 | cat conftest.err >&5 |
| 16407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16408 | (exit $ac_status); } >/dev/null; then |
| 16409 | if test -s conftest.err; then |
| 16410 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16411 | else |
| 16412 | ac_cpp_err= |
| 16413 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16414 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16415 | ac_cpp_err=yes |
| 16416 | fi |
| 16417 | if test -z "$ac_cpp_err"; then |
| 16418 | ac_header_preproc=yes |
| 16419 | else |
| 16420 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16421 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16422 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16423 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16424 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16425 | rm -f conftest.err conftest.$ac_ext |
| 16426 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16427 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 16428 | |
| 16429 | # So? What about this header? |
| 16430 | case $ac_header_compiler:$ac_header_preproc in |
| 16431 | yes:no ) |
| 16432 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16433 | echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16434 | { 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] | 16435 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;} |
| 16436 | ( |
| 16437 | cat <<\_ASBOX |
| 16438 | ## ------------------------------------ ## |
| 16439 | ## Report this to bug-autoconf@gnu.org. ## |
| 16440 | ## ------------------------------------ ## |
| 16441 | _ASBOX |
| 16442 | ) | |
| 16443 | sed "s/^/$as_me: WARNING: /" >&2 |
| 16444 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16445 | no:yes ) |
| 16446 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 16447 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
| 16448 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 16449 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 16450 | { 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] | 16451 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;} |
| 16452 | ( |
| 16453 | cat <<\_ASBOX |
| 16454 | ## ------------------------------------ ## |
| 16455 | ## Report this to bug-autoconf@gnu.org. ## |
| 16456 | ## ------------------------------------ ## |
| 16457 | _ASBOX |
| 16458 | ) | |
| 16459 | sed "s/^/$as_me: WARNING: /" >&2 |
| 16460 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16461 | esac |
| 16462 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 16463 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 16464 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 16465 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16466 | else |
| 16467 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16468 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16469 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 16470 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
| 16471 | |
| 16472 | fi |
| 16473 | if test $ac_cv_header_wchar_h = yes; then |
| 16474 | |
| 16475 | |
| 16476 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16477 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16478 | _ACEOF |
| 16479 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16480 | wchar_h="yes" |
| 16481 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16482 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16483 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16484 | |
| 16485 | fi |
| 16486 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16487 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16488 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16489 | # determine wchar_t size |
| 16490 | if test "$wchar_h" = yes |
| 16491 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16492 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 16493 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 |
| 16494 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 16495 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16496 | else |
| 16497 | cat >conftest.$ac_ext <<_ACEOF |
| 16498 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16499 | /* confdefs.h. */ |
| 16500 | _ACEOF |
| 16501 | cat confdefs.h >>conftest.$ac_ext |
| 16502 | cat >>conftest.$ac_ext <<_ACEOF |
| 16503 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16504 | #include <wchar.h> |
| 16505 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16506 | int |
| 16507 | main () |
| 16508 | { |
| 16509 | if ((wchar_t *) 0) |
| 16510 | return 0; |
| 16511 | if (sizeof (wchar_t)) |
| 16512 | return 0; |
| 16513 | ; |
| 16514 | return 0; |
| 16515 | } |
| 16516 | _ACEOF |
| 16517 | rm -f conftest.$ac_objext |
| 16518 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16519 | (eval $ac_compile) 2>&5 |
| 16520 | ac_status=$? |
| 16521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16522 | (exit $ac_status); } && |
| 16523 | { ac_try='test -s conftest.$ac_objext' |
| 16524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16525 | (eval $ac_try) 2>&5 |
| 16526 | ac_status=$? |
| 16527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16528 | (exit $ac_status); }; }; then |
| 16529 | ac_cv_type_wchar_t=yes |
| 16530 | else |
| 16531 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16532 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16533 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16534 | ac_cv_type_wchar_t=no |
| 16535 | fi |
| 16536 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16537 | fi |
| 16538 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 16539 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 |
| 16540 | |
| 16541 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 16542 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 |
| 16543 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
| 16544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16545 | else |
| 16546 | if test "$ac_cv_type_wchar_t" = yes; then |
| 16547 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 16548 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 16549 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 16550 | # This bug is HP SR number 8606223364. |
| 16551 | if test "$cross_compiling" = yes; then |
| 16552 | # Depending upon the size, compute the lo and hi bounds. |
| 16553 | cat >conftest.$ac_ext <<_ACEOF |
| 16554 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16555 | /* confdefs.h. */ |
| 16556 | _ACEOF |
| 16557 | cat confdefs.h >>conftest.$ac_ext |
| 16558 | cat >>conftest.$ac_ext <<_ACEOF |
| 16559 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16560 | #include <wchar.h> |
| 16561 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16562 | int |
| 16563 | main () |
| 16564 | { |
| 16565 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; |
| 16566 | test_array [0] = 0 |
| 16567 | |
| 16568 | ; |
| 16569 | return 0; |
| 16570 | } |
| 16571 | _ACEOF |
| 16572 | rm -f conftest.$ac_objext |
| 16573 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16574 | (eval $ac_compile) 2>&5 |
| 16575 | ac_status=$? |
| 16576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16577 | (exit $ac_status); } && |
| 16578 | { ac_try='test -s conftest.$ac_objext' |
| 16579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16580 | (eval $ac_try) 2>&5 |
| 16581 | ac_status=$? |
| 16582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16583 | (exit $ac_status); }; }; then |
| 16584 | ac_lo=0 ac_mid=0 |
| 16585 | while :; do |
| 16586 | cat >conftest.$ac_ext <<_ACEOF |
| 16587 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16588 | /* confdefs.h. */ |
| 16589 | _ACEOF |
| 16590 | cat confdefs.h >>conftest.$ac_ext |
| 16591 | cat >>conftest.$ac_ext <<_ACEOF |
| 16592 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16593 | #include <wchar.h> |
| 16594 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16595 | int |
| 16596 | main () |
| 16597 | { |
| 16598 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 16599 | test_array [0] = 0 |
| 16600 | |
| 16601 | ; |
| 16602 | return 0; |
| 16603 | } |
| 16604 | _ACEOF |
| 16605 | rm -f conftest.$ac_objext |
| 16606 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16607 | (eval $ac_compile) 2>&5 |
| 16608 | ac_status=$? |
| 16609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16610 | (exit $ac_status); } && |
| 16611 | { ac_try='test -s conftest.$ac_objext' |
| 16612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16613 | (eval $ac_try) 2>&5 |
| 16614 | ac_status=$? |
| 16615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16616 | (exit $ac_status); }; }; then |
| 16617 | ac_hi=$ac_mid; break |
| 16618 | else |
| 16619 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16620 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16621 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16622 | ac_lo=`expr $ac_mid + 1` |
| 16623 | if test $ac_lo -le $ac_mid; then |
| 16624 | ac_lo= ac_hi= |
| 16625 | break |
| 16626 | fi |
| 16627 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 16628 | fi |
| 16629 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16630 | done |
| 16631 | else |
| 16632 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16633 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16634 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16635 | cat >conftest.$ac_ext <<_ACEOF |
| 16636 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16637 | /* confdefs.h. */ |
| 16638 | _ACEOF |
| 16639 | cat confdefs.h >>conftest.$ac_ext |
| 16640 | cat >>conftest.$ac_ext <<_ACEOF |
| 16641 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16642 | #include <wchar.h> |
| 16643 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16644 | int |
| 16645 | main () |
| 16646 | { |
| 16647 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; |
| 16648 | test_array [0] = 0 |
| 16649 | |
| 16650 | ; |
| 16651 | return 0; |
| 16652 | } |
| 16653 | _ACEOF |
| 16654 | rm -f conftest.$ac_objext |
| 16655 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16656 | (eval $ac_compile) 2>&5 |
| 16657 | ac_status=$? |
| 16658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16659 | (exit $ac_status); } && |
| 16660 | { ac_try='test -s conftest.$ac_objext' |
| 16661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16662 | (eval $ac_try) 2>&5 |
| 16663 | ac_status=$? |
| 16664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16665 | (exit $ac_status); }; }; then |
| 16666 | ac_hi=-1 ac_mid=-1 |
| 16667 | while :; do |
| 16668 | cat >conftest.$ac_ext <<_ACEOF |
| 16669 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16670 | /* confdefs.h. */ |
| 16671 | _ACEOF |
| 16672 | cat confdefs.h >>conftest.$ac_ext |
| 16673 | cat >>conftest.$ac_ext <<_ACEOF |
| 16674 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16675 | #include <wchar.h> |
| 16676 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16677 | int |
| 16678 | main () |
| 16679 | { |
| 16680 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; |
| 16681 | test_array [0] = 0 |
| 16682 | |
| 16683 | ; |
| 16684 | return 0; |
| 16685 | } |
| 16686 | _ACEOF |
| 16687 | rm -f conftest.$ac_objext |
| 16688 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16689 | (eval $ac_compile) 2>&5 |
| 16690 | ac_status=$? |
| 16691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16692 | (exit $ac_status); } && |
| 16693 | { ac_try='test -s conftest.$ac_objext' |
| 16694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16695 | (eval $ac_try) 2>&5 |
| 16696 | ac_status=$? |
| 16697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16698 | (exit $ac_status); }; }; then |
| 16699 | ac_lo=$ac_mid; break |
| 16700 | else |
| 16701 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16702 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16703 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16704 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 16705 | if test $ac_mid -le $ac_hi; then |
| 16706 | ac_lo= ac_hi= |
| 16707 | break |
| 16708 | fi |
| 16709 | ac_mid=`expr 2 '*' $ac_mid` |
| 16710 | fi |
| 16711 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16712 | done |
| 16713 | else |
| 16714 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16715 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16716 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16717 | ac_lo= ac_hi= |
| 16718 | fi |
| 16719 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16720 | fi |
| 16721 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16722 | # Binary search between lo and hi bounds. |
| 16723 | while test "x$ac_lo" != "x$ac_hi"; do |
| 16724 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 16725 | cat >conftest.$ac_ext <<_ACEOF |
| 16726 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16727 | /* confdefs.h. */ |
| 16728 | _ACEOF |
| 16729 | cat confdefs.h >>conftest.$ac_ext |
| 16730 | cat >>conftest.$ac_ext <<_ACEOF |
| 16731 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16732 | #include <wchar.h> |
| 16733 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16734 | int |
| 16735 | main () |
| 16736 | { |
| 16737 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 16738 | test_array [0] = 0 |
| 16739 | |
| 16740 | ; |
| 16741 | return 0; |
| 16742 | } |
| 16743 | _ACEOF |
| 16744 | rm -f conftest.$ac_objext |
| 16745 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16746 | (eval $ac_compile) 2>&5 |
| 16747 | ac_status=$? |
| 16748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16749 | (exit $ac_status); } && |
| 16750 | { ac_try='test -s conftest.$ac_objext' |
| 16751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16752 | (eval $ac_try) 2>&5 |
| 16753 | ac_status=$? |
| 16754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16755 | (exit $ac_status); }; }; then |
| 16756 | ac_hi=$ac_mid |
| 16757 | else |
| 16758 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16759 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16760 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16761 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 16762 | fi |
| 16763 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16764 | done |
| 16765 | case $ac_lo in |
| 16766 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16767 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
| 16768 | See \`config.log' for more details." >&5 |
| 16769 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 |
| 16770 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16771 | { (exit 1); exit 1; }; } ;; |
| 16772 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16773 | else |
| 16774 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16775 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 16776 | See \`config.log' for more details." >&5 |
| 16777 | echo "$as_me: error: cannot run test program while cross compiling |
| 16778 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16779 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16780 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16781 | cat >conftest.$ac_ext <<_ACEOF |
| 16782 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16783 | /* confdefs.h. */ |
| 16784 | _ACEOF |
| 16785 | cat confdefs.h >>conftest.$ac_ext |
| 16786 | cat >>conftest.$ac_ext <<_ACEOF |
| 16787 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16788 | #include <wchar.h> |
| 16789 | |
| 16790 | long longval () { return (long) (sizeof (wchar_t)); } |
| 16791 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16792 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16793 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16794 | int |
| 16795 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16796 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16797 | |
| 16798 | FILE *f = fopen ("conftest.val", "w"); |
| 16799 | if (! f) |
| 16800 | exit (1); |
| 16801 | if (((long) (sizeof (wchar_t))) < 0) |
| 16802 | { |
| 16803 | long i = longval (); |
| 16804 | if (i != ((long) (sizeof (wchar_t)))) |
| 16805 | exit (1); |
| 16806 | fprintf (f, "%ld\n", i); |
| 16807 | } |
| 16808 | else |
| 16809 | { |
| 16810 | unsigned long i = ulongval (); |
| 16811 | if (i != ((long) (sizeof (wchar_t)))) |
| 16812 | exit (1); |
| 16813 | fprintf (f, "%lu\n", i); |
| 16814 | } |
| 16815 | exit (ferror (f) || fclose (f) != 0); |
| 16816 | |
| 16817 | ; |
| 16818 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16819 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16820 | _ACEOF |
| 16821 | rm -f conftest$ac_exeext |
| 16822 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16823 | (eval $ac_link) 2>&5 |
| 16824 | ac_status=$? |
| 16825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16826 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16828 | (eval $ac_try) 2>&5 |
| 16829 | ac_status=$? |
| 16830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16831 | (exit $ac_status); }; }; then |
| 16832 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16833 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16834 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16835 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16836 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16837 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16838 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16839 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
| 16840 | See \`config.log' for more details." >&5 |
| 16841 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 |
| 16842 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16843 | { (exit 1); exit 1; }; } |
| 16844 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16845 | 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] | 16846 | fi |
| 16847 | fi |
| 16848 | rm -f conftest.val |
| 16849 | else |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16850 | ac_cv_sizeof_wchar_t=0 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16851 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16852 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16853 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 16854 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 |
| 16855 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16856 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16857 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16858 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16859 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16860 | fi |
| 16861 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 16862 | echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5 |
| 16863 | echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6 |
| 16864 | have_ucs4_tcl=no |
| 16865 | cat >conftest.$ac_ext <<_ACEOF |
| 16866 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16867 | /* confdefs.h. */ |
| 16868 | _ACEOF |
| 16869 | cat confdefs.h >>conftest.$ac_ext |
| 16870 | cat >>conftest.$ac_ext <<_ACEOF |
| 16871 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 16872 | |
| 16873 | #include <tcl.h> |
| 16874 | #if TCL_UTF_MAX != 6 |
| 16875 | # error "NOT UCS4_TCL" |
| 16876 | #endif |
| 16877 | int |
| 16878 | main () |
| 16879 | { |
| 16880 | |
| 16881 | ; |
| 16882 | return 0; |
| 16883 | } |
| 16884 | _ACEOF |
| 16885 | rm -f conftest.$ac_objext |
| 16886 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16887 | (eval $ac_compile) 2>&5 |
| 16888 | ac_status=$? |
| 16889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16890 | (exit $ac_status); } && |
| 16891 | { ac_try='test -s conftest.$ac_objext' |
| 16892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16893 | (eval $ac_try) 2>&5 |
| 16894 | ac_status=$? |
| 16895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16896 | (exit $ac_status); }; }; then |
| 16897 | |
| 16898 | |
| 16899 | cat >>confdefs.h <<\_ACEOF |
| 16900 | #define HAVE_UCS4_TCL 1 |
| 16901 | _ACEOF |
| 16902 | |
| 16903 | have_ucs4_tcl=yes |
| 16904 | |
| 16905 | else |
| 16906 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16907 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16908 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 16909 | fi |
| 16910 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16911 | echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5 |
| 16912 | echo "${ECHO_T}$have_ucs4_tcl" >&6 |
| 16913 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16914 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 16915 | if test "$wchar_h" = yes |
| 16916 | then |
| 16917 | # check whether wchar_t is signed or not |
| 16918 | echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5 |
| 16919 | echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6 |
| 16920 | if test "${ac_cv_wchar_t_signed+set}" = set; then |
| 16921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16922 | else |
| 16923 | |
| 16924 | if test "$cross_compiling" = yes; then |
| 16925 | ac_cv_wchar_t_signed=yes |
| 16926 | else |
| 16927 | cat >conftest.$ac_ext <<_ACEOF |
| 16928 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16929 | /* confdefs.h. */ |
| 16930 | _ACEOF |
| 16931 | cat confdefs.h >>conftest.$ac_ext |
| 16932 | cat >>conftest.$ac_ext <<_ACEOF |
| 16933 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 16934 | |
| 16935 | #include <wchar.h> |
| 16936 | int main() |
| 16937 | { |
| 16938 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 1 : 0); |
| 16939 | } |
| 16940 | |
| 16941 | _ACEOF |
| 16942 | rm -f conftest$ac_exeext |
| 16943 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16944 | (eval $ac_link) 2>&5 |
| 16945 | ac_status=$? |
| 16946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16947 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16949 | (eval $ac_try) 2>&5 |
| 16950 | ac_status=$? |
| 16951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16952 | (exit $ac_status); }; }; then |
| 16953 | ac_cv_wchar_t_signed=yes |
| 16954 | else |
| 16955 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16956 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16957 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16958 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 16959 | ( exit $ac_status ) |
| 16960 | ac_cv_wchar_t_signed=no |
| 16961 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16962 | 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] | 16963 | fi |
| 16964 | fi |
| 16965 | |
| 16966 | echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5 |
| 16967 | echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6 |
| 16968 | fi |
| 16969 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16970 | echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 16971 | 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] | 16972 | # Check whether --enable-unicode or --disable-unicode was given. |
| 16973 | if test "${enable_unicode+set}" = set; then |
| 16974 | enableval="$enable_unicode" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16975 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16976 | else |
| 16977 | enable_unicode=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16978 | fi; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16979 | |
| 16980 | if test $enable_unicode = yes |
| 16981 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 16982 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 16983 | case "$have_ucs4_tcl" in |
| 16984 | yes) enable_unicode="ucs4" |
| 16985 | ;; |
| 16986 | *) enable_unicode="ucs2" |
| 16987 | ;; |
| 16988 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16989 | fi |
| 16990 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 16991 | |
| 16992 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16993 | case "$enable_unicode" in |
| 16994 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16995 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16996 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16997 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16998 | |
| 16999 | ;; |
| 17000 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17001 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17002 | #define Py_UNICODE_SIZE 4 |
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 | |
| 17005 | ;; |
| 17006 | esac |
| 17007 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17008 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17009 | |
| 17010 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 17011 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17012 | if test "$enable_unicode" = "no" |
| 17013 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 17014 | UNICODE_OBJS="" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17015 | echo "$as_me:$LINENO: result: not used" >&5 |
| 17016 | echo "${ECHO_T}not used" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17017 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 17018 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17019 | |
| 17020 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17021 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17022 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17023 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 17024 | |
| 17025 | # wchar_t is only usable if it maps to an unsigned type |
| 17026 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ |
| 17027 | -a "$ac_cv_wchar_t_signed" == "no" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17028 | then |
| 17029 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17030 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17031 | cat >>confdefs.h <<\_ACEOF |
| 17032 | #define HAVE_USABLE_WCHAR_T 1 |
| 17033 | _ACEOF |
| 17034 | |
| 17035 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17036 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17037 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17038 | |
| 17039 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 17040 | then |
| 17041 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17042 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17043 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17044 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17045 | |
| 17046 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 17047 | then |
| 17048 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17049 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17050 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17051 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17052 | |
| 17053 | else |
| 17054 | PY_UNICODE_TYPE="no type found" |
| 17055 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17056 | echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 17057 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17058 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17059 | |
| 17060 | # check for endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17061 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 17062 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 17063 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 17064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17065 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17066 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 17067 | cat >conftest.$ac_ext <<_ACEOF |
| 17068 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17069 | /* confdefs.h. */ |
| 17070 | _ACEOF |
| 17071 | cat confdefs.h >>conftest.$ac_ext |
| 17072 | cat >>conftest.$ac_ext <<_ACEOF |
| 17073 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17074 | #include <sys/types.h> |
| 17075 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17076 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17077 | int |
| 17078 | main () |
| 17079 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17080 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 17081 | bogus endian macros |
| 17082 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17083 | |
| 17084 | ; |
| 17085 | return 0; |
| 17086 | } |
| 17087 | _ACEOF |
| 17088 | rm -f conftest.$ac_objext |
| 17089 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17090 | (eval $ac_compile) 2>&5 |
| 17091 | ac_status=$? |
| 17092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17093 | (exit $ac_status); } && |
| 17094 | { ac_try='test -s conftest.$ac_objext' |
| 17095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17096 | (eval $ac_try) 2>&5 |
| 17097 | ac_status=$? |
| 17098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17099 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17100 | # 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] | 17101 | cat >conftest.$ac_ext <<_ACEOF |
| 17102 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17103 | /* confdefs.h. */ |
| 17104 | _ACEOF |
| 17105 | cat confdefs.h >>conftest.$ac_ext |
| 17106 | cat >>conftest.$ac_ext <<_ACEOF |
| 17107 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17108 | #include <sys/types.h> |
| 17109 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17110 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17111 | int |
| 17112 | main () |
| 17113 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17114 | #if BYTE_ORDER != BIG_ENDIAN |
| 17115 | not big endian |
| 17116 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17117 | |
| 17118 | ; |
| 17119 | return 0; |
| 17120 | } |
| 17121 | _ACEOF |
| 17122 | rm -f conftest.$ac_objext |
| 17123 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17124 | (eval $ac_compile) 2>&5 |
| 17125 | ac_status=$? |
| 17126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17127 | (exit $ac_status); } && |
| 17128 | { ac_try='test -s conftest.$ac_objext' |
| 17129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17130 | (eval $ac_try) 2>&5 |
| 17131 | ac_status=$? |
| 17132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17133 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17134 | ac_cv_c_bigendian=yes |
| 17135 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17136 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17137 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17138 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17139 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17140 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17141 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17142 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17143 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17144 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17145 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17146 | # It does not; compile a test program. |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17147 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17148 | # 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] | 17149 | ac_cv_c_bigendian=unknown |
| 17150 | cat >conftest.$ac_ext <<_ACEOF |
| 17151 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17152 | /* confdefs.h. */ |
| 17153 | _ACEOF |
| 17154 | cat confdefs.h >>conftest.$ac_ext |
| 17155 | cat >>conftest.$ac_ext <<_ACEOF |
| 17156 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17157 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 17158 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 17159 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 17160 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 17161 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 17162 | 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] | 17163 | int |
| 17164 | main () |
| 17165 | { |
| 17166 | _ascii (); _ebcdic (); |
| 17167 | ; |
| 17168 | return 0; |
| 17169 | } |
| 17170 | _ACEOF |
| 17171 | rm -f conftest.$ac_objext |
| 17172 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17173 | (eval $ac_compile) 2>&5 |
| 17174 | ac_status=$? |
| 17175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17176 | (exit $ac_status); } && |
| 17177 | { ac_try='test -s conftest.$ac_objext' |
| 17178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17179 | (eval $ac_try) 2>&5 |
| 17180 | ac_status=$? |
| 17181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17182 | (exit $ac_status); }; }; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17183 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17184 | ac_cv_c_bigendian=yes |
| 17185 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17186 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17187 | if test "$ac_cv_c_bigendian" = unknown; then |
| 17188 | ac_cv_c_bigendian=no |
| 17189 | else |
| 17190 | # finding both strings is unlikely to happen, but who knows? |
| 17191 | ac_cv_c_bigendian=unknown |
| 17192 | fi |
| 17193 | fi |
| 17194 | else |
| 17195 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17196 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17197 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17198 | fi |
| 17199 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17200 | else |
| 17201 | cat >conftest.$ac_ext <<_ACEOF |
| 17202 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17203 | /* confdefs.h. */ |
| 17204 | _ACEOF |
| 17205 | cat confdefs.h >>conftest.$ac_ext |
| 17206 | cat >>conftest.$ac_ext <<_ACEOF |
| 17207 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17208 | int |
| 17209 | main () |
| 17210 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17211 | /* Are we little or big endian? From Harbison&Steele. */ |
| 17212 | union |
| 17213 | { |
| 17214 | long l; |
| 17215 | char c[sizeof (long)]; |
| 17216 | } u; |
| 17217 | u.l = 1; |
| 17218 | exit (u.c[sizeof (long) - 1] == 1); |
| 17219 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17220 | _ACEOF |
| 17221 | rm -f conftest$ac_exeext |
| 17222 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17223 | (eval $ac_link) 2>&5 |
| 17224 | ac_status=$? |
| 17225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17226 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17228 | (eval $ac_try) 2>&5 |
| 17229 | ac_status=$? |
| 17230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17231 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17232 | ac_cv_c_bigendian=no |
| 17233 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17234 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17235 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17236 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17237 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17238 | ( exit $ac_status ) |
| 17239 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17240 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17241 | 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] | 17242 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17243 | fi |
| 17244 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17245 | fi |
| 17246 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 17247 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 17248 | case $ac_cv_c_bigendian in |
| 17249 | yes) |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17250 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17251 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17252 | #define WORDS_BIGENDIAN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17253 | _ACEOF |
| 17254 | ;; |
| 17255 | no) |
| 17256 | ;; |
| 17257 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17258 | { { echo "$as_me:$LINENO: error: unknown endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17259 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17260 | echo "$as_me: error: unknown endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17261 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 17262 | { (exit 1); exit 1; }; } ;; |
| 17263 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17264 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17265 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 17266 | # Check whether right shifting a negative integer extends the sign bit |
| 17267 | # 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] | 17268 | echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 17269 | echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6 |
| 17270 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
| 17271 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 17272 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17273 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 17274 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 17275 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 17276 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17277 | cat >conftest.$ac_ext <<_ACEOF |
| 17278 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17279 | /* confdefs.h. */ |
| 17280 | _ACEOF |
| 17281 | cat confdefs.h >>conftest.$ac_ext |
| 17282 | cat >>conftest.$ac_ext <<_ACEOF |
| 17283 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 17284 | |
| 17285 | int main() |
| 17286 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 17287 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 17288 | } |
| 17289 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17290 | _ACEOF |
| 17291 | rm -f conftest$ac_exeext |
| 17292 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17293 | (eval $ac_link) 2>&5 |
| 17294 | ac_status=$? |
| 17295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17296 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17298 | (eval $ac_try) 2>&5 |
| 17299 | ac_status=$? |
| 17300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17301 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 17302 | ac_cv_rshift_extends_sign=yes |
| 17303 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17304 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17305 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17306 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17307 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17308 | ( exit $ac_status ) |
| 17309 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 17310 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17311 | 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] | 17312 | fi |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 17313 | fi |
| 17314 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17315 | echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 17316 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 17317 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 17318 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17319 | |
| 17320 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 17321 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17322 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 17323 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 17324 | fi |
| 17325 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 17326 | # check for getc_unlocked and related locking functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17327 | echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 17328 | echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6 |
| 17329 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
| 17330 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 17331 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17332 | |
| 17333 | cat >conftest.$ac_ext <<_ACEOF |
| 17334 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17335 | /* confdefs.h. */ |
| 17336 | _ACEOF |
| 17337 | cat confdefs.h >>conftest.$ac_ext |
| 17338 | cat >>conftest.$ac_ext <<_ACEOF |
| 17339 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 17340 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17341 | int |
| 17342 | main () |
| 17343 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 17344 | |
| 17345 | FILE *f = fopen("/dev/null", "r"); |
| 17346 | flockfile(f); |
| 17347 | getc_unlocked(f); |
| 17348 | funlockfile(f); |
| 17349 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17350 | ; |
| 17351 | return 0; |
| 17352 | } |
| 17353 | _ACEOF |
| 17354 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17355 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17356 | (eval $ac_link) 2>&5 |
| 17357 | ac_status=$? |
| 17358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17359 | (exit $ac_status); } && |
| 17360 | { ac_try='test -s conftest$ac_exeext' |
| 17361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17362 | (eval $ac_try) 2>&5 |
| 17363 | ac_status=$? |
| 17364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17365 | (exit $ac_status); }; }; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 17366 | ac_cv_have_getc_unlocked=yes |
| 17367 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17368 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17369 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17370 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17371 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 17372 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17373 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 17374 | fi |
| 17375 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17376 | echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 17377 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 17378 | if test "$ac_cv_have_getc_unlocked" = yes |
| 17379 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17380 | |
| 17381 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 17382 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17383 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 17384 | |
| 17385 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 17386 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 17387 | # check for readline 2.2 |
| 17388 | cat >conftest.$ac_ext <<_ACEOF |
| 17389 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17390 | /* confdefs.h. */ |
| 17391 | _ACEOF |
| 17392 | cat confdefs.h >>conftest.$ac_ext |
| 17393 | cat >>conftest.$ac_ext <<_ACEOF |
| 17394 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 17395 | #include <readline/readline.h> |
| 17396 | _ACEOF |
| 17397 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 17398 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 17399 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17400 | grep -v '^ *+' conftest.er1 >conftest.err |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 17401 | rm -f conftest.er1 |
| 17402 | cat conftest.err >&5 |
| 17403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17404 | (exit $ac_status); } >/dev/null; then |
| 17405 | if test -s conftest.err; then |
| 17406 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 17407 | else |
| 17408 | ac_cpp_err= |
| 17409 | fi |
| 17410 | else |
| 17411 | ac_cpp_err=yes |
| 17412 | fi |
| 17413 | if test -z "$ac_cpp_err"; then |
| 17414 | have_readline=yes |
| 17415 | else |
| 17416 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17417 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17418 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 17419 | have_readline=no |
| 17420 | fi |
| 17421 | rm -f conftest.err conftest.$ac_ext |
| 17422 | if test $have_readline = yes |
| 17423 | then |
| 17424 | cat >conftest.$ac_ext <<_ACEOF |
| 17425 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17426 | /* confdefs.h. */ |
| 17427 | _ACEOF |
| 17428 | cat confdefs.h >>conftest.$ac_ext |
| 17429 | cat >>conftest.$ac_ext <<_ACEOF |
| 17430 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 17431 | #include <readline/readline.h> |
| 17432 | |
| 17433 | _ACEOF |
| 17434 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17435 | $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] | 17436 | |
| 17437 | cat >>confdefs.h <<\_ACEOF |
| 17438 | #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1 |
| 17439 | _ACEOF |
| 17440 | |
| 17441 | fi |
| 17442 | rm -f conftest* |
| 17443 | |
| 17444 | fi |
| 17445 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17446 | # check for readline 4.0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17447 | echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 17448 | echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6 |
| 17449 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
| 17450 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 17451 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17452 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 17453 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17454 | cat >conftest.$ac_ext <<_ACEOF |
| 17455 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17456 | /* confdefs.h. */ |
| 17457 | _ACEOF |
| 17458 | cat confdefs.h >>conftest.$ac_ext |
| 17459 | cat >>conftest.$ac_ext <<_ACEOF |
| 17460 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17461 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 17462 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17463 | #ifdef __cplusplus |
| 17464 | extern "C" |
| 17465 | #endif |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 17466 | /* 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] | 17467 | builtin and then its argument prototype would still apply. */ |
| 17468 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17469 | int |
| 17470 | main () |
| 17471 | { |
| 17472 | rl_pre_input_hook (); |
| 17473 | ; |
| 17474 | return 0; |
| 17475 | } |
| 17476 | _ACEOF |
| 17477 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17478 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17479 | (eval $ac_link) 2>&5 |
| 17480 | ac_status=$? |
| 17481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17482 | (exit $ac_status); } && |
| 17483 | { ac_try='test -s conftest$ac_exeext' |
| 17484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17485 | (eval $ac_try) 2>&5 |
| 17486 | ac_status=$? |
| 17487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17488 | (exit $ac_status); }; }; then |
| 17489 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17490 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17491 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17492 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17493 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17494 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17495 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17496 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 17497 | LIBS=$ac_check_lib_save_LIBS |
| 17498 | fi |
| 17499 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 17500 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6 |
| 17501 | 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] | 17502 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17503 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17504 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17505 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17506 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17507 | fi |
| 17508 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17509 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17510 | # check for readline 4.2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17511 | echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 17512 | echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6 |
| 17513 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
| 17514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17515 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17516 | ac_check_lib_save_LIBS=$LIBS |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17517 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17518 | cat >conftest.$ac_ext <<_ACEOF |
| 17519 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17520 | /* confdefs.h. */ |
| 17521 | _ACEOF |
| 17522 | cat confdefs.h >>conftest.$ac_ext |
| 17523 | cat >>conftest.$ac_ext <<_ACEOF |
| 17524 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17525 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17526 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17527 | #ifdef __cplusplus |
| 17528 | extern "C" |
| 17529 | #endif |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17530 | /* 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] | 17531 | builtin and then its argument prototype would still apply. */ |
| 17532 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17533 | int |
| 17534 | main () |
| 17535 | { |
| 17536 | rl_completion_matches (); |
| 17537 | ; |
| 17538 | return 0; |
| 17539 | } |
| 17540 | _ACEOF |
| 17541 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17542 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17543 | (eval $ac_link) 2>&5 |
| 17544 | ac_status=$? |
| 17545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17546 | (exit $ac_status); } && |
| 17547 | { ac_try='test -s conftest$ac_exeext' |
| 17548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17549 | (eval $ac_try) 2>&5 |
| 17550 | ac_status=$? |
| 17551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17552 | (exit $ac_status); }; }; then |
| 17553 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 17554 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17555 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17556 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17557 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17558 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 17559 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17560 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 17561 | LIBS=$ac_check_lib_save_LIBS |
| 17562 | fi |
| 17563 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 17564 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6 |
| 17565 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17566 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17567 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 17568 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17569 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 17570 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 17571 | fi |
| 17572 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17573 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17574 | echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 17575 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6 |
| 17576 | if test "${ac_cv_broken_nice+set}" = set; then |
| 17577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17578 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17579 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 17580 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 17581 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 17582 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17583 | cat >conftest.$ac_ext <<_ACEOF |
| 17584 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17585 | /* confdefs.h. */ |
| 17586 | _ACEOF |
| 17587 | cat confdefs.h >>conftest.$ac_ext |
| 17588 | cat >>conftest.$ac_ext <<_ACEOF |
| 17589 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 17590 | |
| 17591 | int main() |
| 17592 | { |
| 17593 | int val1 = nice(1); |
| 17594 | if (val1 != -1 && val1 == nice(2)) |
| 17595 | exit(0); |
| 17596 | exit(1); |
| 17597 | } |
| 17598 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17599 | _ACEOF |
| 17600 | rm -f conftest$ac_exeext |
| 17601 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17602 | (eval $ac_link) 2>&5 |
| 17603 | ac_status=$? |
| 17604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17605 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17607 | (eval $ac_try) 2>&5 |
| 17608 | ac_status=$? |
| 17609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17610 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 17611 | ac_cv_broken_nice=yes |
| 17612 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17613 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17614 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17615 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17616 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17617 | ( exit $ac_status ) |
| 17618 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 17619 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17620 | 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] | 17621 | fi |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 17622 | fi |
| 17623 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17624 | echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 17625 | echo "${ECHO_T}$ac_cv_broken_nice" >&6 |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 17626 | if test "$ac_cv_broken_nice" = yes |
| 17627 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17628 | |
| 17629 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 17630 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17631 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 17632 | |
| 17633 | fi |
| 17634 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 17635 | echo "$as_me:$LINENO: checking for broken poll()" >&5 |
| 17636 | echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6 |
| 17637 | if test "$cross_compiling" = yes; then |
| 17638 | ac_cv_broken_poll=no |
| 17639 | else |
| 17640 | cat >conftest.$ac_ext <<_ACEOF |
| 17641 | #line $LINENO "configure" |
| 17642 | /* confdefs.h. */ |
| 17643 | _ACEOF |
| 17644 | cat confdefs.h >>conftest.$ac_ext |
| 17645 | cat >>conftest.$ac_ext <<_ACEOF |
| 17646 | /* end confdefs.h. */ |
| 17647 | |
| 17648 | #include <poll.h> |
| 17649 | |
| 17650 | int main (void) |
| 17651 | { |
| 17652 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
| 17653 | |
| 17654 | close (42); |
| 17655 | |
| 17656 | int poll_test = poll (&poll_struct, 1, 0); |
| 17657 | |
| 17658 | if (poll_test < 0) |
| 17659 | { |
| 17660 | exit(0); |
| 17661 | } |
| 17662 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
| 17663 | { |
| 17664 | exit(0); |
| 17665 | } |
| 17666 | else |
| 17667 | { |
| 17668 | exit(1); |
| 17669 | } |
| 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_broken_poll=yes |
| 17685 | else |
| 17686 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17687 | echo "$as_me: failed program was:" >&5 |
| 17688 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17689 | |
| 17690 | ( exit $ac_status ) |
| 17691 | ac_cv_broken_poll=no |
| 17692 | fi |
| 17693 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 17694 | fi |
| 17695 | echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5 |
| 17696 | echo "${ECHO_T}$ac_cv_broken_poll" >&6 |
| 17697 | if test "$ac_cv_broken_poll" = yes |
| 17698 | then |
| 17699 | |
| 17700 | cat >>confdefs.h <<\_ACEOF |
| 17701 | #define HAVE_BROKEN_POLL 1 |
| 17702 | _ACEOF |
| 17703 | |
| 17704 | fi |
| 17705 | |
| 17706 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 17707 | # tzset(3) exists and works like we expect it to |
| 17708 | echo "$as_me:$LINENO: checking for working tzset()" >&5 |
| 17709 | echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6 |
| 17710 | if test "${ac_cv_working_tzset+set}" = set; then |
| 17711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17712 | else |
| 17713 | |
| 17714 | if test "$cross_compiling" = yes; then |
| 17715 | ac_cv_working_tzset=no |
| 17716 | else |
| 17717 | cat >conftest.$ac_ext <<_ACEOF |
| 17718 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17719 | /* confdefs.h. */ |
| 17720 | _ACEOF |
| 17721 | cat confdefs.h >>conftest.$ac_ext |
| 17722 | cat >>conftest.$ac_ext <<_ACEOF |
| 17723 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 17724 | |
| 17725 | #include <stdlib.h> |
| 17726 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 17727 | #include <string.h> |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 17728 | int main() |
| 17729 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 17730 | /* Note that we need to ensure that not only does tzset(3) |
| 17731 | do 'something' with localtime, but it works as documented |
| 17732 | in the library reference and as expected by the test suite. |
| 17733 | |
| 17734 | Red Hat 6.2 doesn't understand the southern hemisphere |
| 17735 | after New Year's Day; it thinks swaps on that day. |
| 17736 | */ |
| 17737 | |
| 17738 | time_t groundhogday = 1044144000; /* GMT-based; well, it's a colony */ |
| 17739 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 17740 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 17741 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 17742 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 17743 | if (localtime(&groundhogday)->tm_hour != 0) |
| 17744 | exit(1); |
| 17745 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 17746 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 17747 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 17748 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 17749 | exit(1); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 17750 | |
| 17751 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 17752 | tzset(); |
| 17753 | if (localtime(&groundhogday)->tm_hour != 11) |
| 17754 | exit(1); |
| 17755 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 17756 | exit(1); |
| 17757 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 17758 | exit(1); |
| 17759 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 17760 | exit(0); |
| 17761 | } |
| 17762 | |
| 17763 | _ACEOF |
| 17764 | rm -f conftest$ac_exeext |
| 17765 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17766 | (eval $ac_link) 2>&5 |
| 17767 | ac_status=$? |
| 17768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17769 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17771 | (eval $ac_try) 2>&5 |
| 17772 | ac_status=$? |
| 17773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17774 | (exit $ac_status); }; }; then |
| 17775 | ac_cv_working_tzset=yes |
| 17776 | else |
| 17777 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17778 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17779 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17780 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 17781 | ( exit $ac_status ) |
| 17782 | ac_cv_working_tzset=no |
| 17783 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17784 | 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] | 17785 | fi |
| 17786 | fi |
| 17787 | |
| 17788 | echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5 |
| 17789 | echo "${ECHO_T}$ac_cv_working_tzset" >&6 |
| 17790 | if test "$ac_cv_working_tzset" = yes |
| 17791 | then |
| 17792 | |
| 17793 | cat >>confdefs.h <<\_ACEOF |
| 17794 | #define HAVE_WORKING_TZSET 1 |
| 17795 | _ACEOF |
| 17796 | |
| 17797 | fi |
| 17798 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 17799 | # Look for subsecond timestamps in struct stat |
| 17800 | echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 17801 | echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6 |
| 17802 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
| 17803 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17804 | else |
| 17805 | cat >conftest.$ac_ext <<_ACEOF |
| 17806 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17807 | /* confdefs.h. */ |
| 17808 | _ACEOF |
| 17809 | cat confdefs.h >>conftest.$ac_ext |
| 17810 | cat >>conftest.$ac_ext <<_ACEOF |
| 17811 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 17812 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 17813 | int |
| 17814 | main () |
| 17815 | { |
| 17816 | |
| 17817 | struct stat st; |
| 17818 | st.st_mtim.tv_nsec = 1; |
| 17819 | |
| 17820 | ; |
| 17821 | return 0; |
| 17822 | } |
| 17823 | _ACEOF |
| 17824 | rm -f conftest.$ac_objext |
| 17825 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17826 | (eval $ac_compile) 2>&5 |
| 17827 | ac_status=$? |
| 17828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17829 | (exit $ac_status); } && |
| 17830 | { ac_try='test -s conftest.$ac_objext' |
| 17831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17832 | (eval $ac_try) 2>&5 |
| 17833 | ac_status=$? |
| 17834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17835 | (exit $ac_status); }; }; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 17836 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 17837 | else |
| 17838 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17839 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17840 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 17841 | ac_cv_stat_tv_nsec=no |
| 17842 | fi |
| 17843 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17844 | fi |
| 17845 | |
| 17846 | echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 17847 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6 |
| 17848 | if test "$ac_cv_stat_tv_nsec" = yes |
| 17849 | then |
| 17850 | |
| 17851 | cat >>confdefs.h <<\_ACEOF |
| 17852 | #define HAVE_STAT_TV_NSEC 1 |
| 17853 | _ACEOF |
| 17854 | |
| 17855 | fi |
| 17856 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17857 | # 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] | 17858 | echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 17859 | echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6 |
| 17860 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
| 17861 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17862 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17863 | cat >conftest.$ac_ext <<_ACEOF |
| 17864 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17865 | /* confdefs.h. */ |
| 17866 | _ACEOF |
| 17867 | cat confdefs.h >>conftest.$ac_ext |
| 17868 | cat >>conftest.$ac_ext <<_ACEOF |
| 17869 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17870 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17871 | int |
| 17872 | main () |
| 17873 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17874 | |
| 17875 | int rtn; |
| 17876 | rtn = mvwdelch(0,0,0); |
| 17877 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17878 | ; |
| 17879 | return 0; |
| 17880 | } |
| 17881 | _ACEOF |
| 17882 | rm -f conftest.$ac_objext |
| 17883 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17884 | (eval $ac_compile) 2>&5 |
| 17885 | ac_status=$? |
| 17886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17887 | (exit $ac_status); } && |
| 17888 | { ac_try='test -s conftest.$ac_objext' |
| 17889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17890 | (eval $ac_try) 2>&5 |
| 17891 | ac_status=$? |
| 17892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17893 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17894 | ac_cv_mvwdelch_is_expression=yes |
| 17895 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17896 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17897 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17898 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17899 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17900 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17901 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17902 | fi |
| 17903 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17904 | echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 17905 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17906 | |
| 17907 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 17908 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17909 | |
| 17910 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17911 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17912 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17913 | |
| 17914 | fi |
| 17915 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17916 | echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 17917 | echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6 |
| 17918 | if test "${ac_cv_window_has_flags+set}" = set; then |
| 17919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17920 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17921 | cat >conftest.$ac_ext <<_ACEOF |
| 17922 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17923 | /* confdefs.h. */ |
| 17924 | _ACEOF |
| 17925 | cat confdefs.h >>conftest.$ac_ext |
| 17926 | cat >>conftest.$ac_ext <<_ACEOF |
| 17927 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17928 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17929 | int |
| 17930 | main () |
| 17931 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17932 | |
| 17933 | WINDOW *w; |
| 17934 | w->_flags = 0; |
| 17935 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17936 | ; |
| 17937 | return 0; |
| 17938 | } |
| 17939 | _ACEOF |
| 17940 | rm -f conftest.$ac_objext |
| 17941 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17942 | (eval $ac_compile) 2>&5 |
| 17943 | ac_status=$? |
| 17944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17945 | (exit $ac_status); } && |
| 17946 | { ac_try='test -s conftest.$ac_objext' |
| 17947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17948 | (eval $ac_try) 2>&5 |
| 17949 | ac_status=$? |
| 17950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17951 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17952 | ac_cv_window_has_flags=yes |
| 17953 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17954 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17955 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17956 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17957 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17958 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17959 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17960 | fi |
| 17961 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17962 | echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 17963 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17964 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17965 | |
| 17966 | if test "$ac_cv_window_has_flags" = yes |
| 17967 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17968 | |
| 17969 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17970 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17971 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17972 | |
| 17973 | fi |
| 17974 | |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 17975 | echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
| 17976 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6 |
| 17977 | |
| 17978 | if test -e /dev/ptmx |
| 17979 | then |
| 17980 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17981 | echo "${ECHO_T}yes" >&6 |
| 17982 | |
| 17983 | cat >>confdefs.h <<\_ACEOF |
| 17984 | #define HAVE_DEV_PTMX 1 |
| 17985 | _ACEOF |
| 17986 | |
| 17987 | else |
| 17988 | echo "$as_me:$LINENO: result: no" >&5 |
| 17989 | echo "${ECHO_T}no" >&6 |
| 17990 | fi |
| 17991 | |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 17992 | echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 17993 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6 |
| 17994 | |
| 17995 | if test -e /dev/ptc |
| 17996 | then |
| 17997 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17998 | echo "${ECHO_T}yes" >&6 |
| 17999 | |
| 18000 | cat >>confdefs.h <<\_ACEOF |
| 18001 | #define HAVE_DEV_PTC 1 |
| 18002 | _ACEOF |
| 18003 | |
| 18004 | else |
| 18005 | echo "$as_me:$LINENO: result: no" >&5 |
| 18006 | echo "${ECHO_T}no" >&6 |
| 18007 | fi |
| 18008 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18009 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 18010 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
| 18011 | if test "${ac_cv_type_socklen_t+set}" = set; then |
| 18012 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 18013 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18014 | cat >conftest.$ac_ext <<_ACEOF |
| 18015 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18016 | /* confdefs.h. */ |
| 18017 | _ACEOF |
| 18018 | cat confdefs.h >>conftest.$ac_ext |
| 18019 | cat >>conftest.$ac_ext <<_ACEOF |
| 18020 | /* end confdefs.h. */ |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 18021 | |
| 18022 | #ifdef HAVE_SYS_TYPES_H |
| 18023 | #include <sys/types.h> |
| 18024 | #endif |
| 18025 | #ifdef HAVE_SYS_SOCKET_H |
| 18026 | #include <sys/socket.h> |
| 18027 | #endif |
| 18028 | |
| 18029 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18030 | int |
| 18031 | main () |
| 18032 | { |
| 18033 | if ((socklen_t *) 0) |
| 18034 | return 0; |
| 18035 | if (sizeof (socklen_t)) |
| 18036 | return 0; |
| 18037 | ; |
| 18038 | return 0; |
| 18039 | } |
| 18040 | _ACEOF |
| 18041 | rm -f conftest.$ac_objext |
| 18042 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18043 | (eval $ac_compile) 2>&5 |
| 18044 | ac_status=$? |
| 18045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18046 | (exit $ac_status); } && |
| 18047 | { ac_try='test -s conftest.$ac_objext' |
| 18048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18049 | (eval $ac_try) 2>&5 |
| 18050 | ac_status=$? |
| 18051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18052 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 18053 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 18054 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18055 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18056 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18057 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18058 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 18059 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18060 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 18061 | fi |
| 18062 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 18063 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 |
| 18064 | if test $ac_cv_type_socklen_t = yes; then |
| 18065 | : |
| 18066 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 18067 | |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 18068 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 18069 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18070 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 18071 | |
| 18072 | fi |
| 18073 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18074 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18075 | |
| 18076 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 18077 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 18078 | do |
| 18079 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 18080 | done |
| 18081 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18082 | |
Jack Jansen | 0b06be7 | 2002-06-21 14:48:38 +0000 | [diff] [blame] | 18083 | SRCDIRS="Parser Grammar Objects Python Modules Mac Mac/Python" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18084 | echo "$as_me:$LINENO: checking for build directories" >&5 |
| 18085 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 18086 | for dir in $SRCDIRS; do |
| 18087 | if test ! -d $dir; then |
| 18088 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 18089 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 18090 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18091 | echo "$as_me:$LINENO: result: done" >&5 |
| 18092 | echo "${ECHO_T}done" >&6 |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 18093 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18094 | # generate output files |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18095 | 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] | 18096 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18097 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18098 | # This file is a shell script that caches the results of configure |
| 18099 | # 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] | 18100 | # scripts and configure runs, see configure's option --config-cache. |
| 18101 | # It is not useful on other systems. If it contains results you don't |
| 18102 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18103 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18104 | # config.status only pays attention to the cache file if you give it |
| 18105 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18106 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18107 | # `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] | 18108 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 18109 | # following values. |
| 18110 | |
| 18111 | _ACEOF |
| 18112 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 18113 | # The following way of writing the cache mishandles newlines in values, |
| 18114 | # but we know of no workaround that is simple, portable, and efficient. |
| 18115 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18116 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 18117 | # 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] | 18118 | { |
| 18119 | (set) 2>&1 | |
| 18120 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 18121 | *ac_space=\ *) |
| 18122 | # `set' does not quote correctly, so add quotes (double-quote |
| 18123 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 18124 | sed -n \ |
| 18125 | "s/'/'\\\\''/g; |
| 18126 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 18127 | ;; |
| 18128 | *) |
| 18129 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 18130 | sed -n \ |
| 18131 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 18132 | ;; |
| 18133 | esac; |
| 18134 | } | |
| 18135 | sed ' |
| 18136 | t clear |
| 18137 | : clear |
| 18138 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 18139 | t end |
| 18140 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 18141 | : end' >>confcache |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18142 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18143 | if test -w $cache_file; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18144 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 18145 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18146 | else |
| 18147 | echo "not updating unwritable cache $cache_file" |
| 18148 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18149 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18150 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 18151 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18152 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 18153 | # Let make expand exec_prefix. |
| 18154 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 18155 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18156 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 18157 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 18158 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 18159 | # (actually we leave an empty line to preserve line numbers). |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18160 | if test "x$srcdir" = x.; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18161 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 18162 | s/:*\$(srcdir):*/:/; |
| 18163 | s/:*\${srcdir}:*/:/; |
| 18164 | s/:*@srcdir@:*/:/; |
| 18165 | s/^\([^=]*=[ ]*\):*/\1/; |
| 18166 | s/:*$//; |
| 18167 | s/^[^=]*=[ ]*$//; |
| 18168 | }' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18169 | fi |
| 18170 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18171 | DEFS=-DHAVE_CONFIG_H |
| 18172 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18173 | ac_libobjs= |
| 18174 | ac_ltlibobjs= |
| 18175 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 18176 | # 1. Remove the extension, and $U if already installed. |
| 18177 | ac_i=`echo "$ac_i" | |
| 18178 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 18179 | # 2. Add them. |
| 18180 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 18181 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 18182 | done |
| 18183 | LIBOBJS=$ac_libobjs |
| 18184 | |
| 18185 | LTLIBOBJS=$ac_ltlibobjs |
| 18186 | |
| 18187 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18188 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18189 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18190 | ac_clean_files_save=$ac_clean_files |
| 18191 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 18192 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 18193 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 18194 | cat >$CONFIG_STATUS <<_ACEOF |
| 18195 | #! $SHELL |
| 18196 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18197 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18198 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18199 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18200 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18201 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18202 | ac_cs_recheck=false |
| 18203 | ac_cs_silent=false |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18204 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 18205 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18206 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18207 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18208 | ## --------------------- ## |
| 18209 | ## M4sh Initialization. ## |
| 18210 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18211 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18212 | # Be Bourne compatible |
| 18213 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 18214 | emulate sh |
| 18215 | NULLCMD=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18216 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 18217 | # is contrary to our usage. Disable this feature. |
| 18218 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18219 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 18220 | set -o posix |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18221 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18222 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18223 | # Support unset when possible. |
| 18224 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 18225 | as_unset=unset |
| 18226 | else |
| 18227 | as_unset=false |
| 18228 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18229 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18230 | |
| 18231 | # Work around bugs in pre-3.0 UWIN ksh. |
| 18232 | $as_unset ENV MAIL MAILPATH |
| 18233 | PS1='$ ' |
| 18234 | PS2='> ' |
| 18235 | PS4='+ ' |
| 18236 | |
| 18237 | # NLS nuisances. |
| 18238 | for as_var in \ |
| 18239 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 18240 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 18241 | LC_TELEPHONE LC_TIME |
| 18242 | do |
| 18243 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 18244 | eval $as_var=C; export $as_var |
| 18245 | else |
| 18246 | $as_unset $as_var |
| 18247 | fi |
| 18248 | done |
| 18249 | |
| 18250 | # Required to use basename. |
| 18251 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 18252 | as_expr=expr |
| 18253 | else |
| 18254 | as_expr=false |
| 18255 | fi |
| 18256 | |
| 18257 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 18258 | as_basename=basename |
| 18259 | else |
| 18260 | as_basename=false |
| 18261 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18262 | |
| 18263 | |
| 18264 | # Name of the executable. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18265 | as_me=`$as_basename "$0" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18266 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 18267 | X"$0" : 'X\(//\)$' \| \ |
| 18268 | X"$0" : 'X\(/\)$' \| \ |
| 18269 | . : '\(.\)' 2>/dev/null || |
| 18270 | echo X/"$0" | |
| 18271 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 18272 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 18273 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 18274 | s/.*/./; q'` |
| 18275 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18276 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18277 | # PATH needs CR, and LINENO needs CR and PATH. |
| 18278 | # Avoid depending upon Character Ranges. |
| 18279 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 18280 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 18281 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 18282 | as_cr_digits='0123456789' |
| 18283 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 18284 | |
| 18285 | # The user is always right. |
| 18286 | if test "${PATH_SEPARATOR+set}" != set; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18287 | echo "#! /bin/sh" >conf$$.sh |
| 18288 | echo "exit 0" >>conf$$.sh |
| 18289 | chmod +x conf$$.sh |
| 18290 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18291 | PATH_SEPARATOR=';' |
| 18292 | else |
| 18293 | PATH_SEPARATOR=: |
| 18294 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18295 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18296 | fi |
| 18297 | |
| 18298 | |
| 18299 | as_lineno_1=$LINENO |
| 18300 | as_lineno_2=$LINENO |
| 18301 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 18302 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 18303 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 18304 | # Find who we are. Look in the path if we contain no path at all |
| 18305 | # relative or not. |
| 18306 | case $0 in |
| 18307 | *[\\/]* ) as_myself=$0 ;; |
| 18308 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18309 | for as_dir in $PATH |
| 18310 | do |
| 18311 | IFS=$as_save_IFS |
| 18312 | test -z "$as_dir" && as_dir=. |
| 18313 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 18314 | done |
| 18315 | |
| 18316 | ;; |
| 18317 | esac |
| 18318 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 18319 | # in which case we are not to be found in the path. |
| 18320 | if test "x$as_myself" = x; then |
| 18321 | as_myself=$0 |
| 18322 | fi |
| 18323 | if test ! -f "$as_myself"; then |
| 18324 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 18325 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 18326 | { (exit 1); exit 1; }; } |
| 18327 | fi |
| 18328 | case $CONFIG_SHELL in |
| 18329 | '') |
| 18330 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18331 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 18332 | do |
| 18333 | IFS=$as_save_IFS |
| 18334 | test -z "$as_dir" && as_dir=. |
| 18335 | for as_base in sh bash ksh sh5; do |
| 18336 | case $as_dir in |
| 18337 | /*) |
| 18338 | if ("$as_dir/$as_base" -c ' |
| 18339 | as_lineno_1=$LINENO |
| 18340 | as_lineno_2=$LINENO |
| 18341 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 18342 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 18343 | 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] | 18344 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 18345 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18346 | CONFIG_SHELL=$as_dir/$as_base |
| 18347 | export CONFIG_SHELL |
| 18348 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 18349 | fi;; |
| 18350 | esac |
| 18351 | done |
| 18352 | done |
| 18353 | ;; |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18354 | esac |
| 18355 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18356 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 18357 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 18358 | # line-number line before each line; the second 'sed' does the real |
| 18359 | # work. The second script uses 'N' to pair each line-number line |
| 18360 | # with the numbered line, and appends trailing '-' during |
| 18361 | # substitution so that $LINENO is not a special case at line end. |
| 18362 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 18363 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 18364 | sed '=' <$as_myself | |
| 18365 | sed ' |
| 18366 | N |
| 18367 | s,$,-, |
| 18368 | : loop |
| 18369 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 18370 | t loop |
| 18371 | s,-$,, |
| 18372 | s,^['$as_cr_digits']*\n,, |
| 18373 | ' >$as_me.lineno && |
| 18374 | chmod +x $as_me.lineno || |
| 18375 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 18376 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 18377 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18378 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18379 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 18380 | # (the dirname of $[0] is not the place where we might find the |
| 18381 | # original and so on. Autoconf is especially sensible to this). |
| 18382 | . ./$as_me.lineno |
| 18383 | # Exit status is that of the last command. |
| 18384 | exit |
| 18385 | } |
| 18386 | |
| 18387 | |
| 18388 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 18389 | *c*,-n*) ECHO_N= ECHO_C=' |
| 18390 | ' ECHO_T=' ' ;; |
| 18391 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 18392 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 18393 | esac |
| 18394 | |
| 18395 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 18396 | as_expr=expr |
| 18397 | else |
| 18398 | as_expr=false |
| 18399 | fi |
| 18400 | |
| 18401 | rm -f conf$$ conf$$.exe conf$$.file |
| 18402 | echo >conf$$.file |
| 18403 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 18404 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 18405 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 18406 | if test -f conf$$.exe; then |
| 18407 | # Don't use ln at all; we don't have any links |
| 18408 | as_ln_s='cp -p' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18409 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18410 | as_ln_s='ln -s' |
| 18411 | fi |
| 18412 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 18413 | as_ln_s=ln |
| 18414 | else |
| 18415 | as_ln_s='cp -p' |
| 18416 | fi |
| 18417 | rm -f conf$$ conf$$.exe conf$$.file |
| 18418 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18419 | if mkdir -p . 2>/dev/null; then |
| 18420 | as_mkdir_p=: |
| 18421 | else |
| 18422 | as_mkdir_p=false |
| 18423 | fi |
| 18424 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18425 | as_executable_p="test -f" |
| 18426 | |
| 18427 | # Sed expression to map a string onto a valid CPP name. |
| 18428 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 18429 | |
| 18430 | # Sed expression to map a string onto a valid variable name. |
| 18431 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 18432 | |
| 18433 | |
| 18434 | # IFS |
| 18435 | # We need space, tab and new line, in precisely that order. |
| 18436 | as_nl=' |
| 18437 | ' |
| 18438 | IFS=" $as_nl" |
| 18439 | |
| 18440 | # CDPATH. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18441 | $as_unset CDPATH |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18442 | |
| 18443 | exec 6>&1 |
| 18444 | |
| 18445 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 18446 | # report actual input values of CONFIG_FILES etc. instead of their |
| 18447 | # values after options handling. Logging --version etc. is OK. |
| 18448 | exec 5>>config.log |
| 18449 | { |
| 18450 | echo |
| 18451 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 18452 | ## Running $as_me. ## |
| 18453 | _ASBOX |
| 18454 | } >&5 |
| 18455 | cat >&5 <<_CSEOF |
| 18456 | |
Fred Drake | 9bd4462 | 2003-07-30 17:39:48 +0000 | [diff] [blame] | 18457 | This file was extended by python $as_me 2.4, which was |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18458 | generated by GNU Autoconf 2.57. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18459 | |
| 18460 | CONFIG_FILES = $CONFIG_FILES |
| 18461 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 18462 | CONFIG_LINKS = $CONFIG_LINKS |
| 18463 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 18464 | $ $0 $@ |
| 18465 | |
| 18466 | _CSEOF |
| 18467 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 18468 | echo >&5 |
| 18469 | _ACEOF |
| 18470 | |
| 18471 | # Files that config.status was made for. |
| 18472 | if test -n "$ac_config_files"; then |
| 18473 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 18474 | fi |
| 18475 | |
| 18476 | if test -n "$ac_config_headers"; then |
| 18477 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 18478 | fi |
| 18479 | |
| 18480 | if test -n "$ac_config_links"; then |
| 18481 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 18482 | fi |
| 18483 | |
| 18484 | if test -n "$ac_config_commands"; then |
| 18485 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 18486 | fi |
| 18487 | |
| 18488 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 18489 | |
| 18490 | ac_cs_usage="\ |
| 18491 | \`$as_me' instantiates files from templates according to the |
| 18492 | current configuration. |
| 18493 | |
| 18494 | Usage: $0 [OPTIONS] [FILE]... |
| 18495 | |
| 18496 | -h, --help print this help, then exit |
| 18497 | -V, --version print version number, then exit |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18498 | -q, --quiet do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18499 | -d, --debug don't remove temporary files |
| 18500 | --recheck update $as_me by reconfiguring in the same conditions |
| 18501 | --file=FILE[:TEMPLATE] |
| 18502 | instantiate the configuration file FILE |
| 18503 | --header=FILE[:TEMPLATE] |
| 18504 | instantiate the configuration header FILE |
| 18505 | |
| 18506 | Configuration files: |
| 18507 | $config_files |
| 18508 | |
| 18509 | Configuration headers: |
| 18510 | $config_headers |
| 18511 | |
| 18512 | Report bugs to <bug-autoconf@gnu.org>." |
| 18513 | _ACEOF |
| 18514 | |
| 18515 | cat >>$CONFIG_STATUS <<_ACEOF |
| 18516 | ac_cs_version="\\ |
Fred Drake | 9bd4462 | 2003-07-30 17:39:48 +0000 | [diff] [blame] | 18517 | python config.status 2.4 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18518 | configured by $0, generated by GNU Autoconf 2.57, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18519 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 18520 | |
| 18521 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 18522 | Free Software Foundation, Inc. |
| 18523 | This config.status script is free software; the Free Software Foundation |
| 18524 | gives unlimited permission to copy, distribute and modify it." |
| 18525 | srcdir=$srcdir |
| 18526 | INSTALL="$INSTALL" |
| 18527 | _ACEOF |
| 18528 | |
| 18529 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 18530 | # If no file are specified by the user, then we need to provide default |
| 18531 | # value. By we need to know if files were specified by the user. |
| 18532 | ac_need_defaults=: |
| 18533 | while test $# != 0 |
| 18534 | do |
| 18535 | case $1 in |
| 18536 | --*=*) |
| 18537 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 18538 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18539 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18540 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18541 | -*) |
| 18542 | ac_option=$1 |
| 18543 | ac_optarg=$2 |
| 18544 | ac_shift=shift |
| 18545 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18546 | *) # This is not an option, so the user has probably given explicit |
| 18547 | # arguments. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18548 | ac_option=$1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18549 | ac_need_defaults=false;; |
| 18550 | esac |
| 18551 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18552 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18553 | # Handling of the options. |
| 18554 | _ACEOF |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 18555 | cat >>$CONFIG_STATUS <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18556 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 18557 | ac_cs_recheck=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18558 | --version | --vers* | -V ) |
| 18559 | echo "$ac_cs_version"; exit 0 ;; |
| 18560 | --he | --h) |
| 18561 | # Conflict between --help and --header |
| 18562 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 18563 | Try \`$0 --help' for more information." >&5 |
| 18564 | echo "$as_me: error: ambiguous option: $1 |
| 18565 | Try \`$0 --help' for more information." >&2;} |
| 18566 | { (exit 1); exit 1; }; };; |
| 18567 | --help | --hel | -h ) |
| 18568 | echo "$ac_cs_usage"; exit 0 ;; |
| 18569 | --debug | --d* | -d ) |
| 18570 | debug=: ;; |
| 18571 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18572 | $ac_shift |
| 18573 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18574 | ac_need_defaults=false;; |
| 18575 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18576 | $ac_shift |
| 18577 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18578 | ac_need_defaults=false;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18579 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 18580 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 18581 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18582 | |
| 18583 | # This is an error. |
| 18584 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 18585 | Try \`$0 --help' for more information." >&5 |
| 18586 | echo "$as_me: error: unrecognized option: $1 |
| 18587 | Try \`$0 --help' for more information." >&2;} |
| 18588 | { (exit 1); exit 1; }; } ;; |
| 18589 | |
| 18590 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 18591 | |
| 18592 | esac |
| 18593 | shift |
| 18594 | done |
| 18595 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18596 | ac_configure_extra_args= |
| 18597 | |
| 18598 | if $ac_cs_silent; then |
| 18599 | exec 6>/dev/null |
| 18600 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 18601 | fi |
| 18602 | |
| 18603 | _ACEOF |
| 18604 | cat >>$CONFIG_STATUS <<_ACEOF |
| 18605 | if \$ac_cs_recheck; then |
| 18606 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 18607 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 18608 | fi |
| 18609 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18610 | _ACEOF |
| 18611 | |
| 18612 | |
| 18613 | |
| 18614 | |
| 18615 | |
| 18616 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 18617 | for ac_config_target in $ac_config_targets |
| 18618 | do |
| 18619 | case "$ac_config_target" in |
| 18620 | # Handling of arguments. |
| 18621 | "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 18622 | "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
| 18623 | "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 18624 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 18625 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 18626 | { (exit 1); exit 1; }; };; |
| 18627 | esac |
| 18628 | done |
| 18629 | |
| 18630 | # If the user did not use the arguments to specify the items to instantiate, |
| 18631 | # then the envvar interface is used. Set only those that are not. |
| 18632 | # We use the long form for the default assignment because of an extremely |
| 18633 | # bizarre bug on SunOS 4.1.3. |
| 18634 | if $ac_need_defaults; then |
| 18635 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 18636 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 18637 | fi |
| 18638 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18639 | # Have a temporary directory for convenience. Make it in the build tree |
| 18640 | # simply because there is no reason to put it here, and in addition, |
| 18641 | # creating and moving files from /tmp can sometimes cause problems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18642 | # Create a temporary directory, and hook for its removal unless debugging. |
| 18643 | $debug || |
| 18644 | { |
| 18645 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 18646 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 18647 | } |
| 18648 | |
| 18649 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18650 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18651 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18652 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18653 | test -n "$tmp" && test -d "$tmp" |
| 18654 | } || |
| 18655 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18656 | tmp=./confstat$$-$RANDOM |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18657 | (umask 077 && mkdir $tmp) |
| 18658 | } || |
| 18659 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18660 | echo "$me: cannot create a temporary directory in ." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18661 | { (exit 1); exit 1; } |
| 18662 | } |
| 18663 | |
| 18664 | _ACEOF |
| 18665 | |
| 18666 | cat >>$CONFIG_STATUS <<_ACEOF |
| 18667 | |
| 18668 | # |
| 18669 | # CONFIG_FILES section. |
| 18670 | # |
| 18671 | |
| 18672 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 18673 | # This happens for instance when ./config.status config.h |
| 18674 | if test -n "\$CONFIG_FILES"; then |
| 18675 | # Protect against being on the right side of a sed subst in config.status. |
| 18676 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 18677 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 18678 | s,@SHELL@,$SHELL,;t t |
| 18679 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 18680 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 18681 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 18682 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 18683 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 18684 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 18685 | s,@exec_prefix@,$exec_prefix,;t t |
| 18686 | s,@prefix@,$prefix,;t t |
| 18687 | s,@program_transform_name@,$program_transform_name,;t t |
| 18688 | s,@bindir@,$bindir,;t t |
| 18689 | s,@sbindir@,$sbindir,;t t |
| 18690 | s,@libexecdir@,$libexecdir,;t t |
| 18691 | s,@datadir@,$datadir,;t t |
| 18692 | s,@sysconfdir@,$sysconfdir,;t t |
| 18693 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 18694 | s,@localstatedir@,$localstatedir,;t t |
| 18695 | s,@libdir@,$libdir,;t t |
| 18696 | s,@includedir@,$includedir,;t t |
| 18697 | s,@oldincludedir@,$oldincludedir,;t t |
| 18698 | s,@infodir@,$infodir,;t t |
| 18699 | s,@mandir@,$mandir,;t t |
| 18700 | s,@build_alias@,$build_alias,;t t |
| 18701 | s,@host_alias@,$host_alias,;t t |
| 18702 | s,@target_alias@,$target_alias,;t t |
| 18703 | s,@DEFS@,$DEFS,;t t |
| 18704 | s,@ECHO_C@,$ECHO_C,;t t |
| 18705 | s,@ECHO_N@,$ECHO_N,;t t |
| 18706 | s,@ECHO_T@,$ECHO_T,;t t |
| 18707 | s,@LIBS@,$LIBS,;t t |
| 18708 | s,@VERSION@,$VERSION,;t t |
| 18709 | s,@SOVERSION@,$SOVERSION,;t t |
| 18710 | s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t |
| 18711 | s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t |
| 18712 | s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t |
| 18713 | s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t |
| 18714 | s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t |
| 18715 | s,@MACHDEP@,$MACHDEP,;t t |
| 18716 | s,@SGI_ABI@,$SGI_ABI,;t t |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 18717 | s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 18718 | s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 18719 | s,@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@,$CONFIGURE_MACOSX_DEPLOYMENT_TARGET,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18720 | s,@CXX@,$CXX,;t t |
| 18721 | s,@MAINOBJ@,$MAINOBJ,;t t |
| 18722 | s,@EXEEXT@,$EXEEXT,;t t |
| 18723 | s,@CC@,$CC,;t t |
| 18724 | s,@CFLAGS@,$CFLAGS,;t t |
| 18725 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 18726 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 18727 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 18728 | s,@OBJEXT@,$OBJEXT,;t t |
| 18729 | s,@CPP@,$CPP,;t t |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18730 | s,@EGREP@,$EGREP,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18731 | s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t |
| 18732 | s,@LIBRARY@,$LIBRARY,;t t |
| 18733 | s,@LDLIBRARY@,$LDLIBRARY,;t t |
| 18734 | s,@DLLLIBRARY@,$DLLLIBRARY,;t t |
| 18735 | s,@BLDLIBRARY@,$BLDLIBRARY,;t t |
| 18736 | s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t |
| 18737 | s,@INSTSONAME@,$INSTSONAME,;t t |
| 18738 | s,@RUNSHARED@,$RUNSHARED,;t t |
| 18739 | s,@LINKCC@,$LINKCC,;t t |
| 18740 | s,@RANLIB@,$RANLIB,;t t |
| 18741 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 18742 | s,@AR@,$AR,;t t |
| 18743 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 18744 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 18745 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 18746 | s,@LN@,$LN,;t t |
| 18747 | s,@OPT@,$OPT,;t t |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 18748 | s,@BASECFLAGS@,$BASECFLAGS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18749 | s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t |
| 18750 | s,@SO@,$SO,;t t |
| 18751 | s,@LDSHARED@,$LDSHARED,;t t |
| 18752 | s,@BLDSHARED@,$BLDSHARED,;t t |
| 18753 | s,@CCSHARED@,$CCSHARED,;t t |
| 18754 | s,@LINKFORSHARED@,$LINKFORSHARED,;t t |
| 18755 | s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 18756 | s,@SHLIBS@,$SHLIBS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18757 | s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t |
| 18758 | s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t |
| 18759 | s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t |
| 18760 | s,@LDLAST@,$LDLAST,;t t |
| 18761 | s,@THREADOBJ@,$THREADOBJ,;t t |
| 18762 | s,@DLINCLDIR@,$DLINCLDIR,;t t |
| 18763 | s,@DYNLOADFILE@,$DYNLOADFILE,;t t |
| 18764 | s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18765 | s,@TRUE@,$TRUE,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18766 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 18767 | s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t |
| 18768 | s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t |
| 18769 | s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t |
| 18770 | s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t |
| 18771 | s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t |
| 18772 | s,@LIBM@,$LIBM,;t t |
| 18773 | s,@LIBC@,$LIBC,;t t |
| 18774 | s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t |
| 18775 | s,@THREADHEADERS@,$THREADHEADERS,;t t |
| 18776 | s,@SRCDIRS@,$SRCDIRS,;t t |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18777 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18778 | CEOF |
| 18779 | |
| 18780 | _ACEOF |
| 18781 | |
| 18782 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 18783 | # Split the substitutions into bite-sized pieces for seds with |
| 18784 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 18785 | ac_max_sed_lines=48 |
| 18786 | ac_sed_frag=1 # Number of current file. |
| 18787 | ac_beg=1 # First line for current file. |
| 18788 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 18789 | ac_more_lines=: |
| 18790 | ac_sed_cmds= |
| 18791 | while $ac_more_lines; do |
| 18792 | if test $ac_beg -gt 1; then |
| 18793 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 18794 | else |
| 18795 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 18796 | fi |
| 18797 | if test ! -s $tmp/subs.frag; then |
| 18798 | ac_more_lines=false |
| 18799 | else |
| 18800 | # The purpose of the label and of the branching condition is to |
| 18801 | # speed up the sed processing (if there are no `@' at all, there |
| 18802 | # is no need to browse any of the substitutions). |
| 18803 | # These are the two extra sed commands mentioned above. |
| 18804 | (echo ':t |
| 18805 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 18806 | if test -z "$ac_sed_cmds"; then |
| 18807 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 18808 | else |
| 18809 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 18810 | fi |
| 18811 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 18812 | ac_beg=$ac_end |
| 18813 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 18814 | fi |
| 18815 | done |
| 18816 | if test -z "$ac_sed_cmds"; then |
| 18817 | ac_sed_cmds=cat |
| 18818 | fi |
| 18819 | fi # test -n "$CONFIG_FILES" |
| 18820 | |
| 18821 | _ACEOF |
| 18822 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 18823 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 18824 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 18825 | case $ac_file in |
| 18826 | - | *:- | *:-:* ) # input from stdin |
| 18827 | cat >$tmp/stdin |
| 18828 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 18829 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 18830 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 18831 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 18832 | * ) ac_file_in=$ac_file.in ;; |
| 18833 | esac |
| 18834 | |
| 18835 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 18836 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 18837 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 18838 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 18839 | X"$ac_file" : 'X\(//\)$' \| \ |
| 18840 | X"$ac_file" : 'X\(/\)' \| \ |
| 18841 | . : '\(.\)' 2>/dev/null || |
| 18842 | echo X"$ac_file" | |
| 18843 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 18844 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 18845 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 18846 | /^X\(\/\).*/{ s//\1/; q; } |
| 18847 | s/.*/./; q'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18848 | { if $as_mkdir_p; then |
| 18849 | mkdir -p "$ac_dir" |
| 18850 | else |
| 18851 | as_dir="$ac_dir" |
| 18852 | as_dirs= |
| 18853 | while test ! -d "$as_dir"; do |
| 18854 | as_dirs="$as_dir $as_dirs" |
| 18855 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 18856 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 18857 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 18858 | X"$as_dir" : 'X\(//\)$' \| \ |
| 18859 | X"$as_dir" : 'X\(/\)' \| \ |
| 18860 | . : '\(.\)' 2>/dev/null || |
| 18861 | echo X"$as_dir" | |
| 18862 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 18863 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 18864 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 18865 | /^X\(\/\).*/{ s//\1/; q; } |
| 18866 | s/.*/./; q'` |
| 18867 | done |
| 18868 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 18869 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 18870 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 18871 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18872 | |
| 18873 | ac_builddir=. |
| 18874 | |
| 18875 | if test "$ac_dir" != .; then |
| 18876 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 18877 | # A "../" for each directory in $ac_dir_suffix. |
| 18878 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 18879 | else |
| 18880 | ac_dir_suffix= ac_top_builddir= |
| 18881 | fi |
| 18882 | |
| 18883 | case $srcdir in |
| 18884 | .) # No --srcdir option. We are building in place. |
| 18885 | ac_srcdir=. |
| 18886 | if test -z "$ac_top_builddir"; then |
| 18887 | ac_top_srcdir=. |
| 18888 | else |
| 18889 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 18890 | fi ;; |
| 18891 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 18892 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 18893 | ac_top_srcdir=$srcdir ;; |
| 18894 | *) # Relative path. |
| 18895 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 18896 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 18897 | esac |
| 18898 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 18899 | # absolute. |
| 18900 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 18901 | 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] | 18902 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 18903 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 18904 | |
| 18905 | |
| 18906 | case $INSTALL in |
| 18907 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 18908 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 18909 | esac |
| 18910 | |
| 18911 | if test x"$ac_file" != x-; then |
| 18912 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 18913 | echo "$as_me: creating $ac_file" >&6;} |
| 18914 | rm -f "$ac_file" |
| 18915 | fi |
| 18916 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 18917 | # use $as_me), people would be surprised to read: |
| 18918 | # /* config.h. Generated by config.status. */ |
| 18919 | if test x"$ac_file" = x-; then |
| 18920 | configure_input= |
| 18921 | else |
| 18922 | configure_input="$ac_file. " |
| 18923 | fi |
| 18924 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 18925 | sed 's,.*/,,'` by configure." |
| 18926 | |
| 18927 | # First look for the input files in the build tree, otherwise in the |
| 18928 | # src tree. |
| 18929 | ac_file_inputs=`IFS=: |
| 18930 | for f in $ac_file_in; do |
| 18931 | case $f in |
| 18932 | -) echo $tmp/stdin ;; |
| 18933 | [\\/$]*) |
| 18934 | # Absolute (can't be DOS-style, as IFS=:) |
| 18935 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 18936 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 18937 | { (exit 1); exit 1; }; } |
| 18938 | echo $f;; |
| 18939 | *) # Relative |
| 18940 | if test -f "$f"; then |
| 18941 | # Build tree |
| 18942 | echo $f |
| 18943 | elif test -f "$srcdir/$f"; then |
| 18944 | # Source tree |
| 18945 | echo $srcdir/$f |
| 18946 | else |
| 18947 | # /dev/null tree |
| 18948 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 18949 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 18950 | { (exit 1); exit 1; }; } |
| 18951 | fi;; |
| 18952 | esac |
| 18953 | done` || { (exit 1); exit 1; } |
| 18954 | _ACEOF |
| 18955 | cat >>$CONFIG_STATUS <<_ACEOF |
| 18956 | sed "$ac_vpsub |
| 18957 | $extrasub |
| 18958 | _ACEOF |
| 18959 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 18960 | :t |
| 18961 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 18962 | s,@configure_input@,$configure_input,;t t |
| 18963 | s,@srcdir@,$ac_srcdir,;t t |
| 18964 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 18965 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 18966 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 18967 | s,@builddir@,$ac_builddir,;t t |
| 18968 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 18969 | s,@top_builddir@,$ac_top_builddir,;t t |
| 18970 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 18971 | s,@INSTALL@,$ac_INSTALL,;t t |
| 18972 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 18973 | rm -f $tmp/stdin |
| 18974 | if test x"$ac_file" != x-; then |
| 18975 | mv $tmp/out $ac_file |
| 18976 | else |
| 18977 | cat $tmp/out |
| 18978 | rm -f $tmp/out |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18979 | fi |
| 18980 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18981 | done |
| 18982 | _ACEOF |
| 18983 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18984 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18985 | # |
| 18986 | # CONFIG_HEADER section. |
| 18987 | # |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18988 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18989 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 18990 | # 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] | 18991 | # |
| 18992 | # ac_d sets the value in "#define NAME VALUE" lines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18993 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 18994 | ac_dB='[ ].*$,\1#\2' |
| 18995 | ac_dC=' ' |
| 18996 | ac_dD=',;t' |
| 18997 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 18998 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 18999 | ac_uB='$,\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19000 | ac_uC=' ' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19001 | ac_uD=',;t' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19002 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19003 | 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] | 19004 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19005 | case $ac_file in |
| 19006 | - | *:- | *:-:* ) # input from stdin |
| 19007 | cat >$tmp/stdin |
| 19008 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 19009 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 19010 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 19011 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 19012 | * ) ac_file_in=$ac_file.in ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19013 | esac |
| 19014 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19015 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 19016 | echo "$as_me: creating $ac_file" >&6;} |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19017 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19018 | # First look for the input files in the build tree, otherwise in the |
| 19019 | # src tree. |
| 19020 | ac_file_inputs=`IFS=: |
| 19021 | for f in $ac_file_in; do |
| 19022 | case $f in |
| 19023 | -) echo $tmp/stdin ;; |
| 19024 | [\\/$]*) |
| 19025 | # Absolute (can't be DOS-style, as IFS=:) |
| 19026 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 19027 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 19028 | { (exit 1); exit 1; }; } |
| 19029 | echo $f;; |
| 19030 | *) # Relative |
| 19031 | if test -f "$f"; then |
| 19032 | # Build tree |
| 19033 | echo $f |
| 19034 | elif test -f "$srcdir/$f"; then |
| 19035 | # Source tree |
| 19036 | echo $srcdir/$f |
| 19037 | else |
| 19038 | # /dev/null tree |
| 19039 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 19040 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 19041 | { (exit 1); exit 1; }; } |
| 19042 | fi;; |
| 19043 | esac |
| 19044 | done` || { (exit 1); exit 1; } |
| 19045 | # Remove the trailing spaces. |
| 19046 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19047 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19048 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19049 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19050 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 19051 | # `conftest.undefs', that substitutes the proper values into |
| 19052 | # config.h.in to produce config.h. The first handles `#define' |
| 19053 | # templates, and the second `#undef' templates. |
| 19054 | # And first: Protect against being on the right side of a sed subst in |
| 19055 | # config.status. Protect against being in an unquoted here document |
| 19056 | # in config.status. |
| 19057 | rm -f conftest.defines conftest.undefs |
| 19058 | # Using a here document instead of a string reduces the quoting nightmare. |
| 19059 | # Putting comments in sed scripts is not portable. |
| 19060 | # |
| 19061 | # `end' is used to avoid that the second main sed command (meant for |
| 19062 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 19063 | # See the Autoconf documentation for `clear'. |
| 19064 | cat >confdef2sed.sed <<\_ACEOF |
| 19065 | s/[\\&,]/\\&/g |
| 19066 | s,[\\$`],\\&,g |
| 19067 | t clear |
| 19068 | : clear |
| 19069 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 19070 | t end |
| 19071 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 19072 | : end |
| 19073 | _ACEOF |
| 19074 | # If some macros were called several times there might be several times |
| 19075 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 19076 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 19077 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 19078 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 19079 | rm -f confdef2sed.sed |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19080 | |
| 19081 | # This sed command replaces #undef with comments. This is necessary, for |
| 19082 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 19083 | # 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] | 19084 | cat >>conftest.undefs <<\_ACEOF |
| 19085 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 19086 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19087 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19088 | # Break up conftest.defines because some shells have a limit on the size |
| 19089 | # of here documents, and old seds have small limits too (100 cmds). |
| 19090 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19091 | 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] | 19092 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 19093 | echo ' :' >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19094 | rm -f conftest.tail |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19095 | while grep . conftest.defines >/dev/null |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19096 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19097 | # Write a limited-size here document to $tmp/defines.sed. |
| 19098 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 19099 | # Speed up: don't consider the non `#define' lines. |
| 19100 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 19101 | # Work around the forget-to-reset-the-flag bug. |
| 19102 | echo 't clr' >>$CONFIG_STATUS |
| 19103 | echo ': clr' >>$CONFIG_STATUS |
| 19104 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19105 | echo 'CEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19106 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 19107 | rm -f $tmp/in |
| 19108 | mv $tmp/out $tmp/in |
| 19109 | ' >>$CONFIG_STATUS |
| 19110 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 19111 | rm -f conftest.defines |
| 19112 | mv conftest.tail conftest.defines |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19113 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19114 | rm -f conftest.defines |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19115 | echo ' fi # grep' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19116 | echo >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19117 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19118 | # Break up conftest.undefs because some shells have a limit on the size |
| 19119 | # of here documents, and old seds have small limits too (100 cmds). |
| 19120 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 19121 | rm -f conftest.tail |
| 19122 | while grep . conftest.undefs >/dev/null |
| 19123 | do |
| 19124 | # Write a limited-size here document to $tmp/undefs.sed. |
| 19125 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 19126 | # Speed up: don't consider the non `#undef' |
| 19127 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 19128 | # Work around the forget-to-reset-the-flag bug. |
| 19129 | echo 't clr' >>$CONFIG_STATUS |
| 19130 | echo ': clr' >>$CONFIG_STATUS |
| 19131 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 19132 | echo 'CEOF |
| 19133 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 19134 | rm -f $tmp/in |
| 19135 | mv $tmp/out $tmp/in |
| 19136 | ' >>$CONFIG_STATUS |
| 19137 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 19138 | rm -f conftest.undefs |
| 19139 | mv conftest.tail conftest.undefs |
| 19140 | done |
| 19141 | rm -f conftest.undefs |
| 19142 | |
| 19143 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 19144 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 19145 | # use $as_me), people would be surprised to read: |
| 19146 | # /* config.h. Generated by config.status. */ |
| 19147 | if test x"$ac_file" = x-; then |
| 19148 | echo "/* Generated by configure. */" >$tmp/config.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19149 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19150 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19151 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19152 | cat $tmp/in >>$tmp/config.h |
| 19153 | rm -f $tmp/in |
| 19154 | if test x"$ac_file" != x-; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19155 | 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] | 19156 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 19157 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 19158 | else |
| 19159 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 19160 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 19161 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 19162 | X"$ac_file" : 'X\(//\)$' \| \ |
| 19163 | X"$ac_file" : 'X\(/\)' \| \ |
| 19164 | . : '\(.\)' 2>/dev/null || |
| 19165 | echo X"$ac_file" | |
| 19166 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 19167 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 19168 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 19169 | /^X\(\/\).*/{ s//\1/; q; } |
| 19170 | s/.*/./; q'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19171 | { if $as_mkdir_p; then |
| 19172 | mkdir -p "$ac_dir" |
| 19173 | else |
| 19174 | as_dir="$ac_dir" |
| 19175 | as_dirs= |
| 19176 | while test ! -d "$as_dir"; do |
| 19177 | as_dirs="$as_dir $as_dirs" |
| 19178 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 19179 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 19180 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 19181 | X"$as_dir" : 'X\(//\)$' \| \ |
| 19182 | X"$as_dir" : 'X\(/\)' \| \ |
| 19183 | . : '\(.\)' 2>/dev/null || |
| 19184 | echo X"$as_dir" | |
| 19185 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 19186 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 19187 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 19188 | /^X\(\/\).*/{ s//\1/; q; } |
| 19189 | s/.*/./; q'` |
| 19190 | done |
| 19191 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 19192 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 19193 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 19194 | { (exit 1); exit 1; }; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19195 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19196 | rm -f $ac_file |
| 19197 | mv $tmp/config.h $ac_file |
| 19198 | fi |
| 19199 | else |
| 19200 | cat $tmp/config.h |
| 19201 | rm -f $tmp/config.h |
| 19202 | fi |
| 19203 | done |
| 19204 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19205 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19206 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19207 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19208 | { (exit 0); exit 0; } |
| 19209 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19210 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19211 | ac_clean_files=$ac_clean_files_save |
| 19212 | |
| 19213 | |
| 19214 | # configure is writing to config.log, and then calls config.status. |
| 19215 | # config.status does its own redirection, appending to config.log. |
| 19216 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 19217 | # by configure, so config.status won't be able to write to it; its |
| 19218 | # output is simply discarded. So we exec the FD to /dev/null, |
| 19219 | # effectively closing config.log, so it can be properly (re)opened and |
| 19220 | # appended to by config.status. When coming back to configure, we |
| 19221 | # need to make the FD available again. |
| 19222 | if test "$no_create" != yes; then |
| 19223 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19224 | ac_config_status_args= |
| 19225 | test "$silent" = yes && |
| 19226 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19227 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19228 | $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] | 19229 | exec 5>>config.log |
| 19230 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 19231 | # would make configure fail if this is the last instruction. |
| 19232 | $ac_cs_success || { (exit 1); exit 1; } |
| 19233 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19234 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 19235 | |
| 19236 | echo "creating Setup" |
| 19237 | if test ! -f Modules/Setup |
| 19238 | then |
| 19239 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 19240 | fi |
| 19241 | |
| 19242 | echo "creating Setup.local" |
| 19243 | if test ! -f Modules/Setup.local |
| 19244 | then |
| 19245 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 19246 | fi |
| 19247 | |
| 19248 | echo "creating Makefile" |
| 19249 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 19250 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 19251 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 19252 | mv config.c Modules |