Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame^] | 2 | # From configure.in Revision: 1.437 . |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.57 for python 2.4. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
| 7 | # Free Software Foundation, Inc. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8 | # This configure script is free software; the Free Software Foundation |
| 9 | # gives unlimited permission to copy, distribute and modify it. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10 | ## --------------------- ## |
| 11 | ## M4sh Initialization. ## |
| 12 | ## --------------------- ## |
| 13 | |
| 14 | # Be Bourne compatible |
| 15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 16 | emulate sh |
| 17 | NULLCMD=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 19 | # is contrary to our usage. Disable this feature. |
| 20 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 22 | set -o posix |
| 23 | fi |
| 24 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25 | # Support unset when possible. |
| 26 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 27 | as_unset=unset |
| 28 | else |
| 29 | as_unset=false |
| 30 | fi |
| 31 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 32 | |
| 33 | # Work around bugs in pre-3.0 UWIN ksh. |
| 34 | $as_unset ENV MAIL MAILPATH |
| 35 | PS1='$ ' |
| 36 | PS2='> ' |
| 37 | PS4='+ ' |
| 38 | |
| 39 | # NLS nuisances. |
| 40 | for as_var in \ |
| 41 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 42 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 43 | LC_TELEPHONE LC_TIME |
| 44 | do |
| 45 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 46 | eval $as_var=C; export $as_var |
| 47 | else |
| 48 | $as_unset $as_var |
| 49 | fi |
| 50 | done |
| 51 | |
| 52 | # Required to use basename. |
| 53 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 54 | as_expr=expr |
| 55 | else |
| 56 | as_expr=false |
| 57 | fi |
| 58 | |
| 59 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 60 | as_basename=basename |
| 61 | else |
| 62 | as_basename=false |
| 63 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 64 | |
| 65 | |
| 66 | # Name of the executable. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 67 | as_me=`$as_basename "$0" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 68 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 69 | X"$0" : 'X\(//\)$' \| \ |
| 70 | X"$0" : 'X\(/\)$' \| \ |
| 71 | . : '\(.\)' 2>/dev/null || |
| 72 | echo X/"$0" | |
| 73 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 74 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 75 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 76 | s/.*/./; q'` |
| 77 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 78 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 79 | # PATH needs CR, and LINENO needs CR and PATH. |
| 80 | # Avoid depending upon Character Ranges. |
| 81 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 82 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 83 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 84 | as_cr_digits='0123456789' |
| 85 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 86 | |
| 87 | # The user is always right. |
| 88 | if test "${PATH_SEPARATOR+set}" != set; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 89 | echo "#! /bin/sh" >conf$$.sh |
| 90 | echo "exit 0" >>conf$$.sh |
| 91 | chmod +x conf$$.sh |
| 92 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 93 | PATH_SEPARATOR=';' |
| 94 | else |
| 95 | PATH_SEPARATOR=: |
| 96 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 97 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 98 | fi |
| 99 | |
| 100 | |
| 101 | as_lineno_1=$LINENO |
| 102 | as_lineno_2=$LINENO |
| 103 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 104 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 105 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 106 | # Find who we are. Look in the path if we contain no path at all |
| 107 | # relative or not. |
| 108 | case $0 in |
| 109 | *[\\/]* ) as_myself=$0 ;; |
| 110 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 111 | for as_dir in $PATH |
| 112 | do |
| 113 | IFS=$as_save_IFS |
| 114 | test -z "$as_dir" && as_dir=. |
| 115 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 116 | done |
| 117 | |
| 118 | ;; |
| 119 | esac |
| 120 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 121 | # in which case we are not to be found in the path. |
| 122 | if test "x$as_myself" = x; then |
| 123 | as_myself=$0 |
| 124 | fi |
| 125 | if test ! -f "$as_myself"; then |
| 126 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 127 | { (exit 1); exit 1; }; } |
| 128 | fi |
| 129 | case $CONFIG_SHELL in |
| 130 | '') |
| 131 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 132 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 133 | do |
| 134 | IFS=$as_save_IFS |
| 135 | test -z "$as_dir" && as_dir=. |
| 136 | for as_base in sh bash ksh sh5; do |
| 137 | case $as_dir in |
| 138 | /*) |
| 139 | if ("$as_dir/$as_base" -c ' |
| 140 | as_lineno_1=$LINENO |
| 141 | as_lineno_2=$LINENO |
| 142 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 143 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 144 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 145 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 146 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 147 | CONFIG_SHELL=$as_dir/$as_base |
| 148 | export CONFIG_SHELL |
| 149 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 150 | fi;; |
| 151 | esac |
| 152 | done |
| 153 | done |
| 154 | ;; |
| 155 | esac |
| 156 | |
| 157 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 158 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 159 | # line-number line before each line; the second 'sed' does the real |
| 160 | # work. The second script uses 'N' to pair each line-number line |
| 161 | # with the numbered line, and appends trailing '-' during |
| 162 | # substitution so that $LINENO is not a special case at line end. |
| 163 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 164 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 165 | sed '=' <$as_myself | |
| 166 | sed ' |
| 167 | N |
| 168 | s,$,-, |
| 169 | : loop |
| 170 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 171 | t loop |
| 172 | s,-$,, |
| 173 | s,^['$as_cr_digits']*\n,, |
| 174 | ' >$as_me.lineno && |
| 175 | chmod +x $as_me.lineno || |
| 176 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 177 | { (exit 1); exit 1; }; } |
| 178 | |
| 179 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 180 | # (the dirname of $[0] is not the place where we might find the |
| 181 | # original and so on. Autoconf is especially sensible to this). |
| 182 | . ./$as_me.lineno |
| 183 | # Exit status is that of the last command. |
| 184 | exit |
| 185 | } |
| 186 | |
| 187 | |
| 188 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 189 | *c*,-n*) ECHO_N= ECHO_C=' |
| 190 | ' ECHO_T=' ' ;; |
| 191 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 192 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 193 | esac |
| 194 | |
| 195 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 196 | as_expr=expr |
| 197 | else |
| 198 | as_expr=false |
| 199 | fi |
| 200 | |
| 201 | rm -f conf$$ conf$$.exe conf$$.file |
| 202 | echo >conf$$.file |
| 203 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 204 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 205 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 206 | if test -f conf$$.exe; then |
| 207 | # Don't use ln at all; we don't have any links |
| 208 | as_ln_s='cp -p' |
| 209 | else |
| 210 | as_ln_s='ln -s' |
| 211 | fi |
| 212 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 213 | as_ln_s=ln |
| 214 | else |
| 215 | as_ln_s='cp -p' |
| 216 | fi |
| 217 | rm -f conf$$ conf$$.exe conf$$.file |
| 218 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 219 | if mkdir -p . 2>/dev/null; then |
| 220 | as_mkdir_p=: |
| 221 | else |
| 222 | as_mkdir_p=false |
| 223 | fi |
| 224 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 225 | as_executable_p="test -f" |
| 226 | |
| 227 | # Sed expression to map a string onto a valid CPP name. |
| 228 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 229 | |
| 230 | # Sed expression to map a string onto a valid variable name. |
| 231 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 232 | |
| 233 | |
| 234 | # IFS |
| 235 | # We need space, tab and new line, in precisely that order. |
| 236 | as_nl=' |
| 237 | ' |
| 238 | IFS=" $as_nl" |
| 239 | |
| 240 | # CDPATH. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 241 | $as_unset CDPATH |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 242 | |
| 243 | |
| 244 | # Name of the host. |
| 245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 246 | # so uname gets run too. |
| 247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 248 | |
| 249 | exec 6>&1 |
| 250 | |
| 251 | # |
| 252 | # Initializations. |
| 253 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 254 | ac_default_prefix=/usr/local |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 255 | ac_config_libobj_dir=. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 256 | cross_compiling=no |
| 257 | subdirs= |
| 258 | MFLAGS= |
| 259 | MAKEFLAGS= |
| 260 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 261 | |
| 262 | # Maximum number of lines to put in a shell here document. |
| 263 | # This variable seems obsolete. It should probably be removed, and |
| 264 | # only ac_max_sed_lines should be used. |
| 265 | : ${ac_max_here_lines=38} |
| 266 | |
| 267 | # Identity of this package. |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 268 | PACKAGE_NAME='python' |
| 269 | PACKAGE_TARNAME='python' |
Fred Drake | 9bd4462 | 2003-07-30 17:39:48 +0000 | [diff] [blame] | 270 | PACKAGE_VERSION='2.4' |
| 271 | PACKAGE_STRING='python 2.4' |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 272 | PACKAGE_BUGREPORT='' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 273 | |
| 274 | ac_unique_file="Include/object.h" |
| 275 | # Factoring default headers for most tests. |
| 276 | ac_includes_default="\ |
| 277 | #include <stdio.h> |
| 278 | #if HAVE_SYS_TYPES_H |
| 279 | # include <sys/types.h> |
| 280 | #endif |
| 281 | #if HAVE_SYS_STAT_H |
| 282 | # include <sys/stat.h> |
| 283 | #endif |
| 284 | #if STDC_HEADERS |
| 285 | # include <stdlib.h> |
| 286 | # include <stddef.h> |
| 287 | #else |
| 288 | # if HAVE_STDLIB_H |
| 289 | # include <stdlib.h> |
| 290 | # endif |
| 291 | #endif |
| 292 | #if HAVE_STRING_H |
| 293 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 294 | # include <memory.h> |
| 295 | # endif |
| 296 | # include <string.h> |
| 297 | #endif |
| 298 | #if HAVE_STRINGS_H |
| 299 | # include <strings.h> |
| 300 | #endif |
| 301 | #if HAVE_INTTYPES_H |
| 302 | # include <inttypes.h> |
| 303 | #else |
| 304 | # if HAVE_STDINT_H |
| 305 | # include <stdint.h> |
| 306 | # endif |
| 307 | #endif |
| 308 | #if HAVE_UNISTD_H |
| 309 | # include <unistd.h> |
| 310 | #endif" |
| 311 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION SOVERSION CONFIG_ARGS PYTHONFRAMEWORK PYTHONFRAMEWORKDIR PYTHONFRAMEWORKPREFIX PYTHONFRAMEWORKINSTALLDIR MACHDEP SGI_ABI EXTRAPLATDIR EXTRAMACHDEPPATH CXX MAINOBJ EXEEXT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC OBJEXT CPP EGREP BUILDEXEEXT LIBRARY LDLIBRARY DLLLIBRARY BLDLIBRARY LDLIBRARYDIR INSTSONAME RUNSHARED LINKCC RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN OPT BASECFLAGS LIBTOOL_CRUFT SO LDSHARED BLDSHARED CCSHARED LINKFORSHARED CFLAGSFORSHARED SHLIBS USE_SIGNAL_MODULE SIGNAL_OBJS USE_THREAD_MODULE LDLAST THREADOBJ DLINCLDIR DYNLOADFILE MACHDEP_OBJS TRUE LIBOBJS HAVE_GETHOSTBYNAME_R_6_ARG HAVE_GETHOSTBYNAME_R_5_ARG HAVE_GETHOSTBYNAME_R_3_ARG HAVE_GETHOSTBYNAME_R HAVE_GETHOSTBYNAME LIBM LIBC UNICODE_OBJS THREADHEADERS SRCDIRS LTLIBOBJS' |
| 313 | ac_subst_files='' |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 314 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 315 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 316 | ac_init_help= |
| 317 | ac_init_version=false |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 318 | # The variables have the same names as the options, with |
| 319 | # dashes changed to underlines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 320 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 321 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 322 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 323 | no_recursion= |
| 324 | prefix=NONE |
| 325 | program_prefix=NONE |
| 326 | program_suffix=NONE |
| 327 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 328 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 329 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 330 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 331 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 332 | x_includes=NONE |
| 333 | x_libraries=NONE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 334 | |
| 335 | # Installation directory options. |
| 336 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 337 | # and all the variables that are supposed to be based on exec_prefix |
| 338 | # by default will actually change. |
| 339 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 340 | bindir='${exec_prefix}/bin' |
| 341 | sbindir='${exec_prefix}/sbin' |
| 342 | libexecdir='${exec_prefix}/libexec' |
| 343 | datadir='${prefix}/share' |
| 344 | sysconfdir='${prefix}/etc' |
| 345 | sharedstatedir='${prefix}/com' |
| 346 | localstatedir='${prefix}/var' |
| 347 | libdir='${exec_prefix}/lib' |
| 348 | includedir='${prefix}/include' |
| 349 | oldincludedir='/usr/include' |
| 350 | infodir='${prefix}/info' |
| 351 | mandir='${prefix}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 352 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 353 | ac_prev= |
| 354 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 355 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 356 | # If the previous option needs an argument, assign it. |
| 357 | if test -n "$ac_prev"; then |
| 358 | eval "$ac_prev=\$ac_option" |
| 359 | ac_prev= |
| 360 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 361 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 362 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 364 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 365 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 366 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 367 | case $ac_option in |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 368 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 369 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 370 | ac_prev=bindir ;; |
| 371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 372 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 373 | |
| 374 | -build | --build | --buil | --bui | --bu) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 375 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 377 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 378 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 379 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 380 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 381 | ac_prev=cache_file ;; |
| 382 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 383 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 384 | cache_file=$ac_optarg ;; |
| 385 | |
| 386 | --config-cache | -C) |
| 387 | cache_file=config.cache ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 388 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 390 | ac_prev=datadir ;; |
| 391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 392 | | --da=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 393 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 394 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 395 | -disable-* | --disable-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 397 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 398 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 399 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 400 | { (exit 1); exit 1; }; } |
| 401 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 402 | eval "enable_$ac_feature=no" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 403 | |
| 404 | -enable-* | --enable-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 406 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 407 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 408 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 409 | { (exit 1); exit 1; }; } |
| 410 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 411 | case $ac_option in |
| 412 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 413 | *) ac_optarg=yes ;; |
| 414 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 415 | eval "enable_$ac_feature='$ac_optarg'" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 416 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 417 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 418 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 419 | | --exec | --exe | --ex) |
| 420 | ac_prev=exec_prefix ;; |
| 421 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 422 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 423 | | --exec=* | --exe=* | --ex=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 424 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 425 | |
| 426 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 427 | # Obsolete; use --with-gas. |
| 428 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 429 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 430 | -help | --help | --hel | --he | -h) |
| 431 | ac_init_help=long ;; |
| 432 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 433 | ac_init_help=recursive ;; |
| 434 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 435 | ac_init_help=short ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 436 | |
| 437 | -host | --host | --hos | --ho) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 438 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 439 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 440 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 441 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 442 | -includedir | --includedir | --includedi | --included | --include \ |
| 443 | | --includ | --inclu | --incl | --inc) |
| 444 | ac_prev=includedir ;; |
| 445 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 446 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 447 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 448 | |
| 449 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 450 | ac_prev=infodir ;; |
| 451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 452 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 453 | |
| 454 | -libdir | --libdir | --libdi | --libd) |
| 455 | ac_prev=libdir ;; |
| 456 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 457 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 458 | |
| 459 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 460 | | --libexe | --libex | --libe) |
| 461 | ac_prev=libexecdir ;; |
| 462 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 463 | | --libexe=* | --libex=* | --libe=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 464 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 465 | |
| 466 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 467 | | --localstate | --localstat | --localsta | --localst \ |
| 468 | | --locals | --local | --loca | --loc | --lo) |
| 469 | ac_prev=localstatedir ;; |
| 470 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 471 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 472 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 473 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 474 | |
| 475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 476 | ac_prev=mandir ;; |
| 477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 478 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 479 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 480 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 481 | # Obsolete; use --without-fp. |
| 482 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 483 | |
| 484 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 485 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 486 | no_create=yes ;; |
| 487 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 488 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 489 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 490 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 491 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 492 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 493 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 494 | | --oldin | --oldi | --old | --ol | --o) |
| 495 | ac_prev=oldincludedir ;; |
| 496 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 497 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 498 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 499 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 500 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 502 | ac_prev=prefix ;; |
| 503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 504 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 505 | |
| 506 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 507 | | --program-pre | --program-pr | --program-p) |
| 508 | ac_prev=program_prefix ;; |
| 509 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 510 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 511 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 512 | |
| 513 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 514 | | --program-suf | --program-su | --program-s) |
| 515 | ac_prev=program_suffix ;; |
| 516 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 517 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 518 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 519 | |
| 520 | -program-transform-name | --program-transform-name \ |
| 521 | | --program-transform-nam | --program-transform-na \ |
| 522 | | --program-transform-n | --program-transform- \ |
| 523 | | --program-transform | --program-transfor \ |
| 524 | | --program-transfo | --program-transf \ |
| 525 | | --program-trans | --program-tran \ |
| 526 | | --progr-tra | --program-tr | --program-t) |
| 527 | ac_prev=program_transform_name ;; |
| 528 | -program-transform-name=* | --program-transform-name=* \ |
| 529 | | --program-transform-nam=* | --program-transform-na=* \ |
| 530 | | --program-transform-n=* | --program-transform-=* \ |
| 531 | | --program-transform=* | --program-transfor=* \ |
| 532 | | --program-transfo=* | --program-transf=* \ |
| 533 | | --program-trans=* | --program-tran=* \ |
| 534 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 535 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 536 | |
| 537 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 538 | | -silent | --silent | --silen | --sile | --sil) |
| 539 | silent=yes ;; |
| 540 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 541 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 542 | ac_prev=sbindir ;; |
| 543 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 544 | | --sbi=* | --sb=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 545 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 546 | |
| 547 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 548 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 549 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 550 | | --sha | --sh) |
| 551 | ac_prev=sharedstatedir ;; |
| 552 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 553 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 554 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 555 | | --sha=* | --sh=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 556 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 557 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 558 | -site | --site | --sit) |
| 559 | ac_prev=site ;; |
| 560 | -site=* | --site=* | --sit=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 561 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 562 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 564 | ac_prev=srcdir ;; |
| 565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 566 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 567 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 568 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 569 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 570 | ac_prev=sysconfdir ;; |
| 571 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 572 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 573 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 574 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 575 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 576 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 578 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 579 | |
| 580 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 581 | verbose=yes ;; |
| 582 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 583 | -version | --version | --versio | --versi | --vers | -V) |
| 584 | ac_init_version=: ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 585 | |
| 586 | -with-* | --with-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 588 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 589 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 590 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 591 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 592 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 593 | case $ac_option in |
| 594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 595 | *) ac_optarg=yes ;; |
| 596 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 597 | eval "with_$ac_package='$ac_optarg'" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 598 | |
| 599 | -without-* | --without-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 601 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 602 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 603 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 604 | { (exit 1); exit 1; }; } |
| 605 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 606 | eval "with_$ac_package=no" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 607 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 608 | --x) |
| 609 | # Obsolete; use --with-x. |
| 610 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 611 | |
| 612 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 613 | | --x-incl | --x-inc | --x-in | --x-i) |
| 614 | ac_prev=x_includes ;; |
| 615 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 616 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 617 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 618 | |
| 619 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 620 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 621 | ac_prev=x_libraries ;; |
| 622 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 623 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 624 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 625 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 626 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 627 | Try \`$0 --help' for more information." >&2 |
| 628 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 629 | ;; |
| 630 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 631 | *=*) |
| 632 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 633 | # Reject names that are not valid shell variable names. |
| 634 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 635 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 636 | { (exit 1); exit 1; }; } |
| 637 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 638 | eval "$ac_envvar='$ac_optarg'" |
| 639 | export $ac_envvar ;; |
| 640 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 641 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 642 | # FIXME: should be removed in autoconf 3.0. |
| 643 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 644 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 645 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 646 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 647 | ;; |
| 648 | |
| 649 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 650 | done |
| 651 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 652 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 653 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 654 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 655 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 656 | fi |
| 657 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 658 | # Be sure to have absolute paths. |
| 659 | for ac_var in exec_prefix prefix |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 660 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 661 | eval ac_val=$`echo $ac_var` |
| 662 | case $ac_val in |
| 663 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 664 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 665 | { (exit 1); exit 1; }; };; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 666 | esac |
| 667 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 668 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 669 | # Be sure to have absolute paths. |
| 670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 671 | localstatedir libdir includedir oldincludedir infodir mandir |
| 672 | do |
| 673 | eval ac_val=$`echo $ac_var` |
| 674 | case $ac_val in |
| 675 | [\\/$]* | ?:[\\/]* ) ;; |
| 676 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 677 | { (exit 1); exit 1; }; };; |
| 678 | esac |
| 679 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 680 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 681 | # There might be people who depend on the old broken behavior: `$host' |
| 682 | # used to hold the argument of --host etc. |
| 683 | # FIXME: To remove some day. |
| 684 | build=$build_alias |
| 685 | host=$host_alias |
| 686 | target=$target_alias |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 687 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 688 | # FIXME: To remove some day. |
| 689 | if test "x$host_alias" != x; then |
| 690 | if test "x$build_alias" = x; then |
| 691 | cross_compiling=maybe |
| 692 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 693 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 694 | elif test "x$build_alias" != "x$host_alias"; then |
| 695 | cross_compiling=yes |
| 696 | fi |
| 697 | fi |
| 698 | |
| 699 | ac_tool_prefix= |
| 700 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 701 | |
| 702 | test "$silent" = yes && exec 6>/dev/null |
| 703 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 704 | |
| 705 | # Find the source files, if location was not specified. |
| 706 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 707 | ac_srcdir_defaulted=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 708 | # Try the directory containing this script, then its parent. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 709 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 711 | X"$0" : 'X\(//\)[^/]' \| \ |
| 712 | X"$0" : 'X\(//\)$' \| \ |
| 713 | X"$0" : 'X\(/\)' \| \ |
| 714 | . : '\(.\)' 2>/dev/null || |
| 715 | echo X"$0" | |
| 716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 717 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 718 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 719 | /^X\(\/\).*/{ s//\1/; q; } |
| 720 | s/.*/./; q'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 721 | srcdir=$ac_confdir |
| 722 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 723 | srcdir=.. |
| 724 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 725 | else |
| 726 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 727 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 728 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 729 | if test "$ac_srcdir_defaulted" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 731 | { (exit 1); exit 1; }; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 732 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 734 | { (exit 1); exit 1; }; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 735 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 736 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 737 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 738 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 739 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 740 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 741 | ac_env_build_alias_set=${build_alias+set} |
| 742 | ac_env_build_alias_value=$build_alias |
| 743 | ac_cv_env_build_alias_set=${build_alias+set} |
| 744 | ac_cv_env_build_alias_value=$build_alias |
| 745 | ac_env_host_alias_set=${host_alias+set} |
| 746 | ac_env_host_alias_value=$host_alias |
| 747 | ac_cv_env_host_alias_set=${host_alias+set} |
| 748 | ac_cv_env_host_alias_value=$host_alias |
| 749 | ac_env_target_alias_set=${target_alias+set} |
| 750 | ac_env_target_alias_value=$target_alias |
| 751 | ac_cv_env_target_alias_set=${target_alias+set} |
| 752 | ac_cv_env_target_alias_value=$target_alias |
| 753 | ac_env_CC_set=${CC+set} |
| 754 | ac_env_CC_value=$CC |
| 755 | ac_cv_env_CC_set=${CC+set} |
| 756 | ac_cv_env_CC_value=$CC |
| 757 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 758 | ac_env_CFLAGS_value=$CFLAGS |
| 759 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 760 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 761 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 762 | ac_env_LDFLAGS_value=$LDFLAGS |
| 763 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 764 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 765 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 766 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 767 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 768 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 769 | ac_env_CPP_set=${CPP+set} |
| 770 | ac_env_CPP_value=$CPP |
| 771 | ac_cv_env_CPP_set=${CPP+set} |
| 772 | ac_cv_env_CPP_value=$CPP |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 773 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 774 | # |
| 775 | # Report the --help message. |
| 776 | # |
| 777 | if test "$ac_init_help" = "long"; then |
| 778 | # Omit some internal or obsolete options to make the list less imposing. |
| 779 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 780 | cat <<_ACEOF |
Fred Drake | 9bd4462 | 2003-07-30 17:39:48 +0000 | [diff] [blame] | 781 | \`configure' configures python 2.4 to adapt to many kinds of systems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 782 | |
| 783 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 784 | |
| 785 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 786 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 787 | |
| 788 | Defaults for the options are specified in brackets. |
| 789 | |
| 790 | Configuration: |
| 791 | -h, --help display this help and exit |
| 792 | --help=short display options specific to this package |
| 793 | --help=recursive display the short help of all the included packages |
| 794 | -V, --version display version information and exit |
| 795 | -q, --quiet, --silent do not print \`checking...' messages |
| 796 | --cache-file=FILE cache test results in FILE [disabled] |
| 797 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 798 | -n, --no-create do not create output files |
| 799 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 800 | |
| 801 | _ACEOF |
| 802 | |
| 803 | cat <<_ACEOF |
| 804 | Installation directories: |
| 805 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 806 | [$ac_default_prefix] |
| 807 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 808 | [PREFIX] |
| 809 | |
| 810 | By default, \`make install' will install all the files in |
| 811 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 812 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 813 | for instance \`--prefix=\$HOME'. |
| 814 | |
| 815 | For better control, use the options below. |
| 816 | |
| 817 | Fine tuning of the installation directories: |
| 818 | --bindir=DIR user executables [EPREFIX/bin] |
| 819 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 820 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 821 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 822 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 823 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 824 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 825 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 826 | --includedir=DIR C header files [PREFIX/include] |
| 827 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 828 | --infodir=DIR info documentation [PREFIX/info] |
| 829 | --mandir=DIR man documentation [PREFIX/man] |
| 830 | _ACEOF |
| 831 | |
| 832 | cat <<\_ACEOF |
| 833 | _ACEOF |
| 834 | fi |
| 835 | |
| 836 | if test -n "$ac_init_help"; then |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 837 | case $ac_init_help in |
Fred Drake | 9bd4462 | 2003-07-30 17:39:48 +0000 | [diff] [blame] | 838 | short | recursive ) echo "Configuration of python 2.4:";; |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 839 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 840 | cat <<\_ACEOF |
| 841 | |
| 842 | Optional Features: |
| 843 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 844 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 845 | --enable-framework[=INSTALLDIR] |
| 846 | Build (MacOSX|Darwin) framework |
| 847 | --enable-shared disable/enable building shared python library |
| 848 | --enable-toolbox-glue disable/enable MacOSX glue code for extensions |
| 849 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 850 | --disable-ipv6 Disable ipv6 support |
| 851 | --enable-unicode[=ucs[24]] |
| 852 | Enable Unicode strings (default is yes) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 853 | |
| 854 | Optional Packages: |
| 855 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 856 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 857 | --without-gcc never use gcc |
| 858 | --with-cxx=<compiler> enable C++ support |
| 859 | --with-suffix=.exe set executable suffix |
| 860 | --with-pydebug build with Py_DEBUG defined |
| 861 | --with-libs='lib1 ...' link against additional libs |
| 862 | --with-signal-module disable/enable signal module |
| 863 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries |
| 864 | --with(out)-threads[=DIRECTORY] |
| 865 | disable/enable thread support |
| 866 | --with(out)-thread[=DIRECTORY] |
| 867 | deprecated; use --with(out)-threads |
| 868 | --with-pth use GNU pth threading libraries |
| 869 | --with(out)-universal-newlines |
| 870 | disable/enable foreign newlines |
| 871 | --with(out)-doc-strings disable/enable documentation strings |
| 872 | --with(out)-pymalloc disable/enable specialized mallocs |
| 873 | --with-wctype-functions use wctype.h functions |
| 874 | --with-sgi-dl=DIRECTORY IRIX 4 dynamic linking |
| 875 | --with-dl-dld=DL_DIR GNU dynamic linking |
| 876 | --with-fpectl enable SIGFPE catching |
| 877 | --with-libm=STRING math library |
| 878 | --with-libc=STRING C library |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 879 | |
| 880 | Some influential environment variables: |
| 881 | CC C compiler command |
| 882 | CFLAGS C compiler flags |
| 883 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 884 | nonstandard directory <lib dir> |
| 885 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 886 | headers in a nonstandard directory <include dir> |
| 887 | CPP C preprocessor |
| 888 | |
| 889 | Use these variables to override the choices made by `configure' or to help |
| 890 | it to find libraries and programs with nonstandard names/locations. |
| 891 | |
| 892 | _ACEOF |
| 893 | fi |
| 894 | |
| 895 | if test "$ac_init_help" = "recursive"; then |
| 896 | # If there are subdirs, report their specific --help. |
| 897 | ac_popdir=`pwd` |
| 898 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 899 | test -d $ac_dir || continue |
| 900 | ac_builddir=. |
| 901 | |
| 902 | if test "$ac_dir" != .; then |
| 903 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 904 | # A "../" for each directory in $ac_dir_suffix. |
| 905 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 906 | else |
| 907 | ac_dir_suffix= ac_top_builddir= |
| 908 | fi |
| 909 | |
| 910 | case $srcdir in |
| 911 | .) # No --srcdir option. We are building in place. |
| 912 | ac_srcdir=. |
| 913 | if test -z "$ac_top_builddir"; then |
| 914 | ac_top_srcdir=. |
| 915 | else |
| 916 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 917 | fi ;; |
| 918 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 919 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 920 | ac_top_srcdir=$srcdir ;; |
| 921 | *) # Relative path. |
| 922 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 923 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 924 | esac |
| 925 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 926 | # absolute. |
| 927 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 928 | 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] | 929 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 930 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 931 | |
| 932 | cd $ac_dir |
| 933 | # Check for guested configure; otherwise get Cygnus style configure. |
| 934 | if test -f $ac_srcdir/configure.gnu; then |
| 935 | echo |
| 936 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 937 | elif test -f $ac_srcdir/configure; then |
| 938 | echo |
| 939 | $SHELL $ac_srcdir/configure --help=recursive |
| 940 | elif test -f $ac_srcdir/configure.ac || |
| 941 | test -f $ac_srcdir/configure.in; then |
| 942 | echo |
| 943 | $ac_configure --help |
| 944 | else |
| 945 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 946 | fi |
| 947 | cd $ac_popdir |
| 948 | done |
| 949 | fi |
| 950 | |
| 951 | test -n "$ac_init_help" && exit 0 |
| 952 | if $ac_init_version; then |
| 953 | cat <<\_ACEOF |
Fred Drake | 9bd4462 | 2003-07-30 17:39:48 +0000 | [diff] [blame] | 954 | python configure 2.4 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 955 | generated by GNU Autoconf 2.57 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 956 | |
| 957 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
| 958 | Free Software Foundation, Inc. |
| 959 | This configure script is free software; the Free Software Foundation |
| 960 | gives unlimited permission to copy, distribute and modify it. |
| 961 | _ACEOF |
| 962 | exit 0 |
| 963 | fi |
| 964 | exec 5>config.log |
| 965 | cat >&5 <<_ACEOF |
| 966 | This file contains any messages produced by compilers while |
| 967 | running configure, to aid debugging if configure makes a mistake. |
| 968 | |
Fred Drake | 9bd4462 | 2003-07-30 17:39:48 +0000 | [diff] [blame] | 969 | It was created by python $as_me 2.4, which was |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 970 | generated by GNU Autoconf 2.57. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 971 | |
| 972 | $ $0 $@ |
| 973 | |
| 974 | _ACEOF |
| 975 | { |
| 976 | cat <<_ASUNAME |
| 977 | ## --------- ## |
| 978 | ## Platform. ## |
| 979 | ## --------- ## |
| 980 | |
| 981 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 982 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 983 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 984 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 985 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 986 | |
| 987 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 988 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 989 | |
| 990 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 991 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 992 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 993 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 994 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 995 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 996 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 997 | |
| 998 | _ASUNAME |
| 999 | |
| 1000 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1001 | for as_dir in $PATH |
| 1002 | do |
| 1003 | IFS=$as_save_IFS |
| 1004 | test -z "$as_dir" && as_dir=. |
| 1005 | echo "PATH: $as_dir" |
| 1006 | done |
| 1007 | |
| 1008 | } >&5 |
| 1009 | |
| 1010 | cat >&5 <<_ACEOF |
| 1011 | |
| 1012 | |
| 1013 | ## ----------- ## |
| 1014 | ## Core tests. ## |
| 1015 | ## ----------- ## |
| 1016 | |
| 1017 | _ACEOF |
| 1018 | |
| 1019 | |
| 1020 | # Keep a trace of the command line. |
| 1021 | # 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] | 1022 | # 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] | 1023 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1024 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1025 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1026 | ac_configure_args0= |
| 1027 | ac_configure_args1= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1028 | ac_sep= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1029 | ac_must_keep_next=false |
| 1030 | for ac_pass in 1 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1031 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1032 | for ac_arg |
| 1033 | do |
| 1034 | case $ac_arg in |
| 1035 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1036 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1037 | | -silent | --silent | --silen | --sile | --sil) |
| 1038 | continue ;; |
| 1039 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1040 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1041 | esac |
| 1042 | case $ac_pass in |
| 1043 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1044 | 2) |
| 1045 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1046 | if test $ac_must_keep_next = true; then |
| 1047 | ac_must_keep_next=false # Got value, back to normal. |
| 1048 | else |
| 1049 | case $ac_arg in |
| 1050 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1051 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1052 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1053 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1054 | case "$ac_configure_args0 " in |
| 1055 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1056 | esac |
| 1057 | ;; |
| 1058 | -* ) ac_must_keep_next=true ;; |
| 1059 | esac |
| 1060 | fi |
| 1061 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1062 | # Get rid of the leading space. |
| 1063 | ac_sep=" " |
| 1064 | ;; |
| 1065 | esac |
| 1066 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1067 | done |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1068 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1069 | $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] | 1070 | |
| 1071 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1072 | # config.log. We remove comments because anyway the quotes in there |
| 1073 | # would cause problems or look ugly. |
| 1074 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1075 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1076 | trap 'exit_status=$? |
| 1077 | # Save into config.log some information that might help in debugging. |
| 1078 | { |
| 1079 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1080 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1081 | cat <<\_ASBOX |
| 1082 | ## ---------------- ## |
| 1083 | ## Cache variables. ## |
| 1084 | ## ---------------- ## |
| 1085 | _ASBOX |
| 1086 | echo |
| 1087 | # The following way of writing the cache mishandles newlines in values, |
| 1088 | { |
| 1089 | (set) 2>&1 | |
| 1090 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1091 | *ac_space=\ *) |
| 1092 | sed -n \ |
| 1093 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1094 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1095 | ;; |
| 1096 | *) |
| 1097 | sed -n \ |
| 1098 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1099 | ;; |
| 1100 | esac; |
| 1101 | } |
| 1102 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1103 | |
| 1104 | cat <<\_ASBOX |
| 1105 | ## ----------------- ## |
| 1106 | ## Output variables. ## |
| 1107 | ## ----------------- ## |
| 1108 | _ASBOX |
| 1109 | echo |
| 1110 | for ac_var in $ac_subst_vars |
| 1111 | do |
| 1112 | eval ac_val=$`echo $ac_var` |
| 1113 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1114 | done | sort |
| 1115 | echo |
| 1116 | |
| 1117 | if test -n "$ac_subst_files"; then |
| 1118 | cat <<\_ASBOX |
| 1119 | ## ------------- ## |
| 1120 | ## Output files. ## |
| 1121 | ## ------------- ## |
| 1122 | _ASBOX |
| 1123 | echo |
| 1124 | for ac_var in $ac_subst_files |
| 1125 | do |
| 1126 | eval ac_val=$`echo $ac_var` |
| 1127 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1128 | done | sort |
| 1129 | echo |
| 1130 | fi |
| 1131 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1132 | if test -s confdefs.h; then |
| 1133 | cat <<\_ASBOX |
| 1134 | ## ----------- ## |
| 1135 | ## confdefs.h. ## |
| 1136 | ## ----------- ## |
| 1137 | _ASBOX |
| 1138 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1139 | sed "/^$/d" confdefs.h | sort |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1140 | echo |
| 1141 | fi |
| 1142 | test "$ac_signal" != 0 && |
| 1143 | echo "$as_me: caught signal $ac_signal" |
| 1144 | echo "$as_me: exit $exit_status" |
| 1145 | } >&5 |
| 1146 | rm -f core core.* *.core && |
| 1147 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1148 | exit $exit_status |
| 1149 | ' 0 |
| 1150 | for ac_signal in 1 2 13 15; do |
| 1151 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1152 | done |
| 1153 | ac_signal=0 |
| 1154 | |
| 1155 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1156 | rm -rf conftest* confdefs.h |
| 1157 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1158 | echo >confdefs.h |
| 1159 | |
| 1160 | # Predefined preprocessor variables. |
| 1161 | |
| 1162 | cat >>confdefs.h <<_ACEOF |
| 1163 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1164 | _ACEOF |
| 1165 | |
| 1166 | |
| 1167 | cat >>confdefs.h <<_ACEOF |
| 1168 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1169 | _ACEOF |
| 1170 | |
| 1171 | |
| 1172 | cat >>confdefs.h <<_ACEOF |
| 1173 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1174 | _ACEOF |
| 1175 | |
| 1176 | |
| 1177 | cat >>confdefs.h <<_ACEOF |
| 1178 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1179 | _ACEOF |
| 1180 | |
| 1181 | |
| 1182 | cat >>confdefs.h <<_ACEOF |
| 1183 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1184 | _ACEOF |
| 1185 | |
| 1186 | |
| 1187 | # 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] | 1188 | # Prefer explicitly selected file to automatically selected ones. |
| 1189 | if test -z "$CONFIG_SITE"; then |
| 1190 | if test "x$prefix" != xNONE; then |
| 1191 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1192 | else |
| 1193 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1194 | fi |
| 1195 | fi |
| 1196 | for ac_site_file in $CONFIG_SITE; do |
| 1197 | if test -r "$ac_site_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1198 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1199 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1200 | sed 's/^/| /' "$ac_site_file" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1201 | . "$ac_site_file" |
| 1202 | fi |
| 1203 | done |
| 1204 | |
| 1205 | if test -r "$cache_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1206 | # Some versions of bash will fail to source /dev/null (special |
| 1207 | # files actually), so we avoid doing that. |
| 1208 | if test -f "$cache_file"; then |
| 1209 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1210 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1211 | case $cache_file in |
| 1212 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1213 | *) . ./$cache_file;; |
| 1214 | esac |
| 1215 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1216 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1217 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1218 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1219 | >$cache_file |
| 1220 | fi |
| 1221 | |
| 1222 | # Check that the precious variables saved in the cache have kept the same |
| 1223 | # value. |
| 1224 | ac_cache_corrupted=false |
| 1225 | for ac_var in `(set) 2>&1 | |
| 1226 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1227 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1228 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1229 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1230 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1231 | case $ac_old_set,$ac_new_set in |
| 1232 | set,) |
| 1233 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1234 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1235 | ac_cache_corrupted=: ;; |
| 1236 | ,set) |
| 1237 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1238 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1239 | ac_cache_corrupted=: ;; |
| 1240 | ,);; |
| 1241 | *) |
| 1242 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1243 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1244 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1245 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1246 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1247 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1248 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1249 | ac_cache_corrupted=: |
| 1250 | fi;; |
| 1251 | esac |
| 1252 | # Pass precious variables to config.status. |
| 1253 | if test "$ac_new_set" = set; then |
| 1254 | case $ac_new_val in |
| 1255 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1256 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1257 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1258 | esac |
| 1259 | case " $ac_configure_args " in |
| 1260 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1261 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1262 | esac |
| 1263 | fi |
| 1264 | done |
| 1265 | if $ac_cache_corrupted; then |
| 1266 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1267 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1268 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1269 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1270 | { (exit 1); exit 1; }; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1271 | fi |
| 1272 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1273 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1274 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1275 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1276 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1277 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1278 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1279 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1280 | |
| 1281 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1282 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1283 | |
| 1284 | |
| 1285 | |
| 1286 | |
| 1287 | |
| 1288 | |
| 1289 | |
| 1290 | |
| 1291 | |
| 1292 | |
| 1293 | |
| 1294 | |
| 1295 | |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1296 | |
| 1297 | |
| 1298 | |
| 1299 | |
| 1300 | |
| 1301 | |
| 1302 | |
| 1303 | |
| 1304 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1305 | |
| 1306 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1307 | |
| 1308 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1309 | |
| 1310 | |
| 1311 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1312 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1313 | |
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 1314 | # We don't use PACKAGE_ variables, and they cause conflicts |
| 1315 | # with other autoconf-based packages that include Python.h |
| 1316 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| 1317 | rm confdefs.h |
| 1318 | mv confdefs.h.new confdefs.h |
| 1319 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1320 | |
Fred Drake | 9bd4462 | 2003-07-30 17:39:48 +0000 | [diff] [blame] | 1321 | VERSION=2.4 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1322 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 1323 | |
| 1324 | SOVERSION=1.0 |
| 1325 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1326 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 1327 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 1328 | |
| 1329 | cat >>confdefs.h <<\_ACEOF |
| 1330 | #define _GNU_SOURCE 1 |
| 1331 | _ACEOF |
| 1332 | |
| 1333 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 1334 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1335 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 1336 | # them. |
| 1337 | |
| 1338 | cat >>confdefs.h <<\_ACEOF |
| 1339 | #define _NETBSD_SOURCE 1 |
| 1340 | _ACEOF |
| 1341 | |
| 1342 | |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 1343 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1344 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| 1345 | # them. |
| 1346 | |
| 1347 | cat >>confdefs.h <<\_ACEOF |
| 1348 | #define __BSD_VISIBLE 1 |
| 1349 | _ACEOF |
| 1350 | |
| 1351 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1352 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1353 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 1354 | # Arguments passed to configure. |
| 1355 | |
| 1356 | CONFIG_ARGS="$ac_configure_args" |
| 1357 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1358 | # Check whether --enable-framework or --disable-framework was given. |
| 1359 | if test "${enable_framework+set}" = set; then |
| 1360 | enableval="$enable_framework" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1361 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1362 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1363 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1364 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1365 | esac |
| 1366 | case $enableval in |
| 1367 | no) |
| 1368 | PYTHONFRAMEWORK= |
| 1369 | PYTHONFRAMEWORKDIR=no-framework |
| 1370 | PYTHONFRAMEWORKPREFIX= |
| 1371 | PYTHONFRAMEWORKINSTALLDIR= |
| 1372 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1373 | ;; |
| 1374 | *) |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1375 | PYTHONFRAMEWORK=Python |
| 1376 | PYTHONFRAMEWORKDIR=Python.framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1377 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1378 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
| 1379 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1380 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1381 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1382 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1383 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1384 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1385 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1386 | PYTHONFRAMEWORKPREFIX= |
| 1387 | PYTHONFRAMEWORKINSTALLDIR= |
| 1388 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1389 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1390 | fi; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1391 | |
| 1392 | |
| 1393 | |
| 1394 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1395 | |
| 1396 | ##AC_ARG_WITH(dyld, |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1397 | ## AC_HELP_STRING(--with-dyld, |
| 1398 | ## Use (OpenStep|Rhapsody) dynamic linker)) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1399 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1400 | # Set name for machine-dependent library files |
| 1401 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1402 | echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 1403 | echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1404 | if test -z "$MACHDEP" |
| 1405 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1406 | ac_sys_system=`uname -s` |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 1407 | if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \ |
| 1408 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1409 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1410 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1411 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1412 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1413 | ac_md_system=`echo $ac_sys_system | |
| 1414 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 1415 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 1416 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1417 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1418 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 1419 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 1420 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 1421 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 1422 | atheos*) MACHDEP="atheos";; |
Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 1423 | irix646) MACHDEP="irix6";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1424 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1425 | esac |
| 1426 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1427 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1428 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 1429 | # disable features if it is defined, without any means to access these |
| 1430 | # features as extensions. For these systems, we skip the definition of |
| 1431 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 1432 | # some feature, make sure there is no alternative way to access this |
| 1433 | # feature. Also, when using wildcards, make sure you have verified the |
| 1434 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 1435 | # wildcard, and that the wildcard does not include future systems |
| 1436 | # (which may remove their limitations). |
| 1437 | case $ac_sys_system/$ac_sys_release in |
| 1438 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 1439 | # 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] | 1440 | # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. |
| 1441 | OpenBSD/2.* | OpenBSD/3.[01234]) |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1442 | define_xopen_source=no;; |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 1443 | # On Solaris 2.6, sys/wait.h is inconsistent in the usage |
| 1444 | # of union __?sigval. Reported by Stuart Bishop. |
| 1445 | SunOS/5.6) |
| 1446 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 1447 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| 1448 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
| 1449 | OpenUNIX/8.0.0| UnixWare/7.1.[0-3]) |
| 1450 | define_xopen_source=no;; |
| 1451 | # 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] | 1452 | # 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] | 1453 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 1454 | define_xopen_source=no;; |
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame^] | 1455 | # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that |
| 1456 | # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently, |
| 1457 | # this is fixed in 10.3, which identifies itself as Darwin/7.* |
| 1458 | # This should hopefully be fixed in FreeBSD 4.9 |
| 1459 | FreeBSD/4.8* | Darwin/6* ) |
| 1460 | define_xopen_source=no;; |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1461 | esac |
| 1462 | |
| 1463 | if test $define_xopen_source = yes |
| 1464 | then |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1465 | |
| 1466 | cat >>confdefs.h <<\_ACEOF |
| 1467 | #define _XOPEN_SOURCE 600 |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1468 | _ACEOF |
| 1469 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1470 | |
| 1471 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 1472 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 1473 | # several APIs are not declared. Since this is also needed in some |
| 1474 | # cases for HP-UX, we define it globally. |
| 1475 | |
| 1476 | |
| 1477 | cat >>confdefs.h <<\_ACEOF |
| 1478 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 1479 | _ACEOF |
| 1480 | |
| 1481 | |
| 1482 | cat >>confdefs.h <<\_ACEOF |
| 1483 | #define _POSIX_C_SOURCE 200112L |
| 1484 | _ACEOF |
| 1485 | |
| 1486 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1487 | fi |
| 1488 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1489 | # |
| 1490 | # SGI compilers allow the specification of the both the ABI and the |
| 1491 | # ISA on the command line. Depending on the values of these switches, |
| 1492 | # different and often incompatable code will be generated. |
| 1493 | # |
| 1494 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 1495 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 1496 | # variable is also adjusted. |
| 1497 | # |
| 1498 | |
| 1499 | if test ! -z "$SGI_ABI" |
| 1500 | then |
| 1501 | CC="cc $SGI_ABI" |
| 1502 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 1503 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 1504 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1505 | echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 1506 | echo "${ECHO_T}$MACHDEP" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1507 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1508 | # And add extra plat-mac for darwin |
| 1509 | |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 1510 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1511 | echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5 |
| 1512 | echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6 |
| 1513 | if test -z "$EXTRAPLATDIR" |
| 1514 | then |
| 1515 | case $MACHDEP in |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 1516 | darwin) |
| 1517 | EXTRAPLATDIR="\$(PLATMACDIRS)" |
| 1518 | EXTRAMACHDEPPATH="\$(PLATMACPATH)" |
| 1519 | ;; |
| 1520 | *) |
| 1521 | EXTRAPLATDIR="" |
| 1522 | EXTRAMACHDEPPATH="" |
| 1523 | ;; |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1524 | esac |
| 1525 | fi |
| 1526 | echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5 |
| 1527 | echo "${ECHO_T}$EXTRAPLATDIR" >&6 |
| 1528 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1529 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1530 | |
| 1531 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 1532 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 1533 | # just to get things to compile and link. Users are free to override OPT |
| 1534 | # when running configure or make. The build should not break if they do. |
| 1535 | # BASECFLAGS should generally not be messed with, however. |
| 1536 | |
| 1537 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 1538 | # on that fiddles with OPT and BASECFLAGS? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1539 | echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 1540 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6 |
| 1541 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1542 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1543 | if test "${with_gcc+set}" = set; then |
| 1544 | withval="$with_gcc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1545 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1546 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1547 | no) CC=cc |
| 1548 | without_gcc=yes;; |
| 1549 | yes) CC=gcc |
| 1550 | without_gcc=no;; |
| 1551 | *) CC=$withval |
| 1552 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1553 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1554 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1555 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1556 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1557 | AIX*) CC=cc_r |
| 1558 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1559 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1560 | case $BE_HOST_CPU in |
| 1561 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1562 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1563 | without_gcc=yes |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1564 | BASECFLAGS="$BASECFLAGS -export pragma" |
| 1565 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1566 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1567 | ;; |
| 1568 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1569 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1570 | without_gcc=no |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1571 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1572 | ;; |
| 1573 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1574 | { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| 1575 | echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;} |
| 1576 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1577 | ;; |
| 1578 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1579 | AR="\$(srcdir)/Modules/ar_beos" |
| 1580 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1581 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1582 | Monterey*) |
| 1583 | RANLIB=: |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1584 | without_gcc=;; |
| 1585 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1586 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1587 | fi; |
| 1588 | echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 1589 | echo "${ECHO_T}$without_gcc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1590 | |
| 1591 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1592 | |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1593 | MAINOBJ=python.o |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1594 | echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5 |
| 1595 | echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6 |
| 1596 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1597 | # Check whether --with-cxx or --without-cxx was given. |
| 1598 | if test "${with_cxx+set}" = set; then |
| 1599 | withval="$with_cxx" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1600 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1601 | check_cxx=no |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1602 | case $withval in |
| 1603 | no) CXX= |
| 1604 | with_cxx=no;; |
| 1605 | *) CXX=$withval |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1606 | MAINOBJ=ccpython.o |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1607 | with_cxx=$withval;; |
| 1608 | esac |
| 1609 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1610 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1611 | with_cxx=no |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1612 | check_cxx=yes |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1613 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1614 | fi; |
| 1615 | echo "$as_me:$LINENO: result: $with_cxx" >&5 |
| 1616 | echo "${ECHO_T}$with_cxx" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1617 | |
| 1618 | if test "$with_cxx" = "yes" |
| 1619 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1620 | { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5 |
| 1621 | echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;} |
| 1622 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1623 | fi |
| 1624 | |
| 1625 | |
| 1626 | |
| 1627 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1628 | if test "$check_cxx" = "yes" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1629 | then |
| 1630 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 1631 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1632 | # 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] | 1633 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1634 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1635 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1636 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 1637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1638 | else |
| 1639 | if test -n "$CXX"; then |
| 1640 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 1641 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1643 | for as_dir in $PATH |
| 1644 | do |
| 1645 | IFS=$as_save_IFS |
| 1646 | test -z "$as_dir" && as_dir=. |
| 1647 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1648 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1649 | ac_cv_prog_CXX="$ac_prog" |
| 1650 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1651 | break 2 |
| 1652 | fi |
| 1653 | done |
| 1654 | done |
| 1655 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1656 | fi |
| 1657 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1658 | CXX=$ac_cv_prog_CXX |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1659 | if test -n "$CXX"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1660 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 1661 | echo "${ECHO_T}$CXX" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1662 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1663 | echo "$as_me:$LINENO: result: no" >&5 |
| 1664 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1665 | fi |
| 1666 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1667 | test -n "$CXX" && break |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1668 | done |
| 1669 | test -n "$CXX" || CXX="notfound" |
| 1670 | |
| 1671 | if test "$CXX" = "notfound" |
| 1672 | then |
| 1673 | CXX= |
| 1674 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1675 | ac_ext=cc |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1676 | ac_cpp='$CXXCPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1677 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1678 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1679 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 1680 | cat >conftest.$ac_ext <<_ACEOF |
| 1681 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1682 | /* confdefs.h. */ |
| 1683 | _ACEOF |
| 1684 | cat confdefs.h >>conftest.$ac_ext |
| 1685 | cat >>conftest.$ac_ext <<_ACEOF |
| 1686 | /* end confdefs.h. */ |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1687 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1688 | int |
| 1689 | main () |
| 1690 | { |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1691 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1692 | ; |
| 1693 | return 0; |
| 1694 | } |
| 1695 | _ACEOF |
| 1696 | ac_clean_files_save=$ac_clean_files |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1697 | 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] | 1698 | # Try to create an executable without -o first, disregard a.out. |
| 1699 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1700 | # of exeext. |
| 1701 | echo "$as_me:$LINENO: checking for C++ compiler default output" >&5 |
| 1702 | echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6 |
| 1703 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1704 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1705 | (eval $ac_link_default) 2>&5 |
| 1706 | ac_status=$? |
| 1707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1708 | (exit $ac_status); }; then |
| 1709 | # Find the output, starting from the most likely. This scheme is |
| 1710 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1711 | # resort. |
| 1712 | |
| 1713 | # Be careful to initialize this variable, since it used to be cached. |
| 1714 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1715 | ac_cv_exeext= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1716 | # b.out is created by i960 compilers. |
| 1717 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 1718 | do |
| 1719 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1720 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1721 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 1722 | ;; |
| 1723 | conftest.$ac_ext ) |
| 1724 | # This is the source file. |
| 1725 | ;; |
| 1726 | [ab].out ) |
| 1727 | # We found the default executable, but exeext='' is most |
| 1728 | # certainly right. |
| 1729 | break;; |
| 1730 | *.* ) |
| 1731 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1732 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1733 | # but it would be cool to find out if it's true. Does anybody |
| 1734 | # maintain Libtool? --akim. |
| 1735 | export ac_cv_exeext |
| 1736 | break;; |
| 1737 | * ) |
| 1738 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1739 | esac |
| 1740 | done |
| 1741 | else |
| 1742 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1743 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1744 | |
| 1745 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
| 1746 | See \`config.log' for more details." >&5 |
| 1747 | echo "$as_me: error: C++ compiler cannot create executables |
| 1748 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1749 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1750 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1751 | |
| 1752 | ac_exeext=$ac_cv_exeext |
| 1753 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1754 | echo "${ECHO_T}$ac_file" >&6 |
| 1755 | |
| 1756 | # Check the compiler produces executables we can run. If not, either |
| 1757 | # the compiler is broken, or we cross compile. |
| 1758 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
| 1759 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
| 1760 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1761 | # If not cross compiling, check that we can run a simple program. |
| 1762 | if test "$cross_compiling" != yes; then |
| 1763 | if { ac_try='./$ac_file' |
| 1764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1765 | (eval $ac_try) 2>&5 |
| 1766 | ac_status=$? |
| 1767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1768 | (exit $ac_status); }; }; then |
| 1769 | cross_compiling=no |
| 1770 | else |
| 1771 | if test "$cross_compiling" = maybe; then |
| 1772 | cross_compiling=yes |
| 1773 | else |
| 1774 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1775 | If you meant to cross compile, use \`--host'. |
| 1776 | See \`config.log' for more details." >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1777 | echo "$as_me: error: cannot run C++ compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1778 | If you meant to cross compile, use \`--host'. |
| 1779 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1780 | { (exit 1); exit 1; }; } |
| 1781 | fi |
| 1782 | fi |
| 1783 | fi |
| 1784 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1785 | echo "${ECHO_T}yes" >&6 |
| 1786 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1787 | 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] | 1788 | ac_clean_files=$ac_clean_files_save |
| 1789 | # Check the compiler produces executables we can run. If not, either |
| 1790 | # the compiler is broken, or we cross compile. |
| 1791 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1792 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1793 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1794 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1795 | |
| 1796 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1797 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1798 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1799 | (eval $ac_link) 2>&5 |
| 1800 | ac_status=$? |
| 1801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1802 | (exit $ac_status); }; then |
| 1803 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1804 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1805 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1806 | # `rm'. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1807 | for ac_file in conftest.exe conftest conftest.*; do |
| 1808 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1809 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1810 | *.$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] | 1811 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1812 | export ac_cv_exeext |
| 1813 | break;; |
| 1814 | * ) break;; |
| 1815 | esac |
| 1816 | done |
| 1817 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1818 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1819 | See \`config.log' for more details." >&5 |
| 1820 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 1821 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1822 | { (exit 1); exit 1; }; } |
| 1823 | fi |
| 1824 | |
| 1825 | rm -f conftest$ac_cv_exeext |
| 1826 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1827 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1828 | |
| 1829 | rm -f conftest.$ac_ext |
| 1830 | EXEEXT=$ac_cv_exeext |
| 1831 | ac_exeext=$EXEEXT |
| 1832 | |
| 1833 | ac_ext=c |
| 1834 | ac_cpp='$CPP $CPPFLAGS' |
| 1835 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1836 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1837 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1838 | |
| 1839 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1840 | |
| 1841 | fi |
| 1842 | fi |
| 1843 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1844 | # If the user switches compilers, we can't believe the cache |
| 1845 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 1846 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1847 | { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file |
| 1848 | (it is also a good idea to do 'make clean' before compiling)" >&5 |
| 1849 | echo "$as_me: error: cached CC is different -- throw away $cache_file |
| 1850 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 1851 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1852 | fi |
| 1853 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1854 | ac_ext=c |
| 1855 | ac_cpp='$CPP $CPPFLAGS' |
| 1856 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1857 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1858 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1859 | if test -n "$ac_tool_prefix"; then |
| 1860 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1861 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1862 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1863 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1864 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1866 | else |
| 1867 | if test -n "$CC"; then |
| 1868 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1869 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1871 | for as_dir in $PATH |
| 1872 | do |
| 1873 | IFS=$as_save_IFS |
| 1874 | test -z "$as_dir" && as_dir=. |
| 1875 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1876 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1877 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1878 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1879 | break 2 |
| 1880 | fi |
| 1881 | done |
| 1882 | done |
| 1883 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1884 | fi |
| 1885 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1886 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1887 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1888 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1889 | echo "${ECHO_T}$CC" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1890 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1891 | echo "$as_me:$LINENO: result: no" >&5 |
| 1892 | echo "${ECHO_T}no" >&6 |
| 1893 | fi |
| 1894 | |
| 1895 | fi |
| 1896 | if test -z "$ac_cv_prog_CC"; then |
| 1897 | ac_ct_CC=$CC |
| 1898 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1899 | set dummy gcc; ac_word=$2 |
| 1900 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1901 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1902 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1903 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1904 | else |
| 1905 | if test -n "$ac_ct_CC"; then |
| 1906 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1907 | else |
| 1908 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1909 | for as_dir in $PATH |
| 1910 | do |
| 1911 | IFS=$as_save_IFS |
| 1912 | test -z "$as_dir" && as_dir=. |
| 1913 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1914 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1915 | ac_cv_prog_ac_ct_CC="gcc" |
| 1916 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1917 | break 2 |
| 1918 | fi |
| 1919 | done |
| 1920 | done |
| 1921 | |
| 1922 | fi |
| 1923 | fi |
| 1924 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1925 | if test -n "$ac_ct_CC"; then |
| 1926 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1927 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1928 | else |
| 1929 | echo "$as_me:$LINENO: result: no" >&5 |
| 1930 | echo "${ECHO_T}no" >&6 |
| 1931 | fi |
| 1932 | |
| 1933 | CC=$ac_ct_CC |
| 1934 | else |
| 1935 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1936 | fi |
| 1937 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1938 | if test -z "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1939 | if test -n "$ac_tool_prefix"; then |
| 1940 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1941 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1942 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1943 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1944 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1946 | else |
| 1947 | if test -n "$CC"; then |
| 1948 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1949 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1951 | for as_dir in $PATH |
| 1952 | do |
| 1953 | IFS=$as_save_IFS |
| 1954 | test -z "$as_dir" && as_dir=. |
| 1955 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1956 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1957 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1958 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1959 | break 2 |
| 1960 | fi |
| 1961 | done |
| 1962 | done |
| 1963 | |
| 1964 | fi |
| 1965 | fi |
| 1966 | CC=$ac_cv_prog_CC |
| 1967 | if test -n "$CC"; then |
| 1968 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1969 | echo "${ECHO_T}$CC" >&6 |
| 1970 | else |
| 1971 | echo "$as_me:$LINENO: result: no" >&5 |
| 1972 | echo "${ECHO_T}no" >&6 |
| 1973 | fi |
| 1974 | |
| 1975 | fi |
| 1976 | if test -z "$ac_cv_prog_CC"; then |
| 1977 | ac_ct_CC=$CC |
| 1978 | # Extract the first word of "cc", so it can be a program name with args. |
| 1979 | set dummy cc; ac_word=$2 |
| 1980 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1981 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1982 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1983 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1984 | else |
| 1985 | if test -n "$ac_ct_CC"; then |
| 1986 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1987 | else |
| 1988 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1989 | for as_dir in $PATH |
| 1990 | do |
| 1991 | IFS=$as_save_IFS |
| 1992 | test -z "$as_dir" && as_dir=. |
| 1993 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1994 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1995 | ac_cv_prog_ac_ct_CC="cc" |
| 1996 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1997 | break 2 |
| 1998 | fi |
| 1999 | done |
| 2000 | done |
| 2001 | |
| 2002 | fi |
| 2003 | fi |
| 2004 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2005 | if test -n "$ac_ct_CC"; then |
| 2006 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2007 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2008 | else |
| 2009 | echo "$as_me:$LINENO: result: no" >&5 |
| 2010 | echo "${ECHO_T}no" >&6 |
| 2011 | fi |
| 2012 | |
| 2013 | CC=$ac_ct_CC |
| 2014 | else |
| 2015 | CC="$ac_cv_prog_CC" |
| 2016 | fi |
| 2017 | |
| 2018 | fi |
| 2019 | if test -z "$CC"; then |
| 2020 | # Extract the first word of "cc", so it can be a program name with args. |
| 2021 | set dummy cc; ac_word=$2 |
| 2022 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2023 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2024 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2025 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2026 | else |
| 2027 | if test -n "$CC"; then |
| 2028 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2029 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2030 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2032 | for as_dir in $PATH |
| 2033 | do |
| 2034 | IFS=$as_save_IFS |
| 2035 | test -z "$as_dir" && as_dir=. |
| 2036 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2037 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2038 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2039 | ac_prog_rejected=yes |
| 2040 | continue |
| 2041 | fi |
| 2042 | ac_cv_prog_CC="cc" |
| 2043 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2044 | break 2 |
| 2045 | fi |
| 2046 | done |
| 2047 | done |
| 2048 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2049 | if test $ac_prog_rejected = yes; then |
| 2050 | # We found a bogon in the path, so make sure we never use it. |
| 2051 | set dummy $ac_cv_prog_CC |
| 2052 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2053 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2054 | # We chose a different compiler from the bogus one. |
| 2055 | # However, it has the same basename, so the bogon will be chosen |
| 2056 | # first if we set CC to just the basename; use the full file name. |
| 2057 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2058 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2059 | fi |
| 2060 | fi |
| 2061 | fi |
| 2062 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2063 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2064 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2065 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2066 | echo "${ECHO_T}$CC" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2067 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2068 | echo "$as_me:$LINENO: result: no" >&5 |
| 2069 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2070 | fi |
| 2071 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2072 | fi |
| 2073 | if test -z "$CC"; then |
| 2074 | if test -n "$ac_tool_prefix"; then |
| 2075 | for ac_prog in cl |
| 2076 | do |
| 2077 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2078 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2079 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2080 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2081 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2083 | else |
| 2084 | if test -n "$CC"; then |
| 2085 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2086 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2087 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2088 | for as_dir in $PATH |
| 2089 | do |
| 2090 | IFS=$as_save_IFS |
| 2091 | test -z "$as_dir" && as_dir=. |
| 2092 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2093 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2094 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2095 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2096 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2097 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2098 | done |
| 2099 | done |
| 2100 | |
| 2101 | fi |
| 2102 | fi |
| 2103 | CC=$ac_cv_prog_CC |
| 2104 | if test -n "$CC"; then |
| 2105 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2106 | echo "${ECHO_T}$CC" >&6 |
| 2107 | else |
| 2108 | echo "$as_me:$LINENO: result: no" >&5 |
| 2109 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2110 | fi |
| 2111 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2112 | test -n "$CC" && break |
| 2113 | done |
| 2114 | fi |
| 2115 | if test -z "$CC"; then |
| 2116 | ac_ct_CC=$CC |
| 2117 | for ac_prog in cl |
| 2118 | do |
| 2119 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2120 | set dummy $ac_prog; ac_word=$2 |
| 2121 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2122 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2123 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2125 | else |
| 2126 | if test -n "$ac_ct_CC"; then |
| 2127 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2128 | else |
| 2129 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2130 | for as_dir in $PATH |
| 2131 | do |
| 2132 | IFS=$as_save_IFS |
| 2133 | test -z "$as_dir" && as_dir=. |
| 2134 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2135 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2136 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2137 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2138 | break 2 |
| 2139 | fi |
| 2140 | done |
| 2141 | done |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2142 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2143 | fi |
| 2144 | fi |
| 2145 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2146 | if test -n "$ac_ct_CC"; then |
| 2147 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2148 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2149 | else |
| 2150 | echo "$as_me:$LINENO: result: no" >&5 |
| 2151 | echo "${ECHO_T}no" >&6 |
| 2152 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2153 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2154 | test -n "$ac_ct_CC" && break |
| 2155 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2156 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2157 | CC=$ac_ct_CC |
| 2158 | fi |
| 2159 | |
| 2160 | fi |
| 2161 | |
| 2162 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2163 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2164 | See \`config.log' for more details." >&5 |
| 2165 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2166 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2167 | { (exit 1); exit 1; }; } |
| 2168 | |
| 2169 | # Provide some information about the compiler. |
| 2170 | echo "$as_me:$LINENO:" \ |
| 2171 | "checking for C compiler version" >&5 |
| 2172 | ac_compiler=`set X $ac_compile; echo $2` |
| 2173 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2174 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2175 | ac_status=$? |
| 2176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2177 | (exit $ac_status); } |
| 2178 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2179 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2180 | ac_status=$? |
| 2181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2182 | (exit $ac_status); } |
| 2183 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2184 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2185 | ac_status=$? |
| 2186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2187 | (exit $ac_status); } |
| 2188 | |
| 2189 | cat >conftest.$ac_ext <<_ACEOF |
| 2190 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2191 | /* confdefs.h. */ |
| 2192 | _ACEOF |
| 2193 | cat confdefs.h >>conftest.$ac_ext |
| 2194 | cat >>conftest.$ac_ext <<_ACEOF |
| 2195 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2196 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2197 | int |
| 2198 | main () |
| 2199 | { |
| 2200 | |
| 2201 | ; |
| 2202 | return 0; |
| 2203 | } |
| 2204 | _ACEOF |
| 2205 | ac_clean_files_save=$ac_clean_files |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2206 | 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] | 2207 | # Try to create an executable without -o first, disregard a.out. |
| 2208 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2209 | # of exeext. |
| 2210 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
| 2211 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 2212 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2213 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2214 | (eval $ac_link_default) 2>&5 |
| 2215 | ac_status=$? |
| 2216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2217 | (exit $ac_status); }; then |
| 2218 | # Find the output, starting from the most likely. This scheme is |
| 2219 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2220 | # resort. |
| 2221 | |
| 2222 | # Be careful to initialize this variable, since it used to be cached. |
| 2223 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2224 | ac_cv_exeext= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2225 | # b.out is created by i960 compilers. |
| 2226 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 2227 | do |
| 2228 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2229 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2230 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 2231 | ;; |
| 2232 | conftest.$ac_ext ) |
| 2233 | # This is the source file. |
| 2234 | ;; |
| 2235 | [ab].out ) |
| 2236 | # We found the default executable, but exeext='' is most |
| 2237 | # certainly right. |
| 2238 | break;; |
| 2239 | *.* ) |
| 2240 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2241 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 2242 | # but it would be cool to find out if it's true. Does anybody |
| 2243 | # maintain Libtool? --akim. |
| 2244 | export ac_cv_exeext |
| 2245 | break;; |
| 2246 | * ) |
| 2247 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2248 | esac |
| 2249 | done |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2250 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2251 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2252 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2253 | |
| 2254 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2255 | See \`config.log' for more details." >&5 |
| 2256 | echo "$as_me: error: C compiler cannot create executables |
| 2257 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2258 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2259 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2260 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2261 | ac_exeext=$ac_cv_exeext |
| 2262 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2263 | echo "${ECHO_T}$ac_file" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2264 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2265 | # Check the compiler produces executables we can run. If not, either |
| 2266 | # the compiler is broken, or we cross compile. |
| 2267 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2268 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2269 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2270 | # If not cross compiling, check that we can run a simple program. |
| 2271 | if test "$cross_compiling" != yes; then |
| 2272 | if { ac_try='./$ac_file' |
| 2273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2274 | (eval $ac_try) 2>&5 |
| 2275 | ac_status=$? |
| 2276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2277 | (exit $ac_status); }; }; then |
| 2278 | cross_compiling=no |
| 2279 | else |
| 2280 | if test "$cross_compiling" = maybe; then |
| 2281 | cross_compiling=yes |
| 2282 | else |
| 2283 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2284 | If you meant to cross compile, use \`--host'. |
| 2285 | See \`config.log' for more details." >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2286 | echo "$as_me: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2287 | If you meant to cross compile, use \`--host'. |
| 2288 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2289 | { (exit 1); exit 1; }; } |
| 2290 | fi |
| 2291 | fi |
| 2292 | fi |
| 2293 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2294 | echo "${ECHO_T}yes" >&6 |
| 2295 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2296 | 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] | 2297 | ac_clean_files=$ac_clean_files_save |
| 2298 | # Check the compiler produces executables we can run. If not, either |
| 2299 | # the compiler is broken, or we cross compile. |
| 2300 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2301 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2302 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2303 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2304 | |
| 2305 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2306 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2307 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2308 | (eval $ac_link) 2>&5 |
| 2309 | ac_status=$? |
| 2310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2311 | (exit $ac_status); }; then |
| 2312 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2313 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2314 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2315 | # `rm'. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2316 | for ac_file in conftest.exe conftest conftest.*; do |
| 2317 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2318 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2319 | *.$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] | 2320 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2321 | export ac_cv_exeext |
| 2322 | break;; |
| 2323 | * ) break;; |
| 2324 | esac |
| 2325 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2326 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2327 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2328 | See \`config.log' for more details." >&5 |
| 2329 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2330 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2331 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2332 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2333 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2334 | rm -f conftest$ac_cv_exeext |
| 2335 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2336 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2337 | |
| 2338 | rm -f conftest.$ac_ext |
| 2339 | EXEEXT=$ac_cv_exeext |
| 2340 | ac_exeext=$EXEEXT |
| 2341 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2342 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2343 | if test "${ac_cv_objext+set}" = set; then |
| 2344 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2345 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2346 | cat >conftest.$ac_ext <<_ACEOF |
| 2347 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2348 | /* confdefs.h. */ |
| 2349 | _ACEOF |
| 2350 | cat confdefs.h >>conftest.$ac_ext |
| 2351 | cat >>conftest.$ac_ext <<_ACEOF |
| 2352 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2353 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2354 | int |
| 2355 | main () |
| 2356 | { |
| 2357 | |
| 2358 | ; |
| 2359 | return 0; |
| 2360 | } |
| 2361 | _ACEOF |
| 2362 | rm -f conftest.o conftest.obj |
| 2363 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2364 | (eval $ac_compile) 2>&5 |
| 2365 | ac_status=$? |
| 2366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2367 | (exit $ac_status); }; then |
| 2368 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2369 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2370 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2371 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2372 | break;; |
| 2373 | esac |
| 2374 | done |
| 2375 | else |
| 2376 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2377 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2378 | |
| 2379 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2380 | See \`config.log' for more details." >&5 |
| 2381 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2382 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2383 | { (exit 1); exit 1; }; } |
| 2384 | fi |
| 2385 | |
| 2386 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2387 | fi |
| 2388 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2389 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2390 | OBJEXT=$ac_cv_objext |
| 2391 | ac_objext=$OBJEXT |
| 2392 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2393 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2394 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2395 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2396 | else |
| 2397 | cat >conftest.$ac_ext <<_ACEOF |
| 2398 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2399 | /* confdefs.h. */ |
| 2400 | _ACEOF |
| 2401 | cat confdefs.h >>conftest.$ac_ext |
| 2402 | cat >>conftest.$ac_ext <<_ACEOF |
| 2403 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2404 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2405 | int |
| 2406 | main () |
| 2407 | { |
| 2408 | #ifndef __GNUC__ |
| 2409 | choke me |
| 2410 | #endif |
| 2411 | |
| 2412 | ; |
| 2413 | return 0; |
| 2414 | } |
| 2415 | _ACEOF |
| 2416 | rm -f conftest.$ac_objext |
| 2417 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2418 | (eval $ac_compile) 2>&5 |
| 2419 | ac_status=$? |
| 2420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2421 | (exit $ac_status); } && |
| 2422 | { ac_try='test -s conftest.$ac_objext' |
| 2423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2424 | (eval $ac_try) 2>&5 |
| 2425 | ac_status=$? |
| 2426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2427 | (exit $ac_status); }; }; then |
| 2428 | ac_compiler_gnu=yes |
| 2429 | else |
| 2430 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2431 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2432 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2433 | ac_compiler_gnu=no |
| 2434 | fi |
| 2435 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2436 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2437 | |
| 2438 | fi |
| 2439 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2440 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2441 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2442 | ac_test_CFLAGS=${CFLAGS+set} |
| 2443 | ac_save_CFLAGS=$CFLAGS |
| 2444 | CFLAGS="-g" |
| 2445 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2446 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2447 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2448 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2449 | else |
| 2450 | cat >conftest.$ac_ext <<_ACEOF |
| 2451 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2452 | /* confdefs.h. */ |
| 2453 | _ACEOF |
| 2454 | cat confdefs.h >>conftest.$ac_ext |
| 2455 | cat >>conftest.$ac_ext <<_ACEOF |
| 2456 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2457 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2458 | int |
| 2459 | main () |
| 2460 | { |
| 2461 | |
| 2462 | ; |
| 2463 | return 0; |
| 2464 | } |
| 2465 | _ACEOF |
| 2466 | rm -f conftest.$ac_objext |
| 2467 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2468 | (eval $ac_compile) 2>&5 |
| 2469 | ac_status=$? |
| 2470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2471 | (exit $ac_status); } && |
| 2472 | { ac_try='test -s conftest.$ac_objext' |
| 2473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2474 | (eval $ac_try) 2>&5 |
| 2475 | ac_status=$? |
| 2476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2477 | (exit $ac_status); }; }; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2478 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2479 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2480 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2481 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2482 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2483 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2484 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2485 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2486 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2487 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2488 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2489 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2490 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2491 | elif test $ac_cv_prog_cc_g = yes; then |
| 2492 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2493 | CFLAGS="-g -O2" |
| 2494 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2495 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2496 | fi |
| 2497 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2498 | if test "$GCC" = yes; then |
| 2499 | CFLAGS="-O2" |
| 2500 | else |
| 2501 | CFLAGS= |
| 2502 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2503 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2504 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2505 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2506 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2508 | else |
| 2509 | ac_cv_prog_cc_stdc=no |
| 2510 | ac_save_CC=$CC |
| 2511 | cat >conftest.$ac_ext <<_ACEOF |
| 2512 | #line $LINENO "configure" |
| 2513 | /* confdefs.h. */ |
| 2514 | _ACEOF |
| 2515 | cat confdefs.h >>conftest.$ac_ext |
| 2516 | cat >>conftest.$ac_ext <<_ACEOF |
| 2517 | /* end confdefs.h. */ |
| 2518 | #include <stdarg.h> |
| 2519 | #include <stdio.h> |
| 2520 | #include <sys/types.h> |
| 2521 | #include <sys/stat.h> |
| 2522 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2523 | struct buf { int x; }; |
| 2524 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2525 | static char *e (p, i) |
| 2526 | char **p; |
| 2527 | int i; |
| 2528 | { |
| 2529 | return p[i]; |
| 2530 | } |
| 2531 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2532 | { |
| 2533 | char *s; |
| 2534 | va_list v; |
| 2535 | va_start (v,p); |
| 2536 | s = g (p, va_arg (v,int)); |
| 2537 | va_end (v); |
| 2538 | return s; |
| 2539 | } |
| 2540 | int test (int i, double x); |
| 2541 | struct s1 {int (*f) (int a);}; |
| 2542 | struct s2 {int (*f) (double a);}; |
| 2543 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2544 | int argc; |
| 2545 | char **argv; |
| 2546 | int |
| 2547 | main () |
| 2548 | { |
| 2549 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2550 | ; |
| 2551 | return 0; |
| 2552 | } |
| 2553 | _ACEOF |
| 2554 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2555 | # breaks some systems' header files. |
| 2556 | # AIX -qlanglvl=ansi |
| 2557 | # Ultrix and OSF/1 -std1 |
| 2558 | # HP-UX 10.20 and later -Ae |
| 2559 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2560 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2561 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2562 | do |
| 2563 | CC="$ac_save_CC $ac_arg" |
| 2564 | rm -f conftest.$ac_objext |
| 2565 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2566 | (eval $ac_compile) 2>&5 |
| 2567 | ac_status=$? |
| 2568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2569 | (exit $ac_status); } && |
| 2570 | { ac_try='test -s conftest.$ac_objext' |
| 2571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2572 | (eval $ac_try) 2>&5 |
| 2573 | ac_status=$? |
| 2574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2575 | (exit $ac_status); }; }; then |
| 2576 | ac_cv_prog_cc_stdc=$ac_arg |
| 2577 | break |
| 2578 | else |
| 2579 | echo "$as_me: failed program was:" >&5 |
| 2580 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2581 | |
| 2582 | fi |
| 2583 | rm -f conftest.$ac_objext |
| 2584 | done |
| 2585 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2586 | CC=$ac_save_CC |
| 2587 | |
| 2588 | fi |
| 2589 | |
| 2590 | case "x$ac_cv_prog_cc_stdc" in |
| 2591 | x|xno) |
| 2592 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2593 | echo "${ECHO_T}none needed" >&6 ;; |
| 2594 | *) |
| 2595 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2596 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2597 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2598 | esac |
| 2599 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2600 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2601 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2602 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2603 | # the declaration of exit, since it's the most demanding environment. |
| 2604 | cat >conftest.$ac_ext <<_ACEOF |
| 2605 | #ifndef __cplusplus |
| 2606 | choke me |
| 2607 | #endif |
| 2608 | _ACEOF |
| 2609 | rm -f conftest.$ac_objext |
| 2610 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2611 | (eval $ac_compile) 2>&5 |
| 2612 | ac_status=$? |
| 2613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2614 | (exit $ac_status); } && |
| 2615 | { ac_try='test -s conftest.$ac_objext' |
| 2616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2617 | (eval $ac_try) 2>&5 |
| 2618 | ac_status=$? |
| 2619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2620 | (exit $ac_status); }; }; then |
| 2621 | for ac_declaration in \ |
| 2622 | ''\ |
| 2623 | '#include <stdlib.h>' \ |
| 2624 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2625 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2626 | 'extern "C" void exit (int) throw ();' \ |
| 2627 | 'extern "C" void exit (int);' \ |
| 2628 | 'void exit (int);' |
| 2629 | do |
| 2630 | cat >conftest.$ac_ext <<_ACEOF |
| 2631 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2632 | /* confdefs.h. */ |
| 2633 | _ACEOF |
| 2634 | cat confdefs.h >>conftest.$ac_ext |
| 2635 | cat >>conftest.$ac_ext <<_ACEOF |
| 2636 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2637 | #include <stdlib.h> |
| 2638 | $ac_declaration |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2639 | int |
| 2640 | main () |
| 2641 | { |
| 2642 | exit (42); |
| 2643 | ; |
| 2644 | return 0; |
| 2645 | } |
| 2646 | _ACEOF |
| 2647 | rm -f conftest.$ac_objext |
| 2648 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2649 | (eval $ac_compile) 2>&5 |
| 2650 | ac_status=$? |
| 2651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2652 | (exit $ac_status); } && |
| 2653 | { ac_try='test -s conftest.$ac_objext' |
| 2654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2655 | (eval $ac_try) 2>&5 |
| 2656 | ac_status=$? |
| 2657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2658 | (exit $ac_status); }; }; then |
| 2659 | : |
| 2660 | else |
| 2661 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2662 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2663 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2664 | continue |
| 2665 | fi |
| 2666 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2667 | cat >conftest.$ac_ext <<_ACEOF |
| 2668 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2669 | /* confdefs.h. */ |
| 2670 | _ACEOF |
| 2671 | cat confdefs.h >>conftest.$ac_ext |
| 2672 | cat >>conftest.$ac_ext <<_ACEOF |
| 2673 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2674 | $ac_declaration |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2675 | int |
| 2676 | main () |
| 2677 | { |
| 2678 | exit (42); |
| 2679 | ; |
| 2680 | return 0; |
| 2681 | } |
| 2682 | _ACEOF |
| 2683 | rm -f conftest.$ac_objext |
| 2684 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2685 | (eval $ac_compile) 2>&5 |
| 2686 | ac_status=$? |
| 2687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2688 | (exit $ac_status); } && |
| 2689 | { ac_try='test -s conftest.$ac_objext' |
| 2690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2691 | (eval $ac_try) 2>&5 |
| 2692 | ac_status=$? |
| 2693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2694 | (exit $ac_status); }; }; then |
| 2695 | break |
| 2696 | else |
| 2697 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2698 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2699 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2700 | fi |
| 2701 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2702 | done |
| 2703 | rm -f conftest* |
| 2704 | if test -n "$ac_declaration"; then |
| 2705 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2706 | echo $ac_declaration >>confdefs.h |
| 2707 | echo '#endif' >>confdefs.h |
| 2708 | fi |
| 2709 | |
| 2710 | else |
| 2711 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2712 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2713 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2714 | fi |
| 2715 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2716 | ac_ext=c |
| 2717 | ac_cpp='$CPP $CPPFLAGS' |
| 2718 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2719 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2720 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2721 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2722 | |
| 2723 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2724 | |
| 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 |
| 2730 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2731 | 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] | 2732 | # On Suns, sometimes $CPP names a directory. |
| 2733 | if test -n "$CPP" && test -d "$CPP"; then |
| 2734 | CPP= |
| 2735 | fi |
| 2736 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2737 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2739 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2740 | # Double quotes because CPP needs to be expanded |
| 2741 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2742 | do |
| 2743 | ac_preproc_ok=false |
| 2744 | for ac_c_preproc_warn_flag in '' yes |
| 2745 | do |
| 2746 | # Use a header file that comes with gcc, so configuring glibc |
| 2747 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2748 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2749 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2750 | # 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] | 2751 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2752 | cat >conftest.$ac_ext <<_ACEOF |
| 2753 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2754 | /* confdefs.h. */ |
| 2755 | _ACEOF |
| 2756 | cat confdefs.h >>conftest.$ac_ext |
| 2757 | cat >>conftest.$ac_ext <<_ACEOF |
| 2758 | /* end confdefs.h. */ |
| 2759 | #ifdef __STDC__ |
| 2760 | # include <limits.h> |
| 2761 | #else |
| 2762 | # include <assert.h> |
| 2763 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2764 | Syntax error |
| 2765 | _ACEOF |
| 2766 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2767 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2768 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2769 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2770 | rm -f conftest.er1 |
| 2771 | cat conftest.err >&5 |
| 2772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2773 | (exit $ac_status); } >/dev/null; then |
| 2774 | if test -s conftest.err; then |
| 2775 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2776 | else |
| 2777 | ac_cpp_err= |
| 2778 | fi |
| 2779 | else |
| 2780 | ac_cpp_err=yes |
| 2781 | fi |
| 2782 | if test -z "$ac_cpp_err"; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2783 | : |
| 2784 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2785 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2786 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2787 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2788 | # Broken: fails on valid input. |
| 2789 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2790 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2791 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2792 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2793 | # OK, works on sane cases. Now check whether non-existent headers |
| 2794 | # can be detected and how. |
| 2795 | cat >conftest.$ac_ext <<_ACEOF |
| 2796 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2797 | /* confdefs.h. */ |
| 2798 | _ACEOF |
| 2799 | cat confdefs.h >>conftest.$ac_ext |
| 2800 | cat >>conftest.$ac_ext <<_ACEOF |
| 2801 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2802 | #include <ac_nonexistent.h> |
| 2803 | _ACEOF |
| 2804 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2805 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2806 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2807 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2808 | rm -f conftest.er1 |
| 2809 | cat conftest.err >&5 |
| 2810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2811 | (exit $ac_status); } >/dev/null; then |
| 2812 | if test -s conftest.err; then |
| 2813 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2814 | else |
| 2815 | ac_cpp_err= |
| 2816 | fi |
| 2817 | else |
| 2818 | ac_cpp_err=yes |
| 2819 | fi |
| 2820 | if test -z "$ac_cpp_err"; then |
| 2821 | # Broken: success on invalid input. |
| 2822 | continue |
| 2823 | else |
| 2824 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2825 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2826 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2827 | # Passes both tests. |
| 2828 | ac_preproc_ok=: |
| 2829 | break |
| 2830 | fi |
| 2831 | rm -f conftest.err conftest.$ac_ext |
| 2832 | |
| 2833 | done |
| 2834 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2835 | rm -f conftest.err conftest.$ac_ext |
| 2836 | if $ac_preproc_ok; then |
| 2837 | break |
| 2838 | fi |
| 2839 | |
| 2840 | done |
| 2841 | ac_cv_prog_CPP=$CPP |
| 2842 | |
| 2843 | fi |
| 2844 | CPP=$ac_cv_prog_CPP |
| 2845 | else |
| 2846 | ac_cv_prog_CPP=$CPP |
| 2847 | fi |
| 2848 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2849 | echo "${ECHO_T}$CPP" >&6 |
| 2850 | ac_preproc_ok=false |
| 2851 | for ac_c_preproc_warn_flag in '' yes |
| 2852 | do |
| 2853 | # Use a header file that comes with gcc, so configuring glibc |
| 2854 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2855 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2856 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2857 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2858 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2859 | cat >conftest.$ac_ext <<_ACEOF |
| 2860 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2861 | /* confdefs.h. */ |
| 2862 | _ACEOF |
| 2863 | cat confdefs.h >>conftest.$ac_ext |
| 2864 | cat >>conftest.$ac_ext <<_ACEOF |
| 2865 | /* end confdefs.h. */ |
| 2866 | #ifdef __STDC__ |
| 2867 | # include <limits.h> |
| 2868 | #else |
| 2869 | # include <assert.h> |
| 2870 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2871 | Syntax error |
| 2872 | _ACEOF |
| 2873 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2874 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2875 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2876 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2877 | rm -f conftest.er1 |
| 2878 | cat conftest.err >&5 |
| 2879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2880 | (exit $ac_status); } >/dev/null; then |
| 2881 | if test -s conftest.err; then |
| 2882 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2883 | else |
| 2884 | ac_cpp_err= |
| 2885 | fi |
| 2886 | else |
| 2887 | ac_cpp_err=yes |
| 2888 | fi |
| 2889 | if test -z "$ac_cpp_err"; then |
| 2890 | : |
| 2891 | else |
| 2892 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2893 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2894 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2895 | # Broken: fails on valid input. |
| 2896 | continue |
| 2897 | fi |
| 2898 | rm -f conftest.err conftest.$ac_ext |
| 2899 | |
| 2900 | # OK, works on sane cases. Now check whether non-existent headers |
| 2901 | # can be detected and how. |
| 2902 | cat >conftest.$ac_ext <<_ACEOF |
| 2903 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2904 | /* confdefs.h. */ |
| 2905 | _ACEOF |
| 2906 | cat confdefs.h >>conftest.$ac_ext |
| 2907 | cat >>conftest.$ac_ext <<_ACEOF |
| 2908 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2909 | #include <ac_nonexistent.h> |
| 2910 | _ACEOF |
| 2911 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2912 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2913 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2914 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2915 | rm -f conftest.er1 |
| 2916 | cat conftest.err >&5 |
| 2917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2918 | (exit $ac_status); } >/dev/null; then |
| 2919 | if test -s conftest.err; then |
| 2920 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2921 | else |
| 2922 | ac_cpp_err= |
| 2923 | fi |
| 2924 | else |
| 2925 | ac_cpp_err=yes |
| 2926 | fi |
| 2927 | if test -z "$ac_cpp_err"; then |
| 2928 | # Broken: success on invalid input. |
| 2929 | continue |
| 2930 | else |
| 2931 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2932 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2933 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2934 | # Passes both tests. |
| 2935 | ac_preproc_ok=: |
| 2936 | break |
| 2937 | fi |
| 2938 | rm -f conftest.err conftest.$ac_ext |
| 2939 | |
| 2940 | done |
| 2941 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2942 | rm -f conftest.err conftest.$ac_ext |
| 2943 | if $ac_preproc_ok; then |
| 2944 | : |
| 2945 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2946 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 2947 | See \`config.log' for more details." >&5 |
| 2948 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 2949 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2950 | { (exit 1); exit 1; }; } |
| 2951 | fi |
| 2952 | |
| 2953 | ac_ext=c |
| 2954 | ac_cpp='$CPP $CPPFLAGS' |
| 2955 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2956 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2957 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2958 | |
| 2959 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2960 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 2961 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 2962 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 2963 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2964 | else |
| 2965 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 2966 | then ac_cv_prog_egrep='grep -E' |
| 2967 | else ac_cv_prog_egrep='egrep' |
| 2968 | fi |
| 2969 | fi |
| 2970 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 2971 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 2972 | EGREP=$ac_cv_prog_egrep |
| 2973 | |
| 2974 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2975 | |
| 2976 | echo "$as_me:$LINENO: checking for AIX" >&5 |
| 2977 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
| 2978 | cat >conftest.$ac_ext <<_ACEOF |
| 2979 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2980 | /* confdefs.h. */ |
| 2981 | _ACEOF |
| 2982 | cat confdefs.h >>conftest.$ac_ext |
| 2983 | cat >>conftest.$ac_ext <<_ACEOF |
| 2984 | /* end confdefs.h. */ |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2985 | #ifdef _AIX |
| 2986 | yes |
| 2987 | #endif |
| 2988 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2989 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2990 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2991 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2992 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2993 | echo "${ECHO_T}yes" >&6 |
| 2994 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2995 | #define _ALL_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2996 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2997 | |
| 2998 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2999 | echo "$as_me:$LINENO: result: no" >&5 |
| 3000 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3001 | fi |
| 3002 | rm -f conftest* |
| 3003 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3004 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3005 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3006 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 3007 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3008 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3009 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3010 | cat >conftest.$ac_ext <<_ACEOF |
| 3011 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3012 | /* confdefs.h. */ |
| 3013 | _ACEOF |
| 3014 | cat confdefs.h >>conftest.$ac_ext |
| 3015 | cat >>conftest.$ac_ext <<_ACEOF |
| 3016 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3017 | #include <stdlib.h> |
| 3018 | #include <stdarg.h> |
| 3019 | #include <string.h> |
| 3020 | #include <float.h> |
| 3021 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3022 | int |
| 3023 | main () |
| 3024 | { |
| 3025 | |
| 3026 | ; |
| 3027 | return 0; |
| 3028 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3029 | _ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3030 | rm -f conftest.$ac_objext |
| 3031 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3032 | (eval $ac_compile) 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3033 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3035 | (exit $ac_status); } && |
| 3036 | { ac_try='test -s conftest.$ac_objext' |
| 3037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3038 | (eval $ac_try) 2>&5 |
| 3039 | ac_status=$? |
| 3040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3041 | (exit $ac_status); }; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3042 | ac_cv_header_stdc=yes |
| 3043 | else |
| 3044 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3045 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3046 | |
| 3047 | ac_cv_header_stdc=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3048 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3049 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3050 | |
| 3051 | if test $ac_cv_header_stdc = yes; then |
| 3052 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3053 | cat >conftest.$ac_ext <<_ACEOF |
| 3054 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3055 | /* confdefs.h. */ |
| 3056 | _ACEOF |
| 3057 | cat confdefs.h >>conftest.$ac_ext |
| 3058 | cat >>conftest.$ac_ext <<_ACEOF |
| 3059 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3060 | #include <string.h> |
| 3061 | |
| 3062 | _ACEOF |
| 3063 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3064 | $EGREP "memchr" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3065 | : |
| 3066 | else |
| 3067 | ac_cv_header_stdc=no |
| 3068 | fi |
| 3069 | rm -f conftest* |
| 3070 | |
| 3071 | fi |
| 3072 | |
| 3073 | if test $ac_cv_header_stdc = yes; then |
| 3074 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3075 | cat >conftest.$ac_ext <<_ACEOF |
| 3076 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3077 | /* confdefs.h. */ |
| 3078 | _ACEOF |
| 3079 | cat confdefs.h >>conftest.$ac_ext |
| 3080 | cat >>conftest.$ac_ext <<_ACEOF |
| 3081 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3082 | #include <stdlib.h> |
| 3083 | |
| 3084 | _ACEOF |
| 3085 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3086 | $EGREP "free" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3087 | : |
| 3088 | else |
| 3089 | ac_cv_header_stdc=no |
| 3090 | fi |
| 3091 | rm -f conftest* |
| 3092 | |
| 3093 | fi |
| 3094 | |
| 3095 | if test $ac_cv_header_stdc = yes; then |
| 3096 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3097 | if test "$cross_compiling" = yes; then |
| 3098 | : |
| 3099 | else |
| 3100 | cat >conftest.$ac_ext <<_ACEOF |
| 3101 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3102 | /* confdefs.h. */ |
| 3103 | _ACEOF |
| 3104 | cat confdefs.h >>conftest.$ac_ext |
| 3105 | cat >>conftest.$ac_ext <<_ACEOF |
| 3106 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3107 | #include <ctype.h> |
| 3108 | #if ((' ' & 0x0FF) == 0x020) |
| 3109 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3110 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3111 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3112 | # define ISLOWER(c) \ |
| 3113 | (('a' <= (c) && (c) <= 'i') \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3114 | || ('j' <= (c) && (c) <= 'r') \ |
| 3115 | || ('s' <= (c) && (c) <= 'z')) |
| 3116 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3117 | #endif |
| 3118 | |
| 3119 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3120 | int |
| 3121 | main () |
| 3122 | { |
| 3123 | int i; |
| 3124 | for (i = 0; i < 256; i++) |
| 3125 | if (XOR (islower (i), ISLOWER (i)) |
| 3126 | || toupper (i) != TOUPPER (i)) |
| 3127 | exit(2); |
| 3128 | exit (0); |
| 3129 | } |
| 3130 | _ACEOF |
| 3131 | rm -f conftest$ac_exeext |
| 3132 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3133 | (eval $ac_link) 2>&5 |
| 3134 | ac_status=$? |
| 3135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3136 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3138 | (eval $ac_try) 2>&5 |
| 3139 | ac_status=$? |
| 3140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3141 | (exit $ac_status); }; }; then |
| 3142 | : |
| 3143 | else |
| 3144 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3145 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3146 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3147 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3148 | ( exit $ac_status ) |
| 3149 | ac_cv_header_stdc=no |
| 3150 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3151 | 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] | 3152 | fi |
| 3153 | fi |
| 3154 | fi |
| 3155 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3156 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 3157 | if test $ac_cv_header_stdc = yes; then |
| 3158 | |
| 3159 | cat >>confdefs.h <<\_ACEOF |
| 3160 | #define STDC_HEADERS 1 |
| 3161 | _ACEOF |
| 3162 | |
| 3163 | fi |
| 3164 | |
| 3165 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3166 | |
| 3167 | |
| 3168 | |
| 3169 | |
| 3170 | |
| 3171 | |
| 3172 | |
| 3173 | |
| 3174 | |
| 3175 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3176 | inttypes.h stdint.h unistd.h |
| 3177 | do |
| 3178 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3179 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3180 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3181 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3182 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3183 | else |
| 3184 | cat >conftest.$ac_ext <<_ACEOF |
| 3185 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3186 | /* confdefs.h. */ |
| 3187 | _ACEOF |
| 3188 | cat confdefs.h >>conftest.$ac_ext |
| 3189 | cat >>conftest.$ac_ext <<_ACEOF |
| 3190 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3191 | $ac_includes_default |
| 3192 | |
| 3193 | #include <$ac_header> |
| 3194 | _ACEOF |
| 3195 | rm -f conftest.$ac_objext |
| 3196 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3197 | (eval $ac_compile) 2>&5 |
| 3198 | ac_status=$? |
| 3199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3200 | (exit $ac_status); } && |
| 3201 | { ac_try='test -s conftest.$ac_objext' |
| 3202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3203 | (eval $ac_try) 2>&5 |
| 3204 | ac_status=$? |
| 3205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3206 | (exit $ac_status); }; }; then |
| 3207 | eval "$as_ac_Header=yes" |
| 3208 | else |
| 3209 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3210 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3211 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3212 | eval "$as_ac_Header=no" |
| 3213 | fi |
| 3214 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3215 | fi |
| 3216 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3217 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3218 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3219 | cat >>confdefs.h <<_ACEOF |
| 3220 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3221 | _ACEOF |
| 3222 | |
| 3223 | fi |
| 3224 | |
| 3225 | done |
| 3226 | |
| 3227 | |
| 3228 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 3229 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 3230 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 3231 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 3232 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3233 | fi |
| 3234 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 3235 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 3236 | else |
| 3237 | # Is the header compilable? |
| 3238 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5 |
| 3239 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 |
| 3240 | cat >conftest.$ac_ext <<_ACEOF |
| 3241 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3242 | /* confdefs.h. */ |
| 3243 | _ACEOF |
| 3244 | cat confdefs.h >>conftest.$ac_ext |
| 3245 | cat >>conftest.$ac_ext <<_ACEOF |
| 3246 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3247 | $ac_includes_default |
| 3248 | #include <minix/config.h> |
| 3249 | _ACEOF |
| 3250 | rm -f conftest.$ac_objext |
| 3251 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3252 | (eval $ac_compile) 2>&5 |
| 3253 | ac_status=$? |
| 3254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3255 | (exit $ac_status); } && |
| 3256 | { ac_try='test -s conftest.$ac_objext' |
| 3257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3258 | (eval $ac_try) 2>&5 |
| 3259 | ac_status=$? |
| 3260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3261 | (exit $ac_status); }; }; then |
| 3262 | ac_header_compiler=yes |
| 3263 | else |
| 3264 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3265 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3266 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3267 | ac_header_compiler=no |
| 3268 | fi |
| 3269 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3270 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3271 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3272 | |
| 3273 | # Is the header present? |
| 3274 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5 |
| 3275 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 |
| 3276 | cat >conftest.$ac_ext <<_ACEOF |
| 3277 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3278 | /* confdefs.h. */ |
| 3279 | _ACEOF |
| 3280 | cat confdefs.h >>conftest.$ac_ext |
| 3281 | cat >>conftest.$ac_ext <<_ACEOF |
| 3282 | /* end confdefs.h. */ |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3283 | #include <minix/config.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3284 | _ACEOF |
| 3285 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3286 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3287 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3288 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3289 | rm -f conftest.er1 |
| 3290 | cat conftest.err >&5 |
| 3291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3292 | (exit $ac_status); } >/dev/null; then |
| 3293 | if test -s conftest.err; then |
| 3294 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3295 | else |
| 3296 | ac_cpp_err= |
| 3297 | fi |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3298 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3299 | ac_cpp_err=yes |
| 3300 | fi |
| 3301 | if test -z "$ac_cpp_err"; then |
| 3302 | ac_header_preproc=yes |
| 3303 | else |
| 3304 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3305 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3306 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3307 | ac_header_preproc=no |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3308 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3309 | rm -f conftest.err conftest.$ac_ext |
| 3310 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3311 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3312 | |
| 3313 | # So? What about this header? |
| 3314 | case $ac_header_compiler:$ac_header_preproc in |
| 3315 | yes:no ) |
| 3316 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3317 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3318 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3319 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} |
| 3320 | ( |
| 3321 | cat <<\_ASBOX |
| 3322 | ## ------------------------------------ ## |
| 3323 | ## Report this to bug-autoconf@gnu.org. ## |
| 3324 | ## ------------------------------------ ## |
| 3325 | _ASBOX |
| 3326 | ) | |
| 3327 | sed "s/^/$as_me: WARNING: /" >&2 |
| 3328 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3329 | no:yes ) |
| 3330 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 |
| 3331 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} |
| 3332 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 |
| 3333 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} |
| 3334 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3335 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} |
| 3336 | ( |
| 3337 | cat <<\_ASBOX |
| 3338 | ## ------------------------------------ ## |
| 3339 | ## Report this to bug-autoconf@gnu.org. ## |
| 3340 | ## ------------------------------------ ## |
| 3341 | _ASBOX |
| 3342 | ) | |
| 3343 | sed "s/^/$as_me: WARNING: /" >&2 |
| 3344 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3345 | esac |
| 3346 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 3347 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 3348 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 3349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3350 | else |
| 3351 | ac_cv_header_minix_config_h=$ac_header_preproc |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3352 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3353 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 3354 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 3355 | |
| 3356 | fi |
| 3357 | if test $ac_cv_header_minix_config_h = yes; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3358 | MINIX=yes |
| 3359 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3360 | MINIX= |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3361 | fi |
| 3362 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3363 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3364 | if test "$MINIX" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3365 | |
| 3366 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3367 | #define _POSIX_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3368 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3369 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3370 | |
| 3371 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3372 | #define _POSIX_1_SOURCE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3373 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3374 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3375 | |
| 3376 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3377 | #define _MINIX 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3378 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3379 | |
| 3380 | fi |
| 3381 | |
| 3382 | |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 3383 | # Check for unsupported systems |
| 3384 | case $ac_sys_system/$ac_sys_release in |
| 3385 | SunOS/4*|DYNIX/*|dgux*/*|IRIX/4*|Linux*/1*) |
| 3386 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 3387 | echo See README for details. |
| 3388 | exit 1;; |
| 3389 | esac |
| 3390 | |
| 3391 | if test "$MINIX" = yes; then |
| 3392 | echo This system \(MINIX\) is no longer supported. |
| 3393 | echo Read README for details. |
| 3394 | exit 1 |
| 3395 | fi |
| 3396 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3397 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3398 | echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 3399 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3400 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3401 | # Check whether --with-suffix or --without-suffix was given. |
| 3402 | if test "${with_suffix+set}" = set; then |
| 3403 | withval="$with_suffix" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3404 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3405 | case $withval in |
| 3406 | no) EXEEXT=;; |
| 3407 | yes) EXEEXT=.exe;; |
| 3408 | *) EXEEXT=$withval;; |
| 3409 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3410 | fi; |
| 3411 | echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 3412 | echo "${ECHO_T}$EXEEXT" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3413 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3414 | # Test whether we're running on a non-case-sensitive system, in which |
| 3415 | # case we give a warning if no ext is given |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3416 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3417 | echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 3418 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6 |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3419 | if test ! -d CaseSensitiveTestDir; then |
| 3420 | mkdir CaseSensitiveTestDir |
| 3421 | fi |
| 3422 | |
| 3423 | if test -d casesensitivetestdir |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3424 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3425 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3426 | echo "${ECHO_T}yes" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3427 | BUILDEXEEXT=.exe |
| 3428 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3429 | echo "$as_me:$LINENO: result: no" >&5 |
| 3430 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3431 | BUILDEXEEXT=$EXEEXT |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3432 | fi |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3433 | rmdir CaseSensitiveTestDir |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 3434 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 3435 | case $MACHDEP in |
| 3436 | bsdos*) |
| 3437 | case $CC in |
| 3438 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 3439 | esac;; |
| 3440 | esac |
| 3441 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3442 | case $ac_sys_system in |
| 3443 | hp*|HP*) |
| 3444 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 3445 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3446 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3447 | Monterey*) |
| 3448 | case $CC in |
| 3449 | cc) CC="$CC -Wl,-Bexport";; |
| 3450 | esac;; |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3451 | SunOS*) |
| 3452 | # 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] | 3453 | |
| 3454 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3455 | #define __EXTENSIONS__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3456 | _ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3457 | |
| 3458 | ;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3459 | esac |
| 3460 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3461 | |
| 3462 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3463 | echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 3464 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3465 | if test -z "$LIBRARY" |
| 3466 | then |
| 3467 | LIBRARY='libpython$(VERSION).a' |
| 3468 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3469 | echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 3470 | echo "${ECHO_T}$LIBRARY" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3471 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3472 | # 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] | 3473 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3474 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3475 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3476 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3477 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3478 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3479 | # DLLLIBRARY is the shared (i.e., DLL) library. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3480 | # |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3481 | # RUNSHARED is used to run shared python without installed libraries |
| 3482 | # |
| 3483 | # INSTSONAME is the name of the shared library that will be use to install |
| 3484 | # on the system - some systems like version suffix, others don't |
| 3485 | |
| 3486 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3487 | |
| 3488 | |
| 3489 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3490 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3491 | LDLIBRARY="$LIBRARY" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3492 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 09bdf72 | 2002-05-08 08:51:29 +0000 | [diff] [blame] | 3493 | INSTSONAME='$(LDLIBRARY)' |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 3494 | DLLLIBRARY='' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3495 | LDLIBRARYDIR='' |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3496 | RUNSHARED='' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3497 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3498 | # 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] | 3499 | # If CXX is set, and if it is needed to link a main function that was |
| 3500 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 3501 | # python might then depend on the C++ runtime |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3502 | # 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] | 3503 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3504 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3505 | echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 3506 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3507 | if test -z "$LINKCC" |
| 3508 | then |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 3509 | if test -z "$CXX"; then |
| 3510 | LINKCC="\$(PURIFY) \$(CC)" |
| 3511 | else |
Martin v. Löwis | 1931ca7 | 2002-06-01 21:39:58 +0000 | [diff] [blame] | 3512 | 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] | 3513 | $CXX -c conftest.$ac_ext 2>&5 |
| 3514 | if $CC -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 3515 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 3516 | then |
| 3517 | LINKCC="\$(PURIFY) \$(CC)" |
| 3518 | else |
| 3519 | LINKCC="\$(PURIFY) \$(CXX)" |
| 3520 | fi |
| 3521 | rm -fr conftest* |
| 3522 | fi |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3523 | case $ac_sys_system in |
| 3524 | AIX*) |
Neal Norwitz | 0b27ff9 | 2003-03-31 15:53:49 +0000 | [diff] [blame] | 3525 | exp_extra="\"\"" |
| 3526 | if test $ac_sys_release -ge 5 -o \ |
| 3527 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 3528 | exp_extra="." |
| 3529 | fi |
| 3530 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 3531 | dgux*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3532 | LINKCC="LD_RUN_PATH=$libdir $LINKCC";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3533 | Monterey64*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3534 | LINKCC="$LINKCC -L/usr/lib/ia64l64";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3535 | esac |
| 3536 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3537 | echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 3538 | echo "${ECHO_T}$LINKCC" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3539 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3540 | echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 3541 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3542 | # Check whether --enable-shared or --disable-shared was given. |
| 3543 | if test "${enable_shared+set}" = set; then |
| 3544 | enableval="$enable_shared" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3545 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3546 | fi; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3547 | |
| 3548 | if test -z "$enable_shared" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3549 | then |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3550 | case $ac_sys_system in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3551 | CYGWIN* | atheos*) |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3552 | enable_shared="yes";; |
| 3553 | *) |
| 3554 | enable_shared="no";; |
| 3555 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3556 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3557 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 3558 | echo "${ECHO_T}$enable_shared" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3559 | |
| 3560 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3561 | echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 3562 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3563 | |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 3564 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 3565 | # library that we build, but we do not want to link against it (we |
| 3566 | # will find it with a -framework option). For this reason there is an |
| 3567 | # extra variable BLDLIBRARY against which Python and the extension |
| 3568 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 3569 | # LDLIBRARY, but empty for MacOSX framework builds. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3570 | if test "$enable_framework" |
| 3571 | then |
| 3572 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 66b8483 | 2003-07-04 12:14:39 +0000 | [diff] [blame] | 3573 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3574 | BLDLIBRARY='' |
| 3575 | else |
| 3576 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3577 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3578 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3579 | # Other platforms follow |
| 3580 | if test $enable_shared = "yes"; then |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 3581 | |
| 3582 | cat >>confdefs.h <<\_ACEOF |
| 3583 | #define Py_ENABLE_SHARED 1 |
| 3584 | _ACEOF |
| 3585 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3586 | case $ac_sys_system in |
| 3587 | BeOS*) |
| 3588 | LDLIBRARY='libpython$(VERSION).so' |
| 3589 | ;; |
| 3590 | CYGWIN*) |
| 3591 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3592 | DLLLIBRARY='libpython$(VERSION).dll' |
| 3593 | ;; |
| 3594 | SunOS*) |
| 3595 | LDLIBRARY='libpython$(VERSION).so' |
Martin v. Löwis | d141a8c | 2003-06-14 15:20:28 +0000 | [diff] [blame] | 3596 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3597 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3598 | ;; |
Martin v. Löwis | 96ce805 | 2003-05-31 07:58:45 +0000 | [diff] [blame] | 3599 | Linux*|GNU*|NetBSD*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3600 | LDLIBRARY='libpython$(VERSION).so' |
| 3601 | BLDLIBRARY='-L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3602 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3603 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 3604 | ;; |
| 3605 | hp*|HP*) |
| 3606 | LDLIBRARY='libpython$(VERSION).sl' |
| 3607 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3608 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3609 | ;; |
| 3610 | OSF*) |
| 3611 | LDLIBRARY='libpython$(VERSION).so' |
| 3612 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3613 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3614 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3615 | atheos*) |
| 3616 | LDLIBRARY='libpython$(VERSION).so' |
| 3617 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3618 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 3619 | ;; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3620 | esac |
| 3621 | # DG/UX requires some fancy ld contortions to produce a .so from an .a |
| 3622 | case $MACHDEP in |
| 3623 | dguxR4) |
| 3624 | LDLIBRARY='libpython$(VERSION).so' |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3625 | BASECFLAGS="$BASECFLAGS -pic" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3626 | ;; |
| 3627 | esac |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 3628 | else # shared is disabled |
| 3629 | case $ac_sys_system in |
| 3630 | CYGWIN*) |
| 3631 | BLDLIBRARY='$(LIBRARY)' |
| 3632 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3633 | ;; |
| 3634 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3635 | fi |
| 3636 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3637 | echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 3638 | echo "${ECHO_T}$LDLIBRARY" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3639 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3640 | if test -n "$ac_tool_prefix"; then |
| 3641 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3642 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3643 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3644 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3645 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3646 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3647 | else |
| 3648 | if test -n "$RANLIB"; then |
| 3649 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3650 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3651 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3652 | for as_dir in $PATH |
| 3653 | do |
| 3654 | IFS=$as_save_IFS |
| 3655 | test -z "$as_dir" && as_dir=. |
| 3656 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3657 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3658 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3659 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3660 | break 2 |
| 3661 | fi |
| 3662 | done |
| 3663 | done |
| 3664 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3665 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3666 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3667 | RANLIB=$ac_cv_prog_RANLIB |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3668 | if test -n "$RANLIB"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3669 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3670 | echo "${ECHO_T}$RANLIB" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3671 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3672 | echo "$as_me:$LINENO: result: no" >&5 |
| 3673 | echo "${ECHO_T}no" >&6 |
| 3674 | fi |
| 3675 | |
| 3676 | fi |
| 3677 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3678 | ac_ct_RANLIB=$RANLIB |
| 3679 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3680 | set dummy ranlib; ac_word=$2 |
| 3681 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3682 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3683 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3684 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3685 | else |
| 3686 | if test -n "$ac_ct_RANLIB"; then |
| 3687 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3688 | else |
| 3689 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3690 | for as_dir in $PATH |
| 3691 | do |
| 3692 | IFS=$as_save_IFS |
| 3693 | test -z "$as_dir" && as_dir=. |
| 3694 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3695 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3696 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3697 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3698 | break 2 |
| 3699 | fi |
| 3700 | done |
| 3701 | done |
| 3702 | |
| 3703 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3704 | fi |
| 3705 | fi |
| 3706 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3707 | if test -n "$ac_ct_RANLIB"; then |
| 3708 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3709 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3710 | else |
| 3711 | echo "$as_me:$LINENO: result: no" >&5 |
| 3712 | echo "${ECHO_T}no" >&6 |
| 3713 | fi |
| 3714 | |
| 3715 | RANLIB=$ac_ct_RANLIB |
| 3716 | else |
| 3717 | RANLIB="$ac_cv_prog_RANLIB" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3718 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3719 | |
| 3720 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3721 | for ac_prog in ar aal |
| 3722 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3723 | # 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] | 3724 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3725 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3726 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3727 | if test "${ac_cv_prog_AR+set}" = set; then |
| 3728 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3729 | else |
| 3730 | if test -n "$AR"; then |
| 3731 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 3732 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3733 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3734 | for as_dir in $PATH |
| 3735 | do |
| 3736 | IFS=$as_save_IFS |
| 3737 | test -z "$as_dir" && as_dir=. |
| 3738 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3739 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3740 | ac_cv_prog_AR="$ac_prog" |
| 3741 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3742 | break 2 |
| 3743 | fi |
| 3744 | done |
| 3745 | done |
| 3746 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3747 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3748 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3749 | AR=$ac_cv_prog_AR |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3750 | if test -n "$AR"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3751 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 3752 | echo "${ECHO_T}$AR" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3753 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3754 | echo "$as_me:$LINENO: result: no" >&5 |
| 3755 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3756 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3757 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3758 | test -n "$AR" && break |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3759 | done |
| 3760 | test -n "$AR" || AR="ar" |
| 3761 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3762 | |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3763 | case $MACHDEP in |
Neil Schemenauer | af5567f | 2001-10-21 22:32:04 +0000 | [diff] [blame] | 3764 | bsdos*|hp*|HP*) |
| 3765 | # install -d does not work on BSDI or HP-UX |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3766 | if test -z "$INSTALL" |
| 3767 | then |
| 3768 | INSTALL="${srcdir}/install-sh -c" |
| 3769 | fi |
| 3770 | esac |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3771 | ac_aux_dir= |
| 3772 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 3773 | if test -f $ac_dir/install-sh; then |
| 3774 | ac_aux_dir=$ac_dir |
| 3775 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3776 | break |
| 3777 | elif test -f $ac_dir/install.sh; then |
| 3778 | ac_aux_dir=$ac_dir |
| 3779 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3780 | break |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3781 | elif test -f $ac_dir/shtool; then |
| 3782 | ac_aux_dir=$ac_dir |
| 3783 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3784 | break |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3785 | fi |
| 3786 | done |
| 3787 | if test -z "$ac_aux_dir"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3788 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 3789 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 3790 | { (exit 1); exit 1; }; } |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3791 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3792 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 3793 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 3794 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3795 | |
| 3796 | # Find a good install program. We prefer a C program (faster), |
| 3797 | # so one script is as good as another. But avoid the broken or |
| 3798 | # incompatible versions: |
| 3799 | # SysV /etc/install, /usr/sbin/install |
| 3800 | # SunOS /usr/etc/install |
| 3801 | # IRIX /sbin/install |
| 3802 | # AIX /bin/install |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3803 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3804 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3805 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3806 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3807 | # ./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] | 3808 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 3809 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3810 | if test -z "$INSTALL"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3811 | if test "${ac_cv_path_install+set}" = set; then |
| 3812 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3813 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3815 | for as_dir in $PATH |
| 3816 | do |
| 3817 | IFS=$as_save_IFS |
| 3818 | test -z "$as_dir" && as_dir=. |
| 3819 | # Account for people who put trailing slashes in PATH elements. |
| 3820 | case $as_dir/ in |
| 3821 | ./ | .// | /cC/* | \ |
| 3822 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3823 | /usr/ucb/* ) ;; |
| 3824 | *) |
| 3825 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3826 | # Don't use installbsd from OSF since it installs stuff as root |
| 3827 | # by default. |
| 3828 | for ac_prog in ginstall scoinst install; do |
| 3829 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3830 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3831 | if test $ac_prog = install && |
| 3832 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3833 | # AIX install. It has an incompatible calling convention. |
| 3834 | : |
| 3835 | elif test $ac_prog = install && |
| 3836 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3837 | # program-specific install script used by HP pwplus--don't use. |
| 3838 | : |
| 3839 | else |
| 3840 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3841 | break 3 |
| 3842 | fi |
| 3843 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3844 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3845 | done |
| 3846 | ;; |
| 3847 | esac |
| 3848 | done |
| 3849 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3850 | |
| 3851 | fi |
| 3852 | if test "${ac_cv_path_install+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3853 | INSTALL=$ac_cv_path_install |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3854 | else |
| 3855 | # As a last resort, use the slow shell script. We don't cache a |
| 3856 | # path for INSTALL within a source directory, because that will |
| 3857 | # break other packages using the cache if that directory is |
| 3858 | # removed, or if the path is relative. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3859 | INSTALL=$ac_install_sh |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3860 | fi |
| 3861 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3862 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 3863 | echo "${ECHO_T}$INSTALL" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3864 | |
| 3865 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3866 | # It thinks the first close brace ends the variable substitution. |
| 3867 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3868 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3869 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3870 | |
| 3871 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3872 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3873 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3874 | # Not every filesystem supports hard links |
| 3875 | |
| 3876 | if test -z "$LN" ; then |
| 3877 | case $ac_sys_system in |
| 3878 | BeOS*) LN="ln -s";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3879 | CYGWIN*) LN="ln -s";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3880 | atheos*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3881 | *) LN=ln;; |
| 3882 | esac |
| 3883 | fi |
| 3884 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3885 | # Check for --with-pydebug |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3886 | echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 3887 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6 |
| 3888 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3889 | # Check whether --with-pydebug or --without-pydebug was given. |
| 3890 | if test "${with_pydebug+set}" = set; then |
| 3891 | withval="$with_pydebug" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3892 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3893 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3894 | then |
| 3895 | |
| 3896 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3897 | #define Py_DEBUG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3898 | _ACEOF |
| 3899 | |
| 3900 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3901 | echo "${ECHO_T}yes" >&6; |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 3902 | Py_DEBUG='true' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3903 | else echo "$as_me:$LINENO: result: no" >&5 |
| 3904 | echo "${ECHO_T}no" >&6; Py_DEBUG='false' |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3905 | fi |
| 3906 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3907 | echo "$as_me:$LINENO: result: no" >&5 |
| 3908 | echo "${ECHO_T}no" >&6 |
| 3909 | fi; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3910 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3911 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 3912 | # merged with this chunk of code? |
| 3913 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3914 | # Optimizer/debugger flags |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3915 | # ------------------------ |
| 3916 | # (The following bit of code is complicated enough - please keep things |
| 3917 | # indented properly. Just pretend you're editing Python code. ;-) |
| 3918 | |
| 3919 | # There are two parallel sets of case statements below, one that checks to |
| 3920 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 3921 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 3922 | # user set OPT. |
| 3923 | |
| 3924 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 3925 | # it on the command line |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3926 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3927 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3928 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3929 | case $GCC in |
| 3930 | yes) |
| 3931 | case $ac_cv_prog_cc_g in |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3932 | yes) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3933 | if test "$Py_DEBUG" = 'true' ; then |
| 3934 | # Optimization messes up debuggers, so turn it off for |
| 3935 | # debug builds. |
| 3936 | OPT="-g -Wall -Wstrict-prototypes" |
| 3937 | else |
| 3938 | OPT="-g -O3 -Wall -Wstrict-prototypes" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3939 | fi |
| 3940 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3941 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3942 | OPT="-O3 -Wall -Wstrict-prototypes" |
| 3943 | ;; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3944 | esac |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3945 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3946 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 3947 | ;; |
| 3948 | esac |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3949 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3950 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3951 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3952 | OPT="-O" |
| 3953 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3954 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3955 | |
| 3956 | # The current (beta) Monterey compiler dies with optimizations |
| 3957 | # 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] | 3958 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3959 | Monterey*) |
| 3960 | OPT="" |
| 3961 | ;; |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3962 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3963 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3964 | fi |
| 3965 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3966 | |
| 3967 | # tweak BASECFLAGS based on compiler and platform |
| 3968 | case $GCC in |
| 3969 | yes) |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3970 | # Python violates C99 rules, by casting between incompatible |
| 3971 | # pointer types. GCC may generate bad code as a result of that, |
| 3972 | # so use -fno-strict-aliasing if supported. |
| 3973 | echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5 |
| 3974 | echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6 |
| 3975 | ac_save_cc="$CC" |
| 3976 | CC="$CC -fno-strict-aliasing" |
| 3977 | if test "$cross_compiling" = yes; then |
| 3978 | ac_cv_no_strict_aliasing_ok=no |
| 3979 | else |
| 3980 | cat >conftest.$ac_ext <<_ACEOF |
| 3981 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3982 | /* confdefs.h. */ |
| 3983 | _ACEOF |
| 3984 | cat confdefs.h >>conftest.$ac_ext |
| 3985 | cat >>conftest.$ac_ext <<_ACEOF |
| 3986 | /* end confdefs.h. */ |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3987 | int main() { return 0; } |
| 3988 | _ACEOF |
| 3989 | rm -f conftest$ac_exeext |
| 3990 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3991 | (eval $ac_link) 2>&5 |
| 3992 | ac_status=$? |
| 3993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3994 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3996 | (eval $ac_try) 2>&5 |
| 3997 | ac_status=$? |
| 3998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3999 | (exit $ac_status); }; }; then |
| 4000 | ac_cv_no_strict_aliasing_ok=yes |
| 4001 | else |
| 4002 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4003 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4004 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4005 | |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 4006 | ( exit $ac_status ) |
| 4007 | ac_cv_no_strict_aliasing_ok=no |
| 4008 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4009 | 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] | 4010 | fi |
| 4011 | CC="$ac_save_cc" |
| 4012 | echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5 |
| 4013 | echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6 |
| 4014 | if test $ac_cv_no_strict_aliasing_ok = yes |
| 4015 | then |
| 4016 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 4017 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4018 | case $ac_sys_system in |
| 4019 | SCO_SV*) |
| 4020 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 4021 | ;; |
| 4022 | # is there any other compiler on Darwin besides gcc? |
| 4023 | Darwin*) |
Jack Jansen | e004041 | 2003-07-23 22:17:28 +0000 | [diff] [blame] | 4024 | BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4025 | ;; |
| 4026 | esac |
| 4027 | ;; |
| 4028 | |
| 4029 | *) |
| 4030 | case $ac_sys_system in |
| 4031 | OpenUNIX*|UnixWare*) |
| 4032 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 4033 | ;; |
Neal Norwitz | b44f165 | 2003-05-26 14:11:55 +0000 | [diff] [blame] | 4034 | OSF*) |
| 4035 | BASECFLAGS="$BASECFLAGS -ieee -std" |
| 4036 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4037 | SCO_SV*) |
| 4038 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 4039 | ;; |
| 4040 | esac |
| 4041 | ;; |
| 4042 | esac |
| 4043 | |
Fred Drake | e1ceaa0 | 2001-12-04 20:55:47 +0000 | [diff] [blame] | 4044 | if test "$Py_DEBUG" = 'true'; then |
| 4045 | : |
| 4046 | else |
| 4047 | OPT="-DNDEBUG $OPT" |
| 4048 | fi |
| 4049 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 4050 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 4051 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4052 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 4053 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4054 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4055 | echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 4056 | echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6 |
| 4057 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
| 4058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4059 | else |
| 4060 | ac_save_cc="$CC" |
| 4061 | CC="$CC -OPT:Olimit=0" |
| 4062 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 4063 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4064 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4065 | cat >conftest.$ac_ext <<_ACEOF |
| 4066 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4067 | /* confdefs.h. */ |
| 4068 | _ACEOF |
| 4069 | cat confdefs.h >>conftest.$ac_ext |
| 4070 | cat >>conftest.$ac_ext <<_ACEOF |
| 4071 | /* end confdefs.h. */ |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4072 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4073 | _ACEOF |
| 4074 | rm -f conftest$ac_exeext |
| 4075 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4076 | (eval $ac_link) 2>&5 |
| 4077 | ac_status=$? |
| 4078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4079 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4081 | (eval $ac_try) 2>&5 |
| 4082 | ac_status=$? |
| 4083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4084 | (exit $ac_status); }; }; then |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4085 | ac_cv_opt_olimit_ok=yes |
| 4086 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4087 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4088 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4089 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4090 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4091 | ( exit $ac_status ) |
| 4092 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4093 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4094 | 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] | 4095 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4096 | CC="$ac_save_cc" |
| 4097 | fi |
| 4098 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4099 | echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 4100 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 4101 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 4102 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4103 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 4104 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 4105 | # environment? |
| 4106 | Darwin*) |
| 4107 | ;; |
| 4108 | *) |
| 4109 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 4110 | ;; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 4111 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4112 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4113 | echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 4114 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6 |
| 4115 | if test "${ac_cv_olimit_ok+set}" = set; then |
| 4116 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4117 | else |
| 4118 | ac_save_cc="$CC" |
| 4119 | CC="$CC -Olimit 1500" |
| 4120 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 4121 | ac_cv_olimit_ok=no |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4122 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4123 | cat >conftest.$ac_ext <<_ACEOF |
| 4124 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4125 | /* confdefs.h. */ |
| 4126 | _ACEOF |
| 4127 | cat confdefs.h >>conftest.$ac_ext |
| 4128 | cat >>conftest.$ac_ext <<_ACEOF |
| 4129 | /* end confdefs.h. */ |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4130 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4131 | _ACEOF |
| 4132 | rm -f conftest$ac_exeext |
| 4133 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4134 | (eval $ac_link) 2>&5 |
| 4135 | ac_status=$? |
| 4136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4137 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4139 | (eval $ac_try) 2>&5 |
| 4140 | ac_status=$? |
| 4141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4142 | (exit $ac_status); }; }; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4143 | ac_cv_olimit_ok=yes |
| 4144 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4145 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4146 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4147 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4148 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4149 | ( exit $ac_status ) |
| 4150 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 4151 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4152 | 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] | 4153 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4154 | CC="$ac_save_cc" |
| 4155 | fi |
| 4156 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4157 | echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 4158 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4159 | if test $ac_cv_olimit_ok = yes; then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4160 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4161 | fi |
| 4162 | fi |
| 4163 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4164 | # On some compilers, pthreads are available without further options |
| 4165 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 4166 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 4167 | # So we have to see first whether pthreads are available without |
| 4168 | # options before we can check whether -Kpthread improves anything. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4169 | echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 4170 | echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6 |
| 4171 | if test "${ac_cv_pthread_is_default+set}" = set; then |
| 4172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4173 | else |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4174 | if test "$cross_compiling" = yes; then |
| 4175 | ac_cv_pthread_is_default=no |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4176 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4177 | cat >conftest.$ac_ext <<_ACEOF |
| 4178 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4179 | /* confdefs.h. */ |
| 4180 | _ACEOF |
| 4181 | cat confdefs.h >>conftest.$ac_ext |
| 4182 | cat >>conftest.$ac_ext <<_ACEOF |
| 4183 | /* end confdefs.h. */ |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4184 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4185 | #include <pthread.h> |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4186 | |
| 4187 | void* routine(void* p){return NULL;} |
| 4188 | |
| 4189 | int main(){ |
| 4190 | pthread_t p; |
| 4191 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4192 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 4193 | (void)pthread_detach(p); |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4194 | return 0; |
| 4195 | } |
| 4196 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4197 | _ACEOF |
| 4198 | rm -f conftest$ac_exeext |
| 4199 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4200 | (eval $ac_link) 2>&5 |
| 4201 | ac_status=$? |
| 4202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4203 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4205 | (eval $ac_try) 2>&5 |
| 4206 | ac_status=$? |
| 4207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4208 | (exit $ac_status); }; }; then |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4209 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4210 | ac_cv_pthread_is_default=yes |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4211 | ac_cv_kthread=no |
| 4212 | ac_cv_pthread=no |
| 4213 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4214 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4215 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4216 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4217 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4218 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4219 | ( exit $ac_status ) |
| 4220 | ac_cv_pthread_is_default=no |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4221 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4222 | 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] | 4223 | fi |
| 4224 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4225 | fi |
| 4226 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4227 | echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 4228 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4229 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4230 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4231 | if test $ac_cv_pthread_is_default = yes |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4232 | then |
| 4233 | ac_cv_kpthread=no |
| 4234 | else |
| 4235 | # -Kpthread, if available, provides the right #defines |
| 4236 | # and linker options to make pthread_create available |
| 4237 | # Some compilers won't report that they do not support -Kpthread, |
| 4238 | # so we need to run a program to see whether it really made the |
| 4239 | # function available. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4240 | echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 4241 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6 |
| 4242 | if test "${ac_cv_kpthread+set}" = set; then |
| 4243 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4244 | else |
| 4245 | ac_save_cc="$CC" |
| 4246 | CC="$CC -Kpthread" |
| 4247 | if test "$cross_compiling" = yes; then |
| 4248 | ac_cv_kpthread=no |
| 4249 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4250 | cat >conftest.$ac_ext <<_ACEOF |
| 4251 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4252 | /* confdefs.h. */ |
| 4253 | _ACEOF |
| 4254 | cat confdefs.h >>conftest.$ac_ext |
| 4255 | cat >>conftest.$ac_ext <<_ACEOF |
| 4256 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4257 | |
| 4258 | #include <pthread.h> |
| 4259 | |
| 4260 | void* routine(void* p){return NULL;} |
| 4261 | |
| 4262 | int main(){ |
| 4263 | pthread_t p; |
| 4264 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4265 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 4266 | (void)pthread_detach(p); |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4267 | return 0; |
| 4268 | } |
| 4269 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4270 | _ACEOF |
| 4271 | rm -f conftest$ac_exeext |
| 4272 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4273 | (eval $ac_link) 2>&5 |
| 4274 | ac_status=$? |
| 4275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4276 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4278 | (eval $ac_try) 2>&5 |
| 4279 | ac_status=$? |
| 4280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4281 | (exit $ac_status); }; }; then |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4282 | ac_cv_kpthread=yes |
| 4283 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4284 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4285 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4286 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4287 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4288 | ( exit $ac_status ) |
| 4289 | ac_cv_kpthread=no |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4290 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4291 | 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] | 4292 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4293 | CC="$ac_save_cc" |
| 4294 | fi |
| 4295 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4296 | echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 4297 | echo "${ECHO_T}$ac_cv_kpthread" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4298 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4299 | |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4300 | 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] | 4301 | then |
| 4302 | # -Kthread, if available, provides the right #defines |
| 4303 | # and linker options to make pthread_create available |
| 4304 | # Some compilers won't report that they do not support -Kthread, |
| 4305 | # so we need to run a program to see whether it really made the |
| 4306 | # function available. |
| 4307 | echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5 |
| 4308 | echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6 |
| 4309 | if test "${ac_cv_kthread+set}" = set; then |
| 4310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4311 | else |
| 4312 | ac_save_cc="$CC" |
| 4313 | CC="$CC -Kthread" |
| 4314 | if test "$cross_compiling" = yes; then |
| 4315 | ac_cv_kthread=no |
| 4316 | else |
| 4317 | cat >conftest.$ac_ext <<_ACEOF |
| 4318 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4319 | /* confdefs.h. */ |
| 4320 | _ACEOF |
| 4321 | cat confdefs.h >>conftest.$ac_ext |
| 4322 | cat >>conftest.$ac_ext <<_ACEOF |
| 4323 | /* end confdefs.h. */ |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4324 | |
| 4325 | #include <pthread.h> |
| 4326 | |
| 4327 | void* routine(void* p){return NULL;} |
| 4328 | |
| 4329 | int main(){ |
| 4330 | pthread_t p; |
| 4331 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4332 | return 1; |
| 4333 | (void)pthread_detach(p); |
| 4334 | return 0; |
| 4335 | } |
| 4336 | |
| 4337 | _ACEOF |
| 4338 | rm -f conftest$ac_exeext |
| 4339 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4340 | (eval $ac_link) 2>&5 |
| 4341 | ac_status=$? |
| 4342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4343 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4345 | (eval $ac_try) 2>&5 |
| 4346 | ac_status=$? |
| 4347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4348 | (exit $ac_status); }; }; then |
| 4349 | ac_cv_kthread=yes |
| 4350 | else |
| 4351 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4352 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4353 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4354 | |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4355 | ( exit $ac_status ) |
| 4356 | ac_cv_kthread=no |
| 4357 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4358 | 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] | 4359 | fi |
| 4360 | CC="$ac_save_cc" |
| 4361 | fi |
| 4362 | |
| 4363 | echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5 |
| 4364 | echo "${ECHO_T}$ac_cv_kthread" >&6 |
| 4365 | fi |
| 4366 | |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4367 | 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] | 4368 | then |
| 4369 | # -pthread, if available, provides the right #defines |
| 4370 | # and linker options to make pthread_create available |
| 4371 | # Some compilers won't report that they do not support -pthread, |
| 4372 | # so we need to run a program to see whether it really made the |
| 4373 | # function available. |
| 4374 | echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5 |
| 4375 | echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6 |
| 4376 | if test "${ac_cv_thread+set}" = set; then |
| 4377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4378 | else |
| 4379 | ac_save_cc="$CC" |
| 4380 | CC="$CC -pthread" |
| 4381 | if test "$cross_compiling" = yes; then |
| 4382 | ac_cv_pthread=no |
| 4383 | else |
| 4384 | cat >conftest.$ac_ext <<_ACEOF |
| 4385 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4386 | /* confdefs.h. */ |
| 4387 | _ACEOF |
| 4388 | cat confdefs.h >>conftest.$ac_ext |
| 4389 | cat >>conftest.$ac_ext <<_ACEOF |
| 4390 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 4391 | |
| 4392 | #include <pthread.h> |
| 4393 | |
| 4394 | void* routine(void* p){return NULL;} |
| 4395 | |
| 4396 | int main(){ |
| 4397 | pthread_t p; |
| 4398 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4399 | return 1; |
| 4400 | (void)pthread_detach(p); |
| 4401 | return 0; |
| 4402 | } |
| 4403 | |
| 4404 | _ACEOF |
| 4405 | rm -f conftest$ac_exeext |
| 4406 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4407 | (eval $ac_link) 2>&5 |
| 4408 | ac_status=$? |
| 4409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4410 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4412 | (eval $ac_try) 2>&5 |
| 4413 | ac_status=$? |
| 4414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4415 | (exit $ac_status); }; }; then |
| 4416 | ac_cv_pthread=yes |
| 4417 | else |
| 4418 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4419 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4420 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4421 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 4422 | ( exit $ac_status ) |
| 4423 | ac_cv_pthread=no |
| 4424 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4425 | 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] | 4426 | fi |
| 4427 | CC="$ac_save_cc" |
| 4428 | fi |
| 4429 | |
| 4430 | echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5 |
| 4431 | echo "${ECHO_T}$ac_cv_pthread" >&6 |
| 4432 | fi |
| 4433 | |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4434 | # If we have set a CC compiler flag for thread support then |
| 4435 | # check if it works for CXX, too. |
| 4436 | ac_cv_cxx_thread=no |
| 4437 | if test ! -z "$CXX" |
| 4438 | then |
| 4439 | echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5 |
| 4440 | echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6 |
| 4441 | ac_save_cxx="$CXX" |
| 4442 | |
| 4443 | if test "$ac_cv_kpthread" = "yes" |
| 4444 | then |
| 4445 | CXX="$CXX -Kpthread" |
| 4446 | ac_cv_cxx_thread=yes |
| 4447 | elif test "$ac_cv_kthread" = "yes" |
| 4448 | then |
| 4449 | CXX="$CXX -Kthread" |
| 4450 | ac_cv_cxx_thread=yes |
| 4451 | elif test "$ac_cv_pthread" = "yes" |
| 4452 | then |
| 4453 | CXX="$CXX -pthread" |
| 4454 | ac_cv_cxx_thread=yes |
| 4455 | fi |
| 4456 | |
| 4457 | if test $ac_cv_cxx_thread = yes |
| 4458 | then |
| 4459 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 4460 | $CXX -c conftest.$ac_ext 2>&5 |
| 4461 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 4462 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 4463 | then |
| 4464 | ac_cv_cxx_thread=yes |
| 4465 | else |
| 4466 | ac_cv_cxx_thread=no |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4467 | fi |
| 4468 | rm -fr conftest* |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4469 | fi |
| 4470 | fi |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 4471 | CXX="$ac_save_cxx" |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4472 | echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5 |
| 4473 | echo "${ECHO_T}$ac_cv_cxx_thread" >&6 |
| 4474 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4475 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4476 | # checks for header files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4477 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4478 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 4479 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4481 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4482 | cat >conftest.$ac_ext <<_ACEOF |
| 4483 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4484 | /* confdefs.h. */ |
| 4485 | _ACEOF |
| 4486 | cat confdefs.h >>conftest.$ac_ext |
| 4487 | cat >>conftest.$ac_ext <<_ACEOF |
| 4488 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4489 | #include <stdlib.h> |
| 4490 | #include <stdarg.h> |
| 4491 | #include <string.h> |
| 4492 | #include <float.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4493 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4494 | int |
| 4495 | main () |
| 4496 | { |
| 4497 | |
| 4498 | ; |
| 4499 | return 0; |
| 4500 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4501 | _ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4502 | rm -f conftest.$ac_objext |
| 4503 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4504 | (eval $ac_compile) 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4505 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4507 | (exit $ac_status); } && |
| 4508 | { ac_try='test -s conftest.$ac_objext' |
| 4509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4510 | (eval $ac_try) 2>&5 |
| 4511 | ac_status=$? |
| 4512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4513 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4514 | ac_cv_header_stdc=yes |
| 4515 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4516 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4517 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4518 | |
| 4519 | ac_cv_header_stdc=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4520 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4521 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4522 | |
| 4523 | if test $ac_cv_header_stdc = yes; then |
| 4524 | # 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] | 4525 | cat >conftest.$ac_ext <<_ACEOF |
| 4526 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4527 | /* confdefs.h. */ |
| 4528 | _ACEOF |
| 4529 | cat confdefs.h >>conftest.$ac_ext |
| 4530 | cat >>conftest.$ac_ext <<_ACEOF |
| 4531 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4532 | #include <string.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4533 | |
| 4534 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4535 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4536 | $EGREP "memchr" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4537 | : |
| 4538 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4539 | ac_cv_header_stdc=no |
| 4540 | fi |
| 4541 | rm -f conftest* |
| 4542 | |
| 4543 | fi |
| 4544 | |
| 4545 | if test $ac_cv_header_stdc = yes; then |
| 4546 | # 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] | 4547 | cat >conftest.$ac_ext <<_ACEOF |
| 4548 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4549 | /* confdefs.h. */ |
| 4550 | _ACEOF |
| 4551 | cat confdefs.h >>conftest.$ac_ext |
| 4552 | cat >>conftest.$ac_ext <<_ACEOF |
| 4553 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4554 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4555 | |
| 4556 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4557 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4558 | $EGREP "free" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4559 | : |
| 4560 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4561 | ac_cv_header_stdc=no |
| 4562 | fi |
| 4563 | rm -f conftest* |
| 4564 | |
| 4565 | fi |
| 4566 | |
| 4567 | if test $ac_cv_header_stdc = yes; then |
| 4568 | # /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] | 4569 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4570 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4571 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4572 | cat >conftest.$ac_ext <<_ACEOF |
| 4573 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4574 | /* confdefs.h. */ |
| 4575 | _ACEOF |
| 4576 | cat confdefs.h >>conftest.$ac_ext |
| 4577 | cat >>conftest.$ac_ext <<_ACEOF |
| 4578 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4579 | #include <ctype.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4580 | #if ((' ' & 0x0FF) == 0x020) |
| 4581 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4582 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4583 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4584 | # define ISLOWER(c) \ |
| 4585 | (('a' <= (c) && (c) <= 'i') \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4586 | || ('j' <= (c) && (c) <= 'r') \ |
| 4587 | || ('s' <= (c) && (c) <= 'z')) |
| 4588 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4589 | #endif |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4590 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4591 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4592 | int |
| 4593 | main () |
| 4594 | { |
| 4595 | int i; |
| 4596 | for (i = 0; i < 256; i++) |
| 4597 | if (XOR (islower (i), ISLOWER (i)) |
| 4598 | || toupper (i) != TOUPPER (i)) |
| 4599 | exit(2); |
| 4600 | exit (0); |
| 4601 | } |
| 4602 | _ACEOF |
| 4603 | rm -f conftest$ac_exeext |
| 4604 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4605 | (eval $ac_link) 2>&5 |
| 4606 | ac_status=$? |
| 4607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4608 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4610 | (eval $ac_try) 2>&5 |
| 4611 | ac_status=$? |
| 4612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4613 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4614 | : |
| 4615 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4616 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4617 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4618 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4619 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4620 | ( exit $ac_status ) |
| 4621 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4622 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4623 | 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] | 4624 | fi |
| 4625 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4626 | fi |
| 4627 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4628 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4629 | if test $ac_cv_header_stdc = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4630 | |
| 4631 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4632 | #define STDC_HEADERS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4633 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4634 | |
| 4635 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4636 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4637 | |
| 4638 | |
| 4639 | |
| 4640 | |
| 4641 | |
| 4642 | |
| 4643 | |
| 4644 | |
| 4645 | |
| 4646 | |
| 4647 | |
| 4648 | |
| 4649 | |
| 4650 | |
| 4651 | |
| 4652 | |
| 4653 | |
| 4654 | |
| 4655 | |
| 4656 | |
| 4657 | |
| 4658 | |
| 4659 | |
| 4660 | |
| 4661 | |
| 4662 | |
| 4663 | |
| 4664 | |
| 4665 | |
| 4666 | |
| 4667 | |
| 4668 | |
| 4669 | |
| 4670 | |
| 4671 | |
| 4672 | |
| 4673 | |
Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 4674 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4675 | |
Neal Norwitz | 8225103 | 2003-05-23 14:35:24 +0000 | [diff] [blame] | 4676 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4677 | for ac_header in dlfcn.h fcntl.h grp.h limits.h langinfo.h \ |
Martin v. Löwis | 2e64c34 | 2002-03-27 18:49:02 +0000 | [diff] [blame] | 4678 | libintl.h locale.h ncurses.h poll.h pthread.h \ |
Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 4679 | signal.h stdarg.h stddef.h stdlib.h stropts.h termios.h thread.h \ |
| 4680 | unistd.h utime.h \ |
Neal Norwitz | 8225103 | 2003-05-23 14:35:24 +0000 | [diff] [blame] | 4681 | 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] | 4682 | 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] | 4683 | sys/un.h sys/utsname.h sys/wait.h pty.h term.h libutil.h \ |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4684 | sys/resource.h netpacket/packet.h sysexits.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4685 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4686 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4687 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4688 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4689 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4690 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4691 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4692 | fi |
| 4693 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4694 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4695 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4696 | # Is the header compilable? |
| 4697 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 4698 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 4699 | cat >conftest.$ac_ext <<_ACEOF |
| 4700 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4701 | /* confdefs.h. */ |
| 4702 | _ACEOF |
| 4703 | cat confdefs.h >>conftest.$ac_ext |
| 4704 | cat >>conftest.$ac_ext <<_ACEOF |
| 4705 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4706 | $ac_includes_default |
| 4707 | #include <$ac_header> |
| 4708 | _ACEOF |
| 4709 | rm -f conftest.$ac_objext |
| 4710 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4711 | (eval $ac_compile) 2>&5 |
| 4712 | ac_status=$? |
| 4713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4714 | (exit $ac_status); } && |
| 4715 | { ac_try='test -s conftest.$ac_objext' |
| 4716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4717 | (eval $ac_try) 2>&5 |
| 4718 | ac_status=$? |
| 4719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4720 | (exit $ac_status); }; }; then |
| 4721 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4722 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4723 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4724 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4725 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4726 | ac_header_compiler=no |
| 4727 | fi |
| 4728 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4729 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4730 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4731 | |
| 4732 | # Is the header present? |
| 4733 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4734 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4735 | cat >conftest.$ac_ext <<_ACEOF |
| 4736 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4737 | /* confdefs.h. */ |
| 4738 | _ACEOF |
| 4739 | cat confdefs.h >>conftest.$ac_ext |
| 4740 | cat >>conftest.$ac_ext <<_ACEOF |
| 4741 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4742 | #include <$ac_header> |
| 4743 | _ACEOF |
| 4744 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4745 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4746 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4747 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4748 | rm -f conftest.er1 |
| 4749 | cat conftest.err >&5 |
| 4750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4751 | (exit $ac_status); } >/dev/null; then |
| 4752 | if test -s conftest.err; then |
| 4753 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4754 | else |
| 4755 | ac_cpp_err= |
| 4756 | fi |
| 4757 | else |
| 4758 | ac_cpp_err=yes |
| 4759 | fi |
| 4760 | if test -z "$ac_cpp_err"; then |
| 4761 | ac_header_preproc=yes |
| 4762 | else |
| 4763 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4764 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4765 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4766 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4767 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4768 | rm -f conftest.err conftest.$ac_ext |
| 4769 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4770 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4771 | |
| 4772 | # So? What about this header? |
| 4773 | case $ac_header_compiler:$ac_header_preproc in |
| 4774 | yes:no ) |
| 4775 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4776 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4777 | { 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] | 4778 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 4779 | ( |
| 4780 | cat <<\_ASBOX |
| 4781 | ## ------------------------------------ ## |
| 4782 | ## Report this to bug-autoconf@gnu.org. ## |
| 4783 | ## ------------------------------------ ## |
| 4784 | _ASBOX |
| 4785 | ) | |
| 4786 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4787 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4788 | no:yes ) |
| 4789 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4790 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 4791 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4792 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4793 | { 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] | 4794 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 4795 | ( |
| 4796 | cat <<\_ASBOX |
| 4797 | ## ------------------------------------ ## |
| 4798 | ## Report this to bug-autoconf@gnu.org. ## |
| 4799 | ## ------------------------------------ ## |
| 4800 | _ASBOX |
| 4801 | ) | |
| 4802 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4803 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4804 | esac |
| 4805 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4806 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4807 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4808 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4809 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4810 | eval "$as_ac_Header=$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4811 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4812 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4813 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4814 | |
| 4815 | fi |
| 4816 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4817 | cat >>confdefs.h <<_ACEOF |
| 4818 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4819 | _ACEOF |
| 4820 | |
| 4821 | fi |
| 4822 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4823 | done |
| 4824 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4825 | |
| 4826 | |
| 4827 | |
| 4828 | |
| 4829 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4830 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4831 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 4832 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 4833 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 4834 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 4835 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4836 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4837 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4838 | cat >conftest.$ac_ext <<_ACEOF |
| 4839 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4840 | /* confdefs.h. */ |
| 4841 | _ACEOF |
| 4842 | cat confdefs.h >>conftest.$ac_ext |
| 4843 | cat >>conftest.$ac_ext <<_ACEOF |
| 4844 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4845 | #include <sys/types.h> |
| 4846 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4847 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4848 | int |
| 4849 | main () |
| 4850 | { |
| 4851 | if ((DIR *) 0) |
| 4852 | return 0; |
| 4853 | ; |
| 4854 | return 0; |
| 4855 | } |
| 4856 | _ACEOF |
| 4857 | rm -f conftest.$ac_objext |
| 4858 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4859 | (eval $ac_compile) 2>&5 |
| 4860 | ac_status=$? |
| 4861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4862 | (exit $ac_status); } && |
| 4863 | { ac_try='test -s conftest.$ac_objext' |
| 4864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4865 | (eval $ac_try) 2>&5 |
| 4866 | ac_status=$? |
| 4867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4868 | (exit $ac_status); }; }; then |
| 4869 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4870 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4871 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4872 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4873 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4874 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4875 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4876 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4877 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4878 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4879 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4880 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4881 | cat >>confdefs.h <<_ACEOF |
| 4882 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 4883 | _ACEOF |
| 4884 | |
| 4885 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4886 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4887 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4888 | done |
| 4889 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 4890 | if test $ac_header_dirent = dirent.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4891 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4892 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4893 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4894 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4895 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4896 | ac_func_search_save_LIBS=$LIBS |
| 4897 | ac_cv_search_opendir=no |
| 4898 | cat >conftest.$ac_ext <<_ACEOF |
| 4899 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4900 | /* confdefs.h. */ |
| 4901 | _ACEOF |
| 4902 | cat confdefs.h >>conftest.$ac_ext |
| 4903 | cat >>conftest.$ac_ext <<_ACEOF |
| 4904 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4905 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4906 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4907 | #ifdef __cplusplus |
| 4908 | extern "C" |
| 4909 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4910 | /* 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] | 4911 | builtin and then its argument prototype would still apply. */ |
| 4912 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4913 | int |
| 4914 | main () |
| 4915 | { |
| 4916 | opendir (); |
| 4917 | ; |
| 4918 | return 0; |
| 4919 | } |
| 4920 | _ACEOF |
| 4921 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4922 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4923 | (eval $ac_link) 2>&5 |
| 4924 | ac_status=$? |
| 4925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4926 | (exit $ac_status); } && |
| 4927 | { ac_try='test -s conftest$ac_exeext' |
| 4928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4929 | (eval $ac_try) 2>&5 |
| 4930 | ac_status=$? |
| 4931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4932 | (exit $ac_status); }; }; then |
| 4933 | ac_cv_search_opendir="none required" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4934 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4935 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4936 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4937 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4938 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4939 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4940 | if test "$ac_cv_search_opendir" = no; then |
| 4941 | for ac_lib in dir; do |
| 4942 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4943 | cat >conftest.$ac_ext <<_ACEOF |
| 4944 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4945 | /* confdefs.h. */ |
| 4946 | _ACEOF |
| 4947 | cat confdefs.h >>conftest.$ac_ext |
| 4948 | cat >>conftest.$ac_ext <<_ACEOF |
| 4949 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4950 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4951 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4952 | #ifdef __cplusplus |
| 4953 | extern "C" |
| 4954 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4955 | /* 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] | 4956 | builtin and then its argument prototype would still apply. */ |
| 4957 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4958 | int |
| 4959 | main () |
| 4960 | { |
| 4961 | opendir (); |
| 4962 | ; |
| 4963 | return 0; |
| 4964 | } |
| 4965 | _ACEOF |
| 4966 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4967 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4968 | (eval $ac_link) 2>&5 |
| 4969 | ac_status=$? |
| 4970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4971 | (exit $ac_status); } && |
| 4972 | { ac_try='test -s conftest$ac_exeext' |
| 4973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4974 | (eval $ac_try) 2>&5 |
| 4975 | ac_status=$? |
| 4976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4977 | (exit $ac_status); }; }; then |
| 4978 | ac_cv_search_opendir="-l$ac_lib" |
| 4979 | break |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4980 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4981 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4982 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4983 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4984 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4985 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4986 | done |
| 4987 | fi |
| 4988 | LIBS=$ac_func_search_save_LIBS |
| 4989 | fi |
| 4990 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4991 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4992 | if test "$ac_cv_search_opendir" != no; then |
| 4993 | 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] | 4994 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4995 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4996 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4997 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4998 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4999 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 5000 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5001 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5002 | else |
| 5003 | ac_func_search_save_LIBS=$LIBS |
| 5004 | ac_cv_search_opendir=no |
| 5005 | cat >conftest.$ac_ext <<_ACEOF |
| 5006 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5007 | /* confdefs.h. */ |
| 5008 | _ACEOF |
| 5009 | cat confdefs.h >>conftest.$ac_ext |
| 5010 | cat >>conftest.$ac_ext <<_ACEOF |
| 5011 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5012 | |
| 5013 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5014 | #ifdef __cplusplus |
| 5015 | extern "C" |
| 5016 | #endif |
| 5017 | /* We use char because int might match the return type of a gcc2 |
| 5018 | builtin and then its argument prototype would still apply. */ |
| 5019 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5020 | int |
| 5021 | main () |
| 5022 | { |
| 5023 | opendir (); |
| 5024 | ; |
| 5025 | return 0; |
| 5026 | } |
| 5027 | _ACEOF |
| 5028 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5029 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5030 | (eval $ac_link) 2>&5 |
| 5031 | ac_status=$? |
| 5032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5033 | (exit $ac_status); } && |
| 5034 | { ac_try='test -s conftest$ac_exeext' |
| 5035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5036 | (eval $ac_try) 2>&5 |
| 5037 | ac_status=$? |
| 5038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5039 | (exit $ac_status); }; }; then |
| 5040 | ac_cv_search_opendir="none required" |
| 5041 | else |
| 5042 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5043 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5044 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5045 | fi |
| 5046 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5047 | if test "$ac_cv_search_opendir" = no; then |
| 5048 | for ac_lib in x; do |
| 5049 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 5050 | cat >conftest.$ac_ext <<_ACEOF |
| 5051 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5052 | /* confdefs.h. */ |
| 5053 | _ACEOF |
| 5054 | cat confdefs.h >>conftest.$ac_ext |
| 5055 | cat >>conftest.$ac_ext <<_ACEOF |
| 5056 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5057 | |
| 5058 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5059 | #ifdef __cplusplus |
| 5060 | extern "C" |
| 5061 | #endif |
| 5062 | /* We use char because int might match the return type of a gcc2 |
| 5063 | builtin and then its argument prototype would still apply. */ |
| 5064 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5065 | int |
| 5066 | main () |
| 5067 | { |
| 5068 | opendir (); |
| 5069 | ; |
| 5070 | return 0; |
| 5071 | } |
| 5072 | _ACEOF |
| 5073 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5074 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5075 | (eval $ac_link) 2>&5 |
| 5076 | ac_status=$? |
| 5077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5078 | (exit $ac_status); } && |
| 5079 | { ac_try='test -s conftest$ac_exeext' |
| 5080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5081 | (eval $ac_try) 2>&5 |
| 5082 | ac_status=$? |
| 5083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5084 | (exit $ac_status); }; }; then |
| 5085 | ac_cv_search_opendir="-l$ac_lib" |
| 5086 | break |
| 5087 | else |
| 5088 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5089 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5090 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5091 | fi |
| 5092 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5093 | done |
| 5094 | fi |
| 5095 | LIBS=$ac_func_search_save_LIBS |
| 5096 | fi |
| 5097 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 5098 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 5099 | if test "$ac_cv_search_opendir" != no; then |
| 5100 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 5101 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5102 | fi |
| 5103 | |
| 5104 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5105 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5106 | echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 5107 | echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6 |
| 5108 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
| 5109 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5110 | else |
| 5111 | cat >conftest.$ac_ext <<_ACEOF |
| 5112 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5113 | /* confdefs.h. */ |
| 5114 | _ACEOF |
| 5115 | cat confdefs.h >>conftest.$ac_ext |
| 5116 | cat >>conftest.$ac_ext <<_ACEOF |
| 5117 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5118 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5119 | int |
| 5120 | main () |
| 5121 | { |
| 5122 | return makedev(0, 0); |
| 5123 | ; |
| 5124 | return 0; |
| 5125 | } |
| 5126 | _ACEOF |
| 5127 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5128 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5129 | (eval $ac_link) 2>&5 |
| 5130 | ac_status=$? |
| 5131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5132 | (exit $ac_status); } && |
| 5133 | { ac_try='test -s conftest$ac_exeext' |
| 5134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5135 | (eval $ac_try) 2>&5 |
| 5136 | ac_status=$? |
| 5137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5138 | (exit $ac_status); }; }; then |
| 5139 | ac_cv_header_sys_types_h_makedev=yes |
| 5140 | else |
| 5141 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5142 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5143 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5144 | ac_cv_header_sys_types_h_makedev=no |
| 5145 | fi |
| 5146 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5147 | |
| 5148 | fi |
| 5149 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 5150 | echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6 |
| 5151 | |
| 5152 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 5153 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5154 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 5155 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 5156 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5157 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5158 | fi |
| 5159 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 5160 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 5161 | else |
| 5162 | # Is the header compilable? |
| 5163 | echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 5164 | echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6 |
| 5165 | cat >conftest.$ac_ext <<_ACEOF |
| 5166 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5167 | /* confdefs.h. */ |
| 5168 | _ACEOF |
| 5169 | cat confdefs.h >>conftest.$ac_ext |
| 5170 | cat >>conftest.$ac_ext <<_ACEOF |
| 5171 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5172 | $ac_includes_default |
| 5173 | #include <sys/mkdev.h> |
| 5174 | _ACEOF |
| 5175 | rm -f conftest.$ac_objext |
| 5176 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5177 | (eval $ac_compile) 2>&5 |
| 5178 | ac_status=$? |
| 5179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5180 | (exit $ac_status); } && |
| 5181 | { ac_try='test -s conftest.$ac_objext' |
| 5182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5183 | (eval $ac_try) 2>&5 |
| 5184 | ac_status=$? |
| 5185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5186 | (exit $ac_status); }; }; then |
| 5187 | ac_header_compiler=yes |
| 5188 | else |
| 5189 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5190 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5191 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5192 | ac_header_compiler=no |
| 5193 | fi |
| 5194 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5195 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5196 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5197 | |
| 5198 | # Is the header present? |
| 5199 | echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 5200 | echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6 |
| 5201 | cat >conftest.$ac_ext <<_ACEOF |
| 5202 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5203 | /* confdefs.h. */ |
| 5204 | _ACEOF |
| 5205 | cat confdefs.h >>conftest.$ac_ext |
| 5206 | cat >>conftest.$ac_ext <<_ACEOF |
| 5207 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5208 | #include <sys/mkdev.h> |
| 5209 | _ACEOF |
| 5210 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5211 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5212 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5213 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5214 | rm -f conftest.er1 |
| 5215 | cat conftest.err >&5 |
| 5216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5217 | (exit $ac_status); } >/dev/null; then |
| 5218 | if test -s conftest.err; then |
| 5219 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5220 | else |
| 5221 | ac_cpp_err= |
| 5222 | fi |
| 5223 | else |
| 5224 | ac_cpp_err=yes |
| 5225 | fi |
| 5226 | if test -z "$ac_cpp_err"; then |
| 5227 | ac_header_preproc=yes |
| 5228 | else |
| 5229 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5230 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5231 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5232 | ac_header_preproc=no |
| 5233 | fi |
| 5234 | rm -f conftest.err conftest.$ac_ext |
| 5235 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5236 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5237 | |
| 5238 | # So? What about this header? |
| 5239 | case $ac_header_compiler:$ac_header_preproc in |
| 5240 | yes:no ) |
| 5241 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5242 | echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5243 | { 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] | 5244 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;} |
| 5245 | ( |
| 5246 | cat <<\_ASBOX |
| 5247 | ## ------------------------------------ ## |
| 5248 | ## Report this to bug-autoconf@gnu.org. ## |
| 5249 | ## ------------------------------------ ## |
| 5250 | _ASBOX |
| 5251 | ) | |
| 5252 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5253 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5254 | no:yes ) |
| 5255 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 5256 | echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} |
| 5257 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 5258 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 5259 | { 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] | 5260 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;} |
| 5261 | ( |
| 5262 | cat <<\_ASBOX |
| 5263 | ## ------------------------------------ ## |
| 5264 | ## Report this to bug-autoconf@gnu.org. ## |
| 5265 | ## ------------------------------------ ## |
| 5266 | _ASBOX |
| 5267 | ) | |
| 5268 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5269 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5270 | esac |
| 5271 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 5272 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 5273 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5274 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5275 | else |
| 5276 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 5277 | fi |
| 5278 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 5279 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 5280 | |
| 5281 | fi |
| 5282 | if test $ac_cv_header_sys_mkdev_h = yes; then |
| 5283 | |
| 5284 | cat >>confdefs.h <<\_ACEOF |
| 5285 | #define MAJOR_IN_MKDEV 1 |
| 5286 | _ACEOF |
| 5287 | |
| 5288 | fi |
| 5289 | |
| 5290 | |
| 5291 | |
| 5292 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 5293 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 5294 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 5295 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 5296 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 5297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5298 | fi |
| 5299 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 5300 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 5301 | else |
| 5302 | # Is the header compilable? |
| 5303 | echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 5304 | echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6 |
| 5305 | cat >conftest.$ac_ext <<_ACEOF |
| 5306 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5307 | /* confdefs.h. */ |
| 5308 | _ACEOF |
| 5309 | cat confdefs.h >>conftest.$ac_ext |
| 5310 | cat >>conftest.$ac_ext <<_ACEOF |
| 5311 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5312 | $ac_includes_default |
| 5313 | #include <sys/sysmacros.h> |
| 5314 | _ACEOF |
| 5315 | rm -f conftest.$ac_objext |
| 5316 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5317 | (eval $ac_compile) 2>&5 |
| 5318 | ac_status=$? |
| 5319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5320 | (exit $ac_status); } && |
| 5321 | { ac_try='test -s conftest.$ac_objext' |
| 5322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5323 | (eval $ac_try) 2>&5 |
| 5324 | ac_status=$? |
| 5325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5326 | (exit $ac_status); }; }; then |
| 5327 | ac_header_compiler=yes |
| 5328 | else |
| 5329 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5330 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5331 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5332 | ac_header_compiler=no |
| 5333 | fi |
| 5334 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5335 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5336 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5337 | |
| 5338 | # Is the header present? |
| 5339 | echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 5340 | echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6 |
| 5341 | cat >conftest.$ac_ext <<_ACEOF |
| 5342 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5343 | /* confdefs.h. */ |
| 5344 | _ACEOF |
| 5345 | cat confdefs.h >>conftest.$ac_ext |
| 5346 | cat >>conftest.$ac_ext <<_ACEOF |
| 5347 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5348 | #include <sys/sysmacros.h> |
| 5349 | _ACEOF |
| 5350 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5351 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5352 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5353 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5354 | rm -f conftest.er1 |
| 5355 | cat conftest.err >&5 |
| 5356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5357 | (exit $ac_status); } >/dev/null; then |
| 5358 | if test -s conftest.err; then |
| 5359 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5360 | else |
| 5361 | ac_cpp_err= |
| 5362 | fi |
| 5363 | else |
| 5364 | ac_cpp_err=yes |
| 5365 | fi |
| 5366 | if test -z "$ac_cpp_err"; then |
| 5367 | ac_header_preproc=yes |
| 5368 | else |
| 5369 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5370 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5371 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5372 | ac_header_preproc=no |
| 5373 | fi |
| 5374 | rm -f conftest.err conftest.$ac_ext |
| 5375 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5376 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5377 | |
| 5378 | # So? What about this header? |
| 5379 | case $ac_header_compiler:$ac_header_preproc in |
| 5380 | yes:no ) |
| 5381 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5382 | echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5383 | { 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] | 5384 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;} |
| 5385 | ( |
| 5386 | cat <<\_ASBOX |
| 5387 | ## ------------------------------------ ## |
| 5388 | ## Report this to bug-autoconf@gnu.org. ## |
| 5389 | ## ------------------------------------ ## |
| 5390 | _ASBOX |
| 5391 | ) | |
| 5392 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5393 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5394 | no:yes ) |
| 5395 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 5396 | echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} |
| 5397 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 5398 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 5399 | { 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] | 5400 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;} |
| 5401 | ( |
| 5402 | cat <<\_ASBOX |
| 5403 | ## ------------------------------------ ## |
| 5404 | ## Report this to bug-autoconf@gnu.org. ## |
| 5405 | ## ------------------------------------ ## |
| 5406 | _ASBOX |
| 5407 | ) | |
| 5408 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5409 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5410 | esac |
| 5411 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 5412 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 5413 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 5414 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5415 | else |
| 5416 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 5417 | fi |
| 5418 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 5419 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 5420 | |
| 5421 | fi |
| 5422 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
| 5423 | |
| 5424 | cat >>confdefs.h <<\_ACEOF |
| 5425 | #define MAJOR_IN_SYSMACROS 1 |
| 5426 | _ACEOF |
| 5427 | |
| 5428 | fi |
| 5429 | |
| 5430 | |
| 5431 | fi |
| 5432 | fi |
| 5433 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5434 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5435 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5436 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5437 | echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 5438 | echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6 |
| 5439 | cat >conftest.$ac_ext <<_ACEOF |
| 5440 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5441 | /* confdefs.h. */ |
| 5442 | _ACEOF |
| 5443 | cat confdefs.h >>conftest.$ac_ext |
| 5444 | cat >>conftest.$ac_ext <<_ACEOF |
| 5445 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5446 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5447 | |
| 5448 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5449 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5450 | $EGREP "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5451 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5452 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5453 | |
| 5454 | |
| 5455 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5456 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5457 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5458 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 5459 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5460 | fi |
| 5461 | rm -f conftest* |
| 5462 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5463 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 5464 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5465 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5466 | # Check whether using makedev requires defining _OSF_SOURCE |
| 5467 | echo "$as_me:$LINENO: checking for makedev" >&5 |
| 5468 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6 |
| 5469 | cat >conftest.$ac_ext <<_ACEOF |
| 5470 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5471 | /* confdefs.h. */ |
| 5472 | _ACEOF |
| 5473 | cat confdefs.h >>conftest.$ac_ext |
| 5474 | cat >>conftest.$ac_ext <<_ACEOF |
| 5475 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 5476 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5477 | int |
| 5478 | main () |
| 5479 | { |
| 5480 | makedev(0, 0) |
| 5481 | ; |
| 5482 | return 0; |
| 5483 | } |
| 5484 | _ACEOF |
| 5485 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5486 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5487 | (eval $ac_link) 2>&5 |
| 5488 | ac_status=$? |
| 5489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5490 | (exit $ac_status); } && |
| 5491 | { ac_try='test -s conftest$ac_exeext' |
| 5492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5493 | (eval $ac_try) 2>&5 |
| 5494 | ac_status=$? |
| 5495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5496 | (exit $ac_status); }; }; then |
| 5497 | ac_cv_has_makedev=yes |
| 5498 | else |
| 5499 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5500 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5501 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5502 | ac_cv_has_makedev=no |
| 5503 | fi |
| 5504 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5505 | if test "$ac_cv_has_makedev" = "no"; then |
| 5506 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 5507 | cat >conftest.$ac_ext <<_ACEOF |
| 5508 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5509 | /* confdefs.h. */ |
| 5510 | _ACEOF |
| 5511 | cat confdefs.h >>conftest.$ac_ext |
| 5512 | cat >>conftest.$ac_ext <<_ACEOF |
| 5513 | /* end confdefs.h. */ |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5514 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 5515 | #define _OSF_SOURCE 1 |
| 5516 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5517 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5518 | int |
| 5519 | main () |
| 5520 | { |
| 5521 | makedev(0, 0) |
| 5522 | ; |
| 5523 | return 0; |
| 5524 | } |
| 5525 | _ACEOF |
| 5526 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5527 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5528 | (eval $ac_link) 2>&5 |
| 5529 | ac_status=$? |
| 5530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5531 | (exit $ac_status); } && |
| 5532 | { ac_try='test -s conftest$ac_exeext' |
| 5533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5534 | (eval $ac_try) 2>&5 |
| 5535 | ac_status=$? |
| 5536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5537 | (exit $ac_status); }; }; then |
| 5538 | ac_cv_has_makedev=yes |
| 5539 | else |
| 5540 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5541 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5542 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5543 | ac_cv_has_makedev=no |
| 5544 | fi |
| 5545 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5546 | if test "$ac_cv_has_makedev" = "yes"; then |
| 5547 | |
| 5548 | cat >>confdefs.h <<\_ACEOF |
| 5549 | #define _OSF_SOURCE 1 |
| 5550 | _ACEOF |
| 5551 | |
| 5552 | fi |
| 5553 | fi |
| 5554 | echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 5555 | echo "${ECHO_T}$ac_cv_has_makedev" >&6 |
| 5556 | if test "$ac_cv_has_makedev" = "yes"; then |
| 5557 | |
| 5558 | cat >>confdefs.h <<\_ACEOF |
| 5559 | #define HAVE_MAKEDEV 1 |
| 5560 | _ACEOF |
| 5561 | |
| 5562 | fi |
| 5563 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5564 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 5565 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 5566 | # defined, but the compiler does not support pragma redefine_extname, |
| 5567 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 5568 | # structures (such as rlimit64) without declaring them. As a |
| 5569 | # work-around, disable LFS on such configurations |
| 5570 | |
| 5571 | use_lfs=yes |
| 5572 | echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 5573 | echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6 |
| 5574 | cat >conftest.$ac_ext <<_ACEOF |
| 5575 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5576 | /* confdefs.h. */ |
| 5577 | _ACEOF |
| 5578 | cat confdefs.h >>conftest.$ac_ext |
| 5579 | cat >>conftest.$ac_ext <<_ACEOF |
| 5580 | /* end confdefs.h. */ |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5581 | |
| 5582 | #define _LARGEFILE_SOURCE 1 |
| 5583 | #define _FILE_OFFSET_BITS 64 |
| 5584 | #include <sys/resource.h> |
| 5585 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5586 | int |
| 5587 | main () |
| 5588 | { |
| 5589 | struct rlimit foo; |
| 5590 | ; |
| 5591 | return 0; |
| 5592 | } |
| 5593 | _ACEOF |
| 5594 | rm -f conftest.$ac_objext |
| 5595 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5596 | (eval $ac_compile) 2>&5 |
| 5597 | ac_status=$? |
| 5598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5599 | (exit $ac_status); } && |
| 5600 | { ac_try='test -s conftest.$ac_objext' |
| 5601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5602 | (eval $ac_try) 2>&5 |
| 5603 | ac_status=$? |
| 5604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5605 | (exit $ac_status); }; }; then |
| 5606 | sol_lfs_bug=no |
| 5607 | else |
| 5608 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5609 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5610 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5611 | sol_lfs_bug=yes |
| 5612 | fi |
| 5613 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5614 | echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 5615 | echo "${ECHO_T}$sol_lfs_bug" >&6 |
| 5616 | if test "$sol_lfs_bug" = "yes"; then |
| 5617 | use_lfs=no |
| 5618 | fi |
| 5619 | |
| 5620 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5621 | # Two defines needed to enable largefile support on various platforms |
| 5622 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5623 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5624 | cat >>confdefs.h <<\_ACEOF |
| 5625 | #define _LARGEFILE_SOURCE 1 |
| 5626 | _ACEOF |
| 5627 | |
| 5628 | |
| 5629 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5630 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5631 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5632 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5633 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5634 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 5635 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 5636 | cat >> confdefs.h <<\EOF |
| 5637 | #if defined(SCO_DS) |
| 5638 | #undef _OFF_T |
| 5639 | #endif |
| 5640 | EOF |
| 5641 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5642 | # Type availability checks |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5643 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 5644 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 5645 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 5646 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5647 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5648 | cat >conftest.$ac_ext <<_ACEOF |
| 5649 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5650 | /* confdefs.h. */ |
| 5651 | _ACEOF |
| 5652 | cat confdefs.h >>conftest.$ac_ext |
| 5653 | cat >>conftest.$ac_ext <<_ACEOF |
| 5654 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5655 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5656 | int |
| 5657 | main () |
| 5658 | { |
| 5659 | if ((mode_t *) 0) |
| 5660 | return 0; |
| 5661 | if (sizeof (mode_t)) |
| 5662 | return 0; |
| 5663 | ; |
| 5664 | return 0; |
| 5665 | } |
| 5666 | _ACEOF |
| 5667 | rm -f conftest.$ac_objext |
| 5668 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5669 | (eval $ac_compile) 2>&5 |
| 5670 | ac_status=$? |
| 5671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5672 | (exit $ac_status); } && |
| 5673 | { ac_try='test -s conftest.$ac_objext' |
| 5674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5675 | (eval $ac_try) 2>&5 |
| 5676 | ac_status=$? |
| 5677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5678 | (exit $ac_status); }; }; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5679 | ac_cv_type_mode_t=yes |
| 5680 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5681 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5682 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5683 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5684 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5685 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5686 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5687 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5688 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 5689 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 5690 | if test $ac_cv_type_mode_t = yes; then |
| 5691 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5692 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5693 | |
| 5694 | cat >>confdefs.h <<_ACEOF |
| 5695 | #define mode_t int |
| 5696 | _ACEOF |
| 5697 | |
| 5698 | fi |
| 5699 | |
| 5700 | echo "$as_me:$LINENO: checking for off_t" >&5 |
| 5701 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 5702 | if test "${ac_cv_type_off_t+set}" = set; then |
| 5703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5704 | else |
| 5705 | cat >conftest.$ac_ext <<_ACEOF |
| 5706 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5707 | /* confdefs.h. */ |
| 5708 | _ACEOF |
| 5709 | cat confdefs.h >>conftest.$ac_ext |
| 5710 | cat >>conftest.$ac_ext <<_ACEOF |
| 5711 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5712 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5713 | int |
| 5714 | main () |
| 5715 | { |
| 5716 | if ((off_t *) 0) |
| 5717 | return 0; |
| 5718 | if (sizeof (off_t)) |
| 5719 | return 0; |
| 5720 | ; |
| 5721 | return 0; |
| 5722 | } |
| 5723 | _ACEOF |
| 5724 | rm -f conftest.$ac_objext |
| 5725 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5726 | (eval $ac_compile) 2>&5 |
| 5727 | ac_status=$? |
| 5728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5729 | (exit $ac_status); } && |
| 5730 | { ac_try='test -s conftest.$ac_objext' |
| 5731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5732 | (eval $ac_try) 2>&5 |
| 5733 | ac_status=$? |
| 5734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5735 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5736 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5737 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5738 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5739 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5740 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5741 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5742 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5743 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5744 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5745 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 5746 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 5747 | if test $ac_cv_type_off_t = yes; then |
| 5748 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5749 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5750 | |
| 5751 | cat >>confdefs.h <<_ACEOF |
| 5752 | #define off_t long |
| 5753 | _ACEOF |
| 5754 | |
| 5755 | fi |
| 5756 | |
| 5757 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 5758 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 5759 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 5760 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5761 | else |
| 5762 | cat >conftest.$ac_ext <<_ACEOF |
| 5763 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5764 | /* confdefs.h. */ |
| 5765 | _ACEOF |
| 5766 | cat confdefs.h >>conftest.$ac_ext |
| 5767 | cat >>conftest.$ac_ext <<_ACEOF |
| 5768 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5769 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5770 | int |
| 5771 | main () |
| 5772 | { |
| 5773 | if ((pid_t *) 0) |
| 5774 | return 0; |
| 5775 | if (sizeof (pid_t)) |
| 5776 | return 0; |
| 5777 | ; |
| 5778 | return 0; |
| 5779 | } |
| 5780 | _ACEOF |
| 5781 | rm -f conftest.$ac_objext |
| 5782 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5783 | (eval $ac_compile) 2>&5 |
| 5784 | ac_status=$? |
| 5785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5786 | (exit $ac_status); } && |
| 5787 | { ac_try='test -s conftest.$ac_objext' |
| 5788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5789 | (eval $ac_try) 2>&5 |
| 5790 | ac_status=$? |
| 5791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5792 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5793 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5794 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5795 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5796 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5797 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5798 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5799 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5800 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5801 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5802 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 5803 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 5804 | if test $ac_cv_type_pid_t = yes; then |
| 5805 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5806 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5807 | |
| 5808 | cat >>confdefs.h <<_ACEOF |
| 5809 | #define pid_t int |
| 5810 | _ACEOF |
| 5811 | |
| 5812 | fi |
| 5813 | |
| 5814 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 5815 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 5816 | if test "${ac_cv_type_signal+set}" = set; then |
| 5817 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5818 | else |
| 5819 | cat >conftest.$ac_ext <<_ACEOF |
| 5820 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5821 | /* confdefs.h. */ |
| 5822 | _ACEOF |
| 5823 | cat confdefs.h >>conftest.$ac_ext |
| 5824 | cat >>conftest.$ac_ext <<_ACEOF |
| 5825 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5826 | #include <sys/types.h> |
| 5827 | #include <signal.h> |
| 5828 | #ifdef signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5829 | # undef signal |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5830 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5831 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5832 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 5833 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5834 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5835 | #endif |
| 5836 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5837 | int |
| 5838 | main () |
| 5839 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5840 | int i; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5841 | ; |
| 5842 | return 0; |
| 5843 | } |
| 5844 | _ACEOF |
| 5845 | rm -f conftest.$ac_objext |
| 5846 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5847 | (eval $ac_compile) 2>&5 |
| 5848 | ac_status=$? |
| 5849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5850 | (exit $ac_status); } && |
| 5851 | { ac_try='test -s conftest.$ac_objext' |
| 5852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5853 | (eval $ac_try) 2>&5 |
| 5854 | ac_status=$? |
| 5855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5856 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5857 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5858 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5859 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5860 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5861 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5862 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5863 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5864 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5865 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5866 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 5867 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5868 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5869 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5870 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5871 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5872 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5873 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5874 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 5875 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 5876 | if test "${ac_cv_type_size_t+set}" = set; then |
| 5877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5878 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | if ((size_t *) 0) |
| 5891 | return 0; |
| 5892 | if (sizeof (size_t)) |
| 5893 | return 0; |
| 5894 | ; |
| 5895 | return 0; |
| 5896 | } |
| 5897 | _ACEOF |
| 5898 | rm -f conftest.$ac_objext |
| 5899 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5900 | (eval $ac_compile) 2>&5 |
| 5901 | ac_status=$? |
| 5902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5903 | (exit $ac_status); } && |
| 5904 | { ac_try='test -s conftest.$ac_objext' |
| 5905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5906 | (eval $ac_try) 2>&5 |
| 5907 | ac_status=$? |
| 5908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5909 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5910 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5911 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5912 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5913 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5914 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5915 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5916 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5917 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5918 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5919 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 5920 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 5921 | if test $ac_cv_type_size_t = yes; then |
| 5922 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5923 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5924 | |
| 5925 | cat >>confdefs.h <<_ACEOF |
| 5926 | #define size_t unsigned |
| 5927 | _ACEOF |
| 5928 | |
| 5929 | fi |
| 5930 | |
| 5931 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 5932 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
| 5933 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 5934 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5935 | else |
| 5936 | cat >conftest.$ac_ext <<_ACEOF |
| 5937 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5938 | /* confdefs.h. */ |
| 5939 | _ACEOF |
| 5940 | cat confdefs.h >>conftest.$ac_ext |
| 5941 | cat >>conftest.$ac_ext <<_ACEOF |
| 5942 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5943 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5944 | |
| 5945 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5946 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5947 | $EGREP "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5948 | ac_cv_type_uid_t=yes |
| 5949 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5950 | ac_cv_type_uid_t=no |
| 5951 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5952 | rm -f conftest* |
| 5953 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5954 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5955 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 5956 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5957 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5958 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5959 | cat >>confdefs.h <<\_ACEOF |
| 5960 | #define uid_t int |
| 5961 | _ACEOF |
| 5962 | |
| 5963 | |
| 5964 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5965 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5966 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5967 | |
| 5968 | fi |
| 5969 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5970 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5971 | # Sizes of various common basic types |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5972 | echo "$as_me:$LINENO: checking for int" >&5 |
| 5973 | echo $ECHO_N "checking for int... $ECHO_C" >&6 |
| 5974 | if test "${ac_cv_type_int+set}" = set; then |
| 5975 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5976 | else |
| 5977 | cat >conftest.$ac_ext <<_ACEOF |
| 5978 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5979 | /* confdefs.h. */ |
| 5980 | _ACEOF |
| 5981 | cat confdefs.h >>conftest.$ac_ext |
| 5982 | cat >>conftest.$ac_ext <<_ACEOF |
| 5983 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5984 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5985 | int |
| 5986 | main () |
| 5987 | { |
| 5988 | if ((int *) 0) |
| 5989 | return 0; |
| 5990 | if (sizeof (int)) |
| 5991 | return 0; |
| 5992 | ; |
| 5993 | return 0; |
| 5994 | } |
| 5995 | _ACEOF |
| 5996 | rm -f conftest.$ac_objext |
| 5997 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5998 | (eval $ac_compile) 2>&5 |
| 5999 | ac_status=$? |
| 6000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6001 | (exit $ac_status); } && |
| 6002 | { ac_try='test -s conftest.$ac_objext' |
| 6003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6004 | (eval $ac_try) 2>&5 |
| 6005 | ac_status=$? |
| 6006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6007 | (exit $ac_status); }; }; then |
| 6008 | ac_cv_type_int=yes |
| 6009 | else |
| 6010 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6011 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6012 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6013 | ac_cv_type_int=no |
| 6014 | fi |
| 6015 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6016 | fi |
| 6017 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 6018 | echo "${ECHO_T}$ac_cv_type_int" >&6 |
| 6019 | |
| 6020 | echo "$as_me:$LINENO: checking size of int" >&5 |
| 6021 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| 6022 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 6023 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6024 | else |
| 6025 | if test "$ac_cv_type_int" = yes; then |
| 6026 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6027 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6028 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6029 | # This bug is HP SR number 8606223364. |
| 6030 | if test "$cross_compiling" = yes; then |
| 6031 | # Depending upon the size, compute the lo and hi bounds. |
| 6032 | cat >conftest.$ac_ext <<_ACEOF |
| 6033 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6034 | /* confdefs.h. */ |
| 6035 | _ACEOF |
| 6036 | cat confdefs.h >>conftest.$ac_ext |
| 6037 | cat >>conftest.$ac_ext <<_ACEOF |
| 6038 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6039 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6040 | int |
| 6041 | main () |
| 6042 | { |
| 6043 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
| 6044 | test_array [0] = 0 |
| 6045 | |
| 6046 | ; |
| 6047 | return 0; |
| 6048 | } |
| 6049 | _ACEOF |
| 6050 | rm -f conftest.$ac_objext |
| 6051 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6052 | (eval $ac_compile) 2>&5 |
| 6053 | ac_status=$? |
| 6054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6055 | (exit $ac_status); } && |
| 6056 | { ac_try='test -s conftest.$ac_objext' |
| 6057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6058 | (eval $ac_try) 2>&5 |
| 6059 | ac_status=$? |
| 6060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6061 | (exit $ac_status); }; }; then |
| 6062 | ac_lo=0 ac_mid=0 |
| 6063 | while :; do |
| 6064 | cat >conftest.$ac_ext <<_ACEOF |
| 6065 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6066 | /* confdefs.h. */ |
| 6067 | _ACEOF |
| 6068 | cat confdefs.h >>conftest.$ac_ext |
| 6069 | cat >>conftest.$ac_ext <<_ACEOF |
| 6070 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6071 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6072 | int |
| 6073 | main () |
| 6074 | { |
| 6075 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 6076 | test_array [0] = 0 |
| 6077 | |
| 6078 | ; |
| 6079 | return 0; |
| 6080 | } |
| 6081 | _ACEOF |
| 6082 | rm -f conftest.$ac_objext |
| 6083 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6084 | (eval $ac_compile) 2>&5 |
| 6085 | ac_status=$? |
| 6086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6087 | (exit $ac_status); } && |
| 6088 | { ac_try='test -s conftest.$ac_objext' |
| 6089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6090 | (eval $ac_try) 2>&5 |
| 6091 | ac_status=$? |
| 6092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6093 | (exit $ac_status); }; }; then |
| 6094 | ac_hi=$ac_mid; break |
| 6095 | else |
| 6096 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6097 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6098 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6099 | ac_lo=`expr $ac_mid + 1` |
| 6100 | if test $ac_lo -le $ac_mid; then |
| 6101 | ac_lo= ac_hi= |
| 6102 | break |
| 6103 | fi |
| 6104 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6105 | fi |
| 6106 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6107 | done |
| 6108 | else |
| 6109 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6110 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6111 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6112 | cat >conftest.$ac_ext <<_ACEOF |
| 6113 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6114 | /* confdefs.h. */ |
| 6115 | _ACEOF |
| 6116 | cat confdefs.h >>conftest.$ac_ext |
| 6117 | cat >>conftest.$ac_ext <<_ACEOF |
| 6118 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6119 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6120 | int |
| 6121 | main () |
| 6122 | { |
| 6123 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
| 6124 | test_array [0] = 0 |
| 6125 | |
| 6126 | ; |
| 6127 | return 0; |
| 6128 | } |
| 6129 | _ACEOF |
| 6130 | rm -f conftest.$ac_objext |
| 6131 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6132 | (eval $ac_compile) 2>&5 |
| 6133 | ac_status=$? |
| 6134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6135 | (exit $ac_status); } && |
| 6136 | { ac_try='test -s conftest.$ac_objext' |
| 6137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6138 | (eval $ac_try) 2>&5 |
| 6139 | ac_status=$? |
| 6140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6141 | (exit $ac_status); }; }; then |
| 6142 | ac_hi=-1 ac_mid=-1 |
| 6143 | while :; do |
| 6144 | cat >conftest.$ac_ext <<_ACEOF |
| 6145 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6146 | /* confdefs.h. */ |
| 6147 | _ACEOF |
| 6148 | cat confdefs.h >>conftest.$ac_ext |
| 6149 | cat >>conftest.$ac_ext <<_ACEOF |
| 6150 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6151 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6152 | int |
| 6153 | main () |
| 6154 | { |
| 6155 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
| 6156 | test_array [0] = 0 |
| 6157 | |
| 6158 | ; |
| 6159 | return 0; |
| 6160 | } |
| 6161 | _ACEOF |
| 6162 | rm -f conftest.$ac_objext |
| 6163 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6164 | (eval $ac_compile) 2>&5 |
| 6165 | ac_status=$? |
| 6166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6167 | (exit $ac_status); } && |
| 6168 | { ac_try='test -s conftest.$ac_objext' |
| 6169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6170 | (eval $ac_try) 2>&5 |
| 6171 | ac_status=$? |
| 6172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6173 | (exit $ac_status); }; }; then |
| 6174 | ac_lo=$ac_mid; break |
| 6175 | else |
| 6176 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6177 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6178 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6179 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6180 | if test $ac_mid -le $ac_hi; then |
| 6181 | ac_lo= ac_hi= |
| 6182 | break |
| 6183 | fi |
| 6184 | ac_mid=`expr 2 '*' $ac_mid` |
| 6185 | fi |
| 6186 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6187 | done |
| 6188 | else |
| 6189 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6190 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6191 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6192 | ac_lo= ac_hi= |
| 6193 | fi |
| 6194 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6195 | fi |
| 6196 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6197 | # Binary search between lo and hi bounds. |
| 6198 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6199 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6200 | cat >conftest.$ac_ext <<_ACEOF |
| 6201 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6202 | /* confdefs.h. */ |
| 6203 | _ACEOF |
| 6204 | cat confdefs.h >>conftest.$ac_ext |
| 6205 | cat >>conftest.$ac_ext <<_ACEOF |
| 6206 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6207 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6208 | int |
| 6209 | main () |
| 6210 | { |
| 6211 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 6212 | test_array [0] = 0 |
| 6213 | |
| 6214 | ; |
| 6215 | return 0; |
| 6216 | } |
| 6217 | _ACEOF |
| 6218 | rm -f conftest.$ac_objext |
| 6219 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6220 | (eval $ac_compile) 2>&5 |
| 6221 | ac_status=$? |
| 6222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6223 | (exit $ac_status); } && |
| 6224 | { ac_try='test -s conftest.$ac_objext' |
| 6225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6226 | (eval $ac_try) 2>&5 |
| 6227 | ac_status=$? |
| 6228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6229 | (exit $ac_status); }; }; then |
| 6230 | ac_hi=$ac_mid |
| 6231 | else |
| 6232 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6233 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6234 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6235 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6236 | fi |
| 6237 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6238 | done |
| 6239 | case $ac_lo in |
| 6240 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6241 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
| 6242 | See \`config.log' for more details." >&5 |
| 6243 | echo "$as_me: error: cannot compute sizeof (int), 77 |
| 6244 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6245 | { (exit 1); exit 1; }; } ;; |
| 6246 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6247 | else |
| 6248 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6249 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 6250 | See \`config.log' for more details." >&5 |
| 6251 | echo "$as_me: error: cannot run test program while cross compiling |
| 6252 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6253 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6254 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6255 | cat >conftest.$ac_ext <<_ACEOF |
| 6256 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6257 | /* confdefs.h. */ |
| 6258 | _ACEOF |
| 6259 | cat confdefs.h >>conftest.$ac_ext |
| 6260 | cat >>conftest.$ac_ext <<_ACEOF |
| 6261 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6262 | $ac_includes_default |
| 6263 | long longval () { return (long) (sizeof (int)); } |
| 6264 | unsigned long ulongval () { return (long) (sizeof (int)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6265 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6266 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6267 | int |
| 6268 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6269 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6270 | |
| 6271 | FILE *f = fopen ("conftest.val", "w"); |
| 6272 | if (! f) |
| 6273 | exit (1); |
| 6274 | if (((long) (sizeof (int))) < 0) |
| 6275 | { |
| 6276 | long i = longval (); |
| 6277 | if (i != ((long) (sizeof (int)))) |
| 6278 | exit (1); |
| 6279 | fprintf (f, "%ld\n", i); |
| 6280 | } |
| 6281 | else |
| 6282 | { |
| 6283 | unsigned long i = ulongval (); |
| 6284 | if (i != ((long) (sizeof (int)))) |
| 6285 | exit (1); |
| 6286 | fprintf (f, "%lu\n", i); |
| 6287 | } |
| 6288 | exit (ferror (f) || fclose (f) != 0); |
| 6289 | |
| 6290 | ; |
| 6291 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6292 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6293 | _ACEOF |
| 6294 | rm -f conftest$ac_exeext |
| 6295 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6296 | (eval $ac_link) 2>&5 |
| 6297 | ac_status=$? |
| 6298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6299 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6301 | (eval $ac_try) 2>&5 |
| 6302 | ac_status=$? |
| 6303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6304 | (exit $ac_status); }; }; then |
| 6305 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6306 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6307 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6308 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6309 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6310 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6311 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6312 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
| 6313 | See \`config.log' for more details." >&5 |
| 6314 | echo "$as_me: error: cannot compute sizeof (int), 77 |
| 6315 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6316 | { (exit 1); exit 1; }; } |
| 6317 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6318 | 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] | 6319 | fi |
| 6320 | fi |
| 6321 | rm -f conftest.val |
| 6322 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6323 | ac_cv_sizeof_int=0 |
| 6324 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6325 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6326 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 6327 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| 6328 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6329 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6330 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6331 | |
| 6332 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6333 | echo "$as_me:$LINENO: checking for long" >&5 |
| 6334 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
| 6335 | if test "${ac_cv_type_long+set}" = set; then |
| 6336 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6337 | else |
| 6338 | cat >conftest.$ac_ext <<_ACEOF |
| 6339 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6340 | /* confdefs.h. */ |
| 6341 | _ACEOF |
| 6342 | cat confdefs.h >>conftest.$ac_ext |
| 6343 | cat >>conftest.$ac_ext <<_ACEOF |
| 6344 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6345 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6346 | int |
| 6347 | main () |
| 6348 | { |
| 6349 | if ((long *) 0) |
| 6350 | return 0; |
| 6351 | if (sizeof (long)) |
| 6352 | return 0; |
| 6353 | ; |
| 6354 | return 0; |
| 6355 | } |
| 6356 | _ACEOF |
| 6357 | rm -f conftest.$ac_objext |
| 6358 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6359 | (eval $ac_compile) 2>&5 |
| 6360 | ac_status=$? |
| 6361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6362 | (exit $ac_status); } && |
| 6363 | { ac_try='test -s conftest.$ac_objext' |
| 6364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6365 | (eval $ac_try) 2>&5 |
| 6366 | ac_status=$? |
| 6367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6368 | (exit $ac_status); }; }; then |
| 6369 | ac_cv_type_long=yes |
| 6370 | else |
| 6371 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6372 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6373 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6374 | ac_cv_type_long=no |
| 6375 | fi |
| 6376 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6377 | fi |
| 6378 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 6379 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
| 6380 | |
| 6381 | echo "$as_me:$LINENO: checking size of long" >&5 |
| 6382 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
| 6383 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 6384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6385 | else |
| 6386 | if test "$ac_cv_type_long" = yes; then |
| 6387 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6388 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6389 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6390 | # This bug is HP SR number 8606223364. |
| 6391 | if test "$cross_compiling" = yes; then |
| 6392 | # Depending upon the size, compute the lo and hi bounds. |
| 6393 | cat >conftest.$ac_ext <<_ACEOF |
| 6394 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6395 | /* confdefs.h. */ |
| 6396 | _ACEOF |
| 6397 | cat confdefs.h >>conftest.$ac_ext |
| 6398 | cat >>conftest.$ac_ext <<_ACEOF |
| 6399 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6400 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6401 | int |
| 6402 | main () |
| 6403 | { |
| 6404 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
| 6405 | test_array [0] = 0 |
| 6406 | |
| 6407 | ; |
| 6408 | return 0; |
| 6409 | } |
| 6410 | _ACEOF |
| 6411 | rm -f conftest.$ac_objext |
| 6412 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6413 | (eval $ac_compile) 2>&5 |
| 6414 | ac_status=$? |
| 6415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6416 | (exit $ac_status); } && |
| 6417 | { ac_try='test -s conftest.$ac_objext' |
| 6418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6419 | (eval $ac_try) 2>&5 |
| 6420 | ac_status=$? |
| 6421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6422 | (exit $ac_status); }; }; then |
| 6423 | ac_lo=0 ac_mid=0 |
| 6424 | while :; do |
| 6425 | cat >conftest.$ac_ext <<_ACEOF |
| 6426 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6427 | /* confdefs.h. */ |
| 6428 | _ACEOF |
| 6429 | cat confdefs.h >>conftest.$ac_ext |
| 6430 | cat >>conftest.$ac_ext <<_ACEOF |
| 6431 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6432 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6433 | int |
| 6434 | main () |
| 6435 | { |
| 6436 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 6437 | test_array [0] = 0 |
| 6438 | |
| 6439 | ; |
| 6440 | return 0; |
| 6441 | } |
| 6442 | _ACEOF |
| 6443 | rm -f conftest.$ac_objext |
| 6444 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6445 | (eval $ac_compile) 2>&5 |
| 6446 | ac_status=$? |
| 6447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6448 | (exit $ac_status); } && |
| 6449 | { ac_try='test -s conftest.$ac_objext' |
| 6450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6451 | (eval $ac_try) 2>&5 |
| 6452 | ac_status=$? |
| 6453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6454 | (exit $ac_status); }; }; then |
| 6455 | ac_hi=$ac_mid; break |
| 6456 | else |
| 6457 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6458 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6459 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6460 | ac_lo=`expr $ac_mid + 1` |
| 6461 | if test $ac_lo -le $ac_mid; then |
| 6462 | ac_lo= ac_hi= |
| 6463 | break |
| 6464 | fi |
| 6465 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6466 | fi |
| 6467 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6468 | done |
| 6469 | else |
| 6470 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6471 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6472 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6473 | cat >conftest.$ac_ext <<_ACEOF |
| 6474 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6475 | /* confdefs.h. */ |
| 6476 | _ACEOF |
| 6477 | cat confdefs.h >>conftest.$ac_ext |
| 6478 | cat >>conftest.$ac_ext <<_ACEOF |
| 6479 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6480 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6481 | int |
| 6482 | main () |
| 6483 | { |
| 6484 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
| 6485 | test_array [0] = 0 |
| 6486 | |
| 6487 | ; |
| 6488 | return 0; |
| 6489 | } |
| 6490 | _ACEOF |
| 6491 | rm -f conftest.$ac_objext |
| 6492 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6493 | (eval $ac_compile) 2>&5 |
| 6494 | ac_status=$? |
| 6495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6496 | (exit $ac_status); } && |
| 6497 | { ac_try='test -s conftest.$ac_objext' |
| 6498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6499 | (eval $ac_try) 2>&5 |
| 6500 | ac_status=$? |
| 6501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6502 | (exit $ac_status); }; }; then |
| 6503 | ac_hi=-1 ac_mid=-1 |
| 6504 | while :; do |
| 6505 | cat >conftest.$ac_ext <<_ACEOF |
| 6506 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6507 | /* confdefs.h. */ |
| 6508 | _ACEOF |
| 6509 | cat confdefs.h >>conftest.$ac_ext |
| 6510 | cat >>conftest.$ac_ext <<_ACEOF |
| 6511 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6512 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6513 | int |
| 6514 | main () |
| 6515 | { |
| 6516 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
| 6517 | test_array [0] = 0 |
| 6518 | |
| 6519 | ; |
| 6520 | return 0; |
| 6521 | } |
| 6522 | _ACEOF |
| 6523 | rm -f conftest.$ac_objext |
| 6524 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6525 | (eval $ac_compile) 2>&5 |
| 6526 | ac_status=$? |
| 6527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6528 | (exit $ac_status); } && |
| 6529 | { ac_try='test -s conftest.$ac_objext' |
| 6530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6531 | (eval $ac_try) 2>&5 |
| 6532 | ac_status=$? |
| 6533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6534 | (exit $ac_status); }; }; then |
| 6535 | ac_lo=$ac_mid; break |
| 6536 | else |
| 6537 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6538 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6539 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6540 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6541 | if test $ac_mid -le $ac_hi; then |
| 6542 | ac_lo= ac_hi= |
| 6543 | break |
| 6544 | fi |
| 6545 | ac_mid=`expr 2 '*' $ac_mid` |
| 6546 | fi |
| 6547 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6548 | done |
| 6549 | else |
| 6550 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6551 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6552 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6553 | ac_lo= ac_hi= |
| 6554 | fi |
| 6555 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6556 | fi |
| 6557 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6558 | # Binary search between lo and hi bounds. |
| 6559 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6560 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6561 | cat >conftest.$ac_ext <<_ACEOF |
| 6562 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6563 | /* confdefs.h. */ |
| 6564 | _ACEOF |
| 6565 | cat confdefs.h >>conftest.$ac_ext |
| 6566 | cat >>conftest.$ac_ext <<_ACEOF |
| 6567 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6568 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6569 | int |
| 6570 | main () |
| 6571 | { |
| 6572 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 6573 | test_array [0] = 0 |
| 6574 | |
| 6575 | ; |
| 6576 | return 0; |
| 6577 | } |
| 6578 | _ACEOF |
| 6579 | rm -f conftest.$ac_objext |
| 6580 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6581 | (eval $ac_compile) 2>&5 |
| 6582 | ac_status=$? |
| 6583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6584 | (exit $ac_status); } && |
| 6585 | { ac_try='test -s conftest.$ac_objext' |
| 6586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6587 | (eval $ac_try) 2>&5 |
| 6588 | ac_status=$? |
| 6589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6590 | (exit $ac_status); }; }; then |
| 6591 | ac_hi=$ac_mid |
| 6592 | else |
| 6593 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6594 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6595 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6596 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6597 | fi |
| 6598 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6599 | done |
| 6600 | case $ac_lo in |
| 6601 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6602 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
| 6603 | See \`config.log' for more details." >&5 |
| 6604 | echo "$as_me: error: cannot compute sizeof (long), 77 |
| 6605 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6606 | { (exit 1); exit 1; }; } ;; |
| 6607 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6608 | else |
| 6609 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6610 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 6611 | See \`config.log' for more details." >&5 |
| 6612 | echo "$as_me: error: cannot run test program while cross compiling |
| 6613 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6614 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6615 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6616 | cat >conftest.$ac_ext <<_ACEOF |
| 6617 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6618 | /* confdefs.h. */ |
| 6619 | _ACEOF |
| 6620 | cat confdefs.h >>conftest.$ac_ext |
| 6621 | cat >>conftest.$ac_ext <<_ACEOF |
| 6622 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6623 | $ac_includes_default |
| 6624 | long longval () { return (long) (sizeof (long)); } |
| 6625 | unsigned long ulongval () { return (long) (sizeof (long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6626 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6627 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6628 | int |
| 6629 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6630 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6631 | |
| 6632 | FILE *f = fopen ("conftest.val", "w"); |
| 6633 | if (! f) |
| 6634 | exit (1); |
| 6635 | if (((long) (sizeof (long))) < 0) |
| 6636 | { |
| 6637 | long i = longval (); |
| 6638 | if (i != ((long) (sizeof (long)))) |
| 6639 | exit (1); |
| 6640 | fprintf (f, "%ld\n", i); |
| 6641 | } |
| 6642 | else |
| 6643 | { |
| 6644 | unsigned long i = ulongval (); |
| 6645 | if (i != ((long) (sizeof (long)))) |
| 6646 | exit (1); |
| 6647 | fprintf (f, "%lu\n", i); |
| 6648 | } |
| 6649 | exit (ferror (f) || fclose (f) != 0); |
| 6650 | |
| 6651 | ; |
| 6652 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6653 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6654 | _ACEOF |
| 6655 | rm -f conftest$ac_exeext |
| 6656 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6657 | (eval $ac_link) 2>&5 |
| 6658 | ac_status=$? |
| 6659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6660 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6662 | (eval $ac_try) 2>&5 |
| 6663 | ac_status=$? |
| 6664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6665 | (exit $ac_status); }; }; then |
| 6666 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6667 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6668 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6669 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6670 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6671 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6672 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6673 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
| 6674 | See \`config.log' for more details." >&5 |
| 6675 | echo "$as_me: error: cannot compute sizeof (long), 77 |
| 6676 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6677 | { (exit 1); exit 1; }; } |
| 6678 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6679 | 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] | 6680 | fi |
| 6681 | fi |
| 6682 | rm -f conftest.val |
| 6683 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6684 | ac_cv_sizeof_long=0 |
| 6685 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6686 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6687 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 6688 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
| 6689 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6690 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6691 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6692 | |
| 6693 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6694 | echo "$as_me:$LINENO: checking for void *" >&5 |
| 6695 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 |
| 6696 | if test "${ac_cv_type_void_p+set}" = set; then |
| 6697 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6698 | else |
| 6699 | cat >conftest.$ac_ext <<_ACEOF |
| 6700 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6701 | /* confdefs.h. */ |
| 6702 | _ACEOF |
| 6703 | cat confdefs.h >>conftest.$ac_ext |
| 6704 | cat >>conftest.$ac_ext <<_ACEOF |
| 6705 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6706 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6707 | int |
| 6708 | main () |
| 6709 | { |
| 6710 | if ((void * *) 0) |
| 6711 | return 0; |
| 6712 | if (sizeof (void *)) |
| 6713 | return 0; |
| 6714 | ; |
| 6715 | return 0; |
| 6716 | } |
| 6717 | _ACEOF |
| 6718 | rm -f conftest.$ac_objext |
| 6719 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6720 | (eval $ac_compile) 2>&5 |
| 6721 | ac_status=$? |
| 6722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6723 | (exit $ac_status); } && |
| 6724 | { ac_try='test -s conftest.$ac_objext' |
| 6725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6726 | (eval $ac_try) 2>&5 |
| 6727 | ac_status=$? |
| 6728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6729 | (exit $ac_status); }; }; then |
| 6730 | ac_cv_type_void_p=yes |
| 6731 | else |
| 6732 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6733 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6734 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6735 | ac_cv_type_void_p=no |
| 6736 | fi |
| 6737 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6738 | fi |
| 6739 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 6740 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 |
| 6741 | |
| 6742 | echo "$as_me:$LINENO: checking size of void *" >&5 |
| 6743 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 |
| 6744 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
| 6745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6746 | else |
| 6747 | if test "$ac_cv_type_void_p" = yes; then |
| 6748 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6749 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6750 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6751 | # This bug is HP SR number 8606223364. |
| 6752 | if test "$cross_compiling" = yes; then |
| 6753 | # Depending upon the size, compute the lo and hi bounds. |
| 6754 | cat >conftest.$ac_ext <<_ACEOF |
| 6755 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6756 | /* confdefs.h. */ |
| 6757 | _ACEOF |
| 6758 | cat confdefs.h >>conftest.$ac_ext |
| 6759 | cat >>conftest.$ac_ext <<_ACEOF |
| 6760 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6761 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6762 | int |
| 6763 | main () |
| 6764 | { |
| 6765 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
| 6766 | test_array [0] = 0 |
| 6767 | |
| 6768 | ; |
| 6769 | return 0; |
| 6770 | } |
| 6771 | _ACEOF |
| 6772 | rm -f conftest.$ac_objext |
| 6773 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6774 | (eval $ac_compile) 2>&5 |
| 6775 | ac_status=$? |
| 6776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6777 | (exit $ac_status); } && |
| 6778 | { ac_try='test -s conftest.$ac_objext' |
| 6779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6780 | (eval $ac_try) 2>&5 |
| 6781 | ac_status=$? |
| 6782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6783 | (exit $ac_status); }; }; then |
| 6784 | ac_lo=0 ac_mid=0 |
| 6785 | while :; do |
| 6786 | cat >conftest.$ac_ext <<_ACEOF |
| 6787 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6788 | /* confdefs.h. */ |
| 6789 | _ACEOF |
| 6790 | cat confdefs.h >>conftest.$ac_ext |
| 6791 | cat >>conftest.$ac_ext <<_ACEOF |
| 6792 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6793 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6794 | int |
| 6795 | main () |
| 6796 | { |
| 6797 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 6798 | test_array [0] = 0 |
| 6799 | |
| 6800 | ; |
| 6801 | return 0; |
| 6802 | } |
| 6803 | _ACEOF |
| 6804 | rm -f conftest.$ac_objext |
| 6805 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6806 | (eval $ac_compile) 2>&5 |
| 6807 | ac_status=$? |
| 6808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6809 | (exit $ac_status); } && |
| 6810 | { ac_try='test -s conftest.$ac_objext' |
| 6811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6812 | (eval $ac_try) 2>&5 |
| 6813 | ac_status=$? |
| 6814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6815 | (exit $ac_status); }; }; then |
| 6816 | ac_hi=$ac_mid; break |
| 6817 | else |
| 6818 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6819 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6820 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6821 | ac_lo=`expr $ac_mid + 1` |
| 6822 | if test $ac_lo -le $ac_mid; then |
| 6823 | ac_lo= ac_hi= |
| 6824 | break |
| 6825 | fi |
| 6826 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6827 | fi |
| 6828 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6829 | done |
| 6830 | else |
| 6831 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6832 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6833 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6834 | cat >conftest.$ac_ext <<_ACEOF |
| 6835 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6836 | /* confdefs.h. */ |
| 6837 | _ACEOF |
| 6838 | cat confdefs.h >>conftest.$ac_ext |
| 6839 | cat >>conftest.$ac_ext <<_ACEOF |
| 6840 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6841 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6842 | int |
| 6843 | main () |
| 6844 | { |
| 6845 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
| 6846 | test_array [0] = 0 |
| 6847 | |
| 6848 | ; |
| 6849 | return 0; |
| 6850 | } |
| 6851 | _ACEOF |
| 6852 | rm -f conftest.$ac_objext |
| 6853 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6854 | (eval $ac_compile) 2>&5 |
| 6855 | ac_status=$? |
| 6856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6857 | (exit $ac_status); } && |
| 6858 | { ac_try='test -s conftest.$ac_objext' |
| 6859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6860 | (eval $ac_try) 2>&5 |
| 6861 | ac_status=$? |
| 6862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6863 | (exit $ac_status); }; }; then |
| 6864 | ac_hi=-1 ac_mid=-1 |
| 6865 | while :; do |
| 6866 | cat >conftest.$ac_ext <<_ACEOF |
| 6867 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6868 | /* confdefs.h. */ |
| 6869 | _ACEOF |
| 6870 | cat confdefs.h >>conftest.$ac_ext |
| 6871 | cat >>conftest.$ac_ext <<_ACEOF |
| 6872 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6873 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6874 | int |
| 6875 | main () |
| 6876 | { |
| 6877 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
| 6878 | test_array [0] = 0 |
| 6879 | |
| 6880 | ; |
| 6881 | return 0; |
| 6882 | } |
| 6883 | _ACEOF |
| 6884 | rm -f conftest.$ac_objext |
| 6885 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6886 | (eval $ac_compile) 2>&5 |
| 6887 | ac_status=$? |
| 6888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6889 | (exit $ac_status); } && |
| 6890 | { ac_try='test -s conftest.$ac_objext' |
| 6891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6892 | (eval $ac_try) 2>&5 |
| 6893 | ac_status=$? |
| 6894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6895 | (exit $ac_status); }; }; then |
| 6896 | ac_lo=$ac_mid; break |
| 6897 | else |
| 6898 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6899 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6900 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6901 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6902 | if test $ac_mid -le $ac_hi; then |
| 6903 | ac_lo= ac_hi= |
| 6904 | break |
| 6905 | fi |
| 6906 | ac_mid=`expr 2 '*' $ac_mid` |
| 6907 | fi |
| 6908 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6909 | done |
| 6910 | else |
| 6911 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6912 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6913 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6914 | ac_lo= ac_hi= |
| 6915 | fi |
| 6916 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6917 | fi |
| 6918 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6919 | # Binary search between lo and hi bounds. |
| 6920 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6921 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6922 | cat >conftest.$ac_ext <<_ACEOF |
| 6923 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6924 | /* confdefs.h. */ |
| 6925 | _ACEOF |
| 6926 | cat confdefs.h >>conftest.$ac_ext |
| 6927 | cat >>conftest.$ac_ext <<_ACEOF |
| 6928 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6929 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6930 | int |
| 6931 | main () |
| 6932 | { |
| 6933 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 6934 | test_array [0] = 0 |
| 6935 | |
| 6936 | ; |
| 6937 | return 0; |
| 6938 | } |
| 6939 | _ACEOF |
| 6940 | rm -f conftest.$ac_objext |
| 6941 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6942 | (eval $ac_compile) 2>&5 |
| 6943 | ac_status=$? |
| 6944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6945 | (exit $ac_status); } && |
| 6946 | { ac_try='test -s conftest.$ac_objext' |
| 6947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6948 | (eval $ac_try) 2>&5 |
| 6949 | ac_status=$? |
| 6950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6951 | (exit $ac_status); }; }; then |
| 6952 | ac_hi=$ac_mid |
| 6953 | else |
| 6954 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6955 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6956 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6957 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6958 | fi |
| 6959 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6960 | done |
| 6961 | case $ac_lo in |
| 6962 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6963 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
| 6964 | See \`config.log' for more details." >&5 |
| 6965 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
| 6966 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6967 | { (exit 1); exit 1; }; } ;; |
| 6968 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6969 | else |
| 6970 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6971 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 6972 | See \`config.log' for more details." >&5 |
| 6973 | echo "$as_me: error: cannot run test program while cross compiling |
| 6974 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6975 | { (exit 1); exit 1; }; } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6976 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6977 | cat >conftest.$ac_ext <<_ACEOF |
| 6978 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6979 | /* confdefs.h. */ |
| 6980 | _ACEOF |
| 6981 | cat confdefs.h >>conftest.$ac_ext |
| 6982 | cat >>conftest.$ac_ext <<_ACEOF |
| 6983 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6984 | $ac_includes_default |
| 6985 | long longval () { return (long) (sizeof (void *)); } |
| 6986 | unsigned long ulongval () { return (long) (sizeof (void *)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6987 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6988 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6989 | int |
| 6990 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6991 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6992 | |
| 6993 | FILE *f = fopen ("conftest.val", "w"); |
| 6994 | if (! f) |
| 6995 | exit (1); |
| 6996 | if (((long) (sizeof (void *))) < 0) |
| 6997 | { |
| 6998 | long i = longval (); |
| 6999 | if (i != ((long) (sizeof (void *)))) |
| 7000 | exit (1); |
| 7001 | fprintf (f, "%ld\n", i); |
| 7002 | } |
| 7003 | else |
| 7004 | { |
| 7005 | unsigned long i = ulongval (); |
| 7006 | if (i != ((long) (sizeof (void *)))) |
| 7007 | exit (1); |
| 7008 | fprintf (f, "%lu\n", i); |
| 7009 | } |
| 7010 | exit (ferror (f) || fclose (f) != 0); |
| 7011 | |
| 7012 | ; |
| 7013 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7014 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7015 | _ACEOF |
| 7016 | rm -f conftest$ac_exeext |
| 7017 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7018 | (eval $ac_link) 2>&5 |
| 7019 | ac_status=$? |
| 7020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7021 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7023 | (eval $ac_try) 2>&5 |
| 7024 | ac_status=$? |
| 7025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7026 | (exit $ac_status); }; }; then |
| 7027 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7028 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7029 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7030 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7031 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7032 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7033 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7034 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
| 7035 | See \`config.log' for more details." >&5 |
| 7036 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
| 7037 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7038 | { (exit 1); exit 1; }; } |
| 7039 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7040 | 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] | 7041 | fi |
| 7042 | fi |
| 7043 | rm -f conftest.val |
| 7044 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7045 | ac_cv_sizeof_void_p=0 |
| 7046 | fi |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7047 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7048 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 7049 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 |
| 7050 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7051 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7052 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7053 | |
| 7054 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7055 | echo "$as_me:$LINENO: checking for char" >&5 |
| 7056 | echo $ECHO_N "checking for char... $ECHO_C" >&6 |
| 7057 | if test "${ac_cv_type_char+set}" = set; then |
| 7058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7059 | else |
| 7060 | cat >conftest.$ac_ext <<_ACEOF |
| 7061 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7062 | /* confdefs.h. */ |
| 7063 | _ACEOF |
| 7064 | cat confdefs.h >>conftest.$ac_ext |
| 7065 | cat >>conftest.$ac_ext <<_ACEOF |
| 7066 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7067 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7068 | int |
| 7069 | main () |
| 7070 | { |
| 7071 | if ((char *) 0) |
| 7072 | return 0; |
| 7073 | if (sizeof (char)) |
| 7074 | return 0; |
| 7075 | ; |
| 7076 | return 0; |
| 7077 | } |
| 7078 | _ACEOF |
| 7079 | rm -f conftest.$ac_objext |
| 7080 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7081 | (eval $ac_compile) 2>&5 |
| 7082 | ac_status=$? |
| 7083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7084 | (exit $ac_status); } && |
| 7085 | { ac_try='test -s conftest.$ac_objext' |
| 7086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7087 | (eval $ac_try) 2>&5 |
| 7088 | ac_status=$? |
| 7089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7090 | (exit $ac_status); }; }; then |
| 7091 | ac_cv_type_char=yes |
| 7092 | else |
| 7093 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7094 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7095 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7096 | ac_cv_type_char=no |
| 7097 | fi |
| 7098 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7099 | fi |
| 7100 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 |
| 7101 | echo "${ECHO_T}$ac_cv_type_char" >&6 |
| 7102 | |
| 7103 | echo "$as_me:$LINENO: checking size of char" >&5 |
| 7104 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 |
| 7105 | if test "${ac_cv_sizeof_char+set}" = set; then |
| 7106 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7107 | else |
| 7108 | if test "$ac_cv_type_char" = yes; then |
| 7109 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7110 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7111 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7112 | # This bug is HP SR number 8606223364. |
| 7113 | if test "$cross_compiling" = yes; then |
| 7114 | # Depending upon the size, compute the lo and hi bounds. |
| 7115 | cat >conftest.$ac_ext <<_ACEOF |
| 7116 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7117 | /* confdefs.h. */ |
| 7118 | _ACEOF |
| 7119 | cat confdefs.h >>conftest.$ac_ext |
| 7120 | cat >>conftest.$ac_ext <<_ACEOF |
| 7121 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7122 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7123 | int |
| 7124 | main () |
| 7125 | { |
| 7126 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; |
| 7127 | test_array [0] = 0 |
| 7128 | |
| 7129 | ; |
| 7130 | return 0; |
| 7131 | } |
| 7132 | _ACEOF |
| 7133 | rm -f conftest.$ac_objext |
| 7134 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7135 | (eval $ac_compile) 2>&5 |
| 7136 | ac_status=$? |
| 7137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7138 | (exit $ac_status); } && |
| 7139 | { ac_try='test -s conftest.$ac_objext' |
| 7140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7141 | (eval $ac_try) 2>&5 |
| 7142 | ac_status=$? |
| 7143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7144 | (exit $ac_status); }; }; then |
| 7145 | ac_lo=0 ac_mid=0 |
| 7146 | while :; do |
| 7147 | cat >conftest.$ac_ext <<_ACEOF |
| 7148 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7149 | /* confdefs.h. */ |
| 7150 | _ACEOF |
| 7151 | cat confdefs.h >>conftest.$ac_ext |
| 7152 | cat >>conftest.$ac_ext <<_ACEOF |
| 7153 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7154 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7155 | int |
| 7156 | main () |
| 7157 | { |
| 7158 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 7159 | test_array [0] = 0 |
| 7160 | |
| 7161 | ; |
| 7162 | return 0; |
| 7163 | } |
| 7164 | _ACEOF |
| 7165 | rm -f conftest.$ac_objext |
| 7166 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7167 | (eval $ac_compile) 2>&5 |
| 7168 | ac_status=$? |
| 7169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7170 | (exit $ac_status); } && |
| 7171 | { ac_try='test -s conftest.$ac_objext' |
| 7172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7173 | (eval $ac_try) 2>&5 |
| 7174 | ac_status=$? |
| 7175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7176 | (exit $ac_status); }; }; then |
| 7177 | ac_hi=$ac_mid; break |
| 7178 | else |
| 7179 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7180 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7181 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7182 | ac_lo=`expr $ac_mid + 1` |
| 7183 | if test $ac_lo -le $ac_mid; then |
| 7184 | ac_lo= ac_hi= |
| 7185 | break |
| 7186 | fi |
| 7187 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7188 | fi |
| 7189 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7190 | done |
| 7191 | else |
| 7192 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7193 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7194 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7195 | cat >conftest.$ac_ext <<_ACEOF |
| 7196 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7197 | /* confdefs.h. */ |
| 7198 | _ACEOF |
| 7199 | cat confdefs.h >>conftest.$ac_ext |
| 7200 | cat >>conftest.$ac_ext <<_ACEOF |
| 7201 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7202 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7203 | int |
| 7204 | main () |
| 7205 | { |
| 7206 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; |
| 7207 | test_array [0] = 0 |
| 7208 | |
| 7209 | ; |
| 7210 | return 0; |
| 7211 | } |
| 7212 | _ACEOF |
| 7213 | rm -f conftest.$ac_objext |
| 7214 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7215 | (eval $ac_compile) 2>&5 |
| 7216 | ac_status=$? |
| 7217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7218 | (exit $ac_status); } && |
| 7219 | { ac_try='test -s conftest.$ac_objext' |
| 7220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7221 | (eval $ac_try) 2>&5 |
| 7222 | ac_status=$? |
| 7223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7224 | (exit $ac_status); }; }; then |
| 7225 | ac_hi=-1 ac_mid=-1 |
| 7226 | while :; do |
| 7227 | cat >conftest.$ac_ext <<_ACEOF |
| 7228 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7229 | /* confdefs.h. */ |
| 7230 | _ACEOF |
| 7231 | cat confdefs.h >>conftest.$ac_ext |
| 7232 | cat >>conftest.$ac_ext <<_ACEOF |
| 7233 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7234 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7235 | int |
| 7236 | main () |
| 7237 | { |
| 7238 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; |
| 7239 | test_array [0] = 0 |
| 7240 | |
| 7241 | ; |
| 7242 | return 0; |
| 7243 | } |
| 7244 | _ACEOF |
| 7245 | rm -f conftest.$ac_objext |
| 7246 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7247 | (eval $ac_compile) 2>&5 |
| 7248 | ac_status=$? |
| 7249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7250 | (exit $ac_status); } && |
| 7251 | { ac_try='test -s conftest.$ac_objext' |
| 7252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7253 | (eval $ac_try) 2>&5 |
| 7254 | ac_status=$? |
| 7255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7256 | (exit $ac_status); }; }; then |
| 7257 | ac_lo=$ac_mid; break |
| 7258 | else |
| 7259 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7260 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7261 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7262 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7263 | if test $ac_mid -le $ac_hi; then |
| 7264 | ac_lo= ac_hi= |
| 7265 | break |
| 7266 | fi |
| 7267 | ac_mid=`expr 2 '*' $ac_mid` |
| 7268 | fi |
| 7269 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7270 | done |
| 7271 | else |
| 7272 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7273 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7274 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7275 | ac_lo= ac_hi= |
| 7276 | fi |
| 7277 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7278 | fi |
| 7279 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7280 | # Binary search between lo and hi bounds. |
| 7281 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7282 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7283 | cat >conftest.$ac_ext <<_ACEOF |
| 7284 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7285 | /* confdefs.h. */ |
| 7286 | _ACEOF |
| 7287 | cat confdefs.h >>conftest.$ac_ext |
| 7288 | cat >>conftest.$ac_ext <<_ACEOF |
| 7289 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7290 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7291 | int |
| 7292 | main () |
| 7293 | { |
| 7294 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 7295 | test_array [0] = 0 |
| 7296 | |
| 7297 | ; |
| 7298 | return 0; |
| 7299 | } |
| 7300 | _ACEOF |
| 7301 | rm -f conftest.$ac_objext |
| 7302 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7303 | (eval $ac_compile) 2>&5 |
| 7304 | ac_status=$? |
| 7305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7306 | (exit $ac_status); } && |
| 7307 | { ac_try='test -s conftest.$ac_objext' |
| 7308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7309 | (eval $ac_try) 2>&5 |
| 7310 | ac_status=$? |
| 7311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7312 | (exit $ac_status); }; }; then |
| 7313 | ac_hi=$ac_mid |
| 7314 | else |
| 7315 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7316 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7317 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7318 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7319 | fi |
| 7320 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7321 | done |
| 7322 | case $ac_lo in |
| 7323 | ?*) ac_cv_sizeof_char=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7324 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 |
| 7325 | See \`config.log' for more details." >&5 |
| 7326 | echo "$as_me: error: cannot compute sizeof (char), 77 |
| 7327 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7328 | { (exit 1); exit 1; }; } ;; |
| 7329 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7330 | else |
| 7331 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7332 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 7333 | See \`config.log' for more details." >&5 |
| 7334 | echo "$as_me: error: cannot run test program while cross compiling |
| 7335 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7336 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7337 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7338 | cat >conftest.$ac_ext <<_ACEOF |
| 7339 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7340 | /* confdefs.h. */ |
| 7341 | _ACEOF |
| 7342 | cat confdefs.h >>conftest.$ac_ext |
| 7343 | cat >>conftest.$ac_ext <<_ACEOF |
| 7344 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7345 | $ac_includes_default |
| 7346 | long longval () { return (long) (sizeof (char)); } |
| 7347 | unsigned long ulongval () { return (long) (sizeof (char)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7348 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7349 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7350 | int |
| 7351 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7352 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7353 | |
| 7354 | FILE *f = fopen ("conftest.val", "w"); |
| 7355 | if (! f) |
| 7356 | exit (1); |
| 7357 | if (((long) (sizeof (char))) < 0) |
| 7358 | { |
| 7359 | long i = longval (); |
| 7360 | if (i != ((long) (sizeof (char)))) |
| 7361 | exit (1); |
| 7362 | fprintf (f, "%ld\n", i); |
| 7363 | } |
| 7364 | else |
| 7365 | { |
| 7366 | unsigned long i = ulongval (); |
| 7367 | if (i != ((long) (sizeof (char)))) |
| 7368 | exit (1); |
| 7369 | fprintf (f, "%lu\n", i); |
| 7370 | } |
| 7371 | exit (ferror (f) || fclose (f) != 0); |
| 7372 | |
| 7373 | ; |
| 7374 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7375 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7376 | _ACEOF |
| 7377 | rm -f conftest$ac_exeext |
| 7378 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7379 | (eval $ac_link) 2>&5 |
| 7380 | ac_status=$? |
| 7381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7382 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7384 | (eval $ac_try) 2>&5 |
| 7385 | ac_status=$? |
| 7386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7387 | (exit $ac_status); }; }; then |
| 7388 | ac_cv_sizeof_char=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7389 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7390 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7391 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7392 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7393 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7394 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7395 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 |
| 7396 | See \`config.log' for more details." >&5 |
| 7397 | echo "$as_me: error: cannot compute sizeof (char), 77 |
| 7398 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7399 | { (exit 1); exit 1; }; } |
| 7400 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7401 | 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] | 7402 | fi |
| 7403 | fi |
| 7404 | rm -f conftest.val |
| 7405 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7406 | ac_cv_sizeof_char=0 |
| 7407 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7408 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7409 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
| 7410 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 |
| 7411 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7412 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7413 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7414 | |
| 7415 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7416 | echo "$as_me:$LINENO: checking for short" >&5 |
| 7417 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
| 7418 | if test "${ac_cv_type_short+set}" = set; then |
| 7419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7420 | else |
| 7421 | cat >conftest.$ac_ext <<_ACEOF |
| 7422 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7423 | /* confdefs.h. */ |
| 7424 | _ACEOF |
| 7425 | cat confdefs.h >>conftest.$ac_ext |
| 7426 | cat >>conftest.$ac_ext <<_ACEOF |
| 7427 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7428 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7429 | int |
| 7430 | main () |
| 7431 | { |
| 7432 | if ((short *) 0) |
| 7433 | return 0; |
| 7434 | if (sizeof (short)) |
| 7435 | return 0; |
| 7436 | ; |
| 7437 | return 0; |
| 7438 | } |
| 7439 | _ACEOF |
| 7440 | rm -f conftest.$ac_objext |
| 7441 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7442 | (eval $ac_compile) 2>&5 |
| 7443 | ac_status=$? |
| 7444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7445 | (exit $ac_status); } && |
| 7446 | { ac_try='test -s conftest.$ac_objext' |
| 7447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7448 | (eval $ac_try) 2>&5 |
| 7449 | ac_status=$? |
| 7450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7451 | (exit $ac_status); }; }; then |
| 7452 | ac_cv_type_short=yes |
| 7453 | else |
| 7454 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7455 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7456 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7457 | ac_cv_type_short=no |
| 7458 | fi |
| 7459 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7460 | fi |
| 7461 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 7462 | echo "${ECHO_T}$ac_cv_type_short" >&6 |
| 7463 | |
| 7464 | echo "$as_me:$LINENO: checking size of short" >&5 |
| 7465 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 |
| 7466 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 7467 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7468 | else |
| 7469 | if test "$ac_cv_type_short" = yes; then |
| 7470 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7471 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7472 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7473 | # This bug is HP SR number 8606223364. |
| 7474 | if test "$cross_compiling" = yes; then |
| 7475 | # Depending upon the size, compute the lo and hi bounds. |
| 7476 | cat >conftest.$ac_ext <<_ACEOF |
| 7477 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7478 | /* confdefs.h. */ |
| 7479 | _ACEOF |
| 7480 | cat confdefs.h >>conftest.$ac_ext |
| 7481 | cat >>conftest.$ac_ext <<_ACEOF |
| 7482 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7483 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7484 | int |
| 7485 | main () |
| 7486 | { |
| 7487 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
| 7488 | test_array [0] = 0 |
| 7489 | |
| 7490 | ; |
| 7491 | return 0; |
| 7492 | } |
| 7493 | _ACEOF |
| 7494 | rm -f conftest.$ac_objext |
| 7495 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7496 | (eval $ac_compile) 2>&5 |
| 7497 | ac_status=$? |
| 7498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7499 | (exit $ac_status); } && |
| 7500 | { ac_try='test -s conftest.$ac_objext' |
| 7501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7502 | (eval $ac_try) 2>&5 |
| 7503 | ac_status=$? |
| 7504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7505 | (exit $ac_status); }; }; then |
| 7506 | ac_lo=0 ac_mid=0 |
| 7507 | while :; do |
| 7508 | cat >conftest.$ac_ext <<_ACEOF |
| 7509 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7510 | /* confdefs.h. */ |
| 7511 | _ACEOF |
| 7512 | cat confdefs.h >>conftest.$ac_ext |
| 7513 | cat >>conftest.$ac_ext <<_ACEOF |
| 7514 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7515 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7516 | int |
| 7517 | main () |
| 7518 | { |
| 7519 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 7520 | test_array [0] = 0 |
| 7521 | |
| 7522 | ; |
| 7523 | return 0; |
| 7524 | } |
| 7525 | _ACEOF |
| 7526 | rm -f conftest.$ac_objext |
| 7527 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7528 | (eval $ac_compile) 2>&5 |
| 7529 | ac_status=$? |
| 7530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7531 | (exit $ac_status); } && |
| 7532 | { ac_try='test -s conftest.$ac_objext' |
| 7533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7534 | (eval $ac_try) 2>&5 |
| 7535 | ac_status=$? |
| 7536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7537 | (exit $ac_status); }; }; then |
| 7538 | ac_hi=$ac_mid; break |
| 7539 | else |
| 7540 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7541 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7542 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7543 | ac_lo=`expr $ac_mid + 1` |
| 7544 | if test $ac_lo -le $ac_mid; then |
| 7545 | ac_lo= ac_hi= |
| 7546 | break |
| 7547 | fi |
| 7548 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7549 | fi |
| 7550 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7551 | done |
| 7552 | else |
| 7553 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7554 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7555 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7556 | cat >conftest.$ac_ext <<_ACEOF |
| 7557 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7558 | /* confdefs.h. */ |
| 7559 | _ACEOF |
| 7560 | cat confdefs.h >>conftest.$ac_ext |
| 7561 | cat >>conftest.$ac_ext <<_ACEOF |
| 7562 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7563 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7564 | int |
| 7565 | main () |
| 7566 | { |
| 7567 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
| 7568 | test_array [0] = 0 |
| 7569 | |
| 7570 | ; |
| 7571 | return 0; |
| 7572 | } |
| 7573 | _ACEOF |
| 7574 | rm -f conftest.$ac_objext |
| 7575 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7576 | (eval $ac_compile) 2>&5 |
| 7577 | ac_status=$? |
| 7578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7579 | (exit $ac_status); } && |
| 7580 | { ac_try='test -s conftest.$ac_objext' |
| 7581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7582 | (eval $ac_try) 2>&5 |
| 7583 | ac_status=$? |
| 7584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7585 | (exit $ac_status); }; }; then |
| 7586 | ac_hi=-1 ac_mid=-1 |
| 7587 | while :; do |
| 7588 | cat >conftest.$ac_ext <<_ACEOF |
| 7589 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7590 | /* confdefs.h. */ |
| 7591 | _ACEOF |
| 7592 | cat confdefs.h >>conftest.$ac_ext |
| 7593 | cat >>conftest.$ac_ext <<_ACEOF |
| 7594 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7595 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7596 | int |
| 7597 | main () |
| 7598 | { |
| 7599 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
| 7600 | test_array [0] = 0 |
| 7601 | |
| 7602 | ; |
| 7603 | return 0; |
| 7604 | } |
| 7605 | _ACEOF |
| 7606 | rm -f conftest.$ac_objext |
| 7607 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7608 | (eval $ac_compile) 2>&5 |
| 7609 | ac_status=$? |
| 7610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7611 | (exit $ac_status); } && |
| 7612 | { ac_try='test -s conftest.$ac_objext' |
| 7613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7614 | (eval $ac_try) 2>&5 |
| 7615 | ac_status=$? |
| 7616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7617 | (exit $ac_status); }; }; then |
| 7618 | ac_lo=$ac_mid; break |
| 7619 | else |
| 7620 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7621 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7622 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7623 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7624 | if test $ac_mid -le $ac_hi; then |
| 7625 | ac_lo= ac_hi= |
| 7626 | break |
| 7627 | fi |
| 7628 | ac_mid=`expr 2 '*' $ac_mid` |
| 7629 | fi |
| 7630 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7631 | done |
| 7632 | else |
| 7633 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7634 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7635 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7636 | ac_lo= ac_hi= |
| 7637 | fi |
| 7638 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7639 | fi |
| 7640 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7641 | # Binary search between lo and hi bounds. |
| 7642 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7643 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7644 | cat >conftest.$ac_ext <<_ACEOF |
| 7645 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7646 | /* confdefs.h. */ |
| 7647 | _ACEOF |
| 7648 | cat confdefs.h >>conftest.$ac_ext |
| 7649 | cat >>conftest.$ac_ext <<_ACEOF |
| 7650 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7651 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7652 | int |
| 7653 | main () |
| 7654 | { |
| 7655 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 7656 | test_array [0] = 0 |
| 7657 | |
| 7658 | ; |
| 7659 | return 0; |
| 7660 | } |
| 7661 | _ACEOF |
| 7662 | rm -f conftest.$ac_objext |
| 7663 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7664 | (eval $ac_compile) 2>&5 |
| 7665 | ac_status=$? |
| 7666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7667 | (exit $ac_status); } && |
| 7668 | { ac_try='test -s conftest.$ac_objext' |
| 7669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7670 | (eval $ac_try) 2>&5 |
| 7671 | ac_status=$? |
| 7672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7673 | (exit $ac_status); }; }; then |
| 7674 | ac_hi=$ac_mid |
| 7675 | else |
| 7676 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7677 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7678 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7679 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7680 | fi |
| 7681 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7682 | done |
| 7683 | case $ac_lo in |
| 7684 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7685 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
| 7686 | See \`config.log' for more details." >&5 |
| 7687 | echo "$as_me: error: cannot compute sizeof (short), 77 |
| 7688 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7689 | { (exit 1); exit 1; }; } ;; |
| 7690 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7691 | else |
| 7692 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7693 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 7694 | See \`config.log' for more details." >&5 |
| 7695 | echo "$as_me: error: cannot run test program while cross compiling |
| 7696 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7697 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7698 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7699 | cat >conftest.$ac_ext <<_ACEOF |
| 7700 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7701 | /* confdefs.h. */ |
| 7702 | _ACEOF |
| 7703 | cat confdefs.h >>conftest.$ac_ext |
| 7704 | cat >>conftest.$ac_ext <<_ACEOF |
| 7705 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7706 | $ac_includes_default |
| 7707 | long longval () { return (long) (sizeof (short)); } |
| 7708 | unsigned long ulongval () { return (long) (sizeof (short)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7709 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7710 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7711 | int |
| 7712 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7713 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7714 | |
| 7715 | FILE *f = fopen ("conftest.val", "w"); |
| 7716 | if (! f) |
| 7717 | exit (1); |
| 7718 | if (((long) (sizeof (short))) < 0) |
| 7719 | { |
| 7720 | long i = longval (); |
| 7721 | if (i != ((long) (sizeof (short)))) |
| 7722 | exit (1); |
| 7723 | fprintf (f, "%ld\n", i); |
| 7724 | } |
| 7725 | else |
| 7726 | { |
| 7727 | unsigned long i = ulongval (); |
| 7728 | if (i != ((long) (sizeof (short)))) |
| 7729 | exit (1); |
| 7730 | fprintf (f, "%lu\n", i); |
| 7731 | } |
| 7732 | exit (ferror (f) || fclose (f) != 0); |
| 7733 | |
| 7734 | ; |
| 7735 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7736 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7737 | _ACEOF |
| 7738 | rm -f conftest$ac_exeext |
| 7739 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7740 | (eval $ac_link) 2>&5 |
| 7741 | ac_status=$? |
| 7742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7743 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7745 | (eval $ac_try) 2>&5 |
| 7746 | ac_status=$? |
| 7747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7748 | (exit $ac_status); }; }; then |
| 7749 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7750 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7751 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7752 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7753 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7754 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7755 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7756 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
| 7757 | See \`config.log' for more details." >&5 |
| 7758 | echo "$as_me: error: cannot compute sizeof (short), 77 |
| 7759 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7760 | { (exit 1); exit 1; }; } |
| 7761 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7762 | 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] | 7763 | fi |
| 7764 | fi |
| 7765 | rm -f conftest.val |
| 7766 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7767 | ac_cv_sizeof_short=0 |
| 7768 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7769 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7770 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 7771 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 |
| 7772 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7773 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7774 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7775 | |
| 7776 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7777 | echo "$as_me:$LINENO: checking for float" >&5 |
| 7778 | echo $ECHO_N "checking for float... $ECHO_C" >&6 |
| 7779 | if test "${ac_cv_type_float+set}" = set; then |
| 7780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7781 | else |
| 7782 | cat >conftest.$ac_ext <<_ACEOF |
| 7783 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7784 | /* confdefs.h. */ |
| 7785 | _ACEOF |
| 7786 | cat confdefs.h >>conftest.$ac_ext |
| 7787 | cat >>conftest.$ac_ext <<_ACEOF |
| 7788 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7789 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7790 | int |
| 7791 | main () |
| 7792 | { |
| 7793 | if ((float *) 0) |
| 7794 | return 0; |
| 7795 | if (sizeof (float)) |
| 7796 | return 0; |
| 7797 | ; |
| 7798 | return 0; |
| 7799 | } |
| 7800 | _ACEOF |
| 7801 | rm -f conftest.$ac_objext |
| 7802 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7803 | (eval $ac_compile) 2>&5 |
| 7804 | ac_status=$? |
| 7805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7806 | (exit $ac_status); } && |
| 7807 | { ac_try='test -s conftest.$ac_objext' |
| 7808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7809 | (eval $ac_try) 2>&5 |
| 7810 | ac_status=$? |
| 7811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7812 | (exit $ac_status); }; }; then |
| 7813 | ac_cv_type_float=yes |
| 7814 | else |
| 7815 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7816 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7817 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7818 | ac_cv_type_float=no |
| 7819 | fi |
| 7820 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7821 | fi |
| 7822 | echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 7823 | echo "${ECHO_T}$ac_cv_type_float" >&6 |
| 7824 | |
| 7825 | echo "$as_me:$LINENO: checking size of float" >&5 |
| 7826 | echo $ECHO_N "checking size of float... $ECHO_C" >&6 |
| 7827 | if test "${ac_cv_sizeof_float+set}" = set; then |
| 7828 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7829 | else |
| 7830 | if test "$ac_cv_type_float" = yes; then |
| 7831 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7832 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7833 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7834 | # This bug is HP SR number 8606223364. |
| 7835 | if test "$cross_compiling" = yes; then |
| 7836 | # Depending upon the size, compute the lo and hi bounds. |
| 7837 | cat >conftest.$ac_ext <<_ACEOF |
| 7838 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7839 | /* confdefs.h. */ |
| 7840 | _ACEOF |
| 7841 | cat confdefs.h >>conftest.$ac_ext |
| 7842 | cat >>conftest.$ac_ext <<_ACEOF |
| 7843 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7844 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7845 | int |
| 7846 | main () |
| 7847 | { |
| 7848 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)]; |
| 7849 | test_array [0] = 0 |
| 7850 | |
| 7851 | ; |
| 7852 | return 0; |
| 7853 | } |
| 7854 | _ACEOF |
| 7855 | rm -f conftest.$ac_objext |
| 7856 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7857 | (eval $ac_compile) 2>&5 |
| 7858 | ac_status=$? |
| 7859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7860 | (exit $ac_status); } && |
| 7861 | { ac_try='test -s conftest.$ac_objext' |
| 7862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7863 | (eval $ac_try) 2>&5 |
| 7864 | ac_status=$? |
| 7865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7866 | (exit $ac_status); }; }; then |
| 7867 | ac_lo=0 ac_mid=0 |
| 7868 | while :; do |
| 7869 | cat >conftest.$ac_ext <<_ACEOF |
| 7870 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7871 | /* confdefs.h. */ |
| 7872 | _ACEOF |
| 7873 | cat confdefs.h >>conftest.$ac_ext |
| 7874 | cat >>conftest.$ac_ext <<_ACEOF |
| 7875 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7876 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7877 | int |
| 7878 | main () |
| 7879 | { |
| 7880 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 7881 | test_array [0] = 0 |
| 7882 | |
| 7883 | ; |
| 7884 | return 0; |
| 7885 | } |
| 7886 | _ACEOF |
| 7887 | rm -f conftest.$ac_objext |
| 7888 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7889 | (eval $ac_compile) 2>&5 |
| 7890 | ac_status=$? |
| 7891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7892 | (exit $ac_status); } && |
| 7893 | { ac_try='test -s conftest.$ac_objext' |
| 7894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7895 | (eval $ac_try) 2>&5 |
| 7896 | ac_status=$? |
| 7897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7898 | (exit $ac_status); }; }; then |
| 7899 | ac_hi=$ac_mid; break |
| 7900 | else |
| 7901 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7902 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7903 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7904 | ac_lo=`expr $ac_mid + 1` |
| 7905 | if test $ac_lo -le $ac_mid; then |
| 7906 | ac_lo= ac_hi= |
| 7907 | break |
| 7908 | fi |
| 7909 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7910 | fi |
| 7911 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7912 | done |
| 7913 | else |
| 7914 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7915 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7916 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7917 | cat >conftest.$ac_ext <<_ACEOF |
| 7918 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7919 | /* confdefs.h. */ |
| 7920 | _ACEOF |
| 7921 | cat confdefs.h >>conftest.$ac_ext |
| 7922 | cat >>conftest.$ac_ext <<_ACEOF |
| 7923 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7924 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7925 | int |
| 7926 | main () |
| 7927 | { |
| 7928 | static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)]; |
| 7929 | test_array [0] = 0 |
| 7930 | |
| 7931 | ; |
| 7932 | return 0; |
| 7933 | } |
| 7934 | _ACEOF |
| 7935 | rm -f conftest.$ac_objext |
| 7936 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7937 | (eval $ac_compile) 2>&5 |
| 7938 | ac_status=$? |
| 7939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7940 | (exit $ac_status); } && |
| 7941 | { ac_try='test -s conftest.$ac_objext' |
| 7942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7943 | (eval $ac_try) 2>&5 |
| 7944 | ac_status=$? |
| 7945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7946 | (exit $ac_status); }; }; then |
| 7947 | ac_hi=-1 ac_mid=-1 |
| 7948 | while :; do |
| 7949 | cat >conftest.$ac_ext <<_ACEOF |
| 7950 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7951 | /* confdefs.h. */ |
| 7952 | _ACEOF |
| 7953 | cat confdefs.h >>conftest.$ac_ext |
| 7954 | cat >>conftest.$ac_ext <<_ACEOF |
| 7955 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7956 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7957 | int |
| 7958 | main () |
| 7959 | { |
| 7960 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)]; |
| 7961 | test_array [0] = 0 |
| 7962 | |
| 7963 | ; |
| 7964 | return 0; |
| 7965 | } |
| 7966 | _ACEOF |
| 7967 | rm -f conftest.$ac_objext |
| 7968 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7969 | (eval $ac_compile) 2>&5 |
| 7970 | ac_status=$? |
| 7971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7972 | (exit $ac_status); } && |
| 7973 | { ac_try='test -s conftest.$ac_objext' |
| 7974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7975 | (eval $ac_try) 2>&5 |
| 7976 | ac_status=$? |
| 7977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7978 | (exit $ac_status); }; }; then |
| 7979 | ac_lo=$ac_mid; break |
| 7980 | else |
| 7981 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7982 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7983 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7984 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7985 | if test $ac_mid -le $ac_hi; then |
| 7986 | ac_lo= ac_hi= |
| 7987 | break |
| 7988 | fi |
| 7989 | ac_mid=`expr 2 '*' $ac_mid` |
| 7990 | fi |
| 7991 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7992 | done |
| 7993 | else |
| 7994 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7995 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7996 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7997 | ac_lo= ac_hi= |
| 7998 | fi |
| 7999 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8000 | fi |
| 8001 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8002 | # Binary search between lo and hi bounds. |
| 8003 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8004 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8005 | cat >conftest.$ac_ext <<_ACEOF |
| 8006 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8007 | /* confdefs.h. */ |
| 8008 | _ACEOF |
| 8009 | cat confdefs.h >>conftest.$ac_ext |
| 8010 | cat >>conftest.$ac_ext <<_ACEOF |
| 8011 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8012 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8013 | int |
| 8014 | main () |
| 8015 | { |
| 8016 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 8017 | test_array [0] = 0 |
| 8018 | |
| 8019 | ; |
| 8020 | return 0; |
| 8021 | } |
| 8022 | _ACEOF |
| 8023 | rm -f conftest.$ac_objext |
| 8024 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8025 | (eval $ac_compile) 2>&5 |
| 8026 | ac_status=$? |
| 8027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8028 | (exit $ac_status); } && |
| 8029 | { ac_try='test -s conftest.$ac_objext' |
| 8030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8031 | (eval $ac_try) 2>&5 |
| 8032 | ac_status=$? |
| 8033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8034 | (exit $ac_status); }; }; then |
| 8035 | ac_hi=$ac_mid |
| 8036 | else |
| 8037 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8038 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8039 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8040 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8041 | fi |
| 8042 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8043 | done |
| 8044 | case $ac_lo in |
| 8045 | ?*) ac_cv_sizeof_float=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8046 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77 |
| 8047 | See \`config.log' for more details." >&5 |
| 8048 | echo "$as_me: error: cannot compute sizeof (float), 77 |
| 8049 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8050 | { (exit 1); exit 1; }; } ;; |
| 8051 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8052 | else |
| 8053 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8054 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 8055 | See \`config.log' for more details." >&5 |
| 8056 | echo "$as_me: error: cannot run test program while cross compiling |
| 8057 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8058 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8059 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8060 | cat >conftest.$ac_ext <<_ACEOF |
| 8061 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8062 | /* confdefs.h. */ |
| 8063 | _ACEOF |
| 8064 | cat confdefs.h >>conftest.$ac_ext |
| 8065 | cat >>conftest.$ac_ext <<_ACEOF |
| 8066 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8067 | $ac_includes_default |
| 8068 | long longval () { return (long) (sizeof (float)); } |
| 8069 | unsigned long ulongval () { return (long) (sizeof (float)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8070 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8071 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8072 | int |
| 8073 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8074 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8075 | |
| 8076 | FILE *f = fopen ("conftest.val", "w"); |
| 8077 | if (! f) |
| 8078 | exit (1); |
| 8079 | if (((long) (sizeof (float))) < 0) |
| 8080 | { |
| 8081 | long i = longval (); |
| 8082 | if (i != ((long) (sizeof (float)))) |
| 8083 | exit (1); |
| 8084 | fprintf (f, "%ld\n", i); |
| 8085 | } |
| 8086 | else |
| 8087 | { |
| 8088 | unsigned long i = ulongval (); |
| 8089 | if (i != ((long) (sizeof (float)))) |
| 8090 | exit (1); |
| 8091 | fprintf (f, "%lu\n", i); |
| 8092 | } |
| 8093 | exit (ferror (f) || fclose (f) != 0); |
| 8094 | |
| 8095 | ; |
| 8096 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8097 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8098 | _ACEOF |
| 8099 | rm -f conftest$ac_exeext |
| 8100 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8101 | (eval $ac_link) 2>&5 |
| 8102 | ac_status=$? |
| 8103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8104 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8106 | (eval $ac_try) 2>&5 |
| 8107 | ac_status=$? |
| 8108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8109 | (exit $ac_status); }; }; then |
| 8110 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8111 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8112 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8113 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8114 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8115 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8116 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8117 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77 |
| 8118 | See \`config.log' for more details." >&5 |
| 8119 | echo "$as_me: error: cannot compute sizeof (float), 77 |
| 8120 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8121 | { (exit 1); exit 1; }; } |
| 8122 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8123 | 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] | 8124 | fi |
| 8125 | fi |
| 8126 | rm -f conftest.val |
| 8127 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8128 | ac_cv_sizeof_float=0 |
| 8129 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8130 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8131 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 8132 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6 |
| 8133 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8134 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8135 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8136 | |
| 8137 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8138 | echo "$as_me:$LINENO: checking for double" >&5 |
| 8139 | echo $ECHO_N "checking for double... $ECHO_C" >&6 |
| 8140 | if test "${ac_cv_type_double+set}" = set; then |
| 8141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8142 | else |
| 8143 | cat >conftest.$ac_ext <<_ACEOF |
| 8144 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8145 | /* confdefs.h. */ |
| 8146 | _ACEOF |
| 8147 | cat confdefs.h >>conftest.$ac_ext |
| 8148 | cat >>conftest.$ac_ext <<_ACEOF |
| 8149 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8150 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8151 | int |
| 8152 | main () |
| 8153 | { |
| 8154 | if ((double *) 0) |
| 8155 | return 0; |
| 8156 | if (sizeof (double)) |
| 8157 | return 0; |
| 8158 | ; |
| 8159 | return 0; |
| 8160 | } |
| 8161 | _ACEOF |
| 8162 | rm -f conftest.$ac_objext |
| 8163 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8164 | (eval $ac_compile) 2>&5 |
| 8165 | ac_status=$? |
| 8166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8167 | (exit $ac_status); } && |
| 8168 | { ac_try='test -s conftest.$ac_objext' |
| 8169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8170 | (eval $ac_try) 2>&5 |
| 8171 | ac_status=$? |
| 8172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8173 | (exit $ac_status); }; }; then |
| 8174 | ac_cv_type_double=yes |
| 8175 | else |
| 8176 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8177 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8178 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8179 | ac_cv_type_double=no |
| 8180 | fi |
| 8181 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8182 | fi |
| 8183 | echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 8184 | echo "${ECHO_T}$ac_cv_type_double" >&6 |
| 8185 | |
| 8186 | echo "$as_me:$LINENO: checking size of double" >&5 |
| 8187 | echo $ECHO_N "checking size of double... $ECHO_C" >&6 |
| 8188 | if test "${ac_cv_sizeof_double+set}" = set; then |
| 8189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8190 | else |
| 8191 | if test "$ac_cv_type_double" = yes; then |
| 8192 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8193 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8194 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8195 | # This bug is HP SR number 8606223364. |
| 8196 | if test "$cross_compiling" = yes; then |
| 8197 | # Depending upon the size, compute the lo and hi bounds. |
| 8198 | cat >conftest.$ac_ext <<_ACEOF |
| 8199 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8200 | /* confdefs.h. */ |
| 8201 | _ACEOF |
| 8202 | cat confdefs.h >>conftest.$ac_ext |
| 8203 | cat >>conftest.$ac_ext <<_ACEOF |
| 8204 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8205 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8206 | int |
| 8207 | main () |
| 8208 | { |
| 8209 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)]; |
| 8210 | test_array [0] = 0 |
| 8211 | |
| 8212 | ; |
| 8213 | return 0; |
| 8214 | } |
| 8215 | _ACEOF |
| 8216 | rm -f conftest.$ac_objext |
| 8217 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8218 | (eval $ac_compile) 2>&5 |
| 8219 | ac_status=$? |
| 8220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8221 | (exit $ac_status); } && |
| 8222 | { ac_try='test -s conftest.$ac_objext' |
| 8223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8224 | (eval $ac_try) 2>&5 |
| 8225 | ac_status=$? |
| 8226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8227 | (exit $ac_status); }; }; then |
| 8228 | ac_lo=0 ac_mid=0 |
| 8229 | while :; do |
| 8230 | cat >conftest.$ac_ext <<_ACEOF |
| 8231 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8232 | /* confdefs.h. */ |
| 8233 | _ACEOF |
| 8234 | cat confdefs.h >>conftest.$ac_ext |
| 8235 | cat >>conftest.$ac_ext <<_ACEOF |
| 8236 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8237 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8238 | int |
| 8239 | main () |
| 8240 | { |
| 8241 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 8242 | test_array [0] = 0 |
| 8243 | |
| 8244 | ; |
| 8245 | return 0; |
| 8246 | } |
| 8247 | _ACEOF |
| 8248 | rm -f conftest.$ac_objext |
| 8249 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8250 | (eval $ac_compile) 2>&5 |
| 8251 | ac_status=$? |
| 8252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8253 | (exit $ac_status); } && |
| 8254 | { ac_try='test -s conftest.$ac_objext' |
| 8255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8256 | (eval $ac_try) 2>&5 |
| 8257 | ac_status=$? |
| 8258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8259 | (exit $ac_status); }; }; then |
| 8260 | ac_hi=$ac_mid; break |
| 8261 | else |
| 8262 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8263 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8264 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8265 | ac_lo=`expr $ac_mid + 1` |
| 8266 | if test $ac_lo -le $ac_mid; then |
| 8267 | ac_lo= ac_hi= |
| 8268 | break |
| 8269 | fi |
| 8270 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8271 | fi |
| 8272 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8273 | done |
| 8274 | else |
| 8275 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8276 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8277 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8278 | cat >conftest.$ac_ext <<_ACEOF |
| 8279 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8280 | /* confdefs.h. */ |
| 8281 | _ACEOF |
| 8282 | cat confdefs.h >>conftest.$ac_ext |
| 8283 | cat >>conftest.$ac_ext <<_ACEOF |
| 8284 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8285 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8286 | int |
| 8287 | main () |
| 8288 | { |
| 8289 | static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)]; |
| 8290 | test_array [0] = 0 |
| 8291 | |
| 8292 | ; |
| 8293 | return 0; |
| 8294 | } |
| 8295 | _ACEOF |
| 8296 | rm -f conftest.$ac_objext |
| 8297 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8298 | (eval $ac_compile) 2>&5 |
| 8299 | ac_status=$? |
| 8300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8301 | (exit $ac_status); } && |
| 8302 | { ac_try='test -s conftest.$ac_objext' |
| 8303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8304 | (eval $ac_try) 2>&5 |
| 8305 | ac_status=$? |
| 8306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8307 | (exit $ac_status); }; }; then |
| 8308 | ac_hi=-1 ac_mid=-1 |
| 8309 | while :; do |
| 8310 | cat >conftest.$ac_ext <<_ACEOF |
| 8311 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8312 | /* confdefs.h. */ |
| 8313 | _ACEOF |
| 8314 | cat confdefs.h >>conftest.$ac_ext |
| 8315 | cat >>conftest.$ac_ext <<_ACEOF |
| 8316 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8317 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8318 | int |
| 8319 | main () |
| 8320 | { |
| 8321 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)]; |
| 8322 | test_array [0] = 0 |
| 8323 | |
| 8324 | ; |
| 8325 | return 0; |
| 8326 | } |
| 8327 | _ACEOF |
| 8328 | rm -f conftest.$ac_objext |
| 8329 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8330 | (eval $ac_compile) 2>&5 |
| 8331 | ac_status=$? |
| 8332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8333 | (exit $ac_status); } && |
| 8334 | { ac_try='test -s conftest.$ac_objext' |
| 8335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8336 | (eval $ac_try) 2>&5 |
| 8337 | ac_status=$? |
| 8338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8339 | (exit $ac_status); }; }; then |
| 8340 | ac_lo=$ac_mid; break |
| 8341 | else |
| 8342 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8343 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8344 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8345 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8346 | if test $ac_mid -le $ac_hi; then |
| 8347 | ac_lo= ac_hi= |
| 8348 | break |
| 8349 | fi |
| 8350 | ac_mid=`expr 2 '*' $ac_mid` |
| 8351 | fi |
| 8352 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8353 | done |
| 8354 | else |
| 8355 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8356 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8357 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8358 | ac_lo= ac_hi= |
| 8359 | fi |
| 8360 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8361 | fi |
| 8362 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8363 | # Binary search between lo and hi bounds. |
| 8364 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8365 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8366 | cat >conftest.$ac_ext <<_ACEOF |
| 8367 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8368 | /* confdefs.h. */ |
| 8369 | _ACEOF |
| 8370 | cat confdefs.h >>conftest.$ac_ext |
| 8371 | cat >>conftest.$ac_ext <<_ACEOF |
| 8372 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8373 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8374 | int |
| 8375 | main () |
| 8376 | { |
| 8377 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 8378 | test_array [0] = 0 |
| 8379 | |
| 8380 | ; |
| 8381 | return 0; |
| 8382 | } |
| 8383 | _ACEOF |
| 8384 | rm -f conftest.$ac_objext |
| 8385 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8386 | (eval $ac_compile) 2>&5 |
| 8387 | ac_status=$? |
| 8388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8389 | (exit $ac_status); } && |
| 8390 | { ac_try='test -s conftest.$ac_objext' |
| 8391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8392 | (eval $ac_try) 2>&5 |
| 8393 | ac_status=$? |
| 8394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8395 | (exit $ac_status); }; }; then |
| 8396 | ac_hi=$ac_mid |
| 8397 | else |
| 8398 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8399 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8400 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8401 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8402 | fi |
| 8403 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8404 | done |
| 8405 | case $ac_lo in |
| 8406 | ?*) ac_cv_sizeof_double=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8407 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77 |
| 8408 | See \`config.log' for more details." >&5 |
| 8409 | echo "$as_me: error: cannot compute sizeof (double), 77 |
| 8410 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8411 | { (exit 1); exit 1; }; } ;; |
| 8412 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8413 | else |
| 8414 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8415 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 8416 | See \`config.log' for more details." >&5 |
| 8417 | echo "$as_me: error: cannot run test program while cross compiling |
| 8418 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8419 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8420 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8421 | cat >conftest.$ac_ext <<_ACEOF |
| 8422 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8423 | /* confdefs.h. */ |
| 8424 | _ACEOF |
| 8425 | cat confdefs.h >>conftest.$ac_ext |
| 8426 | cat >>conftest.$ac_ext <<_ACEOF |
| 8427 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8428 | $ac_includes_default |
| 8429 | long longval () { return (long) (sizeof (double)); } |
| 8430 | unsigned long ulongval () { return (long) (sizeof (double)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8431 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8432 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8433 | int |
| 8434 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8435 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8436 | |
| 8437 | FILE *f = fopen ("conftest.val", "w"); |
| 8438 | if (! f) |
| 8439 | exit (1); |
| 8440 | if (((long) (sizeof (double))) < 0) |
| 8441 | { |
| 8442 | long i = longval (); |
| 8443 | if (i != ((long) (sizeof (double)))) |
| 8444 | exit (1); |
| 8445 | fprintf (f, "%ld\n", i); |
| 8446 | } |
| 8447 | else |
| 8448 | { |
| 8449 | unsigned long i = ulongval (); |
| 8450 | if (i != ((long) (sizeof (double)))) |
| 8451 | exit (1); |
| 8452 | fprintf (f, "%lu\n", i); |
| 8453 | } |
| 8454 | exit (ferror (f) || fclose (f) != 0); |
| 8455 | |
| 8456 | ; |
| 8457 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8458 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8459 | _ACEOF |
| 8460 | rm -f conftest$ac_exeext |
| 8461 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8462 | (eval $ac_link) 2>&5 |
| 8463 | ac_status=$? |
| 8464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8465 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8467 | (eval $ac_try) 2>&5 |
| 8468 | ac_status=$? |
| 8469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8470 | (exit $ac_status); }; }; then |
| 8471 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8472 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8473 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8474 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8475 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8476 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8477 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8478 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77 |
| 8479 | See \`config.log' for more details." >&5 |
| 8480 | echo "$as_me: error: cannot compute sizeof (double), 77 |
| 8481 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8482 | { (exit 1); exit 1; }; } |
| 8483 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8484 | 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] | 8485 | fi |
| 8486 | fi |
| 8487 | rm -f conftest.val |
| 8488 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8489 | ac_cv_sizeof_double=0 |
| 8490 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8491 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8492 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 8493 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6 |
| 8494 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8495 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8496 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8497 | |
| 8498 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8499 | echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 8500 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6 |
| 8501 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 8502 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8503 | else |
| 8504 | cat >conftest.$ac_ext <<_ACEOF |
| 8505 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8506 | /* confdefs.h. */ |
| 8507 | _ACEOF |
| 8508 | cat confdefs.h >>conftest.$ac_ext |
| 8509 | cat >>conftest.$ac_ext <<_ACEOF |
| 8510 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8511 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8512 | int |
| 8513 | main () |
| 8514 | { |
| 8515 | if ((fpos_t *) 0) |
| 8516 | return 0; |
| 8517 | if (sizeof (fpos_t)) |
| 8518 | return 0; |
| 8519 | ; |
| 8520 | return 0; |
| 8521 | } |
| 8522 | _ACEOF |
| 8523 | rm -f conftest.$ac_objext |
| 8524 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8525 | (eval $ac_compile) 2>&5 |
| 8526 | ac_status=$? |
| 8527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8528 | (exit $ac_status); } && |
| 8529 | { ac_try='test -s conftest.$ac_objext' |
| 8530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8531 | (eval $ac_try) 2>&5 |
| 8532 | ac_status=$? |
| 8533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8534 | (exit $ac_status); }; }; then |
| 8535 | ac_cv_type_fpos_t=yes |
| 8536 | else |
| 8537 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8538 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8539 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8540 | ac_cv_type_fpos_t=no |
| 8541 | fi |
| 8542 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8543 | fi |
| 8544 | echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 8545 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6 |
| 8546 | |
| 8547 | echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 8548 | echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6 |
| 8549 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
| 8550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8551 | else |
| 8552 | if test "$ac_cv_type_fpos_t" = yes; then |
| 8553 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8554 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8555 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8556 | # This bug is HP SR number 8606223364. |
| 8557 | if test "$cross_compiling" = yes; then |
| 8558 | # Depending upon the size, compute the lo and hi bounds. |
| 8559 | cat >conftest.$ac_ext <<_ACEOF |
| 8560 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8561 | /* confdefs.h. */ |
| 8562 | _ACEOF |
| 8563 | cat confdefs.h >>conftest.$ac_ext |
| 8564 | cat >>conftest.$ac_ext <<_ACEOF |
| 8565 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8566 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8567 | int |
| 8568 | main () |
| 8569 | { |
| 8570 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)]; |
| 8571 | test_array [0] = 0 |
| 8572 | |
| 8573 | ; |
| 8574 | return 0; |
| 8575 | } |
| 8576 | _ACEOF |
| 8577 | rm -f conftest.$ac_objext |
| 8578 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8579 | (eval $ac_compile) 2>&5 |
| 8580 | ac_status=$? |
| 8581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8582 | (exit $ac_status); } && |
| 8583 | { ac_try='test -s conftest.$ac_objext' |
| 8584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8585 | (eval $ac_try) 2>&5 |
| 8586 | ac_status=$? |
| 8587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8588 | (exit $ac_status); }; }; then |
| 8589 | ac_lo=0 ac_mid=0 |
| 8590 | while :; do |
| 8591 | cat >conftest.$ac_ext <<_ACEOF |
| 8592 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8593 | /* confdefs.h. */ |
| 8594 | _ACEOF |
| 8595 | cat confdefs.h >>conftest.$ac_ext |
| 8596 | cat >>conftest.$ac_ext <<_ACEOF |
| 8597 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8598 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8599 | int |
| 8600 | main () |
| 8601 | { |
| 8602 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 8603 | test_array [0] = 0 |
| 8604 | |
| 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 | ac_hi=$ac_mid; break |
| 8622 | else |
| 8623 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8624 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8625 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8626 | ac_lo=`expr $ac_mid + 1` |
| 8627 | if test $ac_lo -le $ac_mid; then |
| 8628 | ac_lo= ac_hi= |
| 8629 | break |
| 8630 | fi |
| 8631 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8632 | fi |
| 8633 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8634 | done |
| 8635 | else |
| 8636 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8637 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8638 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8639 | cat >conftest.$ac_ext <<_ACEOF |
| 8640 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8641 | /* confdefs.h. */ |
| 8642 | _ACEOF |
| 8643 | cat confdefs.h >>conftest.$ac_ext |
| 8644 | cat >>conftest.$ac_ext <<_ACEOF |
| 8645 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8646 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8647 | int |
| 8648 | main () |
| 8649 | { |
| 8650 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)]; |
| 8651 | test_array [0] = 0 |
| 8652 | |
| 8653 | ; |
| 8654 | return 0; |
| 8655 | } |
| 8656 | _ACEOF |
| 8657 | rm -f conftest.$ac_objext |
| 8658 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8659 | (eval $ac_compile) 2>&5 |
| 8660 | ac_status=$? |
| 8661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8662 | (exit $ac_status); } && |
| 8663 | { ac_try='test -s conftest.$ac_objext' |
| 8664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8665 | (eval $ac_try) 2>&5 |
| 8666 | ac_status=$? |
| 8667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8668 | (exit $ac_status); }; }; then |
| 8669 | ac_hi=-1 ac_mid=-1 |
| 8670 | while :; do |
| 8671 | cat >conftest.$ac_ext <<_ACEOF |
| 8672 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8673 | /* confdefs.h. */ |
| 8674 | _ACEOF |
| 8675 | cat confdefs.h >>conftest.$ac_ext |
| 8676 | cat >>conftest.$ac_ext <<_ACEOF |
| 8677 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8678 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8679 | int |
| 8680 | main () |
| 8681 | { |
| 8682 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)]; |
| 8683 | test_array [0] = 0 |
| 8684 | |
| 8685 | ; |
| 8686 | return 0; |
| 8687 | } |
| 8688 | _ACEOF |
| 8689 | rm -f conftest.$ac_objext |
| 8690 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8691 | (eval $ac_compile) 2>&5 |
| 8692 | ac_status=$? |
| 8693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8694 | (exit $ac_status); } && |
| 8695 | { ac_try='test -s conftest.$ac_objext' |
| 8696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8697 | (eval $ac_try) 2>&5 |
| 8698 | ac_status=$? |
| 8699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8700 | (exit $ac_status); }; }; then |
| 8701 | ac_lo=$ac_mid; break |
| 8702 | else |
| 8703 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8704 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8705 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8706 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8707 | if test $ac_mid -le $ac_hi; then |
| 8708 | ac_lo= ac_hi= |
| 8709 | break |
| 8710 | fi |
| 8711 | ac_mid=`expr 2 '*' $ac_mid` |
| 8712 | fi |
| 8713 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8714 | done |
| 8715 | else |
| 8716 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8717 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8718 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8719 | ac_lo= ac_hi= |
| 8720 | fi |
| 8721 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8722 | fi |
| 8723 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8724 | # Binary search between lo and hi bounds. |
| 8725 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8726 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8727 | cat >conftest.$ac_ext <<_ACEOF |
| 8728 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8729 | /* confdefs.h. */ |
| 8730 | _ACEOF |
| 8731 | cat confdefs.h >>conftest.$ac_ext |
| 8732 | cat >>conftest.$ac_ext <<_ACEOF |
| 8733 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8734 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8735 | int |
| 8736 | main () |
| 8737 | { |
| 8738 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 8739 | test_array [0] = 0 |
| 8740 | |
| 8741 | ; |
| 8742 | return 0; |
| 8743 | } |
| 8744 | _ACEOF |
| 8745 | rm -f conftest.$ac_objext |
| 8746 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8747 | (eval $ac_compile) 2>&5 |
| 8748 | ac_status=$? |
| 8749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8750 | (exit $ac_status); } && |
| 8751 | { ac_try='test -s conftest.$ac_objext' |
| 8752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8753 | (eval $ac_try) 2>&5 |
| 8754 | ac_status=$? |
| 8755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8756 | (exit $ac_status); }; }; then |
| 8757 | ac_hi=$ac_mid |
| 8758 | else |
| 8759 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8760 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8761 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8762 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8763 | fi |
| 8764 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8765 | done |
| 8766 | case $ac_lo in |
| 8767 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8768 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77 |
| 8769 | See \`config.log' for more details." >&5 |
| 8770 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77 |
| 8771 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8772 | { (exit 1); exit 1; }; } ;; |
| 8773 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8774 | else |
| 8775 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8776 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 8777 | See \`config.log' for more details." >&5 |
| 8778 | echo "$as_me: error: cannot run test program while cross compiling |
| 8779 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8780 | { (exit 1); exit 1; }; } |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8781 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8782 | cat >conftest.$ac_ext <<_ACEOF |
| 8783 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8784 | /* confdefs.h. */ |
| 8785 | _ACEOF |
| 8786 | cat confdefs.h >>conftest.$ac_ext |
| 8787 | cat >>conftest.$ac_ext <<_ACEOF |
| 8788 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8789 | $ac_includes_default |
| 8790 | long longval () { return (long) (sizeof (fpos_t)); } |
| 8791 | unsigned long ulongval () { return (long) (sizeof (fpos_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8792 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8793 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8794 | int |
| 8795 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8796 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8797 | |
| 8798 | FILE *f = fopen ("conftest.val", "w"); |
| 8799 | if (! f) |
| 8800 | exit (1); |
| 8801 | if (((long) (sizeof (fpos_t))) < 0) |
| 8802 | { |
| 8803 | long i = longval (); |
| 8804 | if (i != ((long) (sizeof (fpos_t)))) |
| 8805 | exit (1); |
| 8806 | fprintf (f, "%ld\n", i); |
| 8807 | } |
| 8808 | else |
| 8809 | { |
| 8810 | unsigned long i = ulongval (); |
| 8811 | if (i != ((long) (sizeof (fpos_t)))) |
| 8812 | exit (1); |
| 8813 | fprintf (f, "%lu\n", i); |
| 8814 | } |
| 8815 | exit (ferror (f) || fclose (f) != 0); |
| 8816 | |
| 8817 | ; |
| 8818 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8819 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8820 | _ACEOF |
| 8821 | rm -f conftest$ac_exeext |
| 8822 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8823 | (eval $ac_link) 2>&5 |
| 8824 | ac_status=$? |
| 8825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8826 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8828 | (eval $ac_try) 2>&5 |
| 8829 | ac_status=$? |
| 8830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8831 | (exit $ac_status); }; }; then |
| 8832 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8833 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8834 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8835 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8836 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8837 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8838 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8839 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77 |
| 8840 | See \`config.log' for more details." >&5 |
| 8841 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77 |
| 8842 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8843 | { (exit 1); exit 1; }; } |
| 8844 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8845 | 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] | 8846 | fi |
| 8847 | fi |
| 8848 | rm -f conftest.val |
| 8849 | else |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8850 | ac_cv_sizeof_fpos_t=0 |
| 8851 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8852 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8853 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 8854 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6 |
| 8855 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8856 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8857 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8858 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8859 | |
| 8860 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8861 | echo "$as_me:$LINENO: checking for long long support" >&5 |
| 8862 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8863 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8864 | cat >conftest.$ac_ext <<_ACEOF |
| 8865 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8866 | /* confdefs.h. */ |
| 8867 | _ACEOF |
| 8868 | cat confdefs.h >>conftest.$ac_ext |
| 8869 | cat >>conftest.$ac_ext <<_ACEOF |
| 8870 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8871 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8872 | int |
| 8873 | main () |
| 8874 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8875 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8876 | ; |
| 8877 | return 0; |
| 8878 | } |
| 8879 | _ACEOF |
| 8880 | rm -f conftest.$ac_objext |
| 8881 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8882 | (eval $ac_compile) 2>&5 |
| 8883 | ac_status=$? |
| 8884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8885 | (exit $ac_status); } && |
| 8886 | { ac_try='test -s conftest.$ac_objext' |
| 8887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8888 | (eval $ac_try) 2>&5 |
| 8889 | ac_status=$? |
| 8890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8891 | (exit $ac_status); }; }; then |
| 8892 | |
| 8893 | |
| 8894 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8895 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8896 | _ACEOF |
| 8897 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8898 | have_long_long=yes |
| 8899 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8900 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8901 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8902 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8903 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8904 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8905 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8906 | echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 8907 | echo "${ECHO_T}$have_long_long" >&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 8908 | if test "$have_long_long" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8909 | echo "$as_me:$LINENO: checking for long long" >&5 |
| 8910 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 8911 | if test "${ac_cv_type_long_long+set}" = set; then |
| 8912 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8913 | else |
| 8914 | cat >conftest.$ac_ext <<_ACEOF |
| 8915 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8916 | /* confdefs.h. */ |
| 8917 | _ACEOF |
| 8918 | cat confdefs.h >>conftest.$ac_ext |
| 8919 | cat >>conftest.$ac_ext <<_ACEOF |
| 8920 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8921 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8922 | int |
| 8923 | main () |
| 8924 | { |
| 8925 | if ((long long *) 0) |
| 8926 | return 0; |
| 8927 | if (sizeof (long long)) |
| 8928 | return 0; |
| 8929 | ; |
| 8930 | return 0; |
| 8931 | } |
| 8932 | _ACEOF |
| 8933 | rm -f conftest.$ac_objext |
| 8934 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8935 | (eval $ac_compile) 2>&5 |
| 8936 | ac_status=$? |
| 8937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8938 | (exit $ac_status); } && |
| 8939 | { ac_try='test -s conftest.$ac_objext' |
| 8940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8941 | (eval $ac_try) 2>&5 |
| 8942 | ac_status=$? |
| 8943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8944 | (exit $ac_status); }; }; then |
| 8945 | ac_cv_type_long_long=yes |
| 8946 | else |
| 8947 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8948 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8949 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8950 | ac_cv_type_long_long=no |
| 8951 | fi |
| 8952 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8953 | fi |
| 8954 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 8955 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
| 8956 | |
| 8957 | echo "$as_me:$LINENO: checking size of long long" >&5 |
| 8958 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 |
| 8959 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 8960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8961 | else |
| 8962 | if test "$ac_cv_type_long_long" = yes; then |
| 8963 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8964 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8965 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8966 | # This bug is HP SR number 8606223364. |
| 8967 | if test "$cross_compiling" = yes; then |
| 8968 | # Depending upon the size, compute the lo and hi bounds. |
| 8969 | cat >conftest.$ac_ext <<_ACEOF |
| 8970 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8971 | /* confdefs.h. */ |
| 8972 | _ACEOF |
| 8973 | cat confdefs.h >>conftest.$ac_ext |
| 8974 | cat >>conftest.$ac_ext <<_ACEOF |
| 8975 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8976 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8977 | int |
| 8978 | main () |
| 8979 | { |
| 8980 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; |
| 8981 | test_array [0] = 0 |
| 8982 | |
| 8983 | ; |
| 8984 | return 0; |
| 8985 | } |
| 8986 | _ACEOF |
| 8987 | rm -f conftest.$ac_objext |
| 8988 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8989 | (eval $ac_compile) 2>&5 |
| 8990 | ac_status=$? |
| 8991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8992 | (exit $ac_status); } && |
| 8993 | { ac_try='test -s conftest.$ac_objext' |
| 8994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8995 | (eval $ac_try) 2>&5 |
| 8996 | ac_status=$? |
| 8997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8998 | (exit $ac_status); }; }; then |
| 8999 | ac_lo=0 ac_mid=0 |
| 9000 | while :; do |
| 9001 | cat >conftest.$ac_ext <<_ACEOF |
| 9002 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9003 | /* confdefs.h. */ |
| 9004 | _ACEOF |
| 9005 | cat confdefs.h >>conftest.$ac_ext |
| 9006 | cat >>conftest.$ac_ext <<_ACEOF |
| 9007 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9008 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9009 | int |
| 9010 | main () |
| 9011 | { |
| 9012 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 9013 | test_array [0] = 0 |
| 9014 | |
| 9015 | ; |
| 9016 | return 0; |
| 9017 | } |
| 9018 | _ACEOF |
| 9019 | rm -f conftest.$ac_objext |
| 9020 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9021 | (eval $ac_compile) 2>&5 |
| 9022 | ac_status=$? |
| 9023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9024 | (exit $ac_status); } && |
| 9025 | { ac_try='test -s conftest.$ac_objext' |
| 9026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9027 | (eval $ac_try) 2>&5 |
| 9028 | ac_status=$? |
| 9029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9030 | (exit $ac_status); }; }; then |
| 9031 | ac_hi=$ac_mid; break |
| 9032 | else |
| 9033 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9034 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9035 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9036 | ac_lo=`expr $ac_mid + 1` |
| 9037 | if test $ac_lo -le $ac_mid; then |
| 9038 | ac_lo= ac_hi= |
| 9039 | break |
| 9040 | fi |
| 9041 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 9042 | fi |
| 9043 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9044 | done |
| 9045 | else |
| 9046 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9047 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9048 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9049 | cat >conftest.$ac_ext <<_ACEOF |
| 9050 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9051 | /* confdefs.h. */ |
| 9052 | _ACEOF |
| 9053 | cat confdefs.h >>conftest.$ac_ext |
| 9054 | cat >>conftest.$ac_ext <<_ACEOF |
| 9055 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9056 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9057 | int |
| 9058 | main () |
| 9059 | { |
| 9060 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; |
| 9061 | test_array [0] = 0 |
| 9062 | |
| 9063 | ; |
| 9064 | return 0; |
| 9065 | } |
| 9066 | _ACEOF |
| 9067 | rm -f conftest.$ac_objext |
| 9068 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9069 | (eval $ac_compile) 2>&5 |
| 9070 | ac_status=$? |
| 9071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9072 | (exit $ac_status); } && |
| 9073 | { ac_try='test -s conftest.$ac_objext' |
| 9074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9075 | (eval $ac_try) 2>&5 |
| 9076 | ac_status=$? |
| 9077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9078 | (exit $ac_status); }; }; then |
| 9079 | ac_hi=-1 ac_mid=-1 |
| 9080 | while :; do |
| 9081 | cat >conftest.$ac_ext <<_ACEOF |
| 9082 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9083 | /* confdefs.h. */ |
| 9084 | _ACEOF |
| 9085 | cat confdefs.h >>conftest.$ac_ext |
| 9086 | cat >>conftest.$ac_ext <<_ACEOF |
| 9087 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9088 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9089 | int |
| 9090 | main () |
| 9091 | { |
| 9092 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; |
| 9093 | test_array [0] = 0 |
| 9094 | |
| 9095 | ; |
| 9096 | return 0; |
| 9097 | } |
| 9098 | _ACEOF |
| 9099 | rm -f conftest.$ac_objext |
| 9100 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9101 | (eval $ac_compile) 2>&5 |
| 9102 | ac_status=$? |
| 9103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9104 | (exit $ac_status); } && |
| 9105 | { ac_try='test -s conftest.$ac_objext' |
| 9106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9107 | (eval $ac_try) 2>&5 |
| 9108 | ac_status=$? |
| 9109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9110 | (exit $ac_status); }; }; then |
| 9111 | ac_lo=$ac_mid; break |
| 9112 | else |
| 9113 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9114 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9115 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9116 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9117 | if test $ac_mid -le $ac_hi; then |
| 9118 | ac_lo= ac_hi= |
| 9119 | break |
| 9120 | fi |
| 9121 | ac_mid=`expr 2 '*' $ac_mid` |
| 9122 | fi |
| 9123 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9124 | done |
| 9125 | else |
| 9126 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9127 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9128 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9129 | ac_lo= ac_hi= |
| 9130 | fi |
| 9131 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9132 | fi |
| 9133 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9134 | # Binary search between lo and hi bounds. |
| 9135 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9136 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9137 | cat >conftest.$ac_ext <<_ACEOF |
| 9138 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9139 | /* confdefs.h. */ |
| 9140 | _ACEOF |
| 9141 | cat confdefs.h >>conftest.$ac_ext |
| 9142 | cat >>conftest.$ac_ext <<_ACEOF |
| 9143 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9144 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9145 | int |
| 9146 | main () |
| 9147 | { |
| 9148 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 9149 | test_array [0] = 0 |
| 9150 | |
| 9151 | ; |
| 9152 | return 0; |
| 9153 | } |
| 9154 | _ACEOF |
| 9155 | rm -f conftest.$ac_objext |
| 9156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9157 | (eval $ac_compile) 2>&5 |
| 9158 | ac_status=$? |
| 9159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9160 | (exit $ac_status); } && |
| 9161 | { ac_try='test -s conftest.$ac_objext' |
| 9162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9163 | (eval $ac_try) 2>&5 |
| 9164 | ac_status=$? |
| 9165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9166 | (exit $ac_status); }; }; then |
| 9167 | ac_hi=$ac_mid |
| 9168 | else |
| 9169 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9170 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9171 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9172 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 9173 | fi |
| 9174 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9175 | done |
| 9176 | case $ac_lo in |
| 9177 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9178 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 |
| 9179 | See \`config.log' for more details." >&5 |
| 9180 | echo "$as_me: error: cannot compute sizeof (long long), 77 |
| 9181 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9182 | { (exit 1); exit 1; }; } ;; |
| 9183 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9184 | else |
| 9185 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9186 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 9187 | See \`config.log' for more details." >&5 |
| 9188 | echo "$as_me: error: cannot run test program while cross compiling |
| 9189 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9190 | { (exit 1); exit 1; }; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9191 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9192 | cat >conftest.$ac_ext <<_ACEOF |
| 9193 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9194 | /* confdefs.h. */ |
| 9195 | _ACEOF |
| 9196 | cat confdefs.h >>conftest.$ac_ext |
| 9197 | cat >>conftest.$ac_ext <<_ACEOF |
| 9198 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9199 | $ac_includes_default |
| 9200 | long longval () { return (long) (sizeof (long long)); } |
| 9201 | unsigned long ulongval () { return (long) (sizeof (long long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9202 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9203 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9204 | int |
| 9205 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9206 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9207 | |
| 9208 | FILE *f = fopen ("conftest.val", "w"); |
| 9209 | if (! f) |
| 9210 | exit (1); |
| 9211 | if (((long) (sizeof (long long))) < 0) |
| 9212 | { |
| 9213 | long i = longval (); |
| 9214 | if (i != ((long) (sizeof (long long)))) |
| 9215 | exit (1); |
| 9216 | fprintf (f, "%ld\n", i); |
| 9217 | } |
| 9218 | else |
| 9219 | { |
| 9220 | unsigned long i = ulongval (); |
| 9221 | if (i != ((long) (sizeof (long long)))) |
| 9222 | exit (1); |
| 9223 | fprintf (f, "%lu\n", i); |
| 9224 | } |
| 9225 | exit (ferror (f) || fclose (f) != 0); |
| 9226 | |
| 9227 | ; |
| 9228 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9229 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9230 | _ACEOF |
| 9231 | rm -f conftest$ac_exeext |
| 9232 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9233 | (eval $ac_link) 2>&5 |
| 9234 | ac_status=$? |
| 9235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9236 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9238 | (eval $ac_try) 2>&5 |
| 9239 | ac_status=$? |
| 9240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9241 | (exit $ac_status); }; }; then |
| 9242 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9243 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9244 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9245 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9246 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9247 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9248 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9249 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 |
| 9250 | See \`config.log' for more details." >&5 |
| 9251 | echo "$as_me: error: cannot compute sizeof (long long), 77 |
| 9252 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9253 | { (exit 1); exit 1; }; } |
| 9254 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9255 | 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] | 9256 | fi |
| 9257 | fi |
| 9258 | rm -f conftest.val |
| 9259 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9260 | ac_cv_sizeof_long_long=0 |
| 9261 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9262 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9263 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 9264 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 |
| 9265 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9266 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9267 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9268 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9269 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9270 | fi |
| 9271 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9272 | echo "$as_me:$LINENO: checking for uintptr_t support" >&5 |
| 9273 | echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9274 | have_uintptr_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9275 | cat >conftest.$ac_ext <<_ACEOF |
| 9276 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9277 | /* confdefs.h. */ |
| 9278 | _ACEOF |
| 9279 | cat confdefs.h >>conftest.$ac_ext |
| 9280 | cat >>conftest.$ac_ext <<_ACEOF |
| 9281 | /* end confdefs.h. */ |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9282 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9283 | int |
| 9284 | main () |
| 9285 | { |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9286 | uintptr_t x; x = (uintptr_t)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9287 | ; |
| 9288 | return 0; |
| 9289 | } |
| 9290 | _ACEOF |
| 9291 | rm -f conftest.$ac_objext |
| 9292 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9293 | (eval $ac_compile) 2>&5 |
| 9294 | ac_status=$? |
| 9295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9296 | (exit $ac_status); } && |
| 9297 | { ac_try='test -s conftest.$ac_objext' |
| 9298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9299 | (eval $ac_try) 2>&5 |
| 9300 | ac_status=$? |
| 9301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9302 | (exit $ac_status); }; }; then |
| 9303 | |
| 9304 | |
| 9305 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9306 | #define HAVE_UINTPTR_T 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9307 | _ACEOF |
| 9308 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 9309 | have_uintptr_t=yes |
| 9310 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9311 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9312 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9313 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9314 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9315 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9316 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9317 | echo "$as_me:$LINENO: result: $have_uintptr_t" >&5 |
| 9318 | echo "${ECHO_T}$have_uintptr_t" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9319 | if test "$have_uintptr_t" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9320 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 9321 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| 9322 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 9323 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9324 | else |
| 9325 | cat >conftest.$ac_ext <<_ACEOF |
| 9326 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9327 | /* confdefs.h. */ |
| 9328 | _ACEOF |
| 9329 | cat confdefs.h >>conftest.$ac_ext |
| 9330 | cat >>conftest.$ac_ext <<_ACEOF |
| 9331 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9332 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9333 | int |
| 9334 | main () |
| 9335 | { |
| 9336 | if ((uintptr_t *) 0) |
| 9337 | return 0; |
| 9338 | if (sizeof (uintptr_t)) |
| 9339 | return 0; |
| 9340 | ; |
| 9341 | return 0; |
| 9342 | } |
| 9343 | _ACEOF |
| 9344 | rm -f conftest.$ac_objext |
| 9345 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9346 | (eval $ac_compile) 2>&5 |
| 9347 | ac_status=$? |
| 9348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9349 | (exit $ac_status); } && |
| 9350 | { ac_try='test -s conftest.$ac_objext' |
| 9351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9352 | (eval $ac_try) 2>&5 |
| 9353 | ac_status=$? |
| 9354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9355 | (exit $ac_status); }; }; then |
| 9356 | ac_cv_type_uintptr_t=yes |
| 9357 | else |
| 9358 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9359 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9360 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9361 | ac_cv_type_uintptr_t=no |
| 9362 | fi |
| 9363 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9364 | fi |
| 9365 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 9366 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| 9367 | |
| 9368 | echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 9369 | echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6 |
| 9370 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
| 9371 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9372 | else |
| 9373 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 9374 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 9375 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9376 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9377 | # This bug is HP SR number 8606223364. |
| 9378 | if test "$cross_compiling" = yes; then |
| 9379 | # Depending upon the size, compute the lo and hi bounds. |
| 9380 | cat >conftest.$ac_ext <<_ACEOF |
| 9381 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9382 | /* confdefs.h. */ |
| 9383 | _ACEOF |
| 9384 | cat confdefs.h >>conftest.$ac_ext |
| 9385 | cat >>conftest.$ac_ext <<_ACEOF |
| 9386 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9387 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9388 | int |
| 9389 | main () |
| 9390 | { |
| 9391 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)]; |
| 9392 | test_array [0] = 0 |
| 9393 | |
| 9394 | ; |
| 9395 | return 0; |
| 9396 | } |
| 9397 | _ACEOF |
| 9398 | rm -f conftest.$ac_objext |
| 9399 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9400 | (eval $ac_compile) 2>&5 |
| 9401 | ac_status=$? |
| 9402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9403 | (exit $ac_status); } && |
| 9404 | { ac_try='test -s conftest.$ac_objext' |
| 9405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9406 | (eval $ac_try) 2>&5 |
| 9407 | ac_status=$? |
| 9408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9409 | (exit $ac_status); }; }; then |
| 9410 | ac_lo=0 ac_mid=0 |
| 9411 | while :; do |
| 9412 | cat >conftest.$ac_ext <<_ACEOF |
| 9413 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9414 | /* confdefs.h. */ |
| 9415 | _ACEOF |
| 9416 | cat confdefs.h >>conftest.$ac_ext |
| 9417 | cat >>conftest.$ac_ext <<_ACEOF |
| 9418 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9419 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9420 | int |
| 9421 | main () |
| 9422 | { |
| 9423 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 9424 | test_array [0] = 0 |
| 9425 | |
| 9426 | ; |
| 9427 | return 0; |
| 9428 | } |
| 9429 | _ACEOF |
| 9430 | rm -f conftest.$ac_objext |
| 9431 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9432 | (eval $ac_compile) 2>&5 |
| 9433 | ac_status=$? |
| 9434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9435 | (exit $ac_status); } && |
| 9436 | { ac_try='test -s conftest.$ac_objext' |
| 9437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9438 | (eval $ac_try) 2>&5 |
| 9439 | ac_status=$? |
| 9440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9441 | (exit $ac_status); }; }; then |
| 9442 | ac_hi=$ac_mid; break |
| 9443 | else |
| 9444 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9445 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9446 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9447 | ac_lo=`expr $ac_mid + 1` |
| 9448 | if test $ac_lo -le $ac_mid; then |
| 9449 | ac_lo= ac_hi= |
| 9450 | break |
| 9451 | fi |
| 9452 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 9453 | fi |
| 9454 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9455 | done |
| 9456 | else |
| 9457 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9458 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9459 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9460 | cat >conftest.$ac_ext <<_ACEOF |
| 9461 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9462 | /* confdefs.h. */ |
| 9463 | _ACEOF |
| 9464 | cat confdefs.h >>conftest.$ac_ext |
| 9465 | cat >>conftest.$ac_ext <<_ACEOF |
| 9466 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9467 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9468 | int |
| 9469 | main () |
| 9470 | { |
| 9471 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)]; |
| 9472 | test_array [0] = 0 |
| 9473 | |
| 9474 | ; |
| 9475 | return 0; |
| 9476 | } |
| 9477 | _ACEOF |
| 9478 | rm -f conftest.$ac_objext |
| 9479 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9480 | (eval $ac_compile) 2>&5 |
| 9481 | ac_status=$? |
| 9482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9483 | (exit $ac_status); } && |
| 9484 | { ac_try='test -s conftest.$ac_objext' |
| 9485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9486 | (eval $ac_try) 2>&5 |
| 9487 | ac_status=$? |
| 9488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9489 | (exit $ac_status); }; }; then |
| 9490 | ac_hi=-1 ac_mid=-1 |
| 9491 | while :; do |
| 9492 | cat >conftest.$ac_ext <<_ACEOF |
| 9493 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9494 | /* confdefs.h. */ |
| 9495 | _ACEOF |
| 9496 | cat confdefs.h >>conftest.$ac_ext |
| 9497 | cat >>conftest.$ac_ext <<_ACEOF |
| 9498 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9499 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9500 | int |
| 9501 | main () |
| 9502 | { |
| 9503 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)]; |
| 9504 | test_array [0] = 0 |
| 9505 | |
| 9506 | ; |
| 9507 | return 0; |
| 9508 | } |
| 9509 | _ACEOF |
| 9510 | rm -f conftest.$ac_objext |
| 9511 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9512 | (eval $ac_compile) 2>&5 |
| 9513 | ac_status=$? |
| 9514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9515 | (exit $ac_status); } && |
| 9516 | { ac_try='test -s conftest.$ac_objext' |
| 9517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9518 | (eval $ac_try) 2>&5 |
| 9519 | ac_status=$? |
| 9520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9521 | (exit $ac_status); }; }; then |
| 9522 | ac_lo=$ac_mid; break |
| 9523 | else |
| 9524 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9525 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9526 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9527 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9528 | if test $ac_mid -le $ac_hi; then |
| 9529 | ac_lo= ac_hi= |
| 9530 | break |
| 9531 | fi |
| 9532 | ac_mid=`expr 2 '*' $ac_mid` |
| 9533 | fi |
| 9534 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9535 | done |
| 9536 | else |
| 9537 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9538 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9539 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9540 | ac_lo= ac_hi= |
| 9541 | fi |
| 9542 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9543 | fi |
| 9544 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9545 | # Binary search between lo and hi bounds. |
| 9546 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9547 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9548 | cat >conftest.$ac_ext <<_ACEOF |
| 9549 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9550 | /* confdefs.h. */ |
| 9551 | _ACEOF |
| 9552 | cat confdefs.h >>conftest.$ac_ext |
| 9553 | cat >>conftest.$ac_ext <<_ACEOF |
| 9554 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9555 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9556 | int |
| 9557 | main () |
| 9558 | { |
| 9559 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 9560 | test_array [0] = 0 |
| 9561 | |
| 9562 | ; |
| 9563 | return 0; |
| 9564 | } |
| 9565 | _ACEOF |
| 9566 | rm -f conftest.$ac_objext |
| 9567 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9568 | (eval $ac_compile) 2>&5 |
| 9569 | ac_status=$? |
| 9570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9571 | (exit $ac_status); } && |
| 9572 | { ac_try='test -s conftest.$ac_objext' |
| 9573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9574 | (eval $ac_try) 2>&5 |
| 9575 | ac_status=$? |
| 9576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9577 | (exit $ac_status); }; }; then |
| 9578 | ac_hi=$ac_mid |
| 9579 | else |
| 9580 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9581 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9582 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9583 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 9584 | fi |
| 9585 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9586 | done |
| 9587 | case $ac_lo in |
| 9588 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9589 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77 |
| 9590 | See \`config.log' for more details." >&5 |
| 9591 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77 |
| 9592 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9593 | { (exit 1); exit 1; }; } ;; |
| 9594 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9595 | else |
| 9596 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9597 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 9598 | See \`config.log' for more details." >&5 |
| 9599 | echo "$as_me: error: cannot run test program while cross compiling |
| 9600 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9601 | { (exit 1); exit 1; }; } |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9602 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9603 | cat >conftest.$ac_ext <<_ACEOF |
| 9604 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9605 | /* confdefs.h. */ |
| 9606 | _ACEOF |
| 9607 | cat confdefs.h >>conftest.$ac_ext |
| 9608 | cat >>conftest.$ac_ext <<_ACEOF |
| 9609 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9610 | $ac_includes_default |
| 9611 | long longval () { return (long) (sizeof (uintptr_t)); } |
| 9612 | unsigned long ulongval () { return (long) (sizeof (uintptr_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9613 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9614 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9615 | int |
| 9616 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9617 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9618 | |
| 9619 | FILE *f = fopen ("conftest.val", "w"); |
| 9620 | if (! f) |
| 9621 | exit (1); |
| 9622 | if (((long) (sizeof (uintptr_t))) < 0) |
| 9623 | { |
| 9624 | long i = longval (); |
| 9625 | if (i != ((long) (sizeof (uintptr_t)))) |
| 9626 | exit (1); |
| 9627 | fprintf (f, "%ld\n", i); |
| 9628 | } |
| 9629 | else |
| 9630 | { |
| 9631 | unsigned long i = ulongval (); |
| 9632 | if (i != ((long) (sizeof (uintptr_t)))) |
| 9633 | exit (1); |
| 9634 | fprintf (f, "%lu\n", i); |
| 9635 | } |
| 9636 | exit (ferror (f) || fclose (f) != 0); |
| 9637 | |
| 9638 | ; |
| 9639 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9640 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9641 | _ACEOF |
| 9642 | rm -f conftest$ac_exeext |
| 9643 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9644 | (eval $ac_link) 2>&5 |
| 9645 | ac_status=$? |
| 9646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9647 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9649 | (eval $ac_try) 2>&5 |
| 9650 | ac_status=$? |
| 9651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9652 | (exit $ac_status); }; }; then |
| 9653 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9654 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9655 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9656 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9657 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9658 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9659 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9660 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77 |
| 9661 | See \`config.log' for more details." >&5 |
| 9662 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77 |
| 9663 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9664 | { (exit 1); exit 1; }; } |
| 9665 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9666 | 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] | 9667 | fi |
| 9668 | fi |
| 9669 | rm -f conftest.val |
| 9670 | else |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9671 | ac_cv_sizeof_uintptr_t=0 |
| 9672 | fi |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9673 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9674 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 9675 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6 |
| 9676 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9677 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9678 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9679 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9680 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9681 | fi |
| 9682 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9683 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9684 | echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 9685 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6 |
| 9686 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 9687 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9688 | else |
| 9689 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 9690 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9691 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9692 | cat >conftest.$ac_ext <<_ACEOF |
| 9693 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9694 | /* confdefs.h. */ |
| 9695 | _ACEOF |
| 9696 | cat confdefs.h >>conftest.$ac_ext |
| 9697 | cat >>conftest.$ac_ext <<_ACEOF |
| 9698 | /* end confdefs.h. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9699 | #include <stdio.h> |
| 9700 | #include <sys/types.h> |
| 9701 | main() |
| 9702 | { |
| 9703 | FILE *f=fopen("conftestval", "w"); |
| 9704 | if (!f) exit(1); |
| 9705 | fprintf(f, "%d\n", sizeof(off_t)); |
| 9706 | exit(0); |
| 9707 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9708 | _ACEOF |
| 9709 | rm -f conftest$ac_exeext |
| 9710 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9711 | (eval $ac_link) 2>&5 |
| 9712 | ac_status=$? |
| 9713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9714 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9716 | (eval $ac_try) 2>&5 |
| 9717 | ac_status=$? |
| 9718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9719 | (exit $ac_status); }; }; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9720 | ac_cv_sizeof_off_t=`cat conftestval` |
| 9721 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9722 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9723 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9724 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9725 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9726 | ( exit $ac_status ) |
| 9727 | ac_cv_sizeof_off_t=0 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9728 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9729 | 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] | 9730 | fi |
| 9731 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9732 | fi |
| 9733 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9734 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 9735 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6 |
| 9736 | |
| 9737 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9738 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9739 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9740 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9741 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9742 | echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 9743 | 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] | 9744 | if test "$have_long_long" = yes -a \ |
| 9745 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 9746 | "$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] | 9747 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9748 | cat >>confdefs.h <<\_ACEOF |
| 9749 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 9750 | _ACEOF |
| 9751 | |
| 9752 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9753 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9754 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9755 | echo "$as_me:$LINENO: result: no" >&5 |
| 9756 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9757 | fi |
| 9758 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9759 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9760 | echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 9761 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6 |
| 9762 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 9763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9764 | else |
| 9765 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 9766 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9767 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9768 | cat >conftest.$ac_ext <<_ACEOF |
| 9769 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9770 | /* confdefs.h. */ |
| 9771 | _ACEOF |
| 9772 | cat confdefs.h >>conftest.$ac_ext |
| 9773 | cat >>conftest.$ac_ext <<_ACEOF |
| 9774 | /* end confdefs.h. */ |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9775 | #include <stdio.h> |
| 9776 | #include <time.h> |
| 9777 | main() |
| 9778 | { |
| 9779 | FILE *f=fopen("conftestval", "w"); |
| 9780 | if (!f) exit(1); |
| 9781 | fprintf(f, "%d\n", sizeof(time_t)); |
| 9782 | exit(0); |
| 9783 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9784 | _ACEOF |
| 9785 | rm -f conftest$ac_exeext |
| 9786 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9787 | (eval $ac_link) 2>&5 |
| 9788 | ac_status=$? |
| 9789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9790 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9792 | (eval $ac_try) 2>&5 |
| 9793 | ac_status=$? |
| 9794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9795 | (exit $ac_status); }; }; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9796 | ac_cv_sizeof_time_t=`cat conftestval` |
| 9797 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9798 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9799 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9800 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9801 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9802 | ( exit $ac_status ) |
| 9803 | ac_cv_sizeof_time_t=0 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9804 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9805 | 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] | 9806 | fi |
| 9807 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9808 | fi |
| 9809 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9810 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 9811 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6 |
| 9812 | |
| 9813 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9814 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9815 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9816 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9817 | |
| 9818 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9819 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9820 | ac_save_cc="$CC" |
| 9821 | if test "$ac_cv_kpthread" = "yes" |
| 9822 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 9823 | elif test "$ac_cv_kthread" = "yes" |
| 9824 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9825 | elif test "$ac_cv_pthread" = "yes" |
| 9826 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9827 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9828 | echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 9829 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9830 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9831 | cat >conftest.$ac_ext <<_ACEOF |
| 9832 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9833 | /* confdefs.h. */ |
| 9834 | _ACEOF |
| 9835 | cat confdefs.h >>conftest.$ac_ext |
| 9836 | cat >>conftest.$ac_ext <<_ACEOF |
| 9837 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9838 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9839 | int |
| 9840 | main () |
| 9841 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 9842 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9843 | ; |
| 9844 | return 0; |
| 9845 | } |
| 9846 | _ACEOF |
| 9847 | rm -f conftest.$ac_objext |
| 9848 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9849 | (eval $ac_compile) 2>&5 |
| 9850 | ac_status=$? |
| 9851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9852 | (exit $ac_status); } && |
| 9853 | { ac_try='test -s conftest.$ac_objext' |
| 9854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9855 | (eval $ac_try) 2>&5 |
| 9856 | ac_status=$? |
| 9857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9858 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9859 | have_pthread_t=yes |
| 9860 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9861 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9862 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9863 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9864 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9865 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9866 | echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 9867 | echo "${ECHO_T}$have_pthread_t" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9868 | if test "$have_pthread_t" = yes ; then |
| 9869 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9870 | echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 9871 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6 |
| 9872 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 9873 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9874 | else |
| 9875 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 9876 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9877 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9878 | cat >conftest.$ac_ext <<_ACEOF |
| 9879 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9880 | /* confdefs.h. */ |
| 9881 | _ACEOF |
| 9882 | cat confdefs.h >>conftest.$ac_ext |
| 9883 | cat >>conftest.$ac_ext <<_ACEOF |
| 9884 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9885 | #include <stdio.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 9886 | #include <pthread.h> |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9887 | main() |
| 9888 | { |
| 9889 | FILE *f=fopen("conftestval", "w"); |
| 9890 | if (!f) exit(1); |
| 9891 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 9892 | exit(0); |
| 9893 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9894 | _ACEOF |
| 9895 | rm -f conftest$ac_exeext |
| 9896 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9897 | (eval $ac_link) 2>&5 |
| 9898 | ac_status=$? |
| 9899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9900 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9902 | (eval $ac_try) 2>&5 |
| 9903 | ac_status=$? |
| 9904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9905 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9906 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 9907 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9908 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9909 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9910 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9911 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9912 | ( exit $ac_status ) |
| 9913 | ac_cv_sizeof_pthread_t=0 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9914 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9915 | 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] | 9916 | fi |
| 9917 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9918 | fi |
| 9919 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9920 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
| 9921 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6 |
| 9922 | |
| 9923 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9924 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9925 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9926 | |
| 9927 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9928 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9929 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9930 | echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 9931 | echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9932 | # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given. |
| 9933 | if test "${enable_toolbox_glue+set}" = set; then |
| 9934 | enableval="$enable_toolbox_glue" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9935 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9936 | fi; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9937 | |
| 9938 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9939 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9940 | case $ac_sys_system/$ac_sys_release in |
| 9941 | Darwin/*) |
| 9942 | enable_toolbox_glue="yes";; |
| 9943 | *) |
| 9944 | enable_toolbox_glue="no";; |
| 9945 | esac |
| 9946 | fi |
| 9947 | case "$enable_toolbox_glue" in |
| 9948 | yes) |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 9949 | extra_frameworks="-framework CoreServices -framework Foundation" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9950 | extra_machdep_objs="Python/mactoolboxglue.o" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 9951 | extra_undefs="-u __dummy -u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9952 | |
| 9953 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9954 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9955 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9956 | |
| 9957 | ;; |
| 9958 | *) |
| 9959 | extra_frameworks="" |
| 9960 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 9961 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9962 | ;; |
| 9963 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9964 | echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 9965 | echo "${ECHO_T}$enable_toolbox_glue" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9966 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9967 | |
| 9968 | case $ac_sys_system/$ac_sys_release in |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9969 | Darwin/1.3*) |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9970 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc" |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9971 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | 66b8483 | 2003-07-04 12:14:39 +0000 | [diff] [blame] | 9972 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/Python' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9973 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 9974 | Darwin/*) |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9975 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc" |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9976 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | 66b8483 | 2003-07-04 12:14:39 +0000 | [diff] [blame] | 9977 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/Python' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9978 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9979 | esac |
| 9980 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9981 | echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 9982 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9983 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9984 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9985 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9986 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9987 | # in the build location. |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9988 | LDFLAGS="$LDFLAGS -Wl,-F." |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9989 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9990 | cat >>confdefs.h <<\_ACEOF |
| 9991 | #define WITH_NEXT_FRAMEWORK 1 |
| 9992 | _ACEOF |
| 9993 | |
| 9994 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9995 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9996 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9997 | echo "$as_me:$LINENO: result: no" >&5 |
| 9998 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9999 | fi |
| 10000 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10001 | echo "$as_me:$LINENO: checking for dyld" >&5 |
| 10002 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10003 | case $ac_sys_system/$ac_sys_release in |
| 10004 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10005 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10006 | cat >>confdefs.h <<\_ACEOF |
| 10007 | #define WITH_DYLD 1 |
| 10008 | _ACEOF |
| 10009 | |
| 10010 | echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 10011 | echo "${ECHO_T}always on for Darwin" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10012 | ;; |
| 10013 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10014 | echo "$as_me:$LINENO: result: no" >&5 |
| 10015 | echo "${ECHO_T}no" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10016 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10017 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10018 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10019 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10020 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10021 | |
| 10022 | |
| 10023 | |
| 10024 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10025 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 10026 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10027 | echo "$as_me:$LINENO: checking SO" >&5 |
| 10028 | echo $ECHO_N "checking SO... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10029 | if test -z "$SO" |
| 10030 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10031 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 10032 | hp*|HP*) SO=.sl;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 10033 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 10034 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10035 | esac |
Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 10036 | else |
| 10037 | # this might also be a termcap variable, see #610332 |
| 10038 | echo |
| 10039 | echo '=====================================================================' |
| 10040 | echo '+ +' |
| 10041 | echo '+ WARNING: You have set SO in your environment. +' |
| 10042 | echo '+ Do you really mean to change the extension for shared libraries? +' |
| 10043 | echo '+ Continuing in 10 seconds to let you to ponder. +' |
| 10044 | echo '+ +' |
| 10045 | echo '=====================================================================' |
| 10046 | sleep 10 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10047 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10048 | echo "$as_me:$LINENO: result: $SO" >&5 |
| 10049 | echo "${ECHO_T}$SO" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10050 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 5b718fc | 2001-09-10 15:34:42 +0000 | [diff] [blame] | 10051 | # -- "ld" on SunOS 4.x.x, "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10052 | # (Shared libraries in this instance are shared modules to be loaded into |
| 10053 | # 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] | 10054 | echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 10055 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10056 | if test -z "$LDSHARED" |
| 10057 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10058 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10059 | AIX*) |
| 10060 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 10061 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10062 | ;; |
| 10063 | BeOS*) |
| 10064 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 10065 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10066 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 10067 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 10068 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10069 | SunOS/4*) LDSHARED="ld";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10070 | SunOS/5*) |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 10071 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 10072 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 10073 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 10074 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10075 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 10076 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
| 10077 | DYNIX/ptx*) LDSHARED="ld -G";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 10078 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10079 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 10080 | if test "$enable_framework" ; then |
| 10081 | # Link against the framework. All externals should be defined. |
| 10082 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 10083 | else |
| 10084 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 10085 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10086 | fi ;; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10087 | Darwin/*) |
| 10088 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 10089 | if test "$enable_framework" ; then |
| 10090 | # Link against the framework. All externals should be defined. |
| 10091 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 10092 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 10093 | # No framework, use the Python app as bundle-loader |
| 10094 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 10095 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10096 | fi ;; |
Martin v. Löwis | 3cba5c0 | 2002-09-16 17:50:59 +0000 | [diff] [blame] | 10097 | Linux*|GNU*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 10098 | dgux*) LDSHARED="ld -G";; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 10099 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 10100 | OpenBSD*|FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 10101 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 10102 | then |
| 10103 | LDSHARED="cc -shared ${LDFLAGS}" |
| 10104 | else |
| 10105 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 10106 | fi;; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 10107 | NetBSD*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 10108 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10109 | if test "$GCC" = "yes" |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 10110 | then LDSHARED='$(CC) -shared' |
| 10111 | else LDSHARED='$(CC) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10112 | fi;; |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 10113 | SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10114 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 10115 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10116 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10117 | *) LDSHARED="ld";; |
| 10118 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10119 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10120 | echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 10121 | echo "${ECHO_T}$LDSHARED" >&6 |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10122 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10123 | # 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] | 10124 | # library (module) -- this is only needed for a few systems |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10125 | echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 10126 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10127 | if test -z "$CCSHARED" |
| 10128 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 10129 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 10130 | SunOS*) if test "$GCC" = yes; |
| 10131 | then CCSHARED="-fPIC"; |
| 10132 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 10133 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 10134 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 10135 | else CCSHARED="+z"; |
| 10136 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10137 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 10138 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 10139 | FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 10140 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10141 | if test "$GCC" = "yes" |
| 10142 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10143 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10144 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 10145 | SCO_SV*) |
| 10146 | if test "$GCC" = "yes" |
| 10147 | then CCSHARED="-fPIC" |
| 10148 | else CCSHARED="-Kpic -belf" |
| 10149 | fi;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10150 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10151 | IRIX*/6*) case $CC in |
| 10152 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 10153 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10154 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10155 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10156 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10157 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10158 | echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 10159 | echo "${ECHO_T}$CCSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10160 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10161 | # 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] | 10162 | echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 10163 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10164 | if test -z "$LINKFORSHARED" |
| 10165 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 10166 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10167 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 10168 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10169 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 10170 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 10171 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10172 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10173 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10174 | Darwin/*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10175 | # -u __dummy makes the linker aware of the objc runtime |
| 10176 | # in System.framework; otherwise, __objcInit (referenced in |
| 10177 | # crt1.o) gets erroneously defined as common, which breaks dynamic |
| 10178 | # loading of any modules which reference it in System.framework. |
| 10179 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, which is |
| 10180 | # not used by the core itself but which needs to be in the core so |
| 10181 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 10182 | # -prebind is no longer used, because it actually seems to give a |
| 10183 | # slowdown in stead of a speedup, maybe due to the large number of |
| 10184 | # dynamic loads Python does. |
| 10185 | LINKFORSHARED="$extra_undefs -framework System" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10186 | if test "$enable_framework" |
| 10187 | then |
| 10188 | LINKFORSHARED="$LINKFORSHARED -framework Python" |
| 10189 | fi |
| 10190 | LINKFORSHARED="$LINKFORSHARED $extra_frameworks";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 10191 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 10192 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 10193 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10194 | FreeBSD*|NetBSD*|OpenBSD*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 10195 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 10196 | then |
| 10197 | LINKFORSHARED="-Wl,--export-dynamic" |
| 10198 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10199 | SunOS/5*) case $CC in |
| 10200 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 10201 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 10202 | then |
| 10203 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10204 | fi;; |
| 10205 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 10206 | CYGWIN*) |
| 10207 | if test $enable_shared = "no" |
| 10208 | then |
| 10209 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 10210 | fi;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10211 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10212 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10213 | echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 10214 | echo "${ECHO_T}$LINKFORSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10215 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10216 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10217 | echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 10218 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 10219 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 10220 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 10221 | case $ac_sys_system in |
| 10222 | CYGWIN*) |
| 10223 | # Cygwin needs CCSHARED when building extension DLLs |
| 10224 | # but not when building the interpreter DLL. |
| 10225 | CFLAGSFORSHARED='';; |
| 10226 | *) |
| 10227 | CFLAGSFORSHARED='$(CCSHARED)' |
| 10228 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 10229 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10230 | echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 10231 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 10232 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10233 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 10234 | # library (with --enable-shared). |
| 10235 | # 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] | 10236 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 10237 | # if it is not required, since it creates a dependency of the shared library |
| 10238 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 10239 | # don't need to link LIBS explicitly. The default should be only changed |
| 10240 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10241 | |
| 10242 | echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 10243 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6 |
| 10244 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10245 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 10246 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10247 | esac |
| 10248 | echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 10249 | echo "${ECHO_T}$SHLIBS" >&6 |
| 10250 | |
| 10251 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10252 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10253 | |
| 10254 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 10255 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 10256 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 10257 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10258 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10259 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10260 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10261 | cat >conftest.$ac_ext <<_ACEOF |
| 10262 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10263 | /* confdefs.h. */ |
| 10264 | _ACEOF |
| 10265 | cat confdefs.h >>conftest.$ac_ext |
| 10266 | cat >>conftest.$ac_ext <<_ACEOF |
| 10267 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10268 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10269 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10270 | #ifdef __cplusplus |
| 10271 | extern "C" |
| 10272 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10273 | /* 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] | 10274 | builtin and then its argument prototype would still apply. */ |
| 10275 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10276 | int |
| 10277 | main () |
| 10278 | { |
| 10279 | dlopen (); |
| 10280 | ; |
| 10281 | return 0; |
| 10282 | } |
| 10283 | _ACEOF |
| 10284 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10285 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10286 | (eval $ac_link) 2>&5 |
| 10287 | ac_status=$? |
| 10288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10289 | (exit $ac_status); } && |
| 10290 | { ac_try='test -s conftest$ac_exeext' |
| 10291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10292 | (eval $ac_try) 2>&5 |
| 10293 | ac_status=$? |
| 10294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10295 | (exit $ac_status); }; }; then |
| 10296 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10297 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10298 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10299 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10300 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10301 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10302 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10303 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10304 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10305 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10306 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10307 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 10308 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 10309 | cat >>confdefs.h <<_ACEOF |
| 10310 | #define HAVE_LIBDL 1 |
| 10311 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10312 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10313 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10314 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10315 | fi |
| 10316 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10317 | |
| 10318 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 10319 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 10320 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 10321 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10322 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10323 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10324 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10325 | cat >conftest.$ac_ext <<_ACEOF |
| 10326 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10327 | /* confdefs.h. */ |
| 10328 | _ACEOF |
| 10329 | cat confdefs.h >>conftest.$ac_ext |
| 10330 | cat >>conftest.$ac_ext <<_ACEOF |
| 10331 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10332 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10333 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10334 | #ifdef __cplusplus |
| 10335 | extern "C" |
| 10336 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10337 | /* 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] | 10338 | builtin and then its argument prototype would still apply. */ |
| 10339 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10340 | int |
| 10341 | main () |
| 10342 | { |
| 10343 | shl_load (); |
| 10344 | ; |
| 10345 | return 0; |
| 10346 | } |
| 10347 | _ACEOF |
| 10348 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10349 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10350 | (eval $ac_link) 2>&5 |
| 10351 | ac_status=$? |
| 10352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10353 | (exit $ac_status); } && |
| 10354 | { ac_try='test -s conftest$ac_exeext' |
| 10355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10356 | (eval $ac_try) 2>&5 |
| 10357 | ac_status=$? |
| 10358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10359 | (exit $ac_status); }; }; then |
| 10360 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10361 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10362 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10363 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10364 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10365 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10366 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10367 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10368 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10369 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10370 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 10371 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 10372 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 10373 | cat >>confdefs.h <<_ACEOF |
| 10374 | #define HAVE_LIBDLD 1 |
| 10375 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10376 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10377 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10378 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10379 | fi |
| 10380 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10381 | |
| 10382 | # only check for sem_ini if thread support is requested |
| 10383 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
| 10384 | 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] | 10385 | echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6 |
| 10386 | if test "${ac_cv_search_sem_init+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10388 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10389 | ac_func_search_save_LIBS=$LIBS |
| 10390 | ac_cv_search_sem_init=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10391 | cat >conftest.$ac_ext <<_ACEOF |
| 10392 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10393 | /* confdefs.h. */ |
| 10394 | _ACEOF |
| 10395 | cat confdefs.h >>conftest.$ac_ext |
| 10396 | cat >>conftest.$ac_ext <<_ACEOF |
| 10397 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10398 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10399 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10400 | #ifdef __cplusplus |
| 10401 | extern "C" |
| 10402 | #endif |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10403 | /* 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] | 10404 | builtin and then its argument prototype would still apply. */ |
| 10405 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10406 | int |
| 10407 | main () |
| 10408 | { |
| 10409 | sem_init (); |
| 10410 | ; |
| 10411 | return 0; |
| 10412 | } |
| 10413 | _ACEOF |
| 10414 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10415 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10416 | (eval $ac_link) 2>&5 |
| 10417 | ac_status=$? |
| 10418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10419 | (exit $ac_status); } && |
| 10420 | { ac_try='test -s conftest$ac_exeext' |
| 10421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10422 | (eval $ac_try) 2>&5 |
| 10423 | ac_status=$? |
| 10424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10425 | (exit $ac_status); }; }; then |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10426 | ac_cv_search_sem_init="none required" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10427 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10428 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10429 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10430 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10431 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10432 | 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] | 10433 | if test "$ac_cv_search_sem_init" = no; then |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 10434 | for ac_lib in pthread rt posix4; do |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10435 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 10436 | cat >conftest.$ac_ext <<_ACEOF |
| 10437 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10438 | /* confdefs.h. */ |
| 10439 | _ACEOF |
| 10440 | cat confdefs.h >>conftest.$ac_ext |
| 10441 | cat >>conftest.$ac_ext <<_ACEOF |
| 10442 | /* end confdefs.h. */ |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10443 | |
| 10444 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10445 | #ifdef __cplusplus |
| 10446 | extern "C" |
| 10447 | #endif |
| 10448 | /* We use char because int might match the return type of a gcc2 |
| 10449 | builtin and then its argument prototype would still apply. */ |
| 10450 | char sem_init (); |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10451 | int |
| 10452 | main () |
| 10453 | { |
| 10454 | sem_init (); |
| 10455 | ; |
| 10456 | return 0; |
| 10457 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10458 | _ACEOF |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10459 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10460 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10461 | (eval $ac_link) 2>&5 |
| 10462 | ac_status=$? |
| 10463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10464 | (exit $ac_status); } && |
| 10465 | { ac_try='test -s conftest$ac_exeext' |
| 10466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10467 | (eval $ac_try) 2>&5 |
| 10468 | ac_status=$? |
| 10469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10470 | (exit $ac_status); }; }; then |
| 10471 | ac_cv_search_sem_init="-l$ac_lib" |
| 10472 | break |
| 10473 | else |
| 10474 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10475 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10476 | |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10477 | fi |
| 10478 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10479 | done |
| 10480 | fi |
| 10481 | LIBS=$ac_func_search_save_LIBS |
| 10482 | fi |
| 10483 | echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 10484 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6 |
| 10485 | if test "$ac_cv_search_sem_init" != no; then |
| 10486 | 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] | 10487 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10488 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 10489 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10490 | # posix4 on Solaris 2.6 |
| 10491 | # pthread (first!) on Linux |
| 10492 | fi |
| 10493 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10494 | # check if we need libintl for locale functions |
| 10495 | echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5 |
| 10496 | echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6 |
| 10497 | if test "${ac_cv_lib_intl_textdomain+set}" = set; then |
| 10498 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10499 | else |
| 10500 | ac_check_lib_save_LIBS=$LIBS |
| 10501 | LIBS="-lintl $LIBS" |
| 10502 | cat >conftest.$ac_ext <<_ACEOF |
| 10503 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10504 | /* confdefs.h. */ |
| 10505 | _ACEOF |
| 10506 | cat confdefs.h >>conftest.$ac_ext |
| 10507 | cat >>conftest.$ac_ext <<_ACEOF |
| 10508 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10509 | |
| 10510 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10511 | #ifdef __cplusplus |
| 10512 | extern "C" |
| 10513 | #endif |
| 10514 | /* We use char because int might match the return type of a gcc2 |
| 10515 | builtin and then its argument prototype would still apply. */ |
| 10516 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10517 | int |
| 10518 | main () |
| 10519 | { |
| 10520 | textdomain (); |
| 10521 | ; |
| 10522 | return 0; |
| 10523 | } |
| 10524 | _ACEOF |
| 10525 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10526 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10527 | (eval $ac_link) 2>&5 |
| 10528 | ac_status=$? |
| 10529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10530 | (exit $ac_status); } && |
| 10531 | { ac_try='test -s conftest$ac_exeext' |
| 10532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10533 | (eval $ac_try) 2>&5 |
| 10534 | ac_status=$? |
| 10535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10536 | (exit $ac_status); }; }; then |
| 10537 | ac_cv_lib_intl_textdomain=yes |
| 10538 | else |
| 10539 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10540 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10541 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10542 | ac_cv_lib_intl_textdomain=no |
| 10543 | fi |
| 10544 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10545 | LIBS=$ac_check_lib_save_LIBS |
| 10546 | fi |
| 10547 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5 |
| 10548 | echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6 |
| 10549 | if test $ac_cv_lib_intl_textdomain = yes; then |
| 10550 | |
| 10551 | cat >>confdefs.h <<\_ACEOF |
| 10552 | #define WITH_LIBINTL 1 |
| 10553 | _ACEOF |
| 10554 | |
| 10555 | fi |
| 10556 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10557 | |
| 10558 | # checks for system dependent C++ extensions support |
| 10559 | case "$ac_sys_system" in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10560 | AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 10561 | echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6 |
| 10562 | cat >conftest.$ac_ext <<_ACEOF |
| 10563 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10564 | /* confdefs.h. */ |
| 10565 | _ACEOF |
| 10566 | cat confdefs.h >>conftest.$ac_ext |
| 10567 | cat >>conftest.$ac_ext <<_ACEOF |
| 10568 | /* end confdefs.h. */ |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10569 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10570 | int |
| 10571 | main () |
| 10572 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10573 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10574 | ; |
| 10575 | return 0; |
| 10576 | } |
| 10577 | _ACEOF |
| 10578 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10579 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10580 | (eval $ac_link) 2>&5 |
| 10581 | ac_status=$? |
| 10582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10583 | (exit $ac_status); } && |
| 10584 | { ac_try='test -s conftest$ac_exeext' |
| 10585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10586 | (eval $ac_try) 2>&5 |
| 10587 | ac_status=$? |
| 10588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10589 | (exit $ac_status); }; }; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10590 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10591 | cat >>confdefs.h <<\_ACEOF |
| 10592 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 10593 | _ACEOF |
| 10594 | |
| 10595 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10596 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10597 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10598 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10599 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10600 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10601 | echo "$as_me:$LINENO: result: no" >&5 |
| 10602 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10603 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10604 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10605 | *) ;; |
| 10606 | esac |
| 10607 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 10608 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Martin v. Löwis | e117258 | 2002-11-13 08:51:19 +0000 | [diff] [blame] | 10609 | # However on SGI IRIX 4, these exist but are broken. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10610 | # BeOS' sockets are stashed in libnet. |
| 10611 | case "$ac_sys_system" in |
| 10612 | IRIX*) ;; |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10613 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10614 | echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 10615 | echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6 |
| 10616 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
| 10617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10618 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10619 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10620 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10621 | cat >conftest.$ac_ext <<_ACEOF |
| 10622 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10623 | /* confdefs.h. */ |
| 10624 | _ACEOF |
| 10625 | cat confdefs.h >>conftest.$ac_ext |
| 10626 | cat >>conftest.$ac_ext <<_ACEOF |
| 10627 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10628 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10629 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10630 | #ifdef __cplusplus |
| 10631 | extern "C" |
| 10632 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10633 | /* 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] | 10634 | builtin and then its argument prototype would still apply. */ |
| 10635 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10636 | int |
| 10637 | main () |
| 10638 | { |
| 10639 | t_open (); |
| 10640 | ; |
| 10641 | return 0; |
| 10642 | } |
| 10643 | _ACEOF |
| 10644 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10645 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10646 | (eval $ac_link) 2>&5 |
| 10647 | ac_status=$? |
| 10648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10649 | (exit $ac_status); } && |
| 10650 | { ac_try='test -s conftest$ac_exeext' |
| 10651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10652 | (eval $ac_try) 2>&5 |
| 10653 | ac_status=$? |
| 10654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10655 | (exit $ac_status); }; }; then |
| 10656 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10657 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10658 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10659 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10660 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10661 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10662 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10663 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10664 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10665 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10666 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 10667 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6 |
| 10668 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10669 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10670 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 10671 | # SVR4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10672 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 10673 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 10674 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 10675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10676 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10677 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10678 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10679 | cat >conftest.$ac_ext <<_ACEOF |
| 10680 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10681 | /* confdefs.h. */ |
| 10682 | _ACEOF |
| 10683 | cat confdefs.h >>conftest.$ac_ext |
| 10684 | cat >>conftest.$ac_ext <<_ACEOF |
| 10685 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10686 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10687 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10688 | #ifdef __cplusplus |
| 10689 | extern "C" |
| 10690 | #endif |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10691 | /* 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] | 10692 | builtin and then its argument prototype would still apply. */ |
| 10693 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10694 | int |
| 10695 | main () |
| 10696 | { |
| 10697 | socket (); |
| 10698 | ; |
| 10699 | return 0; |
| 10700 | } |
| 10701 | _ACEOF |
| 10702 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10703 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10704 | (eval $ac_link) 2>&5 |
| 10705 | ac_status=$? |
| 10706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10707 | (exit $ac_status); } && |
| 10708 | { ac_try='test -s conftest$ac_exeext' |
| 10709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10710 | (eval $ac_try) 2>&5 |
| 10711 | ac_status=$? |
| 10712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10713 | (exit $ac_status); }; }; then |
| 10714 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10715 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10716 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10717 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10718 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10719 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10720 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10721 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10722 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10723 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10724 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 10725 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 10726 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10727 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10728 | fi |
| 10729 | # SVR4 sockets |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 10730 | ;; |
| 10731 | esac |
| 10732 | case "$ac_sys_system" in |
| 10733 | BeOS*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10734 | echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 10735 | echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6 |
| 10736 | if test "${ac_cv_lib_net_socket+set}" = set; then |
| 10737 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10738 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10739 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10740 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10741 | cat >conftest.$ac_ext <<_ACEOF |
| 10742 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10743 | /* confdefs.h. */ |
| 10744 | _ACEOF |
| 10745 | cat confdefs.h >>conftest.$ac_ext |
| 10746 | cat >>conftest.$ac_ext <<_ACEOF |
| 10747 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10748 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10749 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10750 | #ifdef __cplusplus |
| 10751 | extern "C" |
| 10752 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10753 | /* 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] | 10754 | builtin and then its argument prototype would still apply. */ |
| 10755 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10756 | int |
| 10757 | main () |
| 10758 | { |
| 10759 | socket (); |
| 10760 | ; |
| 10761 | return 0; |
| 10762 | } |
| 10763 | _ACEOF |
| 10764 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10765 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10766 | (eval $ac_link) 2>&5 |
| 10767 | ac_status=$? |
| 10768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10769 | (exit $ac_status); } && |
| 10770 | { ac_try='test -s conftest$ac_exeext' |
| 10771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10772 | (eval $ac_try) 2>&5 |
| 10773 | ac_status=$? |
| 10774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10775 | (exit $ac_status); }; }; then |
| 10776 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10777 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10778 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10779 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10780 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10781 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10782 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10783 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10784 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10785 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10786 | echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 10787 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6 |
| 10788 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10789 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10790 | fi |
| 10791 | # BeOS |
| 10792 | ;; |
| 10793 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 10794 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10795 | echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 10796 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6 |
| 10797 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 10798 | # Check whether --with-libs or --without-libs was given. |
| 10799 | if test "${with_libs+set}" = set; then |
| 10800 | withval="$with_libs" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10801 | |
| 10802 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 10803 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 10804 | LIBS="$withval $LIBS" |
| 10805 | |
| 10806 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10807 | echo "$as_me:$LINENO: result: no" >&5 |
| 10808 | echo "${ECHO_T}no" >&6 |
| 10809 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10810 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10811 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10812 | |
| 10813 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10814 | echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 10815 | echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6 |
| 10816 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10817 | # Check whether --with-signal-module or --without-signal-module was given. |
| 10818 | if test "${with_signal_module+set}" = set; then |
| 10819 | withval="$with_signal_module" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10820 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10821 | fi; |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10822 | |
| 10823 | if test -z "$with_signal_module" |
| 10824 | then with_signal_module="yes" |
| 10825 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10826 | echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 10827 | echo "${ECHO_T}$with_signal_module" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10828 | |
| 10829 | if test "${with_signal_module}" = "yes"; then |
| 10830 | USE_SIGNAL_MODULE="" |
| 10831 | SIGNAL_OBJS="" |
| 10832 | else |
| 10833 | USE_SIGNAL_MODULE="#" |
| 10834 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 10835 | fi |
| 10836 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 10837 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 10838 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10839 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 10840 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10841 | echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 10842 | echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6 |
| 10843 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10844 | |
| 10845 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 10846 | if test "${with_dec_threads+set}" = set; then |
| 10847 | withval="$with_dec_threads" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10848 | |
| 10849 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 10850 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10851 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 10852 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10853 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 10854 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10855 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10856 | echo "$as_me:$LINENO: result: no" >&5 |
| 10857 | echo "${ECHO_T}no" >&6 |
| 10858 | fi; |
| 10859 | |
| 10860 | # Templates for things AC_DEFINEd more than once. |
| 10861 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10862 | |
| 10863 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10864 | |
| 10865 | |
| 10866 | |
| 10867 | |
| 10868 | |
| 10869 | echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 10870 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6 |
| 10871 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10872 | # Check whether --with-threads or --without-threads was given. |
| 10873 | if test "${with_threads+set}" = set; then |
| 10874 | withval="$with_threads" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10875 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10876 | fi; |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10877 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10878 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10879 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10880 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10881 | if test "${with_thread+set}" = set; then |
| 10882 | withval="$with_thread" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10883 | with_threads=$with_thread |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10884 | fi; |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10885 | |
| 10886 | if test -z "$with_threads" |
| 10887 | then with_threads="yes" |
| 10888 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10889 | echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 10890 | echo "${ECHO_T}$with_threads" >&6 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10891 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10892 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10893 | if test "$with_threads" = "no" |
| 10894 | then |
| 10895 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10896 | elif test "$ac_cv_pthread_is_default" = yes |
| 10897 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10898 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10899 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10900 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10901 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10902 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10903 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10904 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10905 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10906 | |
| 10907 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10908 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10909 | elif test "$ac_cv_kpthread" = "yes" |
| 10910 | then |
| 10911 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10912 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 10913 | CXX="$CXX -Kpthread" |
| 10914 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10915 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 10916 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10917 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 10918 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10919 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10920 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10921 | elif test "$ac_cv_kthread" = "yes" |
| 10922 | then |
| 10923 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10924 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 10925 | CXX="$CXX -Kthread" |
| 10926 | fi |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10927 | cat >>confdefs.h <<\_ACEOF |
| 10928 | #define WITH_THREAD 1 |
| 10929 | _ACEOF |
| 10930 | |
| 10931 | posix_threads=yes |
| 10932 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10933 | elif test "$ac_cv_pthread" = "yes" |
| 10934 | then |
| 10935 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10936 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 10937 | CXX="$CXX -pthread" |
| 10938 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10939 | cat >>confdefs.h <<\_ACEOF |
| 10940 | #define WITH_THREAD 1 |
| 10941 | _ACEOF |
| 10942 | |
| 10943 | posix_threads=yes |
| 10944 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10945 | else |
| 10946 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 10947 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 10948 | fi |
| 10949 | if test ! -z "$withval" -a -d "$withval" |
| 10950 | then LDFLAGS="$LDFLAGS -L$withval" |
| 10951 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10952 | |
| 10953 | # According to the POSIX spec, a pthreads implementation must |
| 10954 | # 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] | 10955 | echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 10956 | echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6 |
| 10957 | cat >conftest.$ac_ext <<_ACEOF |
| 10958 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10959 | /* confdefs.h. */ |
| 10960 | _ACEOF |
| 10961 | cat confdefs.h >>conftest.$ac_ext |
| 10962 | cat >>conftest.$ac_ext <<_ACEOF |
| 10963 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10964 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10965 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10966 | #ifdef _POSIX_THREADS |
| 10967 | yes |
| 10968 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10969 | |
| 10970 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10971 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10972 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10973 | unistd_defines_pthreads=yes |
| 10974 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10975 | unistd_defines_pthreads=no |
| 10976 | fi |
| 10977 | rm -f conftest* |
| 10978 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10979 | echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 10980 | echo "${ECHO_T}$unistd_defines_pthreads" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10981 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10982 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10983 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10984 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10985 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10986 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10987 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 10988 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 10989 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10991 | fi |
| 10992 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 10993 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10994 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10995 | # Is the header compilable? |
| 10996 | echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 10997 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6 |
| 10998 | cat >conftest.$ac_ext <<_ACEOF |
| 10999 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11000 | /* confdefs.h. */ |
| 11001 | _ACEOF |
| 11002 | cat confdefs.h >>conftest.$ac_ext |
| 11003 | cat >>conftest.$ac_ext <<_ACEOF |
| 11004 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11005 | $ac_includes_default |
| 11006 | #include <cthreads.h> |
| 11007 | _ACEOF |
| 11008 | rm -f conftest.$ac_objext |
| 11009 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11010 | (eval $ac_compile) 2>&5 |
| 11011 | ac_status=$? |
| 11012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11013 | (exit $ac_status); } && |
| 11014 | { ac_try='test -s conftest.$ac_objext' |
| 11015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11016 | (eval $ac_try) 2>&5 |
| 11017 | ac_status=$? |
| 11018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11019 | (exit $ac_status); }; }; then |
| 11020 | ac_header_compiler=yes |
| 11021 | else |
| 11022 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11023 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11024 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11025 | ac_header_compiler=no |
| 11026 | fi |
| 11027 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 11028 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11029 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11030 | |
| 11031 | # Is the header present? |
| 11032 | echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 11033 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6 |
| 11034 | cat >conftest.$ac_ext <<_ACEOF |
| 11035 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11036 | /* confdefs.h. */ |
| 11037 | _ACEOF |
| 11038 | cat confdefs.h >>conftest.$ac_ext |
| 11039 | cat >>conftest.$ac_ext <<_ACEOF |
| 11040 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11041 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11042 | _ACEOF |
| 11043 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11044 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11045 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11046 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11047 | rm -f conftest.er1 |
| 11048 | cat conftest.err >&5 |
| 11049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11050 | (exit $ac_status); } >/dev/null; then |
| 11051 | if test -s conftest.err; then |
| 11052 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11053 | else |
| 11054 | ac_cpp_err= |
| 11055 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11056 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11057 | ac_cpp_err=yes |
| 11058 | fi |
| 11059 | if test -z "$ac_cpp_err"; then |
| 11060 | ac_header_preproc=yes |
| 11061 | else |
| 11062 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11063 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11064 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11065 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11066 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11067 | rm -f conftest.err conftest.$ac_ext |
| 11068 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11069 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11070 | |
| 11071 | # So? What about this header? |
| 11072 | case $ac_header_compiler:$ac_header_preproc in |
| 11073 | yes:no ) |
| 11074 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11075 | echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11076 | { 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] | 11077 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 11078 | ( |
| 11079 | cat <<\_ASBOX |
| 11080 | ## ------------------------------------ ## |
| 11081 | ## Report this to bug-autoconf@gnu.org. ## |
| 11082 | ## ------------------------------------ ## |
| 11083 | _ASBOX |
| 11084 | ) | |
| 11085 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11086 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11087 | no:yes ) |
| 11088 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 11089 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
| 11090 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 11091 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 11092 | { 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] | 11093 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 11094 | ( |
| 11095 | cat <<\_ASBOX |
| 11096 | ## ------------------------------------ ## |
| 11097 | ## Report this to bug-autoconf@gnu.org. ## |
| 11098 | ## ------------------------------------ ## |
| 11099 | _ASBOX |
| 11100 | ) | |
| 11101 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11102 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11103 | esac |
| 11104 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 11105 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 11106 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 11107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11108 | else |
| 11109 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11110 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11111 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 11112 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
| 11113 | |
| 11114 | fi |
| 11115 | if test $ac_cv_header_cthreads_h = yes; then |
| 11116 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11117 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11118 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11119 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11120 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11121 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11122 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11123 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11124 | |
| 11125 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11126 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11127 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11128 | |
| 11129 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11130 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11131 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11132 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11133 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 11134 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 11135 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 11136 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 11137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11138 | fi |
| 11139 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 11140 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11141 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11142 | # Is the header compilable? |
| 11143 | echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 11144 | echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6 |
| 11145 | cat >conftest.$ac_ext <<_ACEOF |
| 11146 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11147 | /* confdefs.h. */ |
| 11148 | _ACEOF |
| 11149 | cat confdefs.h >>conftest.$ac_ext |
| 11150 | cat >>conftest.$ac_ext <<_ACEOF |
| 11151 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11152 | $ac_includes_default |
| 11153 | #include <mach/cthreads.h> |
| 11154 | _ACEOF |
| 11155 | rm -f conftest.$ac_objext |
| 11156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11157 | (eval $ac_compile) 2>&5 |
| 11158 | ac_status=$? |
| 11159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11160 | (exit $ac_status); } && |
| 11161 | { ac_try='test -s conftest.$ac_objext' |
| 11162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11163 | (eval $ac_try) 2>&5 |
| 11164 | ac_status=$? |
| 11165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11166 | (exit $ac_status); }; }; then |
| 11167 | ac_header_compiler=yes |
| 11168 | else |
| 11169 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11170 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11171 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11172 | ac_header_compiler=no |
| 11173 | fi |
| 11174 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 11175 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11176 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11177 | |
| 11178 | # Is the header present? |
| 11179 | echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 11180 | echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6 |
| 11181 | cat >conftest.$ac_ext <<_ACEOF |
| 11182 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11183 | /* confdefs.h. */ |
| 11184 | _ACEOF |
| 11185 | cat confdefs.h >>conftest.$ac_ext |
| 11186 | cat >>conftest.$ac_ext <<_ACEOF |
| 11187 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11188 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11189 | _ACEOF |
| 11190 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11191 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11192 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11193 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11194 | rm -f conftest.er1 |
| 11195 | cat conftest.err >&5 |
| 11196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11197 | (exit $ac_status); } >/dev/null; then |
| 11198 | if test -s conftest.err; then |
| 11199 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11200 | else |
| 11201 | ac_cpp_err= |
| 11202 | fi |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11203 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11204 | ac_cpp_err=yes |
| 11205 | fi |
| 11206 | if test -z "$ac_cpp_err"; then |
| 11207 | ac_header_preproc=yes |
| 11208 | else |
| 11209 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11210 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11211 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11212 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11213 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11214 | rm -f conftest.err conftest.$ac_ext |
| 11215 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11216 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11217 | |
| 11218 | # So? What about this header? |
| 11219 | case $ac_header_compiler:$ac_header_preproc in |
| 11220 | yes:no ) |
| 11221 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11222 | echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11223 | { 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] | 11224 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 11225 | ( |
| 11226 | cat <<\_ASBOX |
| 11227 | ## ------------------------------------ ## |
| 11228 | ## Report this to bug-autoconf@gnu.org. ## |
| 11229 | ## ------------------------------------ ## |
| 11230 | _ASBOX |
| 11231 | ) | |
| 11232 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11233 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11234 | no:yes ) |
| 11235 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 11236 | echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
| 11237 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 11238 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 11239 | { 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] | 11240 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 11241 | ( |
| 11242 | cat <<\_ASBOX |
| 11243 | ## ------------------------------------ ## |
| 11244 | ## Report this to bug-autoconf@gnu.org. ## |
| 11245 | ## ------------------------------------ ## |
| 11246 | _ASBOX |
| 11247 | ) | |
| 11248 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11249 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11250 | esac |
| 11251 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 11252 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 11253 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 11254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11255 | else |
| 11256 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11257 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11258 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 11259 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
| 11260 | |
| 11261 | fi |
| 11262 | if test $ac_cv_header_mach_cthreads_h = yes; then |
| 11263 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11264 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11265 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11266 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11267 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11268 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11269 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11270 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11271 | |
| 11272 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11273 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11274 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11275 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11276 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11277 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11278 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11279 | echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 11280 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6 |
| 11281 | |
| 11282 | # Check whether --with-pth or --without-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 11283 | if test "${with_pth+set}" = set; then |
| 11284 | withval="$with_pth" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11285 | echo "$as_me:$LINENO: result: $withval" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11286 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11287 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11288 | #define WITH_THREAD 1 |
| 11289 | _ACEOF |
| 11290 | |
| 11291 | |
| 11292 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 11293 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11294 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 11295 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11296 | LIBS="-lpth $LIBS" |
| 11297 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 11298 | else |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11299 | echo "$as_me:$LINENO: result: no" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11300 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11301 | |
| 11302 | # Just looking for pthread_create in libpthread is not enough: |
| 11303 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 11304 | # So we really have to include pthread.h, and then link. |
| 11305 | _libs=$LIBS |
| 11306 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11307 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 11308 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| 11309 | cat >conftest.$ac_ext <<_ACEOF |
| 11310 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11311 | /* confdefs.h. */ |
| 11312 | _ACEOF |
| 11313 | cat confdefs.h >>conftest.$ac_ext |
| 11314 | cat >>conftest.$ac_ext <<_ACEOF |
| 11315 | /* end confdefs.h. */ |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11316 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 11317 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11318 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11319 | int |
| 11320 | main () |
| 11321 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11322 | |
| 11323 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11324 | ; |
| 11325 | return 0; |
| 11326 | } |
| 11327 | _ACEOF |
| 11328 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11329 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11330 | (eval $ac_link) 2>&5 |
| 11331 | ac_status=$? |
| 11332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11333 | (exit $ac_status); } && |
| 11334 | { ac_try='test -s conftest$ac_exeext' |
| 11335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11336 | (eval $ac_try) 2>&5 |
| 11337 | ac_status=$? |
| 11338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11339 | (exit $ac_status); }; }; then |
| 11340 | |
| 11341 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11342 | echo "${ECHO_T}yes" >&6 |
| 11343 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 11344 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11345 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 11346 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11347 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11348 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 11349 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11350 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11351 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11352 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11353 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11354 | LIBS=$_libs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11355 | echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 11356 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6 |
| 11357 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
| 11358 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11359 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11360 | cat >conftest.$ac_ext <<_ACEOF |
| 11361 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11362 | /* confdefs.h. */ |
| 11363 | _ACEOF |
| 11364 | cat confdefs.h >>conftest.$ac_ext |
| 11365 | cat >>conftest.$ac_ext <<_ACEOF |
| 11366 | /* end confdefs.h. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11367 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11368 | which can conflict with char pthread_detach (); below. |
| 11369 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 11370 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 11371 | including <limits.h> includes <sys/time.h> and causes problems |
| 11372 | checking for functions defined therein. */ |
| 11373 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11374 | # include <limits.h> |
| 11375 | #else |
| 11376 | # include <assert.h> |
| 11377 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11378 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11379 | #ifdef __cplusplus |
| 11380 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11381 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11382 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11383 | /* 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] | 11384 | builtin and then its argument prototype would still apply. */ |
| 11385 | char pthread_detach (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11386 | /* The GNU C library defines this for functions which it implements |
| 11387 | to always fail with ENOSYS. Some functions are actually named |
| 11388 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 11389 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11390 | choke me |
| 11391 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11392 | char (*f) () = pthread_detach; |
| 11393 | #endif |
| 11394 | #ifdef __cplusplus |
| 11395 | } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11396 | #endif |
| 11397 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11398 | int |
| 11399 | main () |
| 11400 | { |
| 11401 | return f != pthread_detach; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11402 | ; |
| 11403 | return 0; |
| 11404 | } |
| 11405 | _ACEOF |
| 11406 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11407 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11408 | (eval $ac_link) 2>&5 |
| 11409 | ac_status=$? |
| 11410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11411 | (exit $ac_status); } && |
| 11412 | { ac_try='test -s conftest$ac_exeext' |
| 11413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11414 | (eval $ac_try) 2>&5 |
| 11415 | ac_status=$? |
| 11416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11417 | (exit $ac_status); }; }; then |
| 11418 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11419 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11420 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11421 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11422 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11423 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11424 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11425 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11426 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11427 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 11428 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6 |
| 11429 | if test $ac_cv_func_pthread_detach = yes; then |
| 11430 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11431 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11432 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11433 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11434 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11435 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11436 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11437 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11438 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 11439 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 11440 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 11441 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 11442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11443 | fi |
| 11444 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 11445 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 11446 | else |
| 11447 | # Is the header compilable? |
| 11448 | echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 11449 | echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6 |
| 11450 | cat >conftest.$ac_ext <<_ACEOF |
| 11451 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11452 | /* confdefs.h. */ |
| 11453 | _ACEOF |
| 11454 | cat confdefs.h >>conftest.$ac_ext |
| 11455 | cat >>conftest.$ac_ext <<_ACEOF |
| 11456 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11457 | $ac_includes_default |
| 11458 | #include <atheos/threads.h> |
| 11459 | _ACEOF |
| 11460 | rm -f conftest.$ac_objext |
| 11461 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11462 | (eval $ac_compile) 2>&5 |
| 11463 | ac_status=$? |
| 11464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11465 | (exit $ac_status); } && |
| 11466 | { ac_try='test -s conftest.$ac_objext' |
| 11467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11468 | (eval $ac_try) 2>&5 |
| 11469 | ac_status=$? |
| 11470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11471 | (exit $ac_status); }; }; then |
| 11472 | ac_header_compiler=yes |
| 11473 | else |
| 11474 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11475 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11476 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11477 | ac_header_compiler=no |
| 11478 | fi |
| 11479 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 11480 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11481 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11482 | |
| 11483 | # Is the header present? |
| 11484 | echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 11485 | echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6 |
| 11486 | cat >conftest.$ac_ext <<_ACEOF |
| 11487 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11488 | /* confdefs.h. */ |
| 11489 | _ACEOF |
| 11490 | cat confdefs.h >>conftest.$ac_ext |
| 11491 | cat >>conftest.$ac_ext <<_ACEOF |
| 11492 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11493 | #include <atheos/threads.h> |
| 11494 | _ACEOF |
| 11495 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11496 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11497 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11498 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11499 | rm -f conftest.er1 |
| 11500 | cat conftest.err >&5 |
| 11501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11502 | (exit $ac_status); } >/dev/null; then |
| 11503 | if test -s conftest.err; then |
| 11504 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11505 | else |
| 11506 | ac_cpp_err= |
| 11507 | fi |
| 11508 | else |
| 11509 | ac_cpp_err=yes |
| 11510 | fi |
| 11511 | if test -z "$ac_cpp_err"; then |
| 11512 | ac_header_preproc=yes |
| 11513 | else |
| 11514 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11515 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11516 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11517 | ac_header_preproc=no |
| 11518 | fi |
| 11519 | rm -f conftest.err conftest.$ac_ext |
| 11520 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11521 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11522 | |
| 11523 | # So? What about this header? |
| 11524 | case $ac_header_compiler:$ac_header_preproc in |
| 11525 | yes:no ) |
| 11526 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11527 | echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11528 | { 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] | 11529 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;} |
| 11530 | ( |
| 11531 | cat <<\_ASBOX |
| 11532 | ## ------------------------------------ ## |
| 11533 | ## Report this to bug-autoconf@gnu.org. ## |
| 11534 | ## ------------------------------------ ## |
| 11535 | _ASBOX |
| 11536 | ) | |
| 11537 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11538 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11539 | no:yes ) |
| 11540 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 11541 | echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;} |
| 11542 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 11543 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 11544 | { 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] | 11545 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;} |
| 11546 | ( |
| 11547 | cat <<\_ASBOX |
| 11548 | ## ------------------------------------ ## |
| 11549 | ## Report this to bug-autoconf@gnu.org. ## |
| 11550 | ## ------------------------------------ ## |
| 11551 | _ASBOX |
| 11552 | ) | |
| 11553 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11554 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11555 | esac |
| 11556 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 11557 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 11558 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 11559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11560 | else |
| 11561 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 11562 | fi |
| 11563 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 11564 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 11565 | |
| 11566 | fi |
| 11567 | if test $ac_cv_header_atheos_threads_h = yes; then |
| 11568 | cat >>confdefs.h <<\_ACEOF |
| 11569 | #define WITH_THREAD 1 |
| 11570 | _ACEOF |
| 11571 | |
| 11572 | |
| 11573 | cat >>confdefs.h <<\_ACEOF |
| 11574 | #define ATHEOS_THREADS 1 |
| 11575 | _ACEOF |
| 11576 | |
| 11577 | THREADOBJ="Python/thread.o" |
| 11578 | else |
| 11579 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11580 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 11581 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 11582 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 11583 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 11584 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11585 | fi |
| 11586 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 11587 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11588 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11589 | # Is the header compilable? |
| 11590 | echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 11591 | echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6 |
| 11592 | cat >conftest.$ac_ext <<_ACEOF |
| 11593 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11594 | /* confdefs.h. */ |
| 11595 | _ACEOF |
| 11596 | cat confdefs.h >>conftest.$ac_ext |
| 11597 | cat >>conftest.$ac_ext <<_ACEOF |
| 11598 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11599 | $ac_includes_default |
| 11600 | #include <kernel/OS.h> |
| 11601 | _ACEOF |
| 11602 | rm -f conftest.$ac_objext |
| 11603 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11604 | (eval $ac_compile) 2>&5 |
| 11605 | ac_status=$? |
| 11606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11607 | (exit $ac_status); } && |
| 11608 | { ac_try='test -s conftest.$ac_objext' |
| 11609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11610 | (eval $ac_try) 2>&5 |
| 11611 | ac_status=$? |
| 11612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11613 | (exit $ac_status); }; }; then |
| 11614 | ac_header_compiler=yes |
| 11615 | else |
| 11616 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11617 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11618 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11619 | ac_header_compiler=no |
| 11620 | fi |
| 11621 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 11622 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11623 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11624 | |
| 11625 | # Is the header present? |
| 11626 | echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 11627 | echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6 |
| 11628 | cat >conftest.$ac_ext <<_ACEOF |
| 11629 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11630 | /* confdefs.h. */ |
| 11631 | _ACEOF |
| 11632 | cat confdefs.h >>conftest.$ac_ext |
| 11633 | cat >>conftest.$ac_ext <<_ACEOF |
| 11634 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11635 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11636 | _ACEOF |
| 11637 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11638 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11639 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11640 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11641 | rm -f conftest.er1 |
| 11642 | cat conftest.err >&5 |
| 11643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11644 | (exit $ac_status); } >/dev/null; then |
| 11645 | if test -s conftest.err; then |
| 11646 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11647 | else |
| 11648 | ac_cpp_err= |
| 11649 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11650 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11651 | ac_cpp_err=yes |
| 11652 | fi |
| 11653 | if test -z "$ac_cpp_err"; then |
| 11654 | ac_header_preproc=yes |
| 11655 | else |
| 11656 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11657 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11658 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11659 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11660 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11661 | rm -f conftest.err conftest.$ac_ext |
| 11662 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11663 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11664 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11665 | # So? What about this header? |
| 11666 | case $ac_header_compiler:$ac_header_preproc in |
| 11667 | yes:no ) |
| 11668 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11669 | echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11670 | { 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] | 11671 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;} |
| 11672 | ( |
| 11673 | cat <<\_ASBOX |
| 11674 | ## ------------------------------------ ## |
| 11675 | ## Report this to bug-autoconf@gnu.org. ## |
| 11676 | ## ------------------------------------ ## |
| 11677 | _ASBOX |
| 11678 | ) | |
| 11679 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11680 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11681 | no:yes ) |
| 11682 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 11683 | echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;} |
| 11684 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 11685 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 11686 | { 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] | 11687 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;} |
| 11688 | ( |
| 11689 | cat <<\_ASBOX |
| 11690 | ## ------------------------------------ ## |
| 11691 | ## Report this to bug-autoconf@gnu.org. ## |
| 11692 | ## ------------------------------------ ## |
| 11693 | _ASBOX |
| 11694 | ) | |
| 11695 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11696 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11697 | esac |
| 11698 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 11699 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 11700 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 11701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11702 | else |
| 11703 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 11704 | fi |
| 11705 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 11706 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
| 11707 | |
| 11708 | fi |
| 11709 | if test $ac_cv_header_kernel_OS_h = yes; then |
| 11710 | cat >>confdefs.h <<\_ACEOF |
| 11711 | #define WITH_THREAD 1 |
| 11712 | _ACEOF |
| 11713 | |
| 11714 | |
| 11715 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11716 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11717 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11718 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11719 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11720 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11721 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11722 | echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 11723 | echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6 |
| 11724 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
| 11725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11726 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11727 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11728 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11729 | cat >conftest.$ac_ext <<_ACEOF |
| 11730 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11731 | /* confdefs.h. */ |
| 11732 | _ACEOF |
| 11733 | cat confdefs.h >>conftest.$ac_ext |
| 11734 | cat >>conftest.$ac_ext <<_ACEOF |
| 11735 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11736 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11737 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11738 | #ifdef __cplusplus |
| 11739 | extern "C" |
| 11740 | #endif |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11741 | /* 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] | 11742 | builtin and then its argument prototype would still apply. */ |
| 11743 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11744 | int |
| 11745 | main () |
| 11746 | { |
| 11747 | pthread_create (); |
| 11748 | ; |
| 11749 | return 0; |
| 11750 | } |
| 11751 | _ACEOF |
| 11752 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11753 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11754 | (eval $ac_link) 2>&5 |
| 11755 | ac_status=$? |
| 11756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11757 | (exit $ac_status); } && |
| 11758 | { ac_try='test -s conftest$ac_exeext' |
| 11759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11760 | (eval $ac_try) 2>&5 |
| 11761 | ac_status=$? |
| 11762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11763 | (exit $ac_status); }; }; then |
| 11764 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11765 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11766 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11767 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11768 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11769 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11770 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11771 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11772 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11773 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11774 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 11775 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6 |
| 11776 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
| 11777 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11778 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11779 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11780 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11781 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11782 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11783 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11784 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11785 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11786 | echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 11787 | echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6 |
| 11788 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
| 11789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11790 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11791 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11792 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11793 | cat >conftest.$ac_ext <<_ACEOF |
| 11794 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11795 | /* confdefs.h. */ |
| 11796 | _ACEOF |
| 11797 | cat confdefs.h >>conftest.$ac_ext |
| 11798 | cat >>conftest.$ac_ext <<_ACEOF |
| 11799 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11800 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11801 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11802 | #ifdef __cplusplus |
| 11803 | extern "C" |
| 11804 | #endif |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11805 | /* 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] | 11806 | builtin and then its argument prototype would still apply. */ |
| 11807 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11808 | int |
| 11809 | main () |
| 11810 | { |
| 11811 | pthread_create (); |
| 11812 | ; |
| 11813 | return 0; |
| 11814 | } |
| 11815 | _ACEOF |
| 11816 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11817 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11818 | (eval $ac_link) 2>&5 |
| 11819 | ac_status=$? |
| 11820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11821 | (exit $ac_status); } && |
| 11822 | { ac_try='test -s conftest$ac_exeext' |
| 11823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11824 | (eval $ac_try) 2>&5 |
| 11825 | ac_status=$? |
| 11826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11827 | (exit $ac_status); }; }; then |
| 11828 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11829 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11830 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11831 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11832 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11833 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11834 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11835 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11836 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11837 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11838 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 11839 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6 |
| 11840 | if test $ac_cv_lib_c_r_pthread_create = yes; then |
| 11841 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11842 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11843 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11844 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11845 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11846 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11847 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11848 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11849 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11850 | echo "$as_me:$LINENO: checking for __d6_pthread_create in -lthread" >&5 |
| 11851 | echo $ECHO_N "checking for __d6_pthread_create in -lthread... $ECHO_C" >&6 |
| 11852 | if test "${ac_cv_lib_thread___d6_pthread_create+set}" = set; then |
| 11853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11854 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11855 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11856 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11857 | cat >conftest.$ac_ext <<_ACEOF |
| 11858 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11859 | /* confdefs.h. */ |
| 11860 | _ACEOF |
| 11861 | cat confdefs.h >>conftest.$ac_ext |
| 11862 | cat >>conftest.$ac_ext <<_ACEOF |
| 11863 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11864 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11865 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11866 | #ifdef __cplusplus |
| 11867 | extern "C" |
| 11868 | #endif |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11869 | /* 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] | 11870 | builtin and then its argument prototype would still apply. */ |
| 11871 | char __d6_pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11872 | int |
| 11873 | main () |
| 11874 | { |
| 11875 | __d6_pthread_create (); |
| 11876 | ; |
| 11877 | return 0; |
| 11878 | } |
| 11879 | _ACEOF |
| 11880 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11881 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11882 | (eval $ac_link) 2>&5 |
| 11883 | ac_status=$? |
| 11884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11885 | (exit $ac_status); } && |
| 11886 | { ac_try='test -s conftest$ac_exeext' |
| 11887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11888 | (eval $ac_try) 2>&5 |
| 11889 | ac_status=$? |
| 11890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11891 | (exit $ac_status); }; }; then |
| 11892 | ac_cv_lib_thread___d6_pthread_create=yes |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11893 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11894 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11895 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11896 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11897 | ac_cv_lib_thread___d6_pthread_create=no |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11898 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11899 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11900 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11901 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11902 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread___d6_pthread_create" >&5 |
| 11903 | echo "${ECHO_T}$ac_cv_lib_thread___d6_pthread_create" >&6 |
| 11904 | if test $ac_cv_lib_thread___d6_pthread_create = yes; then |
| 11905 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11906 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11907 | _ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11908 | |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 11909 | echo Systems with __d6_pthread_create are not supported anymore. |
| 11910 | echo See README |
| 11911 | exit 1 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11912 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11913 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11914 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11915 | else |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11916 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11917 | echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 11918 | echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6 |
| 11919 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
| 11920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11921 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11922 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11923 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11924 | cat >conftest.$ac_ext <<_ACEOF |
| 11925 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11926 | /* confdefs.h. */ |
| 11927 | _ACEOF |
| 11928 | cat confdefs.h >>conftest.$ac_ext |
| 11929 | cat >>conftest.$ac_ext <<_ACEOF |
| 11930 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11931 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11932 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11933 | #ifdef __cplusplus |
| 11934 | extern "C" |
| 11935 | #endif |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11936 | /* 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] | 11937 | builtin and then its argument prototype would still apply. */ |
| 11938 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11939 | int |
| 11940 | main () |
| 11941 | { |
| 11942 | __pthread_create_system (); |
| 11943 | ; |
| 11944 | return 0; |
| 11945 | } |
| 11946 | _ACEOF |
| 11947 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11948 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11949 | (eval $ac_link) 2>&5 |
| 11950 | ac_status=$? |
| 11951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11952 | (exit $ac_status); } && |
| 11953 | { ac_try='test -s conftest$ac_exeext' |
| 11954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11955 | (eval $ac_try) 2>&5 |
| 11956 | ac_status=$? |
| 11957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11958 | (exit $ac_status); }; }; then |
| 11959 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11960 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11961 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11962 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11963 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11964 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11965 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11966 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11967 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11968 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11969 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 11970 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6 |
| 11971 | if test $ac_cv_lib_pthread___pthread_create_system = yes; then |
| 11972 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11973 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11974 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11975 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11976 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11977 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11978 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11979 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11980 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11981 | echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 11982 | echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6 |
| 11983 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
| 11984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11985 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11986 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11987 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11988 | cat >conftest.$ac_ext <<_ACEOF |
| 11989 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11990 | /* confdefs.h. */ |
| 11991 | _ACEOF |
| 11992 | cat confdefs.h >>conftest.$ac_ext |
| 11993 | cat >>conftest.$ac_ext <<_ACEOF |
| 11994 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11995 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11996 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11997 | #ifdef __cplusplus |
| 11998 | extern "C" |
| 11999 | #endif |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12000 | /* 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] | 12001 | builtin and then its argument prototype would still apply. */ |
| 12002 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12003 | int |
| 12004 | main () |
| 12005 | { |
| 12006 | pthread_create (); |
| 12007 | ; |
| 12008 | return 0; |
| 12009 | } |
| 12010 | _ACEOF |
| 12011 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12012 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12013 | (eval $ac_link) 2>&5 |
| 12014 | ac_status=$? |
| 12015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12016 | (exit $ac_status); } && |
| 12017 | { ac_try='test -s conftest$ac_exeext' |
| 12018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12019 | (eval $ac_try) 2>&5 |
| 12020 | ac_status=$? |
| 12021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12022 | (exit $ac_status); }; }; then |
| 12023 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12024 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12025 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12026 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12027 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12028 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12029 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12030 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12031 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12032 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12033 | echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 12034 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6 |
| 12035 | if test $ac_cv_lib_cma_pthread_create = yes; then |
| 12036 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12037 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12038 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12039 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12040 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12041 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12042 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12043 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 12044 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12045 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 12046 | fi |
| 12047 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12048 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 12049 | fi |
| 12050 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 12051 | fi |
| 12052 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12053 | fi |
| 12054 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12055 | fi |
| 12056 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12057 | fi |
| 12058 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 12059 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12060 | fi |
| 12061 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12062 | |
| 12063 | fi |
| 12064 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12065 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12066 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12067 | fi; |
| 12068 | fi |
| 12069 | |
| 12070 | |
| 12071 | fi |
| 12072 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12073 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12074 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12075 | echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 12076 | echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6 |
| 12077 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
| 12078 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12079 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12080 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12081 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12082 | cat >conftest.$ac_ext <<_ACEOF |
| 12083 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12084 | /* confdefs.h. */ |
| 12085 | _ACEOF |
| 12086 | cat confdefs.h >>conftest.$ac_ext |
| 12087 | cat >>conftest.$ac_ext <<_ACEOF |
| 12088 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12089 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12090 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12091 | #ifdef __cplusplus |
| 12092 | extern "C" |
| 12093 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12094 | /* 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] | 12095 | builtin and then its argument prototype would still apply. */ |
| 12096 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12097 | int |
| 12098 | main () |
| 12099 | { |
| 12100 | usconfig (); |
| 12101 | ; |
| 12102 | return 0; |
| 12103 | } |
| 12104 | _ACEOF |
| 12105 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12106 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12107 | (eval $ac_link) 2>&5 |
| 12108 | ac_status=$? |
| 12109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12110 | (exit $ac_status); } && |
| 12111 | { ac_try='test -s conftest$ac_exeext' |
| 12112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12113 | (eval $ac_try) 2>&5 |
| 12114 | ac_status=$? |
| 12115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12116 | (exit $ac_status); }; }; then |
| 12117 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12118 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12119 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12120 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12121 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12122 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12123 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12124 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12125 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12126 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12127 | echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 12128 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6 |
| 12129 | if test $ac_cv_lib_mpc_usconfig = yes; then |
| 12130 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12131 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12132 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12133 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12134 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12135 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12136 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12137 | fi |
| 12138 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 12139 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 12140 | if test "$posix_threads" != "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12141 | echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 12142 | echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6 |
| 12143 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
| 12144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12145 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12146 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12147 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12148 | cat >conftest.$ac_ext <<_ACEOF |
| 12149 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12150 | /* confdefs.h. */ |
| 12151 | _ACEOF |
| 12152 | cat confdefs.h >>conftest.$ac_ext |
| 12153 | cat >>conftest.$ac_ext <<_ACEOF |
| 12154 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12155 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12156 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12157 | #ifdef __cplusplus |
| 12158 | extern "C" |
| 12159 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12160 | /* 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] | 12161 | builtin and then its argument prototype would still apply. */ |
| 12162 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12163 | int |
| 12164 | main () |
| 12165 | { |
| 12166 | thr_create (); |
| 12167 | ; |
| 12168 | return 0; |
| 12169 | } |
| 12170 | _ACEOF |
| 12171 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12172 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12173 | (eval $ac_link) 2>&5 |
| 12174 | ac_status=$? |
| 12175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12176 | (exit $ac_status); } && |
| 12177 | { ac_try='test -s conftest$ac_exeext' |
| 12178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12179 | (eval $ac_try) 2>&5 |
| 12180 | ac_status=$? |
| 12181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12182 | (exit $ac_status); }; }; then |
| 12183 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12184 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12185 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12186 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12187 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12188 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12189 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12190 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12191 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12192 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12193 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 12194 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6 |
| 12195 | if test $ac_cv_lib_thread_thr_create = yes; then |
| 12196 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12197 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12198 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12199 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 12200 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12201 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 12202 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12203 | fi |
| 12204 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 12205 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12206 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12207 | if test "$USE_THREAD_MODULE" != "#" |
| 12208 | then |
| 12209 | # If the above checks didn't disable threads, (at least) OSF1 |
| 12210 | # needs this '-threads' argument during linking. |
| 12211 | case $ac_sys_system in |
| 12212 | OSF1) LDLAST=-threads;; |
| 12213 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 12214 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12215 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12216 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12217 | if test "$posix_threads" = "yes"; then |
| 12218 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12219 | |
| 12220 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12221 | #define _POSIX_THREADS 1 |
| 12222 | _ACEOF |
| 12223 | |
| 12224 | fi |
| 12225 | |
| 12226 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 12227 | case $ac_sys_system/$ac_sys_release in |
| 12228 | SunOS/5.6) |
| 12229 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12230 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 12231 | _ACEOF |
| 12232 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12233 | ;; |
| 12234 | SunOS/5.8) |
| 12235 | cat >>confdefs.h <<\_ACEOF |
| 12236 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 12237 | _ACEOF |
| 12238 | |
| 12239 | ;; |
| 12240 | esac |
| 12241 | |
| 12242 | echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 12243 | echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6 |
| 12244 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
| 12245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12246 | else |
| 12247 | if test "$cross_compiling" = yes; then |
| 12248 | ac_cv_pthread_system_supported=no |
| 12249 | else |
| 12250 | cat >conftest.$ac_ext <<_ACEOF |
| 12251 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12252 | /* confdefs.h. */ |
| 12253 | _ACEOF |
| 12254 | cat confdefs.h >>conftest.$ac_ext |
| 12255 | cat >>conftest.$ac_ext <<_ACEOF |
| 12256 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12257 | #include <pthread.h> |
| 12258 | void *foo(void *parm) { |
| 12259 | return NULL; |
| 12260 | } |
| 12261 | main() { |
| 12262 | pthread_attr_t attr; |
| 12263 | pthread_t id; |
| 12264 | if (pthread_attr_init(&attr)) exit(-1); |
| 12265 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 12266 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 12267 | exit(0); |
| 12268 | } |
| 12269 | _ACEOF |
| 12270 | rm -f conftest$ac_exeext |
| 12271 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12272 | (eval $ac_link) 2>&5 |
| 12273 | ac_status=$? |
| 12274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12275 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12277 | (eval $ac_try) 2>&5 |
| 12278 | ac_status=$? |
| 12279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12280 | (exit $ac_status); }; }; then |
| 12281 | ac_cv_pthread_system_supported=yes |
| 12282 | else |
| 12283 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12284 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12285 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12286 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12287 | ( exit $ac_status ) |
| 12288 | ac_cv_pthread_system_supported=no |
| 12289 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12290 | 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] | 12291 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12292 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12293 | fi |
| 12294 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12295 | echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 12296 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6 |
| 12297 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 12298 | |
| 12299 | cat >>confdefs.h <<\_ACEOF |
| 12300 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
| 12301 | _ACEOF |
| 12302 | |
| 12303 | fi |
| 12304 | |
| 12305 | for ac_func in pthread_sigmask |
| 12306 | do |
| 12307 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12308 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12309 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12310 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12311 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12312 | else |
| 12313 | cat >conftest.$ac_ext <<_ACEOF |
| 12314 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12315 | /* confdefs.h. */ |
| 12316 | _ACEOF |
| 12317 | cat confdefs.h >>conftest.$ac_ext |
| 12318 | cat >>conftest.$ac_ext <<_ACEOF |
| 12319 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12320 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12321 | which can conflict with char $ac_func (); below. |
| 12322 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 12323 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 12324 | including <limits.h> includes <sys/time.h> and causes problems |
| 12325 | checking for functions defined therein. */ |
| 12326 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12327 | # include <limits.h> |
| 12328 | #else |
| 12329 | # include <assert.h> |
| 12330 | #endif |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12331 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12332 | #ifdef __cplusplus |
| 12333 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12334 | { |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12335 | #endif |
| 12336 | /* We use char because int might match the return type of a gcc2 |
| 12337 | builtin and then its argument prototype would still apply. */ |
| 12338 | char $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12339 | /* The GNU C library defines this for functions which it implements |
| 12340 | to always fail with ENOSYS. Some functions are actually named |
| 12341 | something starting with __ and the normal name is an alias. */ |
| 12342 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12343 | choke me |
| 12344 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12345 | char (*f) () = $ac_func; |
| 12346 | #endif |
| 12347 | #ifdef __cplusplus |
| 12348 | } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12349 | #endif |
| 12350 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12351 | int |
| 12352 | main () |
| 12353 | { |
| 12354 | return f != $ac_func; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12355 | ; |
| 12356 | return 0; |
| 12357 | } |
| 12358 | _ACEOF |
| 12359 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12360 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12361 | (eval $ac_link) 2>&5 |
| 12362 | ac_status=$? |
| 12363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12364 | (exit $ac_status); } && |
| 12365 | { ac_try='test -s conftest$ac_exeext' |
| 12366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12367 | (eval $ac_try) 2>&5 |
| 12368 | ac_status=$? |
| 12369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12370 | (exit $ac_status); }; }; then |
| 12371 | eval "$as_ac_var=yes" |
| 12372 | else |
| 12373 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12374 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12375 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12376 | eval "$as_ac_var=no" |
| 12377 | fi |
| 12378 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12379 | fi |
| 12380 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12381 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12382 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12383 | cat >>confdefs.h <<_ACEOF |
| 12384 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12385 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 12386 | case $ac_sys_system in |
| 12387 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12388 | |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 12389 | cat >>confdefs.h <<\_ACEOF |
| 12390 | #define HAVE_BROKEN_PTHREAD_SIGMASK 1 |
| 12391 | _ACEOF |
| 12392 | |
| 12393 | ;; |
| 12394 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12395 | fi |
| 12396 | done |
| 12397 | |
| 12398 | fi |
| 12399 | |
| 12400 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12401 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12402 | |
| 12403 | |
| 12404 | echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 12405 | 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] | 12406 | # Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 12407 | if test "${enable_ipv6+set}" = set; then |
| 12408 | enableval="$enable_ipv6" |
| 12409 | case "$enableval" in |
| 12410 | no) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12411 | echo "$as_me:$LINENO: result: no" >&5 |
| 12412 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12413 | ipv6=no |
| 12414 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12415 | *) echo "$as_me:$LINENO: result: yes" >&5 |
| 12416 | echo "${ECHO_T}yes" >&6 |
| 12417 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12418 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12419 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12420 | |
| 12421 | ipv6=yes |
| 12422 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12423 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12424 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12425 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12426 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12427 | echo "$as_me:$LINENO: result: no" >&5 |
| 12428 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12429 | ipv6=no |
| 12430 | |
| 12431 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12432 | cat >conftest.$ac_ext <<_ACEOF |
| 12433 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12434 | /* confdefs.h. */ |
| 12435 | _ACEOF |
| 12436 | cat confdefs.h >>conftest.$ac_ext |
| 12437 | cat >>conftest.$ac_ext <<_ACEOF |
| 12438 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12439 | /* AF_INET6 available check */ |
| 12440 | #include <sys/types.h> |
| 12441 | #include <sys/socket.h> |
| 12442 | main() |
| 12443 | { |
| 12444 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 12445 | exit(1); |
| 12446 | else |
| 12447 | exit(0); |
| 12448 | } |
| 12449 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12450 | _ACEOF |
| 12451 | rm -f conftest$ac_exeext |
| 12452 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12453 | (eval $ac_link) 2>&5 |
| 12454 | ac_status=$? |
| 12455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12456 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12458 | (eval $ac_try) 2>&5 |
| 12459 | ac_status=$? |
| 12460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12461 | (exit $ac_status); }; }; then |
| 12462 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12463 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12464 | ipv6=yes |
| 12465 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12466 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12467 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12468 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12469 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12470 | ( exit $ac_status ) |
| 12471 | echo "$as_me:$LINENO: result: no" >&5 |
| 12472 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12473 | ipv6=no |
| 12474 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12475 | 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] | 12476 | fi |
| 12477 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12478 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12479 | echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 12480 | echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6 |
| 12481 | cat >conftest.$ac_ext <<_ACEOF |
| 12482 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12483 | /* confdefs.h. */ |
| 12484 | _ACEOF |
| 12485 | cat confdefs.h >>conftest.$ac_ext |
| 12486 | cat >>conftest.$ac_ext <<_ACEOF |
| 12487 | /* end confdefs.h. */ |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12488 | #include <sys/types.h> |
| 12489 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12490 | int |
| 12491 | main () |
| 12492 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12493 | struct sockaddr_in6 x; |
| 12494 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12495 | ; |
| 12496 | return 0; |
| 12497 | } |
| 12498 | _ACEOF |
| 12499 | rm -f conftest.$ac_objext |
| 12500 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12501 | (eval $ac_compile) 2>&5 |
| 12502 | ac_status=$? |
| 12503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12504 | (exit $ac_status); } && |
| 12505 | { ac_try='test -s conftest.$ac_objext' |
| 12506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12507 | (eval $ac_try) 2>&5 |
| 12508 | ac_status=$? |
| 12509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12510 | (exit $ac_status); }; }; then |
| 12511 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12512 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12513 | ipv6=yes |
| 12514 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12515 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12516 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12517 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12518 | echo "$as_me:$LINENO: result: no" >&5 |
| 12519 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12520 | ipv6=no |
| 12521 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12522 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12523 | fi |
| 12524 | |
| 12525 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12526 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12527 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12528 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12529 | |
| 12530 | fi |
| 12531 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12532 | fi; |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12533 | |
| 12534 | ipv6type=unknown |
| 12535 | ipv6lib=none |
| 12536 | ipv6trylibc=no |
| 12537 | |
| 12538 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12539 | echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 12540 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 12541 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 12542 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12543 | case $i in |
| 12544 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12545 | cat >conftest.$ac_ext <<_ACEOF |
| 12546 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12547 | /* confdefs.h. */ |
| 12548 | _ACEOF |
| 12549 | cat confdefs.h >>conftest.$ac_ext |
| 12550 | cat >>conftest.$ac_ext <<_ACEOF |
| 12551 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12552 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12553 | #include <netinet/in.h> |
| 12554 | #ifdef IPV6_INRIA_VERSION |
| 12555 | yes |
| 12556 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12557 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12558 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12559 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 12560 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12561 | fi |
| 12562 | rm -f conftest* |
| 12563 | |
| 12564 | ;; |
| 12565 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12566 | cat >conftest.$ac_ext <<_ACEOF |
| 12567 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12568 | /* confdefs.h. */ |
| 12569 | _ACEOF |
| 12570 | cat confdefs.h >>conftest.$ac_ext |
| 12571 | cat >>conftest.$ac_ext <<_ACEOF |
| 12572 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12573 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12574 | #include <netinet/in.h> |
| 12575 | #ifdef __KAME__ |
| 12576 | yes |
| 12577 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12578 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12579 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12580 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12581 | ipv6type=$i; |
| 12582 | ipv6lib=inet6 |
| 12583 | ipv6libdir=/usr/local/v6/lib |
| 12584 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12585 | fi |
| 12586 | rm -f conftest* |
| 12587 | |
| 12588 | ;; |
| 12589 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12590 | cat >conftest.$ac_ext <<_ACEOF |
| 12591 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12592 | /* confdefs.h. */ |
| 12593 | _ACEOF |
| 12594 | cat confdefs.h >>conftest.$ac_ext |
| 12595 | cat >>conftest.$ac_ext <<_ACEOF |
| 12596 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12597 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12598 | #include <features.h> |
| 12599 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 12600 | yes |
| 12601 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12602 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12603 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12604 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12605 | ipv6type=$i; |
| 12606 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12607 | fi |
| 12608 | rm -f conftest* |
| 12609 | |
| 12610 | ;; |
| 12611 | linux-inet6) |
| 12612 | if test -d /usr/inet6; then |
| 12613 | ipv6type=$i |
| 12614 | ipv6lib=inet6 |
| 12615 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 12616 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12617 | fi |
| 12618 | ;; |
| 12619 | solaris) |
| 12620 | if test -f /etc/netconfig; then |
| 12621 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 12622 | ipv6type=$i |
| 12623 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12624 | fi |
| 12625 | fi |
| 12626 | ;; |
| 12627 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12628 | cat >conftest.$ac_ext <<_ACEOF |
| 12629 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12630 | /* confdefs.h. */ |
| 12631 | _ACEOF |
| 12632 | cat confdefs.h >>conftest.$ac_ext |
| 12633 | cat >>conftest.$ac_ext <<_ACEOF |
| 12634 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12635 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12636 | #include <sys/param.h> |
| 12637 | #ifdef _TOSHIBA_INET6 |
| 12638 | yes |
| 12639 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12640 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12641 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12642 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12643 | ipv6type=$i; |
| 12644 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 12645 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12646 | fi |
| 12647 | rm -f conftest* |
| 12648 | |
| 12649 | ;; |
| 12650 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12651 | cat >conftest.$ac_ext <<_ACEOF |
| 12652 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12653 | /* confdefs.h. */ |
| 12654 | _ACEOF |
| 12655 | cat confdefs.h >>conftest.$ac_ext |
| 12656 | cat >>conftest.$ac_ext <<_ACEOF |
| 12657 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12658 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12659 | #include </usr/local/v6/include/sys/v6config.h> |
| 12660 | #ifdef __V6D__ |
| 12661 | yes |
| 12662 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12663 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12664 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12665 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12666 | ipv6type=$i; |
| 12667 | ipv6lib=v6; |
| 12668 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 12669 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12670 | fi |
| 12671 | rm -f conftest* |
| 12672 | |
| 12673 | ;; |
| 12674 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12675 | cat >conftest.$ac_ext <<_ACEOF |
| 12676 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12677 | /* confdefs.h. */ |
| 12678 | _ACEOF |
| 12679 | cat confdefs.h >>conftest.$ac_ext |
| 12680 | cat >>conftest.$ac_ext <<_ACEOF |
| 12681 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12682 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12683 | #include <sys/param.h> |
| 12684 | #ifdef _ZETA_MINAMI_INET6 |
| 12685 | yes |
| 12686 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12687 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12688 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12689 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12690 | ipv6type=$i; |
| 12691 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 12692 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12693 | fi |
| 12694 | rm -f conftest* |
| 12695 | |
| 12696 | ;; |
| 12697 | esac |
| 12698 | if test "$ipv6type" != "unknown"; then |
| 12699 | break |
| 12700 | fi |
| 12701 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12702 | echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 12703 | echo "${ECHO_T}$ipv6type" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12704 | fi |
| 12705 | |
| 12706 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 12707 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 12708 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 12709 | echo "using lib$ipv6lib" |
| 12710 | else |
| 12711 | if test $ipv6trylibc = "yes"; then |
| 12712 | echo "using libc" |
| 12713 | else |
| 12714 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 12715 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 12716 | echo 'ipv6 kit and compile beforehand.' |
| 12717 | exit 1 |
| 12718 | fi |
| 12719 | fi |
| 12720 | fi |
| 12721 | |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 12722 | # Check for universal newline support |
Guido van Rossum | 402905e | 2002-08-15 13:56:35 +0000 | [diff] [blame] | 12723 | echo "$as_me:$LINENO: checking for --with-universal-newlines" >&5 |
| 12724 | echo $ECHO_N "checking for --with-universal-newlines... $ECHO_C" >&6 |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 12725 | |
| 12726 | # Check whether --with-universal-newlines or --without-universal-newlines was given. |
| 12727 | if test "${with_universal_newlines+set}" = set; then |
| 12728 | withval="$with_universal_newlines" |
| 12729 | |
| 12730 | fi; |
| 12731 | |
| 12732 | if test -z "$with_universal_newlines" |
| 12733 | then with_universal_newlines="yes" |
| 12734 | fi |
Martin v. Löwis | 7e4cfcb | 2002-12-19 16:21:49 +0000 | [diff] [blame] | 12735 | if test "$with_universal_newlines" = "no" |
Martin v. Löwis | 03d00d5 | 2002-12-19 19:03:31 +0000 | [diff] [blame] | 12736 | then |
Martin v. Löwis | 7e4cfcb | 2002-12-19 16:21:49 +0000 | [diff] [blame] | 12737 | echo --without-universal-newlines is unsupported, see README |
| 12738 | exit 1 |
Martin v. Löwis | 03d00d5 | 2002-12-19 19:03:31 +0000 | [diff] [blame] | 12739 | else |
Martin v. Löwis | e8aea58 | 2002-04-16 05:51:02 +0000 | [diff] [blame] | 12740 | |
| 12741 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 12742 | #define WITH_UNIVERSAL_NEWLINES 1 |
| 12743 | _ACEOF |
| 12744 | |
| 12745 | fi |
| 12746 | echo "$as_me:$LINENO: result: $with_universal_newlines" >&5 |
| 12747 | echo "${ECHO_T}$with_universal_newlines" >&6 |
| 12748 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 12749 | # Check for --with-doc-strings |
| 12750 | echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 12751 | echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6 |
| 12752 | |
| 12753 | # Check whether --with-doc-strings or --without-doc-strings was given. |
| 12754 | if test "${with_doc_strings+set}" = set; then |
| 12755 | withval="$with_doc_strings" |
| 12756 | |
| 12757 | fi; |
| 12758 | |
| 12759 | if test -z "$with_doc_strings" |
| 12760 | then with_doc_strings="yes" |
| 12761 | fi |
| 12762 | if test "$with_doc_strings" != "no" |
| 12763 | then |
| 12764 | |
| 12765 | cat >>confdefs.h <<\_ACEOF |
| 12766 | #define WITH_DOC_STRINGS 1 |
| 12767 | _ACEOF |
| 12768 | |
| 12769 | fi |
| 12770 | echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 12771 | echo "${ECHO_T}$with_doc_strings" >&6 |
| 12772 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 12773 | # Check for Python-specific malloc support |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12774 | echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 12775 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6 |
| 12776 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 12777 | # Check whether --with-pymalloc or --without-pymalloc was given. |
| 12778 | if test "${with_pymalloc+set}" = set; then |
| 12779 | withval="$with_pymalloc" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12780 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12781 | fi; |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 12782 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 12783 | if test -z "$with_pymalloc" |
| 12784 | then with_pymalloc="yes" |
| 12785 | fi |
| 12786 | if test "$with_pymalloc" != "no" |
| 12787 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12788 | |
| 12789 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 12790 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12791 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 12792 | |
| 12793 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12794 | echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 12795 | echo "${ECHO_T}$with_pymalloc" >&6 |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 12796 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 12797 | # Check for --with-wctype-functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12798 | echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 12799 | echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6 |
| 12800 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 12801 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 12802 | if test "${with_wctype_functions+set}" = set; then |
| 12803 | withval="$with_wctype_functions" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12804 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 12805 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12806 | then |
| 12807 | |
| 12808 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 12809 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12810 | _ACEOF |
| 12811 | |
| 12812 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12813 | echo "${ECHO_T}yes" >&6 |
| 12814 | else echo "$as_me:$LINENO: result: no" >&5 |
| 12815 | echo "${ECHO_T}no" >&6 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 12816 | fi |
| 12817 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12818 | echo "$as_me:$LINENO: result: no" >&5 |
| 12819 | echo "${ECHO_T}no" >&6 |
| 12820 | fi; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 12821 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12822 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12823 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 12824 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12825 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12826 | echo "$as_me:$LINENO: checking for --with-sgi-dl" >&5 |
| 12827 | echo $ECHO_N "checking for --with-sgi-dl... $ECHO_C" >&6 |
| 12828 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12829 | # Check whether --with-sgi-dl or --without-sgi-dl was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12830 | if test "${with_sgi_dl+set}" = set; then |
| 12831 | withval="$with_sgi_dl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12832 | |
| 12833 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 12834 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 9ef3376 | 2002-12-02 22:23:56 +0000 | [diff] [blame] | 12835 | echo --with-sgi-dl is unsupported, see README |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 12836 | exit 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12837 | |
| 12838 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12839 | #define WITH_SGI_DL 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12840 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12841 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12842 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12843 | dldir=$withval |
Guido van Rossum | 4095101 | 2000-10-07 16:21:27 +0000 | [diff] [blame] | 12844 | if test ! -z "$dldir" -a -d "$dldir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 12845 | then LDFLAGS="$LDFLAGS -L$dldir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12846 | else { { echo "$as_me:$LINENO: error: proper usage is --with-sgi-dl=DIRECTORY" >&5 |
| 12847 | echo "$as_me: error: proper usage is --with-sgi-dl=DIRECTORY" >&2;} |
| 12848 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12849 | fi |
| 12850 | DLINCLDIR=${dldir} |
| 12851 | LIBS="$LIBS -ldl -lmld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12852 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12853 | echo "$as_me:$LINENO: result: no" >&5 |
| 12854 | echo "${ECHO_T}no" >&6 |
| 12855 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12856 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12857 | echo "$as_me:$LINENO: checking for --with-dl-dld" >&5 |
| 12858 | echo $ECHO_N "checking for --with-dl-dld... $ECHO_C" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12859 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12860 | # Check whether --with-dl-dld or --without-dl-dld was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12861 | if test "${with_dl_dld+set}" = set; then |
| 12862 | withval="$with_dl_dld" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12863 | |
| 12864 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 12865 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 9ef3376 | 2002-12-02 22:23:56 +0000 | [diff] [blame] | 12866 | echo --with-dl-dld is unsupported, see README |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 12867 | exit 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12868 | |
| 12869 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12870 | #define WITH_DL_DLD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12871 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12872 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12873 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12874 | dldir=`echo "$withval" | sed 's/,.*//'` |
| 12875 | dlddir=`echo "$withval" | sed 's/.*,//'` |
Barry Warsaw | 7d1219d | 2000-10-05 18:45:53 +0000 | [diff] [blame] | 12876 | if test ! -z "$dldir" -a -d "$dldir" -a ! -z "$dlddir" -a -d "$dlddir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 12877 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 12878 | else { { echo "$as_me:$LINENO: error: proper usage is --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY" >&5 |
| 12879 | echo "$as_me: error: proper usage is --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY" >&2;} |
| 12880 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12881 | fi |
| 12882 | DLINCLDIR=${dldir} |
| 12883 | LIBS="$LIBS -ldl -ldld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12884 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12885 | echo "$as_me:$LINENO: result: no" >&5 |
| 12886 | echo "${ECHO_T}no" >&6 |
| 12887 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12888 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12889 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 12890 | # 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] | 12891 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12892 | for ac_func in dlopen |
| 12893 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12894 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12895 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12896 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12897 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12898 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12899 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12900 | cat >conftest.$ac_ext <<_ACEOF |
| 12901 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12902 | /* confdefs.h. */ |
| 12903 | _ACEOF |
| 12904 | cat confdefs.h >>conftest.$ac_ext |
| 12905 | cat >>conftest.$ac_ext <<_ACEOF |
| 12906 | /* end confdefs.h. */ |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12907 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12908 | which can conflict with char $ac_func (); below. |
| 12909 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 12910 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 12911 | including <limits.h> includes <sys/time.h> and causes problems |
| 12912 | checking for functions defined therein. */ |
| 12913 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12914 | # include <limits.h> |
| 12915 | #else |
| 12916 | # include <assert.h> |
| 12917 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12918 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12919 | #ifdef __cplusplus |
| 12920 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12921 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12922 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12923 | /* 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] | 12924 | builtin and then its argument prototype would still apply. */ |
| 12925 | char $ac_func (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12926 | /* The GNU C library defines this for functions which it implements |
| 12927 | to always fail with ENOSYS. Some functions are actually named |
| 12928 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12929 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12930 | choke me |
| 12931 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12932 | char (*f) () = $ac_func; |
| 12933 | #endif |
| 12934 | #ifdef __cplusplus |
| 12935 | } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12936 | #endif |
| 12937 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12938 | int |
| 12939 | main () |
| 12940 | { |
| 12941 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12942 | ; |
| 12943 | return 0; |
| 12944 | } |
| 12945 | _ACEOF |
| 12946 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12947 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12948 | (eval $ac_link) 2>&5 |
| 12949 | ac_status=$? |
| 12950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12951 | (exit $ac_status); } && |
| 12952 | { ac_try='test -s conftest$ac_exeext' |
| 12953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12954 | (eval $ac_try) 2>&5 |
| 12955 | ac_status=$? |
| 12956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12957 | (exit $ac_status); }; }; then |
| 12958 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12959 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12960 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12961 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12962 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12963 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12964 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12965 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12966 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12967 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12968 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12969 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12970 | cat >>confdefs.h <<_ACEOF |
| 12971 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12972 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12973 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12974 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12975 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12976 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12977 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12978 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 12979 | # loading of modules. |
| 12980 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12981 | echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 12982 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12983 | if test -z "$DYNLOADFILE" |
| 12984 | then |
| 12985 | case $ac_sys_system/$ac_sys_release in |
| 12986 | AIX*) DYNLOADFILE="dynload_aix.o";; |
| 12987 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 12988 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12989 | Darwin/*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12990 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12991 | *) |
| 12992 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 12993 | # out any dynamic loading |
| 12994 | if test "$ac_cv_func_dlopen" = yes |
| 12995 | then DYNLOADFILE="dynload_shlib.o" |
| 12996 | else DYNLOADFILE="dynload_stub.o" |
| 12997 | fi |
| 12998 | ;; |
| 12999 | esac |
| 13000 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13001 | echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 13002 | echo "${ECHO_T}$DYNLOADFILE" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13003 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 13004 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13005 | |
| 13006 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13007 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13008 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13009 | |
| 13010 | fi |
| 13011 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 13012 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 13013 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13014 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13015 | echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 13016 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 13017 | if test -z "$MACHDEP_OBJS" |
| 13018 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13019 | MACHDEP_OBJS=$extra_machdep_objs |
| 13020 | else |
| 13021 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 13022 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13023 | echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 13024 | echo "${ECHO_T}MACHDEP_OBJS" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 13025 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13026 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13027 | |
| 13028 | |
| 13029 | |
| 13030 | |
| 13031 | |
| 13032 | |
| 13033 | |
| 13034 | |
| 13035 | |
| 13036 | |
| 13037 | |
| 13038 | |
| 13039 | |
| 13040 | |
| 13041 | |
| 13042 | |
| 13043 | |
| 13044 | |
| 13045 | |
| 13046 | |
| 13047 | |
| 13048 | |
| 13049 | |
| 13050 | |
| 13051 | |
| 13052 | |
| 13053 | |
| 13054 | |
| 13055 | |
| 13056 | |
| 13057 | |
| 13058 | |
| 13059 | |
| 13060 | |
| 13061 | |
| 13062 | |
| 13063 | |
| 13064 | |
| 13065 | |
| 13066 | |
| 13067 | |
| 13068 | |
| 13069 | |
| 13070 | |
| 13071 | |
| 13072 | |
| 13073 | |
| 13074 | |
| 13075 | |
| 13076 | |
| 13077 | |
| 13078 | |
| 13079 | |
| 13080 | |
| 13081 | |
| 13082 | |
| 13083 | |
| 13084 | |
| 13085 | |
| 13086 | |
| 13087 | |
| 13088 | |
| 13089 | |
| 13090 | |
| 13091 | |
| 13092 | |
| 13093 | |
| 13094 | |
| 13095 | |
| 13096 | |
| 13097 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13098 | for ac_func in alarm chown clock confstr ctermid execv \ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13099 | fork fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 13100 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
| 13101 | getpriority getpwent getwd \ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13102 | kill killpg lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 13103 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 13104 | putenv readlink realpath \ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13105 | select setegid seteuid setgid \ |
Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 13106 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13107 | sigaction siginterrupt sigrelse strftime strptime \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 13108 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 13109 | truncate uname unsetenv utimes waitpid wcscoll _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13110 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13111 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13112 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13113 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13114 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13115 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13116 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13117 | cat >conftest.$ac_ext <<_ACEOF |
| 13118 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13119 | /* confdefs.h. */ |
| 13120 | _ACEOF |
| 13121 | cat confdefs.h >>conftest.$ac_ext |
| 13122 | cat >>conftest.$ac_ext <<_ACEOF |
| 13123 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13124 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13125 | which can conflict with char $ac_func (); below. |
| 13126 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 13127 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 13128 | including <limits.h> includes <sys/time.h> and causes problems |
| 13129 | checking for functions defined therein. */ |
| 13130 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13131 | # include <limits.h> |
| 13132 | #else |
| 13133 | # include <assert.h> |
| 13134 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13135 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13136 | #ifdef __cplusplus |
| 13137 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13138 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13139 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13140 | /* 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] | 13141 | builtin and then its argument prototype would still apply. */ |
| 13142 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13143 | /* The GNU C library defines this for functions which it implements |
| 13144 | to always fail with ENOSYS. Some functions are actually named |
| 13145 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13146 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13147 | choke me |
| 13148 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13149 | char (*f) () = $ac_func; |
| 13150 | #endif |
| 13151 | #ifdef __cplusplus |
| 13152 | } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13153 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13154 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13155 | int |
| 13156 | main () |
| 13157 | { |
| 13158 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13159 | ; |
| 13160 | return 0; |
| 13161 | } |
| 13162 | _ACEOF |
| 13163 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13164 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13165 | (eval $ac_link) 2>&5 |
| 13166 | ac_status=$? |
| 13167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13168 | (exit $ac_status); } && |
| 13169 | { ac_try='test -s conftest$ac_exeext' |
| 13170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13171 | (eval $ac_try) 2>&5 |
| 13172 | ac_status=$? |
| 13173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13174 | (exit $ac_status); }; }; then |
| 13175 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13176 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13177 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13178 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13179 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13180 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13181 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13182 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13183 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13184 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13185 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13186 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13187 | cat >>confdefs.h <<_ACEOF |
| 13188 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13189 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13190 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13191 | fi |
| 13192 | done |
| 13193 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13194 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13195 | # For some functions, having a definition is not sufficient, since |
| 13196 | # we want to take their address. |
| 13197 | echo "$as_me:$LINENO: checking for chroot" >&5 |
| 13198 | echo $ECHO_N "checking for chroot... $ECHO_C" >&6 |
| 13199 | cat >conftest.$ac_ext <<_ACEOF |
| 13200 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13201 | /* confdefs.h. */ |
| 13202 | _ACEOF |
| 13203 | cat confdefs.h >>conftest.$ac_ext |
| 13204 | cat >>conftest.$ac_ext <<_ACEOF |
| 13205 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13206 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13207 | int |
| 13208 | main () |
| 13209 | { |
| 13210 | void *x=chroot |
| 13211 | ; |
| 13212 | return 0; |
| 13213 | } |
| 13214 | _ACEOF |
| 13215 | rm -f conftest.$ac_objext |
| 13216 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13217 | (eval $ac_compile) 2>&5 |
| 13218 | ac_status=$? |
| 13219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13220 | (exit $ac_status); } && |
| 13221 | { ac_try='test -s conftest.$ac_objext' |
| 13222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13223 | (eval $ac_try) 2>&5 |
| 13224 | ac_status=$? |
| 13225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13226 | (exit $ac_status); }; }; then |
| 13227 | |
| 13228 | cat >>confdefs.h <<\_ACEOF |
| 13229 | #define HAVE_CHROOT 1 |
| 13230 | _ACEOF |
| 13231 | |
| 13232 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13233 | echo "${ECHO_T}yes" >&6 |
| 13234 | else |
| 13235 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13236 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13237 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13238 | echo "$as_me:$LINENO: result: no" >&5 |
| 13239 | echo "${ECHO_T}no" >&6 |
| 13240 | |
| 13241 | fi |
| 13242 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13243 | echo "$as_me:$LINENO: checking for link" >&5 |
| 13244 | echo $ECHO_N "checking for link... $ECHO_C" >&6 |
| 13245 | cat >conftest.$ac_ext <<_ACEOF |
| 13246 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13247 | /* confdefs.h. */ |
| 13248 | _ACEOF |
| 13249 | cat confdefs.h >>conftest.$ac_ext |
| 13250 | cat >>conftest.$ac_ext <<_ACEOF |
| 13251 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13252 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13253 | int |
| 13254 | main () |
| 13255 | { |
| 13256 | void *x=link |
| 13257 | ; |
| 13258 | return 0; |
| 13259 | } |
| 13260 | _ACEOF |
| 13261 | rm -f conftest.$ac_objext |
| 13262 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13263 | (eval $ac_compile) 2>&5 |
| 13264 | ac_status=$? |
| 13265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13266 | (exit $ac_status); } && |
| 13267 | { ac_try='test -s conftest.$ac_objext' |
| 13268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13269 | (eval $ac_try) 2>&5 |
| 13270 | ac_status=$? |
| 13271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13272 | (exit $ac_status); }; }; then |
| 13273 | |
| 13274 | cat >>confdefs.h <<\_ACEOF |
| 13275 | #define HAVE_LINK 1 |
| 13276 | _ACEOF |
| 13277 | |
| 13278 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13279 | echo "${ECHO_T}yes" >&6 |
| 13280 | else |
| 13281 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13282 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13283 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13284 | echo "$as_me:$LINENO: result: no" >&5 |
| 13285 | echo "${ECHO_T}no" >&6 |
| 13286 | |
| 13287 | fi |
| 13288 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13289 | echo "$as_me:$LINENO: checking for symlink" >&5 |
| 13290 | echo $ECHO_N "checking for symlink... $ECHO_C" >&6 |
| 13291 | cat >conftest.$ac_ext <<_ACEOF |
| 13292 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13293 | /* confdefs.h. */ |
| 13294 | _ACEOF |
| 13295 | cat confdefs.h >>conftest.$ac_ext |
| 13296 | cat >>conftest.$ac_ext <<_ACEOF |
| 13297 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13298 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13299 | int |
| 13300 | main () |
| 13301 | { |
| 13302 | void *x=symlink |
| 13303 | ; |
| 13304 | return 0; |
| 13305 | } |
| 13306 | _ACEOF |
| 13307 | rm -f conftest.$ac_objext |
| 13308 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13309 | (eval $ac_compile) 2>&5 |
| 13310 | ac_status=$? |
| 13311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13312 | (exit $ac_status); } && |
| 13313 | { ac_try='test -s conftest.$ac_objext' |
| 13314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13315 | (eval $ac_try) 2>&5 |
| 13316 | ac_status=$? |
| 13317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13318 | (exit $ac_status); }; }; then |
| 13319 | |
| 13320 | cat >>confdefs.h <<\_ACEOF |
| 13321 | #define HAVE_SYMLINK 1 |
| 13322 | _ACEOF |
| 13323 | |
| 13324 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13325 | echo "${ECHO_T}yes" >&6 |
| 13326 | else |
| 13327 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13328 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13329 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13330 | echo "$as_me:$LINENO: result: no" >&5 |
| 13331 | echo "${ECHO_T}no" >&6 |
| 13332 | |
| 13333 | fi |
| 13334 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13335 | echo "$as_me:$LINENO: checking for fchdir" >&5 |
| 13336 | echo $ECHO_N "checking for fchdir... $ECHO_C" >&6 |
| 13337 | cat >conftest.$ac_ext <<_ACEOF |
| 13338 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13339 | /* confdefs.h. */ |
| 13340 | _ACEOF |
| 13341 | cat confdefs.h >>conftest.$ac_ext |
| 13342 | cat >>conftest.$ac_ext <<_ACEOF |
| 13343 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13344 | #include <unistd.h> |
| 13345 | int |
| 13346 | main () |
| 13347 | { |
| 13348 | void *x=fchdir |
| 13349 | ; |
| 13350 | return 0; |
| 13351 | } |
| 13352 | _ACEOF |
| 13353 | rm -f conftest.$ac_objext |
| 13354 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13355 | (eval $ac_compile) 2>&5 |
| 13356 | ac_status=$? |
| 13357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13358 | (exit $ac_status); } && |
| 13359 | { ac_try='test -s conftest.$ac_objext' |
| 13360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13361 | (eval $ac_try) 2>&5 |
| 13362 | ac_status=$? |
| 13363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13364 | (exit $ac_status); }; }; then |
| 13365 | |
| 13366 | cat >>confdefs.h <<\_ACEOF |
| 13367 | #define HAVE_FCHDIR 1 |
| 13368 | _ACEOF |
| 13369 | |
| 13370 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13371 | echo "${ECHO_T}yes" >&6 |
| 13372 | else |
| 13373 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13374 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13375 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13376 | echo "$as_me:$LINENO: result: no" >&5 |
| 13377 | echo "${ECHO_T}no" >&6 |
| 13378 | |
| 13379 | fi |
| 13380 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13381 | echo "$as_me:$LINENO: checking for fsync" >&5 |
| 13382 | echo $ECHO_N "checking for fsync... $ECHO_C" >&6 |
| 13383 | cat >conftest.$ac_ext <<_ACEOF |
| 13384 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13385 | /* confdefs.h. */ |
| 13386 | _ACEOF |
| 13387 | cat confdefs.h >>conftest.$ac_ext |
| 13388 | cat >>conftest.$ac_ext <<_ACEOF |
| 13389 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13390 | #include <unistd.h> |
| 13391 | int |
| 13392 | main () |
| 13393 | { |
| 13394 | void *x=fsync |
| 13395 | ; |
| 13396 | return 0; |
| 13397 | } |
| 13398 | _ACEOF |
| 13399 | rm -f conftest.$ac_objext |
| 13400 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13401 | (eval $ac_compile) 2>&5 |
| 13402 | ac_status=$? |
| 13403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13404 | (exit $ac_status); } && |
| 13405 | { ac_try='test -s conftest.$ac_objext' |
| 13406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13407 | (eval $ac_try) 2>&5 |
| 13408 | ac_status=$? |
| 13409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13410 | (exit $ac_status); }; }; then |
| 13411 | |
| 13412 | cat >>confdefs.h <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13413 | #define HAVE_FSYNC 1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13414 | _ACEOF |
| 13415 | |
| 13416 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13417 | echo "${ECHO_T}yes" >&6 |
| 13418 | else |
| 13419 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13420 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13421 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13422 | echo "$as_me:$LINENO: result: no" >&5 |
| 13423 | echo "${ECHO_T}no" >&6 |
| 13424 | |
| 13425 | fi |
| 13426 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13427 | echo "$as_me:$LINENO: checking for fdatasync" >&5 |
| 13428 | echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6 |
| 13429 | cat >conftest.$ac_ext <<_ACEOF |
| 13430 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13431 | /* confdefs.h. */ |
| 13432 | _ACEOF |
| 13433 | cat confdefs.h >>conftest.$ac_ext |
| 13434 | cat >>conftest.$ac_ext <<_ACEOF |
| 13435 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13436 | #include <unistd.h> |
| 13437 | int |
| 13438 | main () |
| 13439 | { |
| 13440 | void *x=fdatasync |
| 13441 | ; |
| 13442 | return 0; |
| 13443 | } |
| 13444 | _ACEOF |
| 13445 | rm -f conftest.$ac_objext |
| 13446 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13447 | (eval $ac_compile) 2>&5 |
| 13448 | ac_status=$? |
| 13449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13450 | (exit $ac_status); } && |
| 13451 | { ac_try='test -s conftest.$ac_objext' |
| 13452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13453 | (eval $ac_try) 2>&5 |
| 13454 | ac_status=$? |
| 13455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13456 | (exit $ac_status); }; }; then |
| 13457 | |
| 13458 | cat >>confdefs.h <<\_ACEOF |
| 13459 | #define HAVE_FDATASYNC 1 |
| 13460 | _ACEOF |
| 13461 | |
| 13462 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13463 | echo "${ECHO_T}yes" >&6 |
| 13464 | else |
| 13465 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13466 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13467 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13468 | echo "$as_me:$LINENO: result: no" >&5 |
| 13469 | echo "${ECHO_T}no" >&6 |
| 13470 | |
| 13471 | fi |
| 13472 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13473 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13474 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 13475 | # functions ctermid_r, setgroups in the library, but no prototype |
| 13476 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 13477 | # address to avoid compiler warnings and potential miscompilations |
| 13478 | # because of the missing prototypes. |
| 13479 | |
| 13480 | echo "$as_me:$LINENO: checking for ctermid_r" >&5 |
| 13481 | echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6 |
| 13482 | cat >conftest.$ac_ext <<_ACEOF |
| 13483 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13484 | /* confdefs.h. */ |
| 13485 | _ACEOF |
| 13486 | cat confdefs.h >>conftest.$ac_ext |
| 13487 | cat >>conftest.$ac_ext <<_ACEOF |
| 13488 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13489 | |
| 13490 | #include "confdefs.h" |
| 13491 | #include <stdio.h> |
| 13492 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13493 | int |
| 13494 | main () |
| 13495 | { |
| 13496 | void* p = ctermid_r |
| 13497 | ; |
| 13498 | return 0; |
| 13499 | } |
| 13500 | _ACEOF |
| 13501 | rm -f conftest.$ac_objext |
| 13502 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13503 | (eval $ac_compile) 2>&5 |
| 13504 | ac_status=$? |
| 13505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13506 | (exit $ac_status); } && |
| 13507 | { ac_try='test -s conftest.$ac_objext' |
| 13508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13509 | (eval $ac_try) 2>&5 |
| 13510 | ac_status=$? |
| 13511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13512 | (exit $ac_status); }; }; then |
| 13513 | |
| 13514 | cat >>confdefs.h <<\_ACEOF |
| 13515 | #define HAVE_CTERMID_R 1 |
| 13516 | _ACEOF |
| 13517 | |
| 13518 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13519 | echo "${ECHO_T}yes" >&6 |
| 13520 | else |
| 13521 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13522 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13523 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13524 | echo "$as_me:$LINENO: result: no" >&5 |
| 13525 | echo "${ECHO_T}no" >&6 |
| 13526 | |
| 13527 | fi |
| 13528 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13529 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13530 | echo "$as_me:$LINENO: checking for flock" >&5 |
| 13531 | echo $ECHO_N "checking for flock... $ECHO_C" >&6 |
| 13532 | cat >conftest.$ac_ext <<_ACEOF |
| 13533 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13534 | /* confdefs.h. */ |
| 13535 | _ACEOF |
| 13536 | cat confdefs.h >>conftest.$ac_ext |
| 13537 | cat >>conftest.$ac_ext <<_ACEOF |
| 13538 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13539 | |
| 13540 | #include "confdefs.h" |
| 13541 | #include <sys/file.h> |
| 13542 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13543 | int |
| 13544 | main () |
| 13545 | { |
| 13546 | void* p = flock |
| 13547 | ; |
| 13548 | return 0; |
| 13549 | } |
| 13550 | _ACEOF |
| 13551 | rm -f conftest.$ac_objext |
| 13552 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13553 | (eval $ac_compile) 2>&5 |
| 13554 | ac_status=$? |
| 13555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13556 | (exit $ac_status); } && |
| 13557 | { ac_try='test -s conftest.$ac_objext' |
| 13558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13559 | (eval $ac_try) 2>&5 |
| 13560 | ac_status=$? |
| 13561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13562 | (exit $ac_status); }; }; then |
| 13563 | |
| 13564 | cat >>confdefs.h <<\_ACEOF |
| 13565 | #define HAVE_FLOCK 1 |
| 13566 | _ACEOF |
| 13567 | |
| 13568 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13569 | echo "${ECHO_T}yes" >&6 |
| 13570 | else |
| 13571 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13572 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13573 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13574 | echo "$as_me:$LINENO: result: no" >&5 |
| 13575 | echo "${ECHO_T}no" >&6 |
| 13576 | |
| 13577 | fi |
| 13578 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13579 | |
| 13580 | echo "$as_me:$LINENO: checking for getpagesize" >&5 |
| 13581 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6 |
| 13582 | cat >conftest.$ac_ext <<_ACEOF |
| 13583 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13584 | /* confdefs.h. */ |
| 13585 | _ACEOF |
| 13586 | cat confdefs.h >>conftest.$ac_ext |
| 13587 | cat >>conftest.$ac_ext <<_ACEOF |
| 13588 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13589 | |
| 13590 | #include "confdefs.h" |
| 13591 | #include <unistd.h> |
| 13592 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13593 | int |
| 13594 | main () |
| 13595 | { |
| 13596 | void* p = getpagesize |
| 13597 | ; |
| 13598 | return 0; |
| 13599 | } |
| 13600 | _ACEOF |
| 13601 | rm -f conftest.$ac_objext |
| 13602 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13603 | (eval $ac_compile) 2>&5 |
| 13604 | ac_status=$? |
| 13605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13606 | (exit $ac_status); } && |
| 13607 | { ac_try='test -s conftest.$ac_objext' |
| 13608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13609 | (eval $ac_try) 2>&5 |
| 13610 | ac_status=$? |
| 13611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13612 | (exit $ac_status); }; }; then |
| 13613 | |
| 13614 | cat >>confdefs.h <<\_ACEOF |
| 13615 | #define HAVE_GETPAGESIZE 1 |
| 13616 | _ACEOF |
| 13617 | |
| 13618 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13619 | echo "${ECHO_T}yes" >&6 |
| 13620 | else |
| 13621 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13622 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13623 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13624 | echo "$as_me:$LINENO: result: no" >&5 |
| 13625 | echo "${ECHO_T}no" >&6 |
| 13626 | |
| 13627 | fi |
| 13628 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13629 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13630 | for ac_prog in true |
| 13631 | do |
| 13632 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 13633 | set dummy $ac_prog; ac_word=$2 |
| 13634 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13635 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 13636 | if test "${ac_cv_prog_TRUE+set}" = set; then |
| 13637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13638 | else |
| 13639 | if test -n "$TRUE"; then |
| 13640 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 13641 | else |
| 13642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13643 | for as_dir in $PATH |
| 13644 | do |
| 13645 | IFS=$as_save_IFS |
| 13646 | test -z "$as_dir" && as_dir=. |
| 13647 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13648 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 13649 | ac_cv_prog_TRUE="$ac_prog" |
| 13650 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13651 | break 2 |
| 13652 | fi |
| 13653 | done |
| 13654 | done |
| 13655 | |
| 13656 | fi |
| 13657 | fi |
| 13658 | TRUE=$ac_cv_prog_TRUE |
| 13659 | if test -n "$TRUE"; then |
| 13660 | echo "$as_me:$LINENO: result: $TRUE" >&5 |
| 13661 | echo "${ECHO_T}$TRUE" >&6 |
| 13662 | else |
| 13663 | echo "$as_me:$LINENO: result: no" >&5 |
| 13664 | echo "${ECHO_T}no" >&6 |
| 13665 | fi |
| 13666 | |
| 13667 | test -n "$TRUE" && break |
| 13668 | done |
| 13669 | test -n "$TRUE" || TRUE="/bin/true" |
| 13670 | |
| 13671 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13672 | echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5 |
| 13673 | echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6 |
| 13674 | if test "${ac_cv_lib_c_inet_aton+set}" = set; then |
| 13675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13676 | else |
| 13677 | ac_check_lib_save_LIBS=$LIBS |
| 13678 | LIBS="-lc $LIBS" |
| 13679 | cat >conftest.$ac_ext <<_ACEOF |
| 13680 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13681 | /* confdefs.h. */ |
| 13682 | _ACEOF |
| 13683 | cat confdefs.h >>conftest.$ac_ext |
| 13684 | cat >>conftest.$ac_ext <<_ACEOF |
| 13685 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13686 | |
| 13687 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 13688 | #ifdef __cplusplus |
| 13689 | extern "C" |
| 13690 | #endif |
| 13691 | /* We use char because int might match the return type of a gcc2 |
| 13692 | builtin and then its argument prototype would still apply. */ |
| 13693 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13694 | int |
| 13695 | main () |
| 13696 | { |
| 13697 | inet_aton (); |
| 13698 | ; |
| 13699 | return 0; |
| 13700 | } |
| 13701 | _ACEOF |
| 13702 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13703 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13704 | (eval $ac_link) 2>&5 |
| 13705 | ac_status=$? |
| 13706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13707 | (exit $ac_status); } && |
| 13708 | { ac_try='test -s conftest$ac_exeext' |
| 13709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13710 | (eval $ac_try) 2>&5 |
| 13711 | ac_status=$? |
| 13712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13713 | (exit $ac_status); }; }; then |
| 13714 | ac_cv_lib_c_inet_aton=yes |
| 13715 | else |
| 13716 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13717 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13718 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13719 | ac_cv_lib_c_inet_aton=no |
| 13720 | fi |
| 13721 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 13722 | LIBS=$ac_check_lib_save_LIBS |
| 13723 | fi |
| 13724 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5 |
| 13725 | echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6 |
| 13726 | if test $ac_cv_lib_c_inet_aton = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13727 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13728 | else |
| 13729 | |
| 13730 | echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
| 13731 | echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6 |
| 13732 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
| 13733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13734 | else |
| 13735 | ac_check_lib_save_LIBS=$LIBS |
| 13736 | LIBS="-lresolv $LIBS" |
| 13737 | cat >conftest.$ac_ext <<_ACEOF |
| 13738 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13739 | /* confdefs.h. */ |
| 13740 | _ACEOF |
| 13741 | cat confdefs.h >>conftest.$ac_ext |
| 13742 | cat >>conftest.$ac_ext <<_ACEOF |
| 13743 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13744 | |
| 13745 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 13746 | #ifdef __cplusplus |
| 13747 | extern "C" |
| 13748 | #endif |
| 13749 | /* We use char because int might match the return type of a gcc2 |
| 13750 | builtin and then its argument prototype would still apply. */ |
| 13751 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13752 | int |
| 13753 | main () |
| 13754 | { |
| 13755 | inet_aton (); |
| 13756 | ; |
| 13757 | return 0; |
| 13758 | } |
| 13759 | _ACEOF |
| 13760 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13761 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13762 | (eval $ac_link) 2>&5 |
| 13763 | ac_status=$? |
| 13764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13765 | (exit $ac_status); } && |
| 13766 | { ac_try='test -s conftest$ac_exeext' |
| 13767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13768 | (eval $ac_try) 2>&5 |
| 13769 | ac_status=$? |
| 13770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13771 | (exit $ac_status); }; }; then |
| 13772 | ac_cv_lib_resolv_inet_aton=yes |
| 13773 | else |
| 13774 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13775 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13776 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13777 | ac_cv_lib_resolv_inet_aton=no |
| 13778 | fi |
| 13779 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 13780 | LIBS=$ac_check_lib_save_LIBS |
| 13781 | fi |
| 13782 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 13783 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6 |
| 13784 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
| 13785 | cat >>confdefs.h <<_ACEOF |
| 13786 | #define HAVE_LIBRESOLV 1 |
| 13787 | _ACEOF |
| 13788 | |
| 13789 | LIBS="-lresolv $LIBS" |
| 13790 | |
| 13791 | fi |
| 13792 | |
| 13793 | |
| 13794 | fi |
| 13795 | |
| 13796 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13797 | echo "$as_me:$LINENO: checking for hstrerror" >&5 |
| 13798 | echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6 |
| 13799 | cat >conftest.$ac_ext <<_ACEOF |
| 13800 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13801 | /* confdefs.h. */ |
| 13802 | _ACEOF |
| 13803 | cat confdefs.h >>conftest.$ac_ext |
| 13804 | cat >>conftest.$ac_ext <<_ACEOF |
| 13805 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13806 | |
| 13807 | #include "confdefs.h" |
| 13808 | #include <netdb.h> |
| 13809 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13810 | int |
| 13811 | main () |
| 13812 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13813 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13814 | ; |
| 13815 | return 0; |
| 13816 | } |
| 13817 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13818 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13819 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13820 | (eval $ac_link) 2>&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13821 | ac_status=$? |
| 13822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13823 | (exit $ac_status); } && |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13824 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13826 | (eval $ac_try) 2>&5 |
| 13827 | ac_status=$? |
| 13828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13829 | (exit $ac_status); }; }; then |
| 13830 | |
| 13831 | cat >>confdefs.h <<\_ACEOF |
| 13832 | #define HAVE_HSTRERROR 1 |
| 13833 | _ACEOF |
| 13834 | |
| 13835 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13836 | echo "${ECHO_T}yes" >&6 |
| 13837 | else |
| 13838 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13839 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13840 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13841 | echo "$as_me:$LINENO: result: no" >&5 |
| 13842 | echo "${ECHO_T}no" >&6 |
| 13843 | |
| 13844 | fi |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13845 | 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] | 13846 | |
| 13847 | echo "$as_me:$LINENO: checking for inet_aton" >&5 |
| 13848 | echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6 |
| 13849 | cat >conftest.$ac_ext <<_ACEOF |
| 13850 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13851 | /* confdefs.h. */ |
| 13852 | _ACEOF |
| 13853 | cat confdefs.h >>conftest.$ac_ext |
| 13854 | cat >>conftest.$ac_ext <<_ACEOF |
| 13855 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13856 | |
| 13857 | #include "confdefs.h" |
| 13858 | #include <sys/socket.h> |
| 13859 | #include <netinet/in.h> |
| 13860 | #include <arpa/inet.h> |
| 13861 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13862 | int |
| 13863 | main () |
| 13864 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13865 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13866 | ; |
| 13867 | return 0; |
| 13868 | } |
| 13869 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13870 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13871 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13872 | (eval $ac_link) 2>&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13873 | ac_status=$? |
| 13874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13875 | (exit $ac_status); } && |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13876 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13878 | (eval $ac_try) 2>&5 |
| 13879 | ac_status=$? |
| 13880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13881 | (exit $ac_status); }; }; then |
| 13882 | |
| 13883 | cat >>confdefs.h <<\_ACEOF |
| 13884 | #define HAVE_INET_ATON 1 |
| 13885 | _ACEOF |
| 13886 | |
| 13887 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13888 | echo "${ECHO_T}yes" >&6 |
| 13889 | else |
| 13890 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13891 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13892 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13893 | echo "$as_me:$LINENO: result: no" >&5 |
| 13894 | echo "${ECHO_T}no" >&6 |
| 13895 | |
| 13896 | fi |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13897 | 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] | 13898 | |
| 13899 | echo "$as_me:$LINENO: checking for inet_pton" >&5 |
| 13900 | echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6 |
| 13901 | cat >conftest.$ac_ext <<_ACEOF |
| 13902 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13903 | /* confdefs.h. */ |
| 13904 | _ACEOF |
| 13905 | cat confdefs.h >>conftest.$ac_ext |
| 13906 | cat >>conftest.$ac_ext <<_ACEOF |
| 13907 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13908 | |
| 13909 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 13910 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13911 | #include <sys/socket.h> |
| 13912 | #include <netinet/in.h> |
| 13913 | #include <arpa/inet.h> |
| 13914 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13915 | int |
| 13916 | main () |
| 13917 | { |
| 13918 | void* p = inet_pton |
| 13919 | ; |
| 13920 | return 0; |
| 13921 | } |
| 13922 | _ACEOF |
| 13923 | rm -f conftest.$ac_objext |
| 13924 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13925 | (eval $ac_compile) 2>&5 |
| 13926 | ac_status=$? |
| 13927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13928 | (exit $ac_status); } && |
| 13929 | { ac_try='test -s conftest.$ac_objext' |
| 13930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13931 | (eval $ac_try) 2>&5 |
| 13932 | ac_status=$? |
| 13933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13934 | (exit $ac_status); }; }; then |
| 13935 | |
| 13936 | cat >>confdefs.h <<\_ACEOF |
| 13937 | #define HAVE_INET_PTON 1 |
| 13938 | _ACEOF |
| 13939 | |
| 13940 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13941 | echo "${ECHO_T}yes" >&6 |
| 13942 | else |
| 13943 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13944 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13945 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13946 | echo "$as_me:$LINENO: result: no" >&5 |
| 13947 | echo "${ECHO_T}no" >&6 |
| 13948 | |
| 13949 | fi |
| 13950 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13951 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 13952 | # 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] | 13953 | echo "$as_me:$LINENO: checking for setgroups" >&5 |
| 13954 | echo $ECHO_N "checking for setgroups... $ECHO_C" >&6 |
| 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. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13962 | |
| 13963 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 13964 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 13965 | #ifdef HAVE_GRP_H |
| 13966 | #include <grp.h> |
| 13967 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13968 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13969 | int |
| 13970 | main () |
| 13971 | { |
| 13972 | void* p = setgroups |
| 13973 | ; |
| 13974 | return 0; |
| 13975 | } |
| 13976 | _ACEOF |
| 13977 | rm -f conftest.$ac_objext |
| 13978 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13979 | (eval $ac_compile) 2>&5 |
| 13980 | ac_status=$? |
| 13981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13982 | (exit $ac_status); } && |
| 13983 | { ac_try='test -s conftest.$ac_objext' |
| 13984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13985 | (eval $ac_try) 2>&5 |
| 13986 | ac_status=$? |
| 13987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13988 | (exit $ac_status); }; }; then |
| 13989 | |
| 13990 | cat >>confdefs.h <<\_ACEOF |
| 13991 | #define HAVE_SETGROUPS 1 |
| 13992 | _ACEOF |
| 13993 | |
| 13994 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13995 | echo "${ECHO_T}yes" >&6 |
| 13996 | else |
| 13997 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13998 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13999 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14000 | echo "$as_me:$LINENO: result: no" >&5 |
| 14001 | echo "${ECHO_T}no" >&6 |
| 14002 | |
| 14003 | fi |
| 14004 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14005 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14006 | # check for openpty and forkpty |
| 14007 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14008 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14009 | for ac_func in openpty |
| 14010 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14011 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14012 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14013 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14014 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14015 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14016 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14017 | cat >conftest.$ac_ext <<_ACEOF |
| 14018 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14019 | /* confdefs.h. */ |
| 14020 | _ACEOF |
| 14021 | cat confdefs.h >>conftest.$ac_ext |
| 14022 | cat >>conftest.$ac_ext <<_ACEOF |
| 14023 | /* end confdefs.h. */ |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14024 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14025 | which can conflict with char $ac_func (); below. |
| 14026 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14027 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14028 | including <limits.h> includes <sys/time.h> and causes problems |
| 14029 | checking for functions defined therein. */ |
| 14030 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14031 | # include <limits.h> |
| 14032 | #else |
| 14033 | # include <assert.h> |
| 14034 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14035 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14036 | #ifdef __cplusplus |
| 14037 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14038 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14039 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14040 | /* 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] | 14041 | builtin and then its argument prototype would still apply. */ |
| 14042 | char $ac_func (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14043 | /* The GNU C library defines this for functions which it implements |
| 14044 | to always fail with ENOSYS. Some functions are actually named |
| 14045 | something starting with __ and the normal name is an alias. */ |
| 14046 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14047 | choke me |
| 14048 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14049 | char (*f) () = $ac_func; |
| 14050 | #endif |
| 14051 | #ifdef __cplusplus |
| 14052 | } |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14053 | #endif |
| 14054 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14055 | int |
| 14056 | main () |
| 14057 | { |
| 14058 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14059 | ; |
| 14060 | return 0; |
| 14061 | } |
| 14062 | _ACEOF |
| 14063 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14064 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14065 | (eval $ac_link) 2>&5 |
| 14066 | ac_status=$? |
| 14067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14068 | (exit $ac_status); } && |
| 14069 | { ac_try='test -s conftest$ac_exeext' |
| 14070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14071 | (eval $ac_try) 2>&5 |
| 14072 | ac_status=$? |
| 14073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14074 | (exit $ac_status); }; }; then |
| 14075 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14076 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14077 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14078 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14079 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14080 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14081 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14082 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14083 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14084 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14085 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14086 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14087 | cat >>confdefs.h <<_ACEOF |
| 14088 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14089 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14090 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14091 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14092 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 14093 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
| 14094 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
| 14095 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14096 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14097 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14098 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14099 | cat >conftest.$ac_ext <<_ACEOF |
| 14100 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14101 | /* confdefs.h. */ |
| 14102 | _ACEOF |
| 14103 | cat confdefs.h >>conftest.$ac_ext |
| 14104 | cat >>conftest.$ac_ext <<_ACEOF |
| 14105 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14106 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14107 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14108 | #ifdef __cplusplus |
| 14109 | extern "C" |
| 14110 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14111 | /* 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] | 14112 | builtin and then its argument prototype would still apply. */ |
| 14113 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14114 | int |
| 14115 | main () |
| 14116 | { |
| 14117 | openpty (); |
| 14118 | ; |
| 14119 | return 0; |
| 14120 | } |
| 14121 | _ACEOF |
| 14122 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14123 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14124 | (eval $ac_link) 2>&5 |
| 14125 | ac_status=$? |
| 14126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14127 | (exit $ac_status); } && |
| 14128 | { ac_try='test -s conftest$ac_exeext' |
| 14129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14130 | (eval $ac_try) 2>&5 |
| 14131 | ac_status=$? |
| 14132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14133 | (exit $ac_status); }; }; then |
| 14134 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14135 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14136 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14137 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14138 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14139 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14140 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14141 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 14142 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14143 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14144 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 14145 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
| 14146 | if test $ac_cv_lib_util_openpty = yes; then |
| 14147 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14148 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14149 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14150 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14151 | fi |
| 14152 | |
| 14153 | fi |
| 14154 | done |
| 14155 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14156 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14157 | for ac_func in forkpty |
| 14158 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14159 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14160 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14161 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14162 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14163 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14164 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14165 | cat >conftest.$ac_ext <<_ACEOF |
| 14166 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14167 | /* confdefs.h. */ |
| 14168 | _ACEOF |
| 14169 | cat confdefs.h >>conftest.$ac_ext |
| 14170 | cat >>conftest.$ac_ext <<_ACEOF |
| 14171 | /* end confdefs.h. */ |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14172 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14173 | which can conflict with char $ac_func (); below. |
| 14174 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14175 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14176 | including <limits.h> includes <sys/time.h> and causes problems |
| 14177 | checking for functions defined therein. */ |
| 14178 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14179 | # include <limits.h> |
| 14180 | #else |
| 14181 | # include <assert.h> |
| 14182 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14183 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14184 | #ifdef __cplusplus |
| 14185 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14186 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14187 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14188 | /* 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] | 14189 | builtin and then its argument prototype would still apply. */ |
| 14190 | char $ac_func (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14191 | /* The GNU C library defines this for functions which it implements |
| 14192 | to always fail with ENOSYS. Some functions are actually named |
| 14193 | something starting with __ and the normal name is an alias. */ |
| 14194 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14195 | choke me |
| 14196 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14197 | char (*f) () = $ac_func; |
| 14198 | #endif |
| 14199 | #ifdef __cplusplus |
| 14200 | } |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14201 | #endif |
| 14202 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14203 | int |
| 14204 | main () |
| 14205 | { |
| 14206 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14207 | ; |
| 14208 | return 0; |
| 14209 | } |
| 14210 | _ACEOF |
| 14211 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14212 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14213 | (eval $ac_link) 2>&5 |
| 14214 | ac_status=$? |
| 14215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14216 | (exit $ac_status); } && |
| 14217 | { ac_try='test -s conftest$ac_exeext' |
| 14218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14219 | (eval $ac_try) 2>&5 |
| 14220 | ac_status=$? |
| 14221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14222 | (exit $ac_status); }; }; then |
| 14223 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14224 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14225 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14226 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14227 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14228 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14229 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14230 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14231 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14232 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14233 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14234 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14235 | cat >>confdefs.h <<_ACEOF |
| 14236 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14237 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14238 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14239 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14240 | echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 14241 | echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6 |
| 14242 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
| 14243 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14244 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14245 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14246 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14247 | cat >conftest.$ac_ext <<_ACEOF |
| 14248 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14249 | /* confdefs.h. */ |
| 14250 | _ACEOF |
| 14251 | cat confdefs.h >>conftest.$ac_ext |
| 14252 | cat >>conftest.$ac_ext <<_ACEOF |
| 14253 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14254 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14255 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14256 | #ifdef __cplusplus |
| 14257 | extern "C" |
| 14258 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14259 | /* 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] | 14260 | builtin and then its argument prototype would still apply. */ |
| 14261 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14262 | int |
| 14263 | main () |
| 14264 | { |
| 14265 | forkpty (); |
| 14266 | ; |
| 14267 | return 0; |
| 14268 | } |
| 14269 | _ACEOF |
| 14270 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14271 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14272 | (eval $ac_link) 2>&5 |
| 14273 | ac_status=$? |
| 14274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14275 | (exit $ac_status); } && |
| 14276 | { ac_try='test -s conftest$ac_exeext' |
| 14277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14278 | (eval $ac_try) 2>&5 |
| 14279 | ac_status=$? |
| 14280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14281 | (exit $ac_status); }; }; then |
| 14282 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14283 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14284 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14285 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14286 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14287 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14288 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14289 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 14290 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14291 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14292 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 14293 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6 |
| 14294 | if test $ac_cv_lib_util_forkpty = yes; then |
| 14295 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14296 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14297 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14298 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14299 | fi |
| 14300 | |
| 14301 | fi |
| 14302 | done |
| 14303 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14304 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14305 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14306 | |
| 14307 | |
| 14308 | |
| 14309 | |
| 14310 | |
| 14311 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14312 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 14313 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14314 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14315 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14316 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14317 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14319 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14320 | cat >conftest.$ac_ext <<_ACEOF |
| 14321 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14322 | /* confdefs.h. */ |
| 14323 | _ACEOF |
| 14324 | cat confdefs.h >>conftest.$ac_ext |
| 14325 | cat >>conftest.$ac_ext <<_ACEOF |
| 14326 | /* end confdefs.h. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14327 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14328 | which can conflict with char $ac_func (); below. |
| 14329 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14330 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14331 | including <limits.h> includes <sys/time.h> and causes problems |
| 14332 | checking for functions defined therein. */ |
| 14333 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14334 | # include <limits.h> |
| 14335 | #else |
| 14336 | # include <assert.h> |
| 14337 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14338 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14339 | #ifdef __cplusplus |
| 14340 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14341 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14342 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14343 | /* 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] | 14344 | builtin and then its argument prototype would still apply. */ |
| 14345 | char $ac_func (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14346 | /* The GNU C library defines this for functions which it implements |
| 14347 | to always fail with ENOSYS. Some functions are actually named |
| 14348 | something starting with __ and the normal name is an alias. */ |
| 14349 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14350 | choke me |
| 14351 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14352 | char (*f) () = $ac_func; |
| 14353 | #endif |
| 14354 | #ifdef __cplusplus |
| 14355 | } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14356 | #endif |
| 14357 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14358 | int |
| 14359 | main () |
| 14360 | { |
| 14361 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14362 | ; |
| 14363 | return 0; |
| 14364 | } |
| 14365 | _ACEOF |
| 14366 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14367 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14368 | (eval $ac_link) 2>&5 |
| 14369 | ac_status=$? |
| 14370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14371 | (exit $ac_status); } && |
| 14372 | { ac_try='test -s conftest$ac_exeext' |
| 14373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14374 | (eval $ac_try) 2>&5 |
| 14375 | ac_status=$? |
| 14376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14377 | (exit $ac_status); }; }; then |
| 14378 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14379 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14380 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14381 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14382 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14383 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14384 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14385 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14386 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14387 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14388 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14389 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14390 | cat >>confdefs.h <<_ACEOF |
| 14391 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14392 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14393 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14394 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14395 | done |
| 14396 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14397 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14398 | |
| 14399 | |
| 14400 | |
| 14401 | |
| 14402 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14403 | for ac_func in dup2 getcwd strdup strerror memmove |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14404 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14405 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14406 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14407 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14408 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14409 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14410 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14411 | cat >conftest.$ac_ext <<_ACEOF |
| 14412 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14413 | /* confdefs.h. */ |
| 14414 | _ACEOF |
| 14415 | cat confdefs.h >>conftest.$ac_ext |
| 14416 | cat >>conftest.$ac_ext <<_ACEOF |
| 14417 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14418 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14419 | which can conflict with char $ac_func (); below. |
| 14420 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14421 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14422 | including <limits.h> includes <sys/time.h> and causes problems |
| 14423 | checking for functions defined therein. */ |
| 14424 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14425 | # include <limits.h> |
| 14426 | #else |
| 14427 | # include <assert.h> |
| 14428 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14429 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14430 | #ifdef __cplusplus |
| 14431 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14432 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14433 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14434 | /* 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] | 14435 | builtin and then its argument prototype would still apply. */ |
| 14436 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14437 | /* The GNU C library defines this for functions which it implements |
| 14438 | to always fail with ENOSYS. Some functions are actually named |
| 14439 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14440 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14441 | choke me |
| 14442 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14443 | char (*f) () = $ac_func; |
| 14444 | #endif |
| 14445 | #ifdef __cplusplus |
| 14446 | } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14447 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14448 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14449 | int |
| 14450 | main () |
| 14451 | { |
| 14452 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14453 | ; |
| 14454 | return 0; |
| 14455 | } |
| 14456 | _ACEOF |
| 14457 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14458 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14459 | (eval $ac_link) 2>&5 |
| 14460 | ac_status=$? |
| 14461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14462 | (exit $ac_status); } && |
| 14463 | { ac_try='test -s conftest$ac_exeext' |
| 14464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14465 | (eval $ac_try) 2>&5 |
| 14466 | ac_status=$? |
| 14467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14468 | (exit $ac_status); }; }; then |
| 14469 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14470 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14471 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14472 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14473 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14474 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14475 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14476 | 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] | 14477 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14478 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14479 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14480 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14481 | cat >>confdefs.h <<_ACEOF |
| 14482 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14483 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14484 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14485 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14486 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14487 | fi |
| 14488 | done |
| 14489 | |
| 14490 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14491 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14492 | for ac_func in getpgrp |
| 14493 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14494 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14495 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14496 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14497 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14498 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14499 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14500 | cat >conftest.$ac_ext <<_ACEOF |
| 14501 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14502 | /* confdefs.h. */ |
| 14503 | _ACEOF |
| 14504 | cat confdefs.h >>conftest.$ac_ext |
| 14505 | cat >>conftest.$ac_ext <<_ACEOF |
| 14506 | /* end confdefs.h. */ |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14507 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14508 | which can conflict with char $ac_func (); below. |
| 14509 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14510 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14511 | including <limits.h> includes <sys/time.h> and causes problems |
| 14512 | checking for functions defined therein. */ |
| 14513 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14514 | # include <limits.h> |
| 14515 | #else |
| 14516 | # include <assert.h> |
| 14517 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14518 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14519 | #ifdef __cplusplus |
| 14520 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14521 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14522 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14523 | /* 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] | 14524 | builtin and then its argument prototype would still apply. */ |
| 14525 | char $ac_func (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14526 | /* The GNU C library defines this for functions which it implements |
| 14527 | to always fail with ENOSYS. Some functions are actually named |
| 14528 | something starting with __ and the normal name is an alias. */ |
| 14529 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14530 | choke me |
| 14531 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14532 | char (*f) () = $ac_func; |
| 14533 | #endif |
| 14534 | #ifdef __cplusplus |
| 14535 | } |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14536 | #endif |
| 14537 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14538 | int |
| 14539 | main () |
| 14540 | { |
| 14541 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14542 | ; |
| 14543 | return 0; |
| 14544 | } |
| 14545 | _ACEOF |
| 14546 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14547 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14548 | (eval $ac_link) 2>&5 |
| 14549 | ac_status=$? |
| 14550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14551 | (exit $ac_status); } && |
| 14552 | { ac_try='test -s conftest$ac_exeext' |
| 14553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14554 | (eval $ac_try) 2>&5 |
| 14555 | ac_status=$? |
| 14556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14557 | (exit $ac_status); }; }; then |
| 14558 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14559 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14560 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14561 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14562 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14563 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14564 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14565 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14566 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14567 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14568 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14569 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14570 | cat >>confdefs.h <<_ACEOF |
| 14571 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14572 | _ACEOF |
| 14573 | cat >conftest.$ac_ext <<_ACEOF |
| 14574 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14575 | /* confdefs.h. */ |
| 14576 | _ACEOF |
| 14577 | cat confdefs.h >>conftest.$ac_ext |
| 14578 | cat >>conftest.$ac_ext <<_ACEOF |
| 14579 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14580 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14581 | int |
| 14582 | main () |
| 14583 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14584 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14585 | ; |
| 14586 | return 0; |
| 14587 | } |
| 14588 | _ACEOF |
| 14589 | rm -f conftest.$ac_objext |
| 14590 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14591 | (eval $ac_compile) 2>&5 |
| 14592 | ac_status=$? |
| 14593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14594 | (exit $ac_status); } && |
| 14595 | { ac_try='test -s conftest.$ac_objext' |
| 14596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14597 | (eval $ac_try) 2>&5 |
| 14598 | ac_status=$? |
| 14599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14600 | (exit $ac_status); }; }; then |
| 14601 | |
| 14602 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14603 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14604 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14605 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14606 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 14607 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14608 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14609 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14610 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14611 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14612 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14613 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14614 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14615 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14616 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14617 | |
| 14618 | for ac_func in setpgrp |
| 14619 | do |
| 14620 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14621 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14622 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14623 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14625 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14626 | cat >conftest.$ac_ext <<_ACEOF |
| 14627 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14628 | /* confdefs.h. */ |
| 14629 | _ACEOF |
| 14630 | cat confdefs.h >>conftest.$ac_ext |
| 14631 | cat >>conftest.$ac_ext <<_ACEOF |
| 14632 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14633 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14634 | which can conflict with char $ac_func (); below. |
| 14635 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14636 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14637 | including <limits.h> includes <sys/time.h> and causes problems |
| 14638 | checking for functions defined therein. */ |
| 14639 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14640 | # include <limits.h> |
| 14641 | #else |
| 14642 | # include <assert.h> |
| 14643 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14644 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14645 | #ifdef __cplusplus |
| 14646 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14647 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14648 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14649 | /* We use char because int might match the return type of a gcc2 |
| 14650 | builtin and then its argument prototype would still apply. */ |
| 14651 | char $ac_func (); |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14652 | /* The GNU C library defines this for functions which it implements |
| 14653 | to always fail with ENOSYS. Some functions are actually named |
| 14654 | something starting with __ and the normal name is an alias. */ |
| 14655 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14656 | choke me |
| 14657 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14658 | char (*f) () = $ac_func; |
| 14659 | #endif |
| 14660 | #ifdef __cplusplus |
| 14661 | } |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14662 | #endif |
| 14663 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14664 | int |
| 14665 | main () |
| 14666 | { |
| 14667 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14668 | ; |
| 14669 | return 0; |
| 14670 | } |
| 14671 | _ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14672 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14673 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14674 | (eval $ac_link) 2>&5 |
| 14675 | ac_status=$? |
| 14676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14677 | (exit $ac_status); } && |
| 14678 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14680 | (eval $ac_try) 2>&5 |
| 14681 | ac_status=$? |
| 14682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14683 | (exit $ac_status); }; }; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14684 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14685 | else |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14686 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14687 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14688 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14689 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14690 | fi |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14691 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14692 | fi |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14693 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14694 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14695 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14696 | cat >>confdefs.h <<_ACEOF |
| 14697 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14698 | _ACEOF |
| 14699 | cat >conftest.$ac_ext <<_ACEOF |
| 14700 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14701 | /* confdefs.h. */ |
| 14702 | _ACEOF |
| 14703 | cat confdefs.h >>conftest.$ac_ext |
| 14704 | cat >>conftest.$ac_ext <<_ACEOF |
| 14705 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14706 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14707 | int |
| 14708 | main () |
| 14709 | { |
| 14710 | setpgrp(0,0); |
| 14711 | ; |
| 14712 | return 0; |
| 14713 | } |
| 14714 | _ACEOF |
| 14715 | rm -f conftest.$ac_objext |
| 14716 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14717 | (eval $ac_compile) 2>&5 |
| 14718 | ac_status=$? |
| 14719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14720 | (exit $ac_status); } && |
| 14721 | { ac_try='test -s conftest.$ac_objext' |
| 14722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14723 | (eval $ac_try) 2>&5 |
| 14724 | ac_status=$? |
| 14725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14726 | (exit $ac_status); }; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14727 | |
| 14728 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14729 | #define SETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14730 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 14731 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14732 | |
| 14733 | else |
| 14734 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14735 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14736 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 14737 | fi |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14738 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14739 | |
| 14740 | fi |
| 14741 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 14742 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14743 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14744 | for ac_func in gettimeofday |
| 14745 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14746 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14747 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14748 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14749 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14750 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14751 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14752 | cat >conftest.$ac_ext <<_ACEOF |
| 14753 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14754 | /* confdefs.h. */ |
| 14755 | _ACEOF |
| 14756 | cat confdefs.h >>conftest.$ac_ext |
| 14757 | cat >>conftest.$ac_ext <<_ACEOF |
| 14758 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14759 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14760 | which can conflict with char $ac_func (); below. |
| 14761 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14762 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14763 | including <limits.h> includes <sys/time.h> and causes problems |
| 14764 | checking for functions defined therein. */ |
| 14765 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14766 | # include <limits.h> |
| 14767 | #else |
| 14768 | # include <assert.h> |
| 14769 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14770 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14771 | #ifdef __cplusplus |
| 14772 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14773 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14774 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14775 | /* 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] | 14776 | builtin and then its argument prototype would still apply. */ |
| 14777 | char $ac_func (); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14778 | /* The GNU C library defines this for functions which it implements |
| 14779 | to always fail with ENOSYS. Some functions are actually named |
| 14780 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14781 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14782 | choke me |
| 14783 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14784 | char (*f) () = $ac_func; |
| 14785 | #endif |
| 14786 | #ifdef __cplusplus |
| 14787 | } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14788 | #endif |
| 14789 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14790 | int |
| 14791 | main () |
| 14792 | { |
| 14793 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14794 | ; |
| 14795 | return 0; |
| 14796 | } |
| 14797 | _ACEOF |
| 14798 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14799 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14800 | (eval $ac_link) 2>&5 |
| 14801 | ac_status=$? |
| 14802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14803 | (exit $ac_status); } && |
| 14804 | { ac_try='test -s conftest$ac_exeext' |
| 14805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14806 | (eval $ac_try) 2>&5 |
| 14807 | ac_status=$? |
| 14808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14809 | (exit $ac_status); }; }; then |
| 14810 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14811 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14812 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14813 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14814 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14815 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14816 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14817 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14818 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14819 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14820 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14821 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14822 | cat >>confdefs.h <<_ACEOF |
| 14823 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14824 | _ACEOF |
| 14825 | cat >conftest.$ac_ext <<_ACEOF |
| 14826 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14827 | /* confdefs.h. */ |
| 14828 | _ACEOF |
| 14829 | cat confdefs.h >>conftest.$ac_ext |
| 14830 | cat >>conftest.$ac_ext <<_ACEOF |
| 14831 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14832 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14833 | int |
| 14834 | main () |
| 14835 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14836 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14837 | ; |
| 14838 | return 0; |
| 14839 | } |
| 14840 | _ACEOF |
| 14841 | rm -f conftest.$ac_objext |
| 14842 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14843 | (eval $ac_compile) 2>&5 |
| 14844 | ac_status=$? |
| 14845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14846 | (exit $ac_status); } && |
| 14847 | { ac_try='test -s conftest.$ac_objext' |
| 14848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14849 | (eval $ac_try) 2>&5 |
| 14850 | ac_status=$? |
| 14851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14852 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14853 | : |
| 14854 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14855 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14856 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14857 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14858 | |
| 14859 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14860 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14861 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14862 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14863 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14864 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14865 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14866 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14867 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14868 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14869 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14870 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14871 | echo "$as_me:$LINENO: checking for major" >&5 |
| 14872 | echo $ECHO_N "checking for major... $ECHO_C" >&6 |
| 14873 | cat >conftest.$ac_ext <<_ACEOF |
| 14874 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14875 | /* confdefs.h. */ |
| 14876 | _ACEOF |
| 14877 | cat confdefs.h >>conftest.$ac_ext |
| 14878 | cat >>conftest.$ac_ext <<_ACEOF |
| 14879 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14880 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 14881 | #if defined(MAJOR_IN_MKDEV) |
| 14882 | #include <sys/mkdev.h> |
| 14883 | #elif defined(MAJOR_IN_SYSMACROS) |
| 14884 | #include <sys/sysmacros.h> |
| 14885 | #else |
| 14886 | #include <sys/types.h> |
| 14887 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14888 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14889 | int |
| 14890 | main () |
| 14891 | { |
| 14892 | |
| 14893 | makedev(major(0),minor(0)); |
| 14894 | |
| 14895 | ; |
| 14896 | return 0; |
| 14897 | } |
| 14898 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 14899 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14900 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14901 | (eval $ac_link) 2>&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14902 | ac_status=$? |
| 14903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14904 | (exit $ac_status); } && |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 14905 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14907 | (eval $ac_try) 2>&5 |
| 14908 | ac_status=$? |
| 14909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14910 | (exit $ac_status); }; }; then |
| 14911 | |
| 14912 | |
| 14913 | cat >>confdefs.h <<\_ACEOF |
| 14914 | #define HAVE_DEVICE_MACROS 1 |
| 14915 | _ACEOF |
| 14916 | |
| 14917 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14918 | echo "${ECHO_T}yes" >&6 |
| 14919 | |
| 14920 | else |
| 14921 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14922 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14923 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14924 | |
| 14925 | echo "$as_me:$LINENO: result: no" >&5 |
| 14926 | echo "${ECHO_T}no" >&6 |
| 14927 | |
| 14928 | fi |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 14929 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14930 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 14931 | # 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] | 14932 | # for [no]getaddrinfo in netdb.h. |
| 14933 | echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 14934 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6 |
| 14935 | cat >conftest.$ac_ext <<_ACEOF |
| 14936 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14937 | /* confdefs.h. */ |
| 14938 | _ACEOF |
| 14939 | cat confdefs.h >>conftest.$ac_ext |
| 14940 | cat >>conftest.$ac_ext <<_ACEOF |
| 14941 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 14942 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 14943 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 14944 | #include <sys/socket.h> |
| 14945 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 14946 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14947 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14948 | int |
| 14949 | main () |
| 14950 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14951 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 14952 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14953 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14954 | ; |
| 14955 | return 0; |
| 14956 | } |
| 14957 | _ACEOF |
| 14958 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14959 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14960 | (eval $ac_link) 2>&5 |
| 14961 | ac_status=$? |
| 14962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14963 | (exit $ac_status); } && |
| 14964 | { ac_try='test -s conftest$ac_exeext' |
| 14965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14966 | (eval $ac_try) 2>&5 |
| 14967 | ac_status=$? |
| 14968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14969 | (exit $ac_status); }; }; then |
| 14970 | |
| 14971 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14972 | echo "${ECHO_T}yes" >&6 |
| 14973 | echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| 14974 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14975 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14976 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 14977 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14978 | buggygetaddrinfo=yes |
| 14979 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14980 | cat >conftest.$ac_ext <<_ACEOF |
| 14981 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14982 | /* confdefs.h. */ |
| 14983 | _ACEOF |
| 14984 | cat confdefs.h >>conftest.$ac_ext |
| 14985 | cat >>conftest.$ac_ext <<_ACEOF |
| 14986 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14987 | |
| 14988 | #include <sys/types.h> |
| 14989 | #include <netdb.h> |
| 14990 | #include <string.h> |
| 14991 | #include <sys/socket.h> |
| 14992 | #include <netinet/in.h> |
| 14993 | |
| 14994 | main() |
| 14995 | { |
| 14996 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 14997 | struct addrinfo hints, *ai, *aitop; |
| 14998 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 14999 | |
| 15000 | for (passive = 0; passive <= 1; passive++) { |
| 15001 | memset(&hints, 0, sizeof(hints)); |
| 15002 | hints.ai_family = AF_UNSPEC; |
| 15003 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 15004 | hints.ai_socktype = SOCK_STREAM; |
| 15005 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 15006 | (void)gai_strerror(gaierr); |
| 15007 | goto bad; |
| 15008 | } |
| 15009 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 15010 | if (ai->ai_addr == NULL || |
| 15011 | ai->ai_addrlen == 0 || |
| 15012 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 15013 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 15014 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 15015 | goto bad; |
| 15016 | } |
| 15017 | switch (ai->ai_family) { |
| 15018 | case AF_INET: |
| 15019 | if (strcmp(strport, "54321") != 0) { |
| 15020 | goto bad; |
| 15021 | } |
| 15022 | if (passive) { |
| 15023 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 15024 | goto bad; |
| 15025 | } |
| 15026 | } else { |
| 15027 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 15028 | goto bad; |
| 15029 | } |
| 15030 | } |
| 15031 | inet4++; |
| 15032 | break; |
| 15033 | case AF_INET6: |
| 15034 | if (strcmp(strport, "54321") != 0) { |
| 15035 | goto bad; |
| 15036 | } |
| 15037 | if (passive) { |
| 15038 | if (strcmp(straddr, "::") != 0) { |
| 15039 | goto bad; |
| 15040 | } |
| 15041 | } else { |
| 15042 | if (strcmp(straddr, "::1") != 0) { |
| 15043 | goto bad; |
| 15044 | } |
| 15045 | } |
| 15046 | inet6++; |
| 15047 | break; |
| 15048 | case AF_UNSPEC: |
| 15049 | goto bad; |
| 15050 | break; |
| 15051 | default: |
| 15052 | /* another family support? */ |
| 15053 | break; |
| 15054 | } |
| 15055 | } |
| 15056 | } |
| 15057 | |
| 15058 | if (!(inet4 == 0 || inet4 == 2)) |
| 15059 | goto bad; |
| 15060 | if (!(inet6 == 0 || inet6 == 2)) |
| 15061 | goto bad; |
| 15062 | |
| 15063 | if (aitop) |
| 15064 | freeaddrinfo(aitop); |
| 15065 | exit(0); |
| 15066 | |
| 15067 | bad: |
| 15068 | if (aitop) |
| 15069 | freeaddrinfo(aitop); |
| 15070 | exit(1); |
| 15071 | } |
| 15072 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15073 | _ACEOF |
| 15074 | rm -f conftest$ac_exeext |
| 15075 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15076 | (eval $ac_link) 2>&5 |
| 15077 | ac_status=$? |
| 15078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15079 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15081 | (eval $ac_try) 2>&5 |
| 15082 | ac_status=$? |
| 15083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15084 | (exit $ac_status); }; }; then |
| 15085 | echo "$as_me:$LINENO: result: good" >&5 |
| 15086 | echo "${ECHO_T}good" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15087 | buggygetaddrinfo=no |
| 15088 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15089 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15090 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15091 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15092 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15093 | ( exit $ac_status ) |
| 15094 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 15095 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15096 | buggygetaddrinfo=yes |
| 15097 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15098 | 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] | 15099 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15100 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15101 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15102 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15103 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15104 | |
| 15105 | echo "$as_me:$LINENO: result: no" >&5 |
| 15106 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15107 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15108 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15109 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15110 | 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] | 15111 | |
| 15112 | if test "$buggygetaddrinfo" = "yes"; then |
| 15113 | if test "$ipv6" = "yes"; then |
| 15114 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 15115 | echo ' or you can specify "--disable-ipv6"'. |
| 15116 | exit 1 |
| 15117 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15118 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15119 | |
| 15120 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15121 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15122 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15123 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15124 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15125 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 15126 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15127 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15128 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15129 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15130 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15131 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15133 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15134 | cat >conftest.$ac_ext <<_ACEOF |
| 15135 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15136 | /* confdefs.h. */ |
| 15137 | _ACEOF |
| 15138 | cat confdefs.h >>conftest.$ac_ext |
| 15139 | cat >>conftest.$ac_ext <<_ACEOF |
| 15140 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15141 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15142 | which can conflict with char $ac_func (); below. |
| 15143 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 15144 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 15145 | including <limits.h> includes <sys/time.h> and causes problems |
| 15146 | checking for functions defined therein. */ |
| 15147 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15148 | # include <limits.h> |
| 15149 | #else |
| 15150 | # include <assert.h> |
| 15151 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15152 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15153 | #ifdef __cplusplus |
| 15154 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15155 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15156 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15157 | /* 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] | 15158 | builtin and then its argument prototype would still apply. */ |
| 15159 | char $ac_func (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15160 | /* The GNU C library defines this for functions which it implements |
| 15161 | to always fail with ENOSYS. Some functions are actually named |
| 15162 | something starting with __ and the normal name is an alias. */ |
| 15163 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15164 | choke me |
| 15165 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15166 | char (*f) () = $ac_func; |
| 15167 | #endif |
| 15168 | #ifdef __cplusplus |
| 15169 | } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15170 | #endif |
| 15171 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15172 | int |
| 15173 | main () |
| 15174 | { |
| 15175 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15176 | ; |
| 15177 | return 0; |
| 15178 | } |
| 15179 | _ACEOF |
| 15180 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15181 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15182 | (eval $ac_link) 2>&5 |
| 15183 | ac_status=$? |
| 15184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15185 | (exit $ac_status); } && |
| 15186 | { ac_try='test -s conftest$ac_exeext' |
| 15187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15188 | (eval $ac_try) 2>&5 |
| 15189 | ac_status=$? |
| 15190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15191 | (exit $ac_status); }; }; then |
| 15192 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15193 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15194 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15195 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15196 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15197 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15198 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15199 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15200 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15201 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15202 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15203 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15204 | cat >>confdefs.h <<_ACEOF |
| 15205 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15206 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15207 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15208 | fi |
| 15209 | done |
| 15210 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15211 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15212 | # checks for structures |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15213 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 15214 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 15215 | if test "${ac_cv_header_time+set}" = set; then |
| 15216 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15217 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15218 | cat >conftest.$ac_ext <<_ACEOF |
| 15219 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15220 | /* confdefs.h. */ |
| 15221 | _ACEOF |
| 15222 | cat confdefs.h >>conftest.$ac_ext |
| 15223 | cat >>conftest.$ac_ext <<_ACEOF |
| 15224 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15225 | #include <sys/types.h> |
| 15226 | #include <sys/time.h> |
| 15227 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15228 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15229 | int |
| 15230 | main () |
| 15231 | { |
| 15232 | if ((struct tm *) 0) |
| 15233 | return 0; |
| 15234 | ; |
| 15235 | return 0; |
| 15236 | } |
| 15237 | _ACEOF |
| 15238 | rm -f conftest.$ac_objext |
| 15239 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15240 | (eval $ac_compile) 2>&5 |
| 15241 | ac_status=$? |
| 15242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15243 | (exit $ac_status); } && |
| 15244 | { ac_try='test -s conftest.$ac_objext' |
| 15245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15246 | (eval $ac_try) 2>&5 |
| 15247 | ac_status=$? |
| 15248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15249 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15250 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15251 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15252 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15253 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15254 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15255 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15256 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15257 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15258 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15259 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 15260 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15261 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15262 | |
| 15263 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15264 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15265 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15266 | |
| 15267 | fi |
| 15268 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15269 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 15270 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 15271 | if test "${ac_cv_struct_tm+set}" = set; then |
| 15272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15273 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15274 | cat >conftest.$ac_ext <<_ACEOF |
| 15275 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15276 | /* confdefs.h. */ |
| 15277 | _ACEOF |
| 15278 | cat confdefs.h >>conftest.$ac_ext |
| 15279 | cat >>conftest.$ac_ext <<_ACEOF |
| 15280 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15281 | #include <sys/types.h> |
| 15282 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15283 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15284 | int |
| 15285 | main () |
| 15286 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15287 | struct tm *tp; tp->tm_sec; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15288 | ; |
| 15289 | return 0; |
| 15290 | } |
| 15291 | _ACEOF |
| 15292 | rm -f conftest.$ac_objext |
| 15293 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15294 | (eval $ac_compile) 2>&5 |
| 15295 | ac_status=$? |
| 15296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15297 | (exit $ac_status); } && |
| 15298 | { ac_try='test -s conftest.$ac_objext' |
| 15299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15300 | (eval $ac_try) 2>&5 |
| 15301 | ac_status=$? |
| 15302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15303 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15304 | ac_cv_struct_tm=time.h |
| 15305 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15306 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15307 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15308 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15309 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15310 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15311 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15312 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15313 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 15314 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15315 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15316 | |
| 15317 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15318 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15319 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15320 | |
| 15321 | fi |
| 15322 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15323 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 15324 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 15325 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 15326 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15327 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15328 | cat >conftest.$ac_ext <<_ACEOF |
| 15329 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15330 | /* confdefs.h. */ |
| 15331 | _ACEOF |
| 15332 | cat confdefs.h >>conftest.$ac_ext |
| 15333 | cat >>conftest.$ac_ext <<_ACEOF |
| 15334 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15335 | #include <sys/types.h> |
| 15336 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15337 | |
| 15338 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15339 | int |
| 15340 | main () |
| 15341 | { |
| 15342 | static struct tm ac_aggr; |
| 15343 | if (ac_aggr.tm_zone) |
| 15344 | return 0; |
| 15345 | ; |
| 15346 | return 0; |
| 15347 | } |
| 15348 | _ACEOF |
| 15349 | rm -f conftest.$ac_objext |
| 15350 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15351 | (eval $ac_compile) 2>&5 |
| 15352 | ac_status=$? |
| 15353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15354 | (exit $ac_status); } && |
| 15355 | { ac_try='test -s conftest.$ac_objext' |
| 15356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15357 | (eval $ac_try) 2>&5 |
| 15358 | ac_status=$? |
| 15359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15360 | (exit $ac_status); }; }; then |
| 15361 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15362 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15363 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15364 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15365 | |
| 15366 | cat >conftest.$ac_ext <<_ACEOF |
| 15367 | #line $LINENO "configure" |
| 15368 | /* confdefs.h. */ |
| 15369 | _ACEOF |
| 15370 | cat confdefs.h >>conftest.$ac_ext |
| 15371 | cat >>conftest.$ac_ext <<_ACEOF |
| 15372 | /* end confdefs.h. */ |
| 15373 | #include <sys/types.h> |
| 15374 | #include <$ac_cv_struct_tm> |
| 15375 | |
| 15376 | |
| 15377 | int |
| 15378 | main () |
| 15379 | { |
| 15380 | static struct tm ac_aggr; |
| 15381 | if (sizeof ac_aggr.tm_zone) |
| 15382 | return 0; |
| 15383 | ; |
| 15384 | return 0; |
| 15385 | } |
| 15386 | _ACEOF |
| 15387 | rm -f conftest.$ac_objext |
| 15388 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15389 | (eval $ac_compile) 2>&5 |
| 15390 | ac_status=$? |
| 15391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15392 | (exit $ac_status); } && |
| 15393 | { ac_try='test -s conftest.$ac_objext' |
| 15394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15395 | (eval $ac_try) 2>&5 |
| 15396 | ac_status=$? |
| 15397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15398 | (exit $ac_status); }; }; then |
| 15399 | ac_cv_member_struct_tm_tm_zone=yes |
| 15400 | else |
| 15401 | echo "$as_me: failed program was:" >&5 |
| 15402 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15403 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15404 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15405 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15406 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15407 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15408 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15409 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15410 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 15411 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 15412 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 15413 | |
| 15414 | cat >>confdefs.h <<_ACEOF |
| 15415 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 15416 | _ACEOF |
| 15417 | |
| 15418 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15419 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15420 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15421 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 15422 | |
| 15423 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15424 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15425 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15426 | |
| 15427 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15428 | echo "$as_me:$LINENO: checking for tzname" >&5 |
| 15429 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 15430 | if test "${ac_cv_var_tzname+set}" = set; then |
| 15431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15432 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15433 | cat >conftest.$ac_ext <<_ACEOF |
| 15434 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15435 | /* confdefs.h. */ |
| 15436 | _ACEOF |
| 15437 | cat confdefs.h >>conftest.$ac_ext |
| 15438 | cat >>conftest.$ac_ext <<_ACEOF |
| 15439 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15440 | #include <time.h> |
| 15441 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15442 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15443 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15444 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15445 | int |
| 15446 | main () |
| 15447 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15448 | atoi(*tzname); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15449 | ; |
| 15450 | return 0; |
| 15451 | } |
| 15452 | _ACEOF |
| 15453 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15454 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15455 | (eval $ac_link) 2>&5 |
| 15456 | ac_status=$? |
| 15457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15458 | (exit $ac_status); } && |
| 15459 | { ac_try='test -s conftest$ac_exeext' |
| 15460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15461 | (eval $ac_try) 2>&5 |
| 15462 | ac_status=$? |
| 15463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15464 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15465 | ac_cv_var_tzname=yes |
| 15466 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15467 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15468 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15469 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15470 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15471 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15472 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15473 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15474 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 15475 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15476 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15477 | |
| 15478 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15479 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15480 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15481 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15482 | fi |
| 15483 | fi |
| 15484 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15485 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 15486 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 |
| 15487 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
| 15488 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15489 | else |
| 15490 | cat >conftest.$ac_ext <<_ACEOF |
| 15491 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15492 | /* confdefs.h. */ |
| 15493 | _ACEOF |
| 15494 | cat confdefs.h >>conftest.$ac_ext |
| 15495 | cat >>conftest.$ac_ext <<_ACEOF |
| 15496 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15497 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15498 | int |
| 15499 | main () |
| 15500 | { |
| 15501 | static struct stat ac_aggr; |
| 15502 | if (ac_aggr.st_rdev) |
| 15503 | return 0; |
| 15504 | ; |
| 15505 | return 0; |
| 15506 | } |
| 15507 | _ACEOF |
| 15508 | rm -f conftest.$ac_objext |
| 15509 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15510 | (eval $ac_compile) 2>&5 |
| 15511 | ac_status=$? |
| 15512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15513 | (exit $ac_status); } && |
| 15514 | { ac_try='test -s conftest.$ac_objext' |
| 15515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15516 | (eval $ac_try) 2>&5 |
| 15517 | ac_status=$? |
| 15518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15519 | (exit $ac_status); }; }; then |
| 15520 | ac_cv_member_struct_stat_st_rdev=yes |
| 15521 | else |
| 15522 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15523 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15524 | |
| 15525 | cat >conftest.$ac_ext <<_ACEOF |
| 15526 | #line $LINENO "configure" |
| 15527 | /* confdefs.h. */ |
| 15528 | _ACEOF |
| 15529 | cat confdefs.h >>conftest.$ac_ext |
| 15530 | cat >>conftest.$ac_ext <<_ACEOF |
| 15531 | /* end confdefs.h. */ |
| 15532 | $ac_includes_default |
| 15533 | int |
| 15534 | main () |
| 15535 | { |
| 15536 | static struct stat ac_aggr; |
| 15537 | if (sizeof ac_aggr.st_rdev) |
| 15538 | return 0; |
| 15539 | ; |
| 15540 | return 0; |
| 15541 | } |
| 15542 | _ACEOF |
| 15543 | rm -f conftest.$ac_objext |
| 15544 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15545 | (eval $ac_compile) 2>&5 |
| 15546 | ac_status=$? |
| 15547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15548 | (exit $ac_status); } && |
| 15549 | { ac_try='test -s conftest.$ac_objext' |
| 15550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15551 | (eval $ac_try) 2>&5 |
| 15552 | ac_status=$? |
| 15553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15554 | (exit $ac_status); }; }; then |
| 15555 | ac_cv_member_struct_stat_st_rdev=yes |
| 15556 | else |
| 15557 | echo "$as_me: failed program was:" >&5 |
| 15558 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15559 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15560 | ac_cv_member_struct_stat_st_rdev=no |
| 15561 | fi |
| 15562 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15563 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15564 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15565 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15566 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 15567 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 |
| 15568 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
| 15569 | |
| 15570 | cat >>confdefs.h <<_ACEOF |
| 15571 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 15572 | _ACEOF |
| 15573 | |
| 15574 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 15575 | fi |
| 15576 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15577 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 15578 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 |
| 15579 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
| 15580 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 15581 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15582 | cat >conftest.$ac_ext <<_ACEOF |
| 15583 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15584 | /* confdefs.h. */ |
| 15585 | _ACEOF |
| 15586 | cat confdefs.h >>conftest.$ac_ext |
| 15587 | cat >>conftest.$ac_ext <<_ACEOF |
| 15588 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15589 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15590 | int |
| 15591 | main () |
| 15592 | { |
| 15593 | static struct stat ac_aggr; |
| 15594 | if (ac_aggr.st_blksize) |
| 15595 | return 0; |
| 15596 | ; |
| 15597 | return 0; |
| 15598 | } |
| 15599 | _ACEOF |
| 15600 | rm -f conftest.$ac_objext |
| 15601 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15602 | (eval $ac_compile) 2>&5 |
| 15603 | ac_status=$? |
| 15604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15605 | (exit $ac_status); } && |
| 15606 | { ac_try='test -s conftest.$ac_objext' |
| 15607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15608 | (eval $ac_try) 2>&5 |
| 15609 | ac_status=$? |
| 15610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15611 | (exit $ac_status); }; }; then |
| 15612 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15613 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15614 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15615 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15616 | |
| 15617 | cat >conftest.$ac_ext <<_ACEOF |
| 15618 | #line $LINENO "configure" |
| 15619 | /* confdefs.h. */ |
| 15620 | _ACEOF |
| 15621 | cat confdefs.h >>conftest.$ac_ext |
| 15622 | cat >>conftest.$ac_ext <<_ACEOF |
| 15623 | /* end confdefs.h. */ |
| 15624 | $ac_includes_default |
| 15625 | int |
| 15626 | main () |
| 15627 | { |
| 15628 | static struct stat ac_aggr; |
| 15629 | if (sizeof ac_aggr.st_blksize) |
| 15630 | return 0; |
| 15631 | ; |
| 15632 | return 0; |
| 15633 | } |
| 15634 | _ACEOF |
| 15635 | rm -f conftest.$ac_objext |
| 15636 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15637 | (eval $ac_compile) 2>&5 |
| 15638 | ac_status=$? |
| 15639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15640 | (exit $ac_status); } && |
| 15641 | { ac_try='test -s conftest.$ac_objext' |
| 15642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15643 | (eval $ac_try) 2>&5 |
| 15644 | ac_status=$? |
| 15645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15646 | (exit $ac_status); }; }; then |
| 15647 | ac_cv_member_struct_stat_st_blksize=yes |
| 15648 | else |
| 15649 | echo "$as_me: failed program was:" >&5 |
| 15650 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15651 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15652 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15653 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15654 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15655 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15656 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15657 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15658 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 15659 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 |
| 15660 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15661 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15662 | cat >>confdefs.h <<_ACEOF |
| 15663 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 15664 | _ACEOF |
| 15665 | |
| 15666 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 15667 | fi |
| 15668 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15669 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 15670 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 |
| 15671 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 15672 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 15673 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15674 | cat >conftest.$ac_ext <<_ACEOF |
| 15675 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15676 | /* confdefs.h. */ |
| 15677 | _ACEOF |
| 15678 | cat confdefs.h >>conftest.$ac_ext |
| 15679 | cat >>conftest.$ac_ext <<_ACEOF |
| 15680 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15681 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15682 | int |
| 15683 | main () |
| 15684 | { |
| 15685 | static struct stat ac_aggr; |
| 15686 | if (ac_aggr.st_blocks) |
| 15687 | return 0; |
| 15688 | ; |
| 15689 | return 0; |
| 15690 | } |
| 15691 | _ACEOF |
| 15692 | rm -f conftest.$ac_objext |
| 15693 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15694 | (eval $ac_compile) 2>&5 |
| 15695 | ac_status=$? |
| 15696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15697 | (exit $ac_status); } && |
| 15698 | { ac_try='test -s conftest.$ac_objext' |
| 15699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15700 | (eval $ac_try) 2>&5 |
| 15701 | ac_status=$? |
| 15702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15703 | (exit $ac_status); }; }; then |
| 15704 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15705 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15706 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15707 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15708 | |
| 15709 | cat >conftest.$ac_ext <<_ACEOF |
| 15710 | #line $LINENO "configure" |
| 15711 | /* confdefs.h. */ |
| 15712 | _ACEOF |
| 15713 | cat confdefs.h >>conftest.$ac_ext |
| 15714 | cat >>conftest.$ac_ext <<_ACEOF |
| 15715 | /* end confdefs.h. */ |
| 15716 | $ac_includes_default |
| 15717 | int |
| 15718 | main () |
| 15719 | { |
| 15720 | static struct stat ac_aggr; |
| 15721 | if (sizeof ac_aggr.st_blocks) |
| 15722 | return 0; |
| 15723 | ; |
| 15724 | return 0; |
| 15725 | } |
| 15726 | _ACEOF |
| 15727 | rm -f conftest.$ac_objext |
| 15728 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15729 | (eval $ac_compile) 2>&5 |
| 15730 | ac_status=$? |
| 15731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15732 | (exit $ac_status); } && |
| 15733 | { ac_try='test -s conftest.$ac_objext' |
| 15734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15735 | (eval $ac_try) 2>&5 |
| 15736 | ac_status=$? |
| 15737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15738 | (exit $ac_status); }; }; then |
| 15739 | ac_cv_member_struct_stat_st_blocks=yes |
| 15740 | else |
| 15741 | echo "$as_me: failed program was:" >&5 |
| 15742 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15743 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15744 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15745 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15746 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15747 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15748 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15749 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15750 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 15751 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 |
| 15752 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15753 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15754 | cat >>confdefs.h <<_ACEOF |
| 15755 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 15756 | _ACEOF |
| 15757 | |
| 15758 | |
| 15759 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 15760 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15761 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 15762 | |
| 15763 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15764 | LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 15765 | fi |
| 15766 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15767 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15768 | |
| 15769 | echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 15770 | echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6 |
| 15771 | if test "${ac_cv_header_time_altzone+set}" = set; then |
| 15772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15773 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15774 | cat >conftest.$ac_ext <<_ACEOF |
| 15775 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15776 | /* confdefs.h. */ |
| 15777 | _ACEOF |
| 15778 | cat confdefs.h >>conftest.$ac_ext |
| 15779 | cat >>conftest.$ac_ext <<_ACEOF |
| 15780 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15781 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15782 | int |
| 15783 | main () |
| 15784 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15785 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15786 | ; |
| 15787 | return 0; |
| 15788 | } |
| 15789 | _ACEOF |
| 15790 | rm -f conftest.$ac_objext |
| 15791 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15792 | (eval $ac_compile) 2>&5 |
| 15793 | ac_status=$? |
| 15794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15795 | (exit $ac_status); } && |
| 15796 | { ac_try='test -s conftest.$ac_objext' |
| 15797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15798 | (eval $ac_try) 2>&5 |
| 15799 | ac_status=$? |
| 15800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15801 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15802 | ac_cv_header_time_altzone=yes |
| 15803 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15804 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15805 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15806 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15807 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15808 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15809 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15810 | fi |
| 15811 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15812 | echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 15813 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15814 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15815 | |
| 15816 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15817 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15818 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15819 | |
| 15820 | fi |
| 15821 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15822 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15823 | echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 15824 | echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 15825 | cat >conftest.$ac_ext <<_ACEOF |
| 15826 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15827 | /* confdefs.h. */ |
| 15828 | _ACEOF |
| 15829 | cat confdefs.h >>conftest.$ac_ext |
| 15830 | cat >>conftest.$ac_ext <<_ACEOF |
| 15831 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15832 | |
| 15833 | #include <sys/types.h> |
| 15834 | #include <sys/select.h> |
| 15835 | #include <sys/time.h> |
| 15836 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15837 | int |
| 15838 | main () |
| 15839 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15840 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15841 | ; |
| 15842 | return 0; |
| 15843 | } |
| 15844 | _ACEOF |
| 15845 | rm -f conftest.$ac_objext |
| 15846 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15847 | (eval $ac_compile) 2>&5 |
| 15848 | ac_status=$? |
| 15849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15850 | (exit $ac_status); } && |
| 15851 | { ac_try='test -s conftest.$ac_objext' |
| 15852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15853 | (eval $ac_try) 2>&5 |
| 15854 | ac_status=$? |
| 15855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15856 | (exit $ac_status); }; }; then |
| 15857 | |
| 15858 | |
| 15859 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15860 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15861 | _ACEOF |
| 15862 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15863 | was_it_defined=yes |
| 15864 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15865 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15866 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15867 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15868 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15869 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15870 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15871 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 15872 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15873 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15874 | echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 15875 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6 |
| 15876 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
| 15877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15878 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15879 | cat >conftest.$ac_ext <<_ACEOF |
| 15880 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15881 | /* confdefs.h. */ |
| 15882 | _ACEOF |
| 15883 | cat confdefs.h >>conftest.$ac_ext |
| 15884 | cat >>conftest.$ac_ext <<_ACEOF |
| 15885 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15886 | |
| 15887 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15888 | int |
| 15889 | main () |
| 15890 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15891 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15892 | ; |
| 15893 | return 0; |
| 15894 | } |
| 15895 | _ACEOF |
| 15896 | rm -f conftest.$ac_objext |
| 15897 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15898 | (eval $ac_compile) 2>&5 |
| 15899 | ac_status=$? |
| 15900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15901 | (exit $ac_status); } && |
| 15902 | { ac_try='test -s conftest.$ac_objext' |
| 15903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15904 | (eval $ac_try) 2>&5 |
| 15905 | ac_status=$? |
| 15906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15907 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15908 | ac_cv_struct_addrinfo=yes |
| 15909 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15910 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15911 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15912 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15913 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +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 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15916 | fi |
| 15917 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15918 | echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 15919 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15920 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15921 | |
| 15922 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15923 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15924 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15925 | |
| 15926 | fi |
| 15927 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15928 | echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 15929 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6 |
| 15930 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
| 15931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15932 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15933 | cat >conftest.$ac_ext <<_ACEOF |
| 15934 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15935 | /* confdefs.h. */ |
| 15936 | _ACEOF |
| 15937 | cat confdefs.h >>conftest.$ac_ext |
| 15938 | cat >>conftest.$ac_ext <<_ACEOF |
| 15939 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15940 | |
| 15941 | # include <sys/types.h> |
| 15942 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15943 | int |
| 15944 | main () |
| 15945 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15946 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15947 | ; |
| 15948 | return 0; |
| 15949 | } |
| 15950 | _ACEOF |
| 15951 | rm -f conftest.$ac_objext |
| 15952 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15953 | (eval $ac_compile) 2>&5 |
| 15954 | ac_status=$? |
| 15955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15956 | (exit $ac_status); } && |
| 15957 | { ac_try='test -s conftest.$ac_objext' |
| 15958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15959 | (eval $ac_try) 2>&5 |
| 15960 | ac_status=$? |
| 15961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15962 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15963 | ac_cv_struct_sockaddr_storage=yes |
| 15964 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15965 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15966 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15967 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15968 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15969 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15970 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15971 | fi |
| 15972 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15973 | echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 15974 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15975 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15976 | |
| 15977 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15978 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15979 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15980 | |
| 15981 | fi |
| 15982 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15983 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15984 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15985 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15986 | echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 15987 | echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 |
| 15988 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
| 15989 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15990 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15991 | cat >conftest.$ac_ext <<_ACEOF |
| 15992 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15993 | /* confdefs.h. */ |
| 15994 | _ACEOF |
| 15995 | cat confdefs.h >>conftest.$ac_ext |
| 15996 | cat >>conftest.$ac_ext <<_ACEOF |
| 15997 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15998 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15999 | int |
| 16000 | main () |
| 16001 | { |
| 16002 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 16003 | test_array [0] = 0 |
| 16004 | |
| 16005 | ; |
| 16006 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16007 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16008 | _ACEOF |
| 16009 | rm -f conftest.$ac_objext |
| 16010 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16011 | (eval $ac_compile) 2>&5 |
| 16012 | ac_status=$? |
| 16013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16014 | (exit $ac_status); } && |
| 16015 | { ac_try='test -s conftest.$ac_objext' |
| 16016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16017 | (eval $ac_try) 2>&5 |
| 16018 | ac_status=$? |
| 16019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16020 | (exit $ac_status); }; }; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16021 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16022 | else |
| 16023 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16024 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16025 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16026 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16027 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16028 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16029 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16030 | echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 16031 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16032 | 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] | 16033 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16034 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16035 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16036 | |
| 16037 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16038 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16039 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 16040 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 16041 | if test "${ac_cv_c_const+set}" = set; then |
| 16042 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16043 | else |
| 16044 | cat >conftest.$ac_ext <<_ACEOF |
| 16045 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16046 | /* confdefs.h. */ |
| 16047 | _ACEOF |
| 16048 | cat confdefs.h >>conftest.$ac_ext |
| 16049 | cat >>conftest.$ac_ext <<_ACEOF |
| 16050 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16051 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16052 | int |
| 16053 | main () |
| 16054 | { |
| 16055 | /* FIXME: Include the comments suggested by Paul. */ |
| 16056 | #ifndef __cplusplus |
| 16057 | /* Ultrix mips cc rejects this. */ |
| 16058 | typedef int charset[2]; |
| 16059 | const charset x; |
| 16060 | /* SunOS 4.1.1 cc rejects this. */ |
| 16061 | char const *const *ccp; |
| 16062 | char **p; |
| 16063 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 16064 | struct point {int x, y;}; |
| 16065 | static struct point const zero = {0,0}; |
| 16066 | /* AIX XL C 1.02.0.0 rejects this. |
| 16067 | It does not let you subtract one const X* pointer from another in |
| 16068 | an arm of an if-expression whose if-part is not a constant |
| 16069 | expression */ |
| 16070 | const char *g = "string"; |
| 16071 | ccp = &g + (g ? g-g : 0); |
| 16072 | /* HPUX 7.0 cc rejects these. */ |
| 16073 | ++ccp; |
| 16074 | p = (char**) ccp; |
| 16075 | ccp = (char const *const *) p; |
| 16076 | { /* SCO 3.2v4 cc rejects this. */ |
| 16077 | char *t; |
| 16078 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16079 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16080 | *t++ = 0; |
| 16081 | } |
| 16082 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 16083 | int x[] = {25, 17}; |
| 16084 | const int *foo = &x[0]; |
| 16085 | ++foo; |
| 16086 | } |
| 16087 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 16088 | typedef const int *iptr; |
| 16089 | iptr p = 0; |
| 16090 | ++p; |
| 16091 | } |
| 16092 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 16093 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 16094 | struct s { int j; const int *ap[3]; }; |
| 16095 | struct s *b; b->j = 5; |
| 16096 | } |
| 16097 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 16098 | const int foo = 10; |
| 16099 | } |
| 16100 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16101 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16102 | ; |
| 16103 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16104 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16105 | _ACEOF |
| 16106 | rm -f conftest.$ac_objext |
| 16107 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16108 | (eval $ac_compile) 2>&5 |
| 16109 | ac_status=$? |
| 16110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16111 | (exit $ac_status); } && |
| 16112 | { ac_try='test -s conftest.$ac_objext' |
| 16113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16114 | (eval $ac_try) 2>&5 |
| 16115 | ac_status=$? |
| 16116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16117 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16118 | ac_cv_c_const=yes |
| 16119 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16120 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16121 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16122 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16123 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16124 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16125 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16126 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16127 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 16128 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16129 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16130 | |
| 16131 | cat >>confdefs.h <<\_ACEOF |
| 16132 | #define const |
| 16133 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16134 | |
| 16135 | fi |
| 16136 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16137 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16138 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16139 | echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 16140 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
| 16141 | cat >conftest.$ac_ext <<_ACEOF |
| 16142 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16143 | /* confdefs.h. */ |
| 16144 | _ACEOF |
| 16145 | cat confdefs.h >>conftest.$ac_ext |
| 16146 | cat >>conftest.$ac_ext <<_ACEOF |
| 16147 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16148 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16149 | int |
| 16150 | main () |
| 16151 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16152 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16153 | ; |
| 16154 | return 0; |
| 16155 | } |
| 16156 | _ACEOF |
| 16157 | rm -f conftest.$ac_objext |
| 16158 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16159 | (eval $ac_compile) 2>&5 |
| 16160 | ac_status=$? |
| 16161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16162 | (exit $ac_status); } && |
| 16163 | { ac_try='test -s conftest.$ac_objext' |
| 16164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16165 | (eval $ac_try) 2>&5 |
| 16166 | ac_status=$? |
| 16167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16168 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16169 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16170 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16171 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16172 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16173 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16174 | |
| 16175 | cat >>confdefs.h <<\_ACEOF |
| 16176 | #define volatile |
| 16177 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16178 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16179 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16180 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16181 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16182 | echo "$as_me:$LINENO: result: $works" >&5 |
| 16183 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16184 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16185 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16186 | echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 16187 | echo $ECHO_N "checking for working signed char... $ECHO_C" >&6 |
| 16188 | cat >conftest.$ac_ext <<_ACEOF |
| 16189 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16190 | /* confdefs.h. */ |
| 16191 | _ACEOF |
| 16192 | cat confdefs.h >>conftest.$ac_ext |
| 16193 | cat >>conftest.$ac_ext <<_ACEOF |
| 16194 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 16195 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16196 | int |
| 16197 | main () |
| 16198 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16199 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16200 | ; |
| 16201 | return 0; |
| 16202 | } |
| 16203 | _ACEOF |
| 16204 | rm -f conftest.$ac_objext |
| 16205 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16206 | (eval $ac_compile) 2>&5 |
| 16207 | ac_status=$? |
| 16208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16209 | (exit $ac_status); } && |
| 16210 | { ac_try='test -s conftest.$ac_objext' |
| 16211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16212 | (eval $ac_try) 2>&5 |
| 16213 | ac_status=$? |
| 16214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16215 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16216 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 16217 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16218 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16219 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16220 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16221 | |
| 16222 | cat >>confdefs.h <<\_ACEOF |
| 16223 | #define signed |
| 16224 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16225 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16226 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16227 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16228 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16229 | echo "$as_me:$LINENO: result: $works" >&5 |
| 16230 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16231 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16232 | have_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16233 | echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 16234 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6 |
| 16235 | cat >conftest.$ac_ext <<_ACEOF |
| 16236 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16237 | /* confdefs.h. */ |
| 16238 | _ACEOF |
| 16239 | cat confdefs.h >>conftest.$ac_ext |
| 16240 | cat >>conftest.$ac_ext <<_ACEOF |
| 16241 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16242 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16243 | int |
| 16244 | main () |
| 16245 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16246 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16247 | ; |
| 16248 | return 0; |
| 16249 | } |
| 16250 | _ACEOF |
| 16251 | rm -f conftest.$ac_objext |
| 16252 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16253 | (eval $ac_compile) 2>&5 |
| 16254 | ac_status=$? |
| 16255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16256 | (exit $ac_status); } && |
| 16257 | { ac_try='test -s conftest.$ac_objext' |
| 16258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16259 | (eval $ac_try) 2>&5 |
| 16260 | ac_status=$? |
| 16261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16262 | (exit $ac_status); }; }; then |
| 16263 | |
| 16264 | |
| 16265 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16266 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16267 | _ACEOF |
| 16268 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16269 | have_prototypes=yes |
| 16270 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 16271 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16272 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16273 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16274 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16275 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16276 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16277 | echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 16278 | echo "${ECHO_T}$have_prototypes" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16279 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16280 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16281 | echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 16282 | echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6 |
| 16283 | cat >conftest.$ac_ext <<_ACEOF |
| 16284 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16285 | /* confdefs.h. */ |
| 16286 | _ACEOF |
| 16287 | cat confdefs.h >>conftest.$ac_ext |
| 16288 | cat >>conftest.$ac_ext <<_ACEOF |
| 16289 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16290 | |
| 16291 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 16292 | int foo(int x, ...) { |
| 16293 | va_list va; |
| 16294 | va_start(va, x); |
| 16295 | va_arg(va, int); |
| 16296 | va_arg(va, char *); |
| 16297 | va_arg(va, double); |
| 16298 | return 0; |
| 16299 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16300 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16301 | int |
| 16302 | main () |
| 16303 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 16304 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16305 | ; |
| 16306 | return 0; |
| 16307 | } |
| 16308 | _ACEOF |
| 16309 | rm -f conftest.$ac_objext |
| 16310 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16311 | (eval $ac_compile) 2>&5 |
| 16312 | ac_status=$? |
| 16313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16314 | (exit $ac_status); } && |
| 16315 | { ac_try='test -s conftest.$ac_objext' |
| 16316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16317 | (eval $ac_try) 2>&5 |
| 16318 | ac_status=$? |
| 16319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16320 | (exit $ac_status); }; }; then |
| 16321 | |
| 16322 | |
| 16323 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16324 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16325 | _ACEOF |
| 16326 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16327 | works=yes |
| 16328 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 16329 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16330 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16331 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16332 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16333 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16334 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16335 | echo "$as_me:$LINENO: result: $works" >&5 |
| 16336 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16337 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16338 | if test "$have_prototypes" = yes; then |
| 16339 | bad_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16340 | echo "$as_me:$LINENO: checking for bad exec* prototypes" >&5 |
| 16341 | echo $ECHO_N "checking for bad exec* prototypes... $ECHO_C" >&6 |
| 16342 | cat >conftest.$ac_ext <<_ACEOF |
| 16343 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16344 | /* confdefs.h. */ |
| 16345 | _ACEOF |
| 16346 | cat confdefs.h >>conftest.$ac_ext |
| 16347 | cat >>conftest.$ac_ext <<_ACEOF |
| 16348 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16349 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16350 | int |
| 16351 | main () |
| 16352 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16353 | char **t;execve("@",t,t); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16354 | ; |
| 16355 | return 0; |
| 16356 | } |
| 16357 | _ACEOF |
| 16358 | rm -f conftest.$ac_objext |
| 16359 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16360 | (eval $ac_compile) 2>&5 |
| 16361 | ac_status=$? |
| 16362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16363 | (exit $ac_status); } && |
| 16364 | { ac_try='test -s conftest.$ac_objext' |
| 16365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16366 | (eval $ac_try) 2>&5 |
| 16367 | ac_status=$? |
| 16368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16369 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16370 | : |
| 16371 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16372 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16373 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16374 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16375 | |
| 16376 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16377 | #define BAD_EXEC_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16378 | _ACEOF |
| 16379 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16380 | bad_prototypes=yes |
| 16381 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16382 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16383 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16384 | echo "$as_me:$LINENO: result: $bad_prototypes" >&5 |
| 16385 | echo "${ECHO_T}$bad_prototypes" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16386 | fi |
| 16387 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16388 | # check if sockaddr has sa_len member |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16389 | echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 16390 | echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6 |
| 16391 | cat >conftest.$ac_ext <<_ACEOF |
| 16392 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16393 | /* confdefs.h. */ |
| 16394 | _ACEOF |
| 16395 | cat confdefs.h >>conftest.$ac_ext |
| 16396 | cat >>conftest.$ac_ext <<_ACEOF |
| 16397 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16398 | #include <sys/types.h> |
| 16399 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16400 | int |
| 16401 | main () |
| 16402 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16403 | struct sockaddr x; |
| 16404 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16405 | ; |
| 16406 | return 0; |
| 16407 | } |
| 16408 | _ACEOF |
| 16409 | rm -f conftest.$ac_objext |
| 16410 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16411 | (eval $ac_compile) 2>&5 |
| 16412 | ac_status=$? |
| 16413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16414 | (exit $ac_status); } && |
| 16415 | { ac_try='test -s conftest.$ac_objext' |
| 16416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16417 | (eval $ac_try) 2>&5 |
| 16418 | ac_status=$? |
| 16419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16420 | (exit $ac_status); }; }; then |
| 16421 | echo "$as_me:$LINENO: result: yes" >&5 |
| 16422 | echo "${ECHO_T}yes" >&6 |
| 16423 | |
| 16424 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16425 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16426 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16427 | |
| 16428 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16429 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16430 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16431 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16432 | echo "$as_me:$LINENO: result: no" >&5 |
| 16433 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16434 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16435 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16436 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16437 | va_list_is_array=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16438 | echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 16439 | echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6 |
| 16440 | cat >conftest.$ac_ext <<_ACEOF |
| 16441 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16442 | /* confdefs.h. */ |
| 16443 | _ACEOF |
| 16444 | cat confdefs.h >>conftest.$ac_ext |
| 16445 | cat >>conftest.$ac_ext <<_ACEOF |
| 16446 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16447 | |
| 16448 | #ifdef HAVE_STDARG_PROTOTYPES |
| 16449 | #include <stdarg.h> |
| 16450 | #else |
| 16451 | #include <varargs.h> |
| 16452 | #endif |
| 16453 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16454 | int |
| 16455 | main () |
| 16456 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16457 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16458 | ; |
| 16459 | return 0; |
| 16460 | } |
| 16461 | _ACEOF |
| 16462 | rm -f conftest.$ac_objext |
| 16463 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16464 | (eval $ac_compile) 2>&5 |
| 16465 | ac_status=$? |
| 16466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16467 | (exit $ac_status); } && |
| 16468 | { ac_try='test -s conftest.$ac_objext' |
| 16469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16470 | (eval $ac_try) 2>&5 |
| 16471 | ac_status=$? |
| 16472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16473 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16474 | : |
| 16475 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16476 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16477 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16478 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16479 | |
| 16480 | |
| 16481 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16482 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16483 | _ACEOF |
| 16484 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16485 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16486 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16487 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16488 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16489 | echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 16490 | echo "${ECHO_T}$va_list_is_array" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16491 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16492 | # 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] | 16493 | |
| 16494 | |
| 16495 | |
| 16496 | echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 16497 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6 |
| 16498 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
| 16499 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16500 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16501 | cat >conftest.$ac_ext <<_ACEOF |
| 16502 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16503 | /* confdefs.h. */ |
| 16504 | _ACEOF |
| 16505 | cat confdefs.h >>conftest.$ac_ext |
| 16506 | cat >>conftest.$ac_ext <<_ACEOF |
| 16507 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16508 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16509 | which can conflict with char gethostbyname_r (); below. |
| 16510 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 16511 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 16512 | including <limits.h> includes <sys/time.h> and causes problems |
| 16513 | checking for functions defined therein. */ |
| 16514 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16515 | # include <limits.h> |
| 16516 | #else |
| 16517 | # include <assert.h> |
| 16518 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16519 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16520 | #ifdef __cplusplus |
| 16521 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16522 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16523 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16524 | /* 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] | 16525 | builtin and then its argument prototype would still apply. */ |
| 16526 | char gethostbyname_r (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16527 | /* The GNU C library defines this for functions which it implements |
| 16528 | to always fail with ENOSYS. Some functions are actually named |
| 16529 | something starting with __ and the normal name is an alias. */ |
| 16530 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 16531 | choke me |
| 16532 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16533 | char (*f) () = gethostbyname_r; |
| 16534 | #endif |
| 16535 | #ifdef __cplusplus |
| 16536 | } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16537 | #endif |
| 16538 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16539 | int |
| 16540 | main () |
| 16541 | { |
| 16542 | return f != gethostbyname_r; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16543 | ; |
| 16544 | return 0; |
| 16545 | } |
| 16546 | _ACEOF |
| 16547 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16548 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16549 | (eval $ac_link) 2>&5 |
| 16550 | ac_status=$? |
| 16551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16552 | (exit $ac_status); } && |
| 16553 | { ac_try='test -s conftest$ac_exeext' |
| 16554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16555 | (eval $ac_try) 2>&5 |
| 16556 | ac_status=$? |
| 16557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16558 | (exit $ac_status); }; }; then |
| 16559 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16560 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16561 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16562 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16563 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16564 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16565 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16566 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16567 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16568 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 16569 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6 |
| 16570 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16571 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16572 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16573 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16574 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16575 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16576 | echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 16577 | 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] | 16578 | OLD_CFLAGS=$CFLAGS |
| 16579 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16580 | cat >conftest.$ac_ext <<_ACEOF |
| 16581 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16582 | /* confdefs.h. */ |
| 16583 | _ACEOF |
| 16584 | cat confdefs.h >>conftest.$ac_ext |
| 16585 | cat >>conftest.$ac_ext <<_ACEOF |
| 16586 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16587 | |
| 16588 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16589 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16590 | int |
| 16591 | main () |
| 16592 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16593 | |
| 16594 | char *name; |
| 16595 | struct hostent *he, *res; |
| 16596 | char buffer[2048]; |
| 16597 | int buflen = 2048; |
| 16598 | int h_errnop; |
| 16599 | |
| 16600 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16601 | |
| 16602 | ; |
| 16603 | return 0; |
| 16604 | } |
| 16605 | _ACEOF |
| 16606 | rm -f conftest.$ac_objext |
| 16607 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16608 | (eval $ac_compile) 2>&5 |
| 16609 | ac_status=$? |
| 16610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16611 | (exit $ac_status); } && |
| 16612 | { ac_try='test -s conftest.$ac_objext' |
| 16613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16614 | (eval $ac_try) 2>&5 |
| 16615 | ac_status=$? |
| 16616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16617 | (exit $ac_status); }; }; then |
| 16618 | |
| 16619 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 16620 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16621 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 16622 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16623 | |
| 16624 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16625 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16626 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16627 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16628 | echo "$as_me:$LINENO: result: yes" >&5 |
| 16629 | echo "${ECHO_T}yes" >&6 |
| 16630 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16631 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | |
| 16636 | echo "$as_me:$LINENO: result: no" >&5 |
| 16637 | echo "${ECHO_T}no" >&6 |
| 16638 | echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 16639 | echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6 |
| 16640 | cat >conftest.$ac_ext <<_ACEOF |
| 16641 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16642 | /* confdefs.h. */ |
| 16643 | _ACEOF |
| 16644 | cat confdefs.h >>conftest.$ac_ext |
| 16645 | cat >>conftest.$ac_ext <<_ACEOF |
| 16646 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16647 | |
| 16648 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16649 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16650 | int |
| 16651 | main () |
| 16652 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16653 | |
| 16654 | char *name; |
| 16655 | struct hostent *he; |
| 16656 | char buffer[2048]; |
| 16657 | int buflen = 2048; |
| 16658 | int h_errnop; |
| 16659 | |
| 16660 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16661 | |
| 16662 | ; |
| 16663 | return 0; |
| 16664 | } |
| 16665 | _ACEOF |
| 16666 | rm -f conftest.$ac_objext |
| 16667 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16668 | (eval $ac_compile) 2>&5 |
| 16669 | ac_status=$? |
| 16670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16671 | (exit $ac_status); } && |
| 16672 | { ac_try='test -s conftest.$ac_objext' |
| 16673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16674 | (eval $ac_try) 2>&5 |
| 16675 | ac_status=$? |
| 16676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16677 | (exit $ac_status); }; }; then |
| 16678 | |
| 16679 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 16680 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16681 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 16682 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16683 | |
| 16684 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16685 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16686 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16687 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16688 | echo "$as_me:$LINENO: result: yes" >&5 |
| 16689 | echo "${ECHO_T}yes" >&6 |
| 16690 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16691 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16692 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16693 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16694 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16695 | |
| 16696 | echo "$as_me:$LINENO: result: no" >&5 |
| 16697 | echo "${ECHO_T}no" >&6 |
| 16698 | echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 16699 | echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6 |
| 16700 | cat >conftest.$ac_ext <<_ACEOF |
| 16701 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16702 | /* confdefs.h. */ |
| 16703 | _ACEOF |
| 16704 | cat confdefs.h >>conftest.$ac_ext |
| 16705 | cat >>conftest.$ac_ext <<_ACEOF |
| 16706 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16707 | |
| 16708 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16709 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16710 | int |
| 16711 | main () |
| 16712 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16713 | |
| 16714 | char *name; |
| 16715 | struct hostent *he; |
| 16716 | struct hostent_data data; |
| 16717 | |
| 16718 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16719 | |
| 16720 | ; |
| 16721 | return 0; |
| 16722 | } |
| 16723 | _ACEOF |
| 16724 | rm -f conftest.$ac_objext |
| 16725 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16726 | (eval $ac_compile) 2>&5 |
| 16727 | ac_status=$? |
| 16728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16729 | (exit $ac_status); } && |
| 16730 | { ac_try='test -s conftest.$ac_objext' |
| 16731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16732 | (eval $ac_try) 2>&5 |
| 16733 | ac_status=$? |
| 16734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16735 | (exit $ac_status); }; }; then |
| 16736 | |
| 16737 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 16738 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16739 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 16740 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16741 | |
| 16742 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16743 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16744 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16745 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16746 | echo "$as_me:$LINENO: result: yes" >&5 |
| 16747 | echo "${ECHO_T}yes" >&6 |
| 16748 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16749 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16750 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16751 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16752 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16753 | |
| 16754 | echo "$as_me:$LINENO: result: no" >&5 |
| 16755 | echo "${ECHO_T}no" >&6 |
| 16756 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16757 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16758 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16759 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16760 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16761 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16762 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16763 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16764 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16765 | CFLAGS=$OLD_CFLAGS |
| 16766 | |
| 16767 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16768 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16769 | |
| 16770 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 16771 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16772 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16773 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16774 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 16775 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 16776 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16777 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16778 | cat >conftest.$ac_ext <<_ACEOF |
| 16779 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16780 | /* confdefs.h. */ |
| 16781 | _ACEOF |
| 16782 | cat confdefs.h >>conftest.$ac_ext |
| 16783 | cat >>conftest.$ac_ext <<_ACEOF |
| 16784 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16785 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16786 | which can conflict with char $ac_func (); below. |
| 16787 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 16788 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 16789 | including <limits.h> includes <sys/time.h> and causes problems |
| 16790 | checking for functions defined therein. */ |
| 16791 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16792 | # include <limits.h> |
| 16793 | #else |
| 16794 | # include <assert.h> |
| 16795 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16796 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16797 | #ifdef __cplusplus |
| 16798 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16799 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16800 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16801 | /* 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] | 16802 | builtin and then its argument prototype would still apply. */ |
| 16803 | char $ac_func (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16804 | /* The GNU C library defines this for functions which it implements |
| 16805 | to always fail with ENOSYS. Some functions are actually named |
| 16806 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 16807 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16808 | choke me |
| 16809 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16810 | char (*f) () = $ac_func; |
| 16811 | #endif |
| 16812 | #ifdef __cplusplus |
| 16813 | } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16814 | #endif |
| 16815 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16816 | int |
| 16817 | main () |
| 16818 | { |
| 16819 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16820 | ; |
| 16821 | return 0; |
| 16822 | } |
| 16823 | _ACEOF |
| 16824 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16825 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16826 | (eval $ac_link) 2>&5 |
| 16827 | ac_status=$? |
| 16828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16829 | (exit $ac_status); } && |
| 16830 | { ac_try='test -s conftest$ac_exeext' |
| 16831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16832 | (eval $ac_try) 2>&5 |
| 16833 | ac_status=$? |
| 16834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16835 | (exit $ac_status); }; }; then |
| 16836 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16837 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16838 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16839 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16840 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16841 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16842 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16843 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16844 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16845 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 16846 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 16847 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16848 | cat >>confdefs.h <<_ACEOF |
| 16849 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16850 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16851 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16852 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 16853 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16854 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16855 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16856 | fi |
| 16857 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16858 | |
| 16859 | |
| 16860 | |
| 16861 | |
| 16862 | |
| 16863 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16864 | # checks for system services |
| 16865 | # (none yet) |
| 16866 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16867 | # Linux requires this for correct f.p. operations |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16868 | echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 16869 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6 |
| 16870 | if test "${ac_cv_func___fpu_control+set}" = set; then |
| 16871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16872 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16873 | cat >conftest.$ac_ext <<_ACEOF |
| 16874 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16875 | /* confdefs.h. */ |
| 16876 | _ACEOF |
| 16877 | cat confdefs.h >>conftest.$ac_ext |
| 16878 | cat >>conftest.$ac_ext <<_ACEOF |
| 16879 | /* end confdefs.h. */ |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16880 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16881 | which can conflict with char __fpu_control (); below. |
| 16882 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 16883 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 16884 | including <limits.h> includes <sys/time.h> and causes problems |
| 16885 | checking for functions defined therein. */ |
| 16886 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16887 | # include <limits.h> |
| 16888 | #else |
| 16889 | # include <assert.h> |
| 16890 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16891 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16892 | #ifdef __cplusplus |
| 16893 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16894 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16895 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16896 | /* 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] | 16897 | builtin and then its argument prototype would still apply. */ |
| 16898 | char __fpu_control (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16899 | /* The GNU C library defines this for functions which it implements |
| 16900 | to always fail with ENOSYS. Some functions are actually named |
| 16901 | something starting with __ and the normal name is an alias. */ |
| 16902 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 16903 | choke me |
| 16904 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16905 | char (*f) () = __fpu_control; |
| 16906 | #endif |
| 16907 | #ifdef __cplusplus |
| 16908 | } |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16909 | #endif |
| 16910 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16911 | int |
| 16912 | main () |
| 16913 | { |
| 16914 | return f != __fpu_control; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16915 | ; |
| 16916 | return 0; |
| 16917 | } |
| 16918 | _ACEOF |
| 16919 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16920 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16921 | (eval $ac_link) 2>&5 |
| 16922 | ac_status=$? |
| 16923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16924 | (exit $ac_status); } && |
| 16925 | { ac_try='test -s conftest$ac_exeext' |
| 16926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16927 | (eval $ac_try) 2>&5 |
| 16928 | ac_status=$? |
| 16929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16930 | (exit $ac_status); }; }; then |
| 16931 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16932 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16933 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16934 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16935 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16936 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16937 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16938 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16939 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16940 | echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 16941 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6 |
| 16942 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16943 | : |
| 16944 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16945 | |
| 16946 | echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 16947 | echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6 |
| 16948 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
| 16949 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16950 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16951 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16952 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16953 | cat >conftest.$ac_ext <<_ACEOF |
| 16954 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16955 | /* confdefs.h. */ |
| 16956 | _ACEOF |
| 16957 | cat confdefs.h >>conftest.$ac_ext |
| 16958 | cat >>conftest.$ac_ext <<_ACEOF |
| 16959 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16960 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 16961 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16962 | #ifdef __cplusplus |
| 16963 | extern "C" |
| 16964 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 16965 | /* 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] | 16966 | builtin and then its argument prototype would still apply. */ |
| 16967 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16968 | int |
| 16969 | main () |
| 16970 | { |
| 16971 | __fpu_control (); |
| 16972 | ; |
| 16973 | return 0; |
| 16974 | } |
| 16975 | _ACEOF |
| 16976 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16977 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16978 | (eval $ac_link) 2>&5 |
| 16979 | ac_status=$? |
| 16980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16981 | (exit $ac_status); } && |
| 16982 | { ac_try='test -s conftest$ac_exeext' |
| 16983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16984 | (eval $ac_try) 2>&5 |
| 16985 | ac_status=$? |
| 16986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16987 | (exit $ac_status); }; }; then |
| 16988 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16989 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16990 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16991 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16992 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16993 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16994 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16995 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 16996 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16997 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16998 | echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 16999 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6 |
| 17000 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
| 17001 | cat >>confdefs.h <<_ACEOF |
| 17002 | #define HAVE_LIBIEEE 1 |
| 17003 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17004 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17005 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17006 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17007 | fi |
| 17008 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17009 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17010 | fi |
| 17011 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17012 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17013 | # Check for --with-fpectl |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17014 | echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 17015 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6 |
| 17016 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17017 | # Check whether --with-fpectl or --without-fpectl was given. |
| 17018 | if test "${with_fpectl+set}" = set; then |
| 17019 | withval="$with_fpectl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17020 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17021 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17022 | then |
| 17023 | |
| 17024 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17025 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17026 | _ACEOF |
| 17027 | |
| 17028 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17029 | echo "${ECHO_T}yes" >&6 |
| 17030 | else echo "$as_me:$LINENO: result: no" >&5 |
| 17031 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17032 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17033 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17034 | echo "$as_me:$LINENO: result: no" >&5 |
| 17035 | echo "${ECHO_T}no" >&6 |
| 17036 | fi; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17037 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17038 | # check for --with-libm=... |
| 17039 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 17040 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 17041 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 17042 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 17043 | *) LIBM=-lm |
| 17044 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17045 | echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 17046 | echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6 |
| 17047 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17048 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 17049 | if test "${with_libm+set}" = set; then |
| 17050 | withval="$with_libm" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17051 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17052 | if test "$withval" = no |
| 17053 | then LIBM= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17054 | echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 17055 | echo "${ECHO_T}force LIBM empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17056 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17057 | then LIBM=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17058 | echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 17059 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6 |
| 17060 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 17061 | echo "$as_me: error: proper usage is --with-libm=STRING" >&2;} |
| 17062 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17063 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17064 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17065 | echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 17066 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6 |
| 17067 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17068 | |
| 17069 | # check for --with-libc=... |
| 17070 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17071 | echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 17072 | echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6 |
| 17073 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17074 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 17075 | if test "${with_libc+set}" = set; then |
| 17076 | withval="$with_libc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17077 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17078 | if test "$withval" = no |
| 17079 | then LIBC= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17080 | echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 17081 | echo "${ECHO_T}force LIBC empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17082 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17083 | then LIBC=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17084 | echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 17085 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6 |
| 17086 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 17087 | echo "$as_me: error: proper usage is --with-libc=STRING" >&2;} |
| 17088 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17089 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17090 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17091 | echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 17092 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6 |
| 17093 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17094 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 17095 | # check for hypot() in math library |
| 17096 | LIBS_SAVE=$LIBS |
| 17097 | LIBS="$LIBS $LIBM" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17098 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 17099 | for ac_func in hypot |
| 17100 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17101 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17102 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17103 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 17104 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 17105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 17106 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17107 | cat >conftest.$ac_ext <<_ACEOF |
| 17108 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17109 | /* confdefs.h. */ |
| 17110 | _ACEOF |
| 17111 | cat confdefs.h >>conftest.$ac_ext |
| 17112 | cat >>conftest.$ac_ext <<_ACEOF |
| 17113 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17114 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17115 | which can conflict with char $ac_func (); below. |
| 17116 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 17117 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 17118 | including <limits.h> includes <sys/time.h> and causes problems |
| 17119 | checking for functions defined therein. */ |
| 17120 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17121 | # include <limits.h> |
| 17122 | #else |
| 17123 | # include <assert.h> |
| 17124 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17125 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17126 | #ifdef __cplusplus |
| 17127 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17128 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17129 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 17130 | /* 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] | 17131 | builtin and then its argument prototype would still apply. */ |
| 17132 | char $ac_func (); |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 17133 | /* The GNU C library defines this for functions which it implements |
| 17134 | to always fail with ENOSYS. Some functions are actually named |
| 17135 | something starting with __ and the normal name is an alias. */ |
| 17136 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 17137 | choke me |
| 17138 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17139 | char (*f) () = $ac_func; |
| 17140 | #endif |
| 17141 | #ifdef __cplusplus |
| 17142 | } |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 17143 | #endif |
| 17144 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17145 | int |
| 17146 | main () |
| 17147 | { |
| 17148 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17149 | ; |
| 17150 | return 0; |
| 17151 | } |
| 17152 | _ACEOF |
| 17153 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17154 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17155 | (eval $ac_link) 2>&5 |
| 17156 | ac_status=$? |
| 17157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17158 | (exit $ac_status); } && |
| 17159 | { ac_try='test -s conftest$ac_exeext' |
| 17160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17161 | (eval $ac_try) 2>&5 |
| 17162 | ac_status=$? |
| 17163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17164 | (exit $ac_status); }; }; then |
| 17165 | eval "$as_ac_var=yes" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 17166 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17167 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17168 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17169 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17170 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17171 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17172 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17173 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17174 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 17175 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 17176 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17177 | cat >>confdefs.h <<_ACEOF |
| 17178 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17179 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17180 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17181 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17182 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 17183 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 17184 | done |
| 17185 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17186 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 17187 | LIBS=$LIBS_SAVE |
| 17188 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17189 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17190 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 17191 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 17192 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 17193 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 17194 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17195 | fi |
| 17196 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 17197 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17198 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17199 | # Is the header compilable? |
| 17200 | echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 17201 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6 |
| 17202 | cat >conftest.$ac_ext <<_ACEOF |
| 17203 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17204 | /* confdefs.h. */ |
| 17205 | _ACEOF |
| 17206 | cat confdefs.h >>conftest.$ac_ext |
| 17207 | cat >>conftest.$ac_ext <<_ACEOF |
| 17208 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17209 | $ac_includes_default |
| 17210 | #include <wchar.h> |
| 17211 | _ACEOF |
| 17212 | rm -f conftest.$ac_objext |
| 17213 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17214 | (eval $ac_compile) 2>&5 |
| 17215 | ac_status=$? |
| 17216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17217 | (exit $ac_status); } && |
| 17218 | { ac_try='test -s conftest.$ac_objext' |
| 17219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17220 | (eval $ac_try) 2>&5 |
| 17221 | ac_status=$? |
| 17222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17223 | (exit $ac_status); }; }; then |
| 17224 | ac_header_compiler=yes |
| 17225 | else |
| 17226 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17227 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17228 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17229 | ac_header_compiler=no |
| 17230 | fi |
| 17231 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17232 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 17233 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 17234 | |
| 17235 | # Is the header present? |
| 17236 | echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 17237 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6 |
| 17238 | cat >conftest.$ac_ext <<_ACEOF |
| 17239 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17240 | /* confdefs.h. */ |
| 17241 | _ACEOF |
| 17242 | cat confdefs.h >>conftest.$ac_ext |
| 17243 | cat >>conftest.$ac_ext <<_ACEOF |
| 17244 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17245 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17246 | _ACEOF |
| 17247 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 17248 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 17249 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17250 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17251 | rm -f conftest.er1 |
| 17252 | cat conftest.err >&5 |
| 17253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17254 | (exit $ac_status); } >/dev/null; then |
| 17255 | if test -s conftest.err; then |
| 17256 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 17257 | else |
| 17258 | ac_cpp_err= |
| 17259 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17260 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17261 | ac_cpp_err=yes |
| 17262 | fi |
| 17263 | if test -z "$ac_cpp_err"; then |
| 17264 | ac_header_preproc=yes |
| 17265 | else |
| 17266 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17267 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17268 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17269 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17270 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17271 | rm -f conftest.err conftest.$ac_ext |
| 17272 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 17273 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 17274 | |
| 17275 | # So? What about this header? |
| 17276 | case $ac_header_compiler:$ac_header_preproc in |
| 17277 | yes:no ) |
| 17278 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 17279 | echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 17280 | { 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] | 17281 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;} |
| 17282 | ( |
| 17283 | cat <<\_ASBOX |
| 17284 | ## ------------------------------------ ## |
| 17285 | ## Report this to bug-autoconf@gnu.org. ## |
| 17286 | ## ------------------------------------ ## |
| 17287 | _ASBOX |
| 17288 | ) | |
| 17289 | sed "s/^/$as_me: WARNING: /" >&2 |
| 17290 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17291 | no:yes ) |
| 17292 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 17293 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
| 17294 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 17295 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 17296 | { 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] | 17297 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;} |
| 17298 | ( |
| 17299 | cat <<\_ASBOX |
| 17300 | ## ------------------------------------ ## |
| 17301 | ## Report this to bug-autoconf@gnu.org. ## |
| 17302 | ## ------------------------------------ ## |
| 17303 | _ASBOX |
| 17304 | ) | |
| 17305 | sed "s/^/$as_me: WARNING: /" >&2 |
| 17306 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17307 | esac |
| 17308 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 17309 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 17310 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 17311 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17312 | else |
| 17313 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17314 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17315 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 17316 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
| 17317 | |
| 17318 | fi |
| 17319 | if test $ac_cv_header_wchar_h = yes; then |
| 17320 | |
| 17321 | |
| 17322 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17323 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17324 | _ACEOF |
| 17325 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 17326 | wchar_h="yes" |
| 17327 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17328 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17329 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17330 | |
| 17331 | fi |
| 17332 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17333 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17334 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17335 | # determine wchar_t size |
| 17336 | if test "$wchar_h" = yes |
| 17337 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17338 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 17339 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 |
| 17340 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 17341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17342 | else |
| 17343 | cat >conftest.$ac_ext <<_ACEOF |
| 17344 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17345 | /* confdefs.h. */ |
| 17346 | _ACEOF |
| 17347 | cat confdefs.h >>conftest.$ac_ext |
| 17348 | cat >>conftest.$ac_ext <<_ACEOF |
| 17349 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17350 | #include <wchar.h> |
| 17351 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17352 | int |
| 17353 | main () |
| 17354 | { |
| 17355 | if ((wchar_t *) 0) |
| 17356 | return 0; |
| 17357 | if (sizeof (wchar_t)) |
| 17358 | return 0; |
| 17359 | ; |
| 17360 | return 0; |
| 17361 | } |
| 17362 | _ACEOF |
| 17363 | rm -f conftest.$ac_objext |
| 17364 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17365 | (eval $ac_compile) 2>&5 |
| 17366 | ac_status=$? |
| 17367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17368 | (exit $ac_status); } && |
| 17369 | { ac_try='test -s conftest.$ac_objext' |
| 17370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17371 | (eval $ac_try) 2>&5 |
| 17372 | ac_status=$? |
| 17373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17374 | (exit $ac_status); }; }; then |
| 17375 | ac_cv_type_wchar_t=yes |
| 17376 | else |
| 17377 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17378 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17379 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17380 | ac_cv_type_wchar_t=no |
| 17381 | fi |
| 17382 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17383 | fi |
| 17384 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 17385 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 |
| 17386 | |
| 17387 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 17388 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 |
| 17389 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
| 17390 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17391 | else |
| 17392 | if test "$ac_cv_type_wchar_t" = yes; then |
| 17393 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 17394 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 17395 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 17396 | # This bug is HP SR number 8606223364. |
| 17397 | if test "$cross_compiling" = yes; then |
| 17398 | # Depending upon the size, compute the lo and hi bounds. |
| 17399 | cat >conftest.$ac_ext <<_ACEOF |
| 17400 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17401 | /* confdefs.h. */ |
| 17402 | _ACEOF |
| 17403 | cat confdefs.h >>conftest.$ac_ext |
| 17404 | cat >>conftest.$ac_ext <<_ACEOF |
| 17405 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17406 | #include <wchar.h> |
| 17407 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17408 | int |
| 17409 | main () |
| 17410 | { |
| 17411 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; |
| 17412 | test_array [0] = 0 |
| 17413 | |
| 17414 | ; |
| 17415 | return 0; |
| 17416 | } |
| 17417 | _ACEOF |
| 17418 | rm -f conftest.$ac_objext |
| 17419 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17420 | (eval $ac_compile) 2>&5 |
| 17421 | ac_status=$? |
| 17422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17423 | (exit $ac_status); } && |
| 17424 | { ac_try='test -s conftest.$ac_objext' |
| 17425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17426 | (eval $ac_try) 2>&5 |
| 17427 | ac_status=$? |
| 17428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17429 | (exit $ac_status); }; }; then |
| 17430 | ac_lo=0 ac_mid=0 |
| 17431 | while :; do |
| 17432 | cat >conftest.$ac_ext <<_ACEOF |
| 17433 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17434 | /* confdefs.h. */ |
| 17435 | _ACEOF |
| 17436 | cat confdefs.h >>conftest.$ac_ext |
| 17437 | cat >>conftest.$ac_ext <<_ACEOF |
| 17438 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17439 | #include <wchar.h> |
| 17440 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17441 | int |
| 17442 | main () |
| 17443 | { |
| 17444 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 17445 | test_array [0] = 0 |
| 17446 | |
| 17447 | ; |
| 17448 | return 0; |
| 17449 | } |
| 17450 | _ACEOF |
| 17451 | rm -f conftest.$ac_objext |
| 17452 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17453 | (eval $ac_compile) 2>&5 |
| 17454 | ac_status=$? |
| 17455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17456 | (exit $ac_status); } && |
| 17457 | { ac_try='test -s conftest.$ac_objext' |
| 17458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17459 | (eval $ac_try) 2>&5 |
| 17460 | ac_status=$? |
| 17461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17462 | (exit $ac_status); }; }; then |
| 17463 | ac_hi=$ac_mid; break |
| 17464 | else |
| 17465 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17466 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17467 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17468 | ac_lo=`expr $ac_mid + 1` |
| 17469 | if test $ac_lo -le $ac_mid; then |
| 17470 | ac_lo= ac_hi= |
| 17471 | break |
| 17472 | fi |
| 17473 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 17474 | fi |
| 17475 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17476 | done |
| 17477 | else |
| 17478 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17479 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17480 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17481 | cat >conftest.$ac_ext <<_ACEOF |
| 17482 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17483 | /* confdefs.h. */ |
| 17484 | _ACEOF |
| 17485 | cat confdefs.h >>conftest.$ac_ext |
| 17486 | cat >>conftest.$ac_ext <<_ACEOF |
| 17487 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17488 | #include <wchar.h> |
| 17489 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17490 | int |
| 17491 | main () |
| 17492 | { |
| 17493 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; |
| 17494 | test_array [0] = 0 |
| 17495 | |
| 17496 | ; |
| 17497 | return 0; |
| 17498 | } |
| 17499 | _ACEOF |
| 17500 | rm -f conftest.$ac_objext |
| 17501 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17502 | (eval $ac_compile) 2>&5 |
| 17503 | ac_status=$? |
| 17504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17505 | (exit $ac_status); } && |
| 17506 | { ac_try='test -s conftest.$ac_objext' |
| 17507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17508 | (eval $ac_try) 2>&5 |
| 17509 | ac_status=$? |
| 17510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17511 | (exit $ac_status); }; }; then |
| 17512 | ac_hi=-1 ac_mid=-1 |
| 17513 | while :; do |
| 17514 | cat >conftest.$ac_ext <<_ACEOF |
| 17515 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17516 | /* confdefs.h. */ |
| 17517 | _ACEOF |
| 17518 | cat confdefs.h >>conftest.$ac_ext |
| 17519 | cat >>conftest.$ac_ext <<_ACEOF |
| 17520 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17521 | #include <wchar.h> |
| 17522 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17523 | int |
| 17524 | main () |
| 17525 | { |
| 17526 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; |
| 17527 | test_array [0] = 0 |
| 17528 | |
| 17529 | ; |
| 17530 | return 0; |
| 17531 | } |
| 17532 | _ACEOF |
| 17533 | rm -f conftest.$ac_objext |
| 17534 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17535 | (eval $ac_compile) 2>&5 |
| 17536 | ac_status=$? |
| 17537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17538 | (exit $ac_status); } && |
| 17539 | { ac_try='test -s conftest.$ac_objext' |
| 17540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17541 | (eval $ac_try) 2>&5 |
| 17542 | ac_status=$? |
| 17543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17544 | (exit $ac_status); }; }; then |
| 17545 | ac_lo=$ac_mid; break |
| 17546 | else |
| 17547 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17548 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17549 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17550 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 17551 | if test $ac_mid -le $ac_hi; then |
| 17552 | ac_lo= ac_hi= |
| 17553 | break |
| 17554 | fi |
| 17555 | ac_mid=`expr 2 '*' $ac_mid` |
| 17556 | fi |
| 17557 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17558 | done |
| 17559 | else |
| 17560 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17561 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17562 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17563 | ac_lo= ac_hi= |
| 17564 | fi |
| 17565 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17566 | fi |
| 17567 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17568 | # Binary search between lo and hi bounds. |
| 17569 | while test "x$ac_lo" != "x$ac_hi"; do |
| 17570 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 17571 | cat >conftest.$ac_ext <<_ACEOF |
| 17572 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17573 | /* confdefs.h. */ |
| 17574 | _ACEOF |
| 17575 | cat confdefs.h >>conftest.$ac_ext |
| 17576 | cat >>conftest.$ac_ext <<_ACEOF |
| 17577 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17578 | #include <wchar.h> |
| 17579 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17580 | int |
| 17581 | main () |
| 17582 | { |
| 17583 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 17584 | test_array [0] = 0 |
| 17585 | |
| 17586 | ; |
| 17587 | return 0; |
| 17588 | } |
| 17589 | _ACEOF |
| 17590 | rm -f conftest.$ac_objext |
| 17591 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17592 | (eval $ac_compile) 2>&5 |
| 17593 | ac_status=$? |
| 17594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17595 | (exit $ac_status); } && |
| 17596 | { ac_try='test -s conftest.$ac_objext' |
| 17597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17598 | (eval $ac_try) 2>&5 |
| 17599 | ac_status=$? |
| 17600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17601 | (exit $ac_status); }; }; then |
| 17602 | ac_hi=$ac_mid |
| 17603 | else |
| 17604 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17605 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17606 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17607 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 17608 | fi |
| 17609 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17610 | done |
| 17611 | case $ac_lo in |
| 17612 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17613 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
| 17614 | See \`config.log' for more details." >&5 |
| 17615 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 |
| 17616 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17617 | { (exit 1); exit 1; }; } ;; |
| 17618 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17619 | else |
| 17620 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17621 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 17622 | See \`config.log' for more details." >&5 |
| 17623 | echo "$as_me: error: cannot run test program while cross compiling |
| 17624 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17625 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17626 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17627 | cat >conftest.$ac_ext <<_ACEOF |
| 17628 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17629 | /* confdefs.h. */ |
| 17630 | _ACEOF |
| 17631 | cat confdefs.h >>conftest.$ac_ext |
| 17632 | cat >>conftest.$ac_ext <<_ACEOF |
| 17633 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17634 | #include <wchar.h> |
| 17635 | |
| 17636 | long longval () { return (long) (sizeof (wchar_t)); } |
| 17637 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17638 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17639 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17640 | int |
| 17641 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17642 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17643 | |
| 17644 | FILE *f = fopen ("conftest.val", "w"); |
| 17645 | if (! f) |
| 17646 | exit (1); |
| 17647 | if (((long) (sizeof (wchar_t))) < 0) |
| 17648 | { |
| 17649 | long i = longval (); |
| 17650 | if (i != ((long) (sizeof (wchar_t)))) |
| 17651 | exit (1); |
| 17652 | fprintf (f, "%ld\n", i); |
| 17653 | } |
| 17654 | else |
| 17655 | { |
| 17656 | unsigned long i = ulongval (); |
| 17657 | if (i != ((long) (sizeof (wchar_t)))) |
| 17658 | exit (1); |
| 17659 | fprintf (f, "%lu\n", i); |
| 17660 | } |
| 17661 | exit (ferror (f) || fclose (f) != 0); |
| 17662 | |
| 17663 | ; |
| 17664 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17665 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17666 | _ACEOF |
| 17667 | rm -f conftest$ac_exeext |
| 17668 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17669 | (eval $ac_link) 2>&5 |
| 17670 | ac_status=$? |
| 17671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17672 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17674 | (eval $ac_try) 2>&5 |
| 17675 | ac_status=$? |
| 17676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17677 | (exit $ac_status); }; }; then |
| 17678 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17679 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17680 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17681 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17682 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17683 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17684 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17685 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
| 17686 | See \`config.log' for more details." >&5 |
| 17687 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 |
| 17688 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17689 | { (exit 1); exit 1; }; } |
| 17690 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17691 | 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] | 17692 | fi |
| 17693 | fi |
| 17694 | rm -f conftest.val |
| 17695 | else |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17696 | ac_cv_sizeof_wchar_t=0 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17697 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17698 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17699 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 17700 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 |
| 17701 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17702 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17703 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17704 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17705 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17706 | fi |
| 17707 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 17708 | echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5 |
| 17709 | echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6 |
| 17710 | have_ucs4_tcl=no |
| 17711 | cat >conftest.$ac_ext <<_ACEOF |
| 17712 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17713 | /* confdefs.h. */ |
| 17714 | _ACEOF |
| 17715 | cat confdefs.h >>conftest.$ac_ext |
| 17716 | cat >>conftest.$ac_ext <<_ACEOF |
| 17717 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 17718 | |
| 17719 | #include <tcl.h> |
| 17720 | #if TCL_UTF_MAX != 6 |
| 17721 | # error "NOT UCS4_TCL" |
| 17722 | #endif |
| 17723 | int |
| 17724 | main () |
| 17725 | { |
| 17726 | |
| 17727 | ; |
| 17728 | return 0; |
| 17729 | } |
| 17730 | _ACEOF |
| 17731 | rm -f conftest.$ac_objext |
| 17732 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17733 | (eval $ac_compile) 2>&5 |
| 17734 | ac_status=$? |
| 17735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17736 | (exit $ac_status); } && |
| 17737 | { ac_try='test -s conftest.$ac_objext' |
| 17738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17739 | (eval $ac_try) 2>&5 |
| 17740 | ac_status=$? |
| 17741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17742 | (exit $ac_status); }; }; then |
| 17743 | |
| 17744 | |
| 17745 | cat >>confdefs.h <<\_ACEOF |
| 17746 | #define HAVE_UCS4_TCL 1 |
| 17747 | _ACEOF |
| 17748 | |
| 17749 | have_ucs4_tcl=yes |
| 17750 | |
| 17751 | else |
| 17752 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17753 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17754 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 17755 | fi |
| 17756 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17757 | echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5 |
| 17758 | echo "${ECHO_T}$have_ucs4_tcl" >&6 |
| 17759 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17760 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 17761 | if test "$wchar_h" = yes |
| 17762 | then |
| 17763 | # check whether wchar_t is signed or not |
| 17764 | echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5 |
| 17765 | echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6 |
| 17766 | if test "${ac_cv_wchar_t_signed+set}" = set; then |
| 17767 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17768 | else |
| 17769 | |
| 17770 | if test "$cross_compiling" = yes; then |
| 17771 | ac_cv_wchar_t_signed=yes |
| 17772 | else |
| 17773 | cat >conftest.$ac_ext <<_ACEOF |
| 17774 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17775 | /* confdefs.h. */ |
| 17776 | _ACEOF |
| 17777 | cat confdefs.h >>conftest.$ac_ext |
| 17778 | cat >>conftest.$ac_ext <<_ACEOF |
| 17779 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 17780 | |
| 17781 | #include <wchar.h> |
| 17782 | int main() |
| 17783 | { |
| 17784 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 1 : 0); |
| 17785 | } |
| 17786 | |
| 17787 | _ACEOF |
| 17788 | rm -f conftest$ac_exeext |
| 17789 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17790 | (eval $ac_link) 2>&5 |
| 17791 | ac_status=$? |
| 17792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17793 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17795 | (eval $ac_try) 2>&5 |
| 17796 | ac_status=$? |
| 17797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17798 | (exit $ac_status); }; }; then |
| 17799 | ac_cv_wchar_t_signed=yes |
| 17800 | else |
| 17801 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17802 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17803 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17804 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 17805 | ( exit $ac_status ) |
| 17806 | ac_cv_wchar_t_signed=no |
| 17807 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17808 | 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] | 17809 | fi |
| 17810 | fi |
| 17811 | |
| 17812 | echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5 |
| 17813 | echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6 |
| 17814 | fi |
| 17815 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17816 | echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 17817 | 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] | 17818 | # Check whether --enable-unicode or --disable-unicode was given. |
| 17819 | if test "${enable_unicode+set}" = set; then |
| 17820 | enableval="$enable_unicode" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17821 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17822 | else |
| 17823 | enable_unicode=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17824 | fi; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17825 | |
| 17826 | if test $enable_unicode = yes |
| 17827 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 17828 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 17829 | case "$have_ucs4_tcl" in |
| 17830 | yes) enable_unicode="ucs4" |
| 17831 | ;; |
| 17832 | *) enable_unicode="ucs2" |
| 17833 | ;; |
| 17834 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17835 | fi |
| 17836 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 17837 | |
| 17838 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17839 | case "$enable_unicode" in |
| 17840 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17841 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17842 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17843 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17844 | |
| 17845 | ;; |
| 17846 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17847 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17848 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17849 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17850 | |
| 17851 | ;; |
| 17852 | esac |
| 17853 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17854 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17855 | |
| 17856 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 17857 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17858 | if test "$enable_unicode" = "no" |
| 17859 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 17860 | UNICODE_OBJS="" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17861 | echo "$as_me:$LINENO: result: not used" >&5 |
| 17862 | echo "${ECHO_T}not used" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17863 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 17864 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17865 | |
| 17866 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17867 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17868 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17869 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 17870 | |
| 17871 | # wchar_t is only usable if it maps to an unsigned type |
| 17872 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ |
| 17873 | -a "$ac_cv_wchar_t_signed" == "no" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17874 | then |
| 17875 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17876 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17877 | cat >>confdefs.h <<\_ACEOF |
| 17878 | #define HAVE_USABLE_WCHAR_T 1 |
| 17879 | _ACEOF |
| 17880 | |
| 17881 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17882 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17883 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17884 | |
| 17885 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 17886 | then |
| 17887 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17888 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17889 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17890 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17891 | |
| 17892 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 17893 | then |
| 17894 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17895 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17896 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17897 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17898 | |
| 17899 | else |
| 17900 | PY_UNICODE_TYPE="no type found" |
| 17901 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17902 | echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 17903 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17904 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17905 | |
| 17906 | # check for endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17907 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 17908 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 17909 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 17910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17911 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17912 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 17913 | cat >conftest.$ac_ext <<_ACEOF |
| 17914 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17915 | /* confdefs.h. */ |
| 17916 | _ACEOF |
| 17917 | cat confdefs.h >>conftest.$ac_ext |
| 17918 | cat >>conftest.$ac_ext <<_ACEOF |
| 17919 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17920 | #include <sys/types.h> |
| 17921 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17922 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17923 | int |
| 17924 | main () |
| 17925 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17926 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 17927 | bogus endian macros |
| 17928 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17929 | |
| 17930 | ; |
| 17931 | return 0; |
| 17932 | } |
| 17933 | _ACEOF |
| 17934 | rm -f conftest.$ac_objext |
| 17935 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17936 | (eval $ac_compile) 2>&5 |
| 17937 | ac_status=$? |
| 17938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17939 | (exit $ac_status); } && |
| 17940 | { ac_try='test -s conftest.$ac_objext' |
| 17941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17942 | (eval $ac_try) 2>&5 |
| 17943 | ac_status=$? |
| 17944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17945 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17946 | # 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] | 17947 | cat >conftest.$ac_ext <<_ACEOF |
| 17948 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17949 | /* confdefs.h. */ |
| 17950 | _ACEOF |
| 17951 | cat confdefs.h >>conftest.$ac_ext |
| 17952 | cat >>conftest.$ac_ext <<_ACEOF |
| 17953 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17954 | #include <sys/types.h> |
| 17955 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17956 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17957 | int |
| 17958 | main () |
| 17959 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17960 | #if BYTE_ORDER != BIG_ENDIAN |
| 17961 | not big endian |
| 17962 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17963 | |
| 17964 | ; |
| 17965 | return 0; |
| 17966 | } |
| 17967 | _ACEOF |
| 17968 | rm -f conftest.$ac_objext |
| 17969 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17970 | (eval $ac_compile) 2>&5 |
| 17971 | ac_status=$? |
| 17972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17973 | (exit $ac_status); } && |
| 17974 | { ac_try='test -s conftest.$ac_objext' |
| 17975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17976 | (eval $ac_try) 2>&5 |
| 17977 | ac_status=$? |
| 17978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17979 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17980 | ac_cv_c_bigendian=yes |
| 17981 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17982 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17983 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17984 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17985 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17986 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17987 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17988 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17989 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17990 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17991 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17992 | # It does not; compile a test program. |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17993 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17994 | # 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] | 17995 | ac_cv_c_bigendian=unknown |
| 17996 | cat >conftest.$ac_ext <<_ACEOF |
| 17997 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17998 | /* confdefs.h. */ |
| 17999 | _ACEOF |
| 18000 | cat confdefs.h >>conftest.$ac_ext |
| 18001 | cat >>conftest.$ac_ext <<_ACEOF |
| 18002 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18003 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 18004 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 18005 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 18006 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 18007 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 18008 | 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] | 18009 | int |
| 18010 | main () |
| 18011 | { |
| 18012 | _ascii (); _ebcdic (); |
| 18013 | ; |
| 18014 | return 0; |
| 18015 | } |
| 18016 | _ACEOF |
| 18017 | rm -f conftest.$ac_objext |
| 18018 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18019 | (eval $ac_compile) 2>&5 |
| 18020 | ac_status=$? |
| 18021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18022 | (exit $ac_status); } && |
| 18023 | { ac_try='test -s conftest.$ac_objext' |
| 18024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18025 | (eval $ac_try) 2>&5 |
| 18026 | ac_status=$? |
| 18027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18028 | (exit $ac_status); }; }; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18029 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18030 | ac_cv_c_bigendian=yes |
| 18031 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18032 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18033 | if test "$ac_cv_c_bigendian" = unknown; then |
| 18034 | ac_cv_c_bigendian=no |
| 18035 | else |
| 18036 | # finding both strings is unlikely to happen, but who knows? |
| 18037 | ac_cv_c_bigendian=unknown |
| 18038 | fi |
| 18039 | fi |
| 18040 | else |
| 18041 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18042 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18043 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18044 | fi |
| 18045 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 18046 | else |
| 18047 | cat >conftest.$ac_ext <<_ACEOF |
| 18048 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18049 | /* confdefs.h. */ |
| 18050 | _ACEOF |
| 18051 | cat confdefs.h >>conftest.$ac_ext |
| 18052 | cat >>conftest.$ac_ext <<_ACEOF |
| 18053 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18054 | int |
| 18055 | main () |
| 18056 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18057 | /* Are we little or big endian? From Harbison&Steele. */ |
| 18058 | union |
| 18059 | { |
| 18060 | long l; |
| 18061 | char c[sizeof (long)]; |
| 18062 | } u; |
| 18063 | u.l = 1; |
| 18064 | exit (u.c[sizeof (long) - 1] == 1); |
| 18065 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18066 | _ACEOF |
| 18067 | rm -f conftest$ac_exeext |
| 18068 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18069 | (eval $ac_link) 2>&5 |
| 18070 | ac_status=$? |
| 18071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18072 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18074 | (eval $ac_try) 2>&5 |
| 18075 | ac_status=$? |
| 18076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18077 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18078 | ac_cv_c_bigendian=no |
| 18079 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18080 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18081 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18082 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18083 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18084 | ( exit $ac_status ) |
| 18085 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18086 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18087 | 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] | 18088 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18089 | fi |
| 18090 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 18091 | fi |
| 18092 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 18093 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 18094 | case $ac_cv_c_bigendian in |
| 18095 | yes) |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18096 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18097 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18098 | #define WORDS_BIGENDIAN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18099 | _ACEOF |
| 18100 | ;; |
| 18101 | no) |
| 18102 | ;; |
| 18103 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18104 | { { echo "$as_me:$LINENO: error: unknown endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18105 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18106 | echo "$as_me: error: unknown endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18107 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 18108 | { (exit 1); exit 1; }; } ;; |
| 18109 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18110 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18111 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 18112 | # Check whether right shifting a negative integer extends the sign bit |
| 18113 | # 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] | 18114 | echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 18115 | echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6 |
| 18116 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
| 18117 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 18118 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18119 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 18120 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 18121 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 18122 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18123 | cat >conftest.$ac_ext <<_ACEOF |
| 18124 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18125 | /* confdefs.h. */ |
| 18126 | _ACEOF |
| 18127 | cat confdefs.h >>conftest.$ac_ext |
| 18128 | cat >>conftest.$ac_ext <<_ACEOF |
| 18129 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 18130 | |
| 18131 | int main() |
| 18132 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 18133 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 18134 | } |
| 18135 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18136 | _ACEOF |
| 18137 | rm -f conftest$ac_exeext |
| 18138 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18139 | (eval $ac_link) 2>&5 |
| 18140 | ac_status=$? |
| 18141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18142 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18144 | (eval $ac_try) 2>&5 |
| 18145 | ac_status=$? |
| 18146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18147 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 18148 | ac_cv_rshift_extends_sign=yes |
| 18149 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18150 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18151 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18152 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18153 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18154 | ( exit $ac_status ) |
| 18155 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 18156 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18157 | 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] | 18158 | fi |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 18159 | fi |
| 18160 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18161 | echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 18162 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 18163 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 18164 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18165 | |
| 18166 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 18167 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18168 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 18169 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 18170 | fi |
| 18171 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 18172 | # check for getc_unlocked and related locking functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18173 | echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 18174 | echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6 |
| 18175 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
| 18176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 18177 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18178 | |
| 18179 | cat >conftest.$ac_ext <<_ACEOF |
| 18180 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18181 | /* confdefs.h. */ |
| 18182 | _ACEOF |
| 18183 | cat confdefs.h >>conftest.$ac_ext |
| 18184 | cat >>conftest.$ac_ext <<_ACEOF |
| 18185 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 18186 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18187 | int |
| 18188 | main () |
| 18189 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 18190 | |
| 18191 | FILE *f = fopen("/dev/null", "r"); |
| 18192 | flockfile(f); |
| 18193 | getc_unlocked(f); |
| 18194 | funlockfile(f); |
| 18195 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18196 | ; |
| 18197 | return 0; |
| 18198 | } |
| 18199 | _ACEOF |
| 18200 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18201 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18202 | (eval $ac_link) 2>&5 |
| 18203 | ac_status=$? |
| 18204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18205 | (exit $ac_status); } && |
| 18206 | { ac_try='test -s conftest$ac_exeext' |
| 18207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18208 | (eval $ac_try) 2>&5 |
| 18209 | ac_status=$? |
| 18210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18211 | (exit $ac_status); }; }; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 18212 | ac_cv_have_getc_unlocked=yes |
| 18213 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18214 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18215 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18216 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18217 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 18218 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18219 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 18220 | fi |
| 18221 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18222 | echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 18223 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 18224 | if test "$ac_cv_have_getc_unlocked" = yes |
| 18225 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18226 | |
| 18227 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 18228 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18229 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 18230 | |
| 18231 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 18232 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 18233 | # check for readline 2.2 |
| 18234 | cat >conftest.$ac_ext <<_ACEOF |
| 18235 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18236 | /* confdefs.h. */ |
| 18237 | _ACEOF |
| 18238 | cat confdefs.h >>conftest.$ac_ext |
| 18239 | cat >>conftest.$ac_ext <<_ACEOF |
| 18240 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 18241 | #include <readline/readline.h> |
| 18242 | _ACEOF |
| 18243 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 18244 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 18245 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18246 | grep -v '^ *+' conftest.er1 >conftest.err |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 18247 | rm -f conftest.er1 |
| 18248 | cat conftest.err >&5 |
| 18249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18250 | (exit $ac_status); } >/dev/null; then |
| 18251 | if test -s conftest.err; then |
| 18252 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 18253 | else |
| 18254 | ac_cpp_err= |
| 18255 | fi |
| 18256 | else |
| 18257 | ac_cpp_err=yes |
| 18258 | fi |
| 18259 | if test -z "$ac_cpp_err"; then |
| 18260 | have_readline=yes |
| 18261 | else |
| 18262 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18263 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18264 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 18265 | have_readline=no |
| 18266 | fi |
| 18267 | rm -f conftest.err conftest.$ac_ext |
| 18268 | if test $have_readline = yes |
| 18269 | then |
| 18270 | cat >conftest.$ac_ext <<_ACEOF |
| 18271 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18272 | /* confdefs.h. */ |
| 18273 | _ACEOF |
| 18274 | cat confdefs.h >>conftest.$ac_ext |
| 18275 | cat >>conftest.$ac_ext <<_ACEOF |
| 18276 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 18277 | #include <readline/readline.h> |
| 18278 | |
| 18279 | _ACEOF |
| 18280 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18281 | $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] | 18282 | |
| 18283 | cat >>confdefs.h <<\_ACEOF |
| 18284 | #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1 |
| 18285 | _ACEOF |
| 18286 | |
| 18287 | fi |
| 18288 | rm -f conftest* |
| 18289 | |
| 18290 | fi |
| 18291 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18292 | # check for readline 4.0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18293 | echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 18294 | echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6 |
| 18295 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
| 18296 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 18297 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18298 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 18299 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18300 | cat >conftest.$ac_ext <<_ACEOF |
| 18301 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18302 | /* confdefs.h. */ |
| 18303 | _ACEOF |
| 18304 | cat confdefs.h >>conftest.$ac_ext |
| 18305 | cat >>conftest.$ac_ext <<_ACEOF |
| 18306 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18307 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 18308 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18309 | #ifdef __cplusplus |
| 18310 | extern "C" |
| 18311 | #endif |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 18312 | /* 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] | 18313 | builtin and then its argument prototype would still apply. */ |
| 18314 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18315 | int |
| 18316 | main () |
| 18317 | { |
| 18318 | rl_pre_input_hook (); |
| 18319 | ; |
| 18320 | return 0; |
| 18321 | } |
| 18322 | _ACEOF |
| 18323 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18324 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18325 | (eval $ac_link) 2>&5 |
| 18326 | ac_status=$? |
| 18327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18328 | (exit $ac_status); } && |
| 18329 | { ac_try='test -s conftest$ac_exeext' |
| 18330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18331 | (eval $ac_try) 2>&5 |
| 18332 | ac_status=$? |
| 18333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18334 | (exit $ac_status); }; }; then |
| 18335 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18336 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18337 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18338 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18339 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18340 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18341 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18342 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 18343 | LIBS=$ac_check_lib_save_LIBS |
| 18344 | fi |
| 18345 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 18346 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6 |
| 18347 | 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] | 18348 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18349 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18350 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18351 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18352 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18353 | fi |
| 18354 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18355 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18356 | # check for readline 4.2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18357 | echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 18358 | echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6 |
| 18359 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
| 18360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18361 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18362 | ac_check_lib_save_LIBS=$LIBS |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18363 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18364 | cat >conftest.$ac_ext <<_ACEOF |
| 18365 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18366 | /* confdefs.h. */ |
| 18367 | _ACEOF |
| 18368 | cat confdefs.h >>conftest.$ac_ext |
| 18369 | cat >>conftest.$ac_ext <<_ACEOF |
| 18370 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18371 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18372 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18373 | #ifdef __cplusplus |
| 18374 | extern "C" |
| 18375 | #endif |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18376 | /* 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] | 18377 | builtin and then its argument prototype would still apply. */ |
| 18378 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18379 | int |
| 18380 | main () |
| 18381 | { |
| 18382 | rl_completion_matches (); |
| 18383 | ; |
| 18384 | return 0; |
| 18385 | } |
| 18386 | _ACEOF |
| 18387 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18388 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18389 | (eval $ac_link) 2>&5 |
| 18390 | ac_status=$? |
| 18391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18392 | (exit $ac_status); } && |
| 18393 | { ac_try='test -s conftest$ac_exeext' |
| 18394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18395 | (eval $ac_try) 2>&5 |
| 18396 | ac_status=$? |
| 18397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18398 | (exit $ac_status); }; }; then |
| 18399 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 18400 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18401 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18402 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18403 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18404 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 18405 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18406 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 18407 | LIBS=$ac_check_lib_save_LIBS |
| 18408 | fi |
| 18409 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 18410 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6 |
| 18411 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18412 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18413 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 18414 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18415 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 18416 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 18417 | fi |
| 18418 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18419 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18420 | echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 18421 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6 |
| 18422 | if test "${ac_cv_broken_nice+set}" = set; then |
| 18423 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18424 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18425 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18426 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 18427 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18428 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18429 | cat >conftest.$ac_ext <<_ACEOF |
| 18430 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18431 | /* confdefs.h. */ |
| 18432 | _ACEOF |
| 18433 | cat confdefs.h >>conftest.$ac_ext |
| 18434 | cat >>conftest.$ac_ext <<_ACEOF |
| 18435 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18436 | |
| 18437 | int main() |
| 18438 | { |
| 18439 | int val1 = nice(1); |
| 18440 | if (val1 != -1 && val1 == nice(2)) |
| 18441 | exit(0); |
| 18442 | exit(1); |
| 18443 | } |
| 18444 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18445 | _ACEOF |
| 18446 | rm -f conftest$ac_exeext |
| 18447 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18448 | (eval $ac_link) 2>&5 |
| 18449 | ac_status=$? |
| 18450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18451 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18453 | (eval $ac_try) 2>&5 |
| 18454 | ac_status=$? |
| 18455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18456 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18457 | ac_cv_broken_nice=yes |
| 18458 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18459 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18460 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18461 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18462 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18463 | ( exit $ac_status ) |
| 18464 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18465 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18466 | 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] | 18467 | fi |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18468 | fi |
| 18469 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18470 | echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 18471 | echo "${ECHO_T}$ac_cv_broken_nice" >&6 |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18472 | if test "$ac_cv_broken_nice" = yes |
| 18473 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18474 | |
| 18475 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18476 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18477 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18478 | |
| 18479 | fi |
| 18480 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18481 | # tzset(3) exists and works like we expect it to |
| 18482 | echo "$as_me:$LINENO: checking for working tzset()" >&5 |
| 18483 | echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6 |
| 18484 | if test "${ac_cv_working_tzset+set}" = set; then |
| 18485 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18486 | else |
| 18487 | |
| 18488 | if test "$cross_compiling" = yes; then |
| 18489 | ac_cv_working_tzset=no |
| 18490 | else |
| 18491 | cat >conftest.$ac_ext <<_ACEOF |
| 18492 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18493 | /* confdefs.h. */ |
| 18494 | _ACEOF |
| 18495 | cat confdefs.h >>conftest.$ac_ext |
| 18496 | cat >>conftest.$ac_ext <<_ACEOF |
| 18497 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18498 | |
| 18499 | #include <stdlib.h> |
| 18500 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 18501 | #include <string.h> |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18502 | int main() |
| 18503 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 18504 | /* Note that we need to ensure that not only does tzset(3) |
| 18505 | do 'something' with localtime, but it works as documented |
| 18506 | in the library reference and as expected by the test suite. |
| 18507 | |
| 18508 | Red Hat 6.2 doesn't understand the southern hemisphere |
| 18509 | after New Year's Day; it thinks swaps on that day. |
| 18510 | */ |
| 18511 | |
| 18512 | time_t groundhogday = 1044144000; /* GMT-based; well, it's a colony */ |
| 18513 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 18514 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 18515 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18516 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 18517 | if (localtime(&groundhogday)->tm_hour != 0) |
| 18518 | exit(1); |
| 18519 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 18520 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18521 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 18522 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18523 | exit(1); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 18524 | |
| 18525 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 18526 | tzset(); |
| 18527 | if (localtime(&groundhogday)->tm_hour != 11) |
| 18528 | exit(1); |
| 18529 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 18530 | exit(1); |
| 18531 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 18532 | exit(1); |
| 18533 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18534 | exit(0); |
| 18535 | } |
| 18536 | |
| 18537 | _ACEOF |
| 18538 | rm -f conftest$ac_exeext |
| 18539 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18540 | (eval $ac_link) 2>&5 |
| 18541 | ac_status=$? |
| 18542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18543 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18545 | (eval $ac_try) 2>&5 |
| 18546 | ac_status=$? |
| 18547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18548 | (exit $ac_status); }; }; then |
| 18549 | ac_cv_working_tzset=yes |
| 18550 | else |
| 18551 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18552 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18553 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18554 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18555 | ( exit $ac_status ) |
| 18556 | ac_cv_working_tzset=no |
| 18557 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18558 | 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] | 18559 | fi |
| 18560 | fi |
| 18561 | |
| 18562 | echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5 |
| 18563 | echo "${ECHO_T}$ac_cv_working_tzset" >&6 |
| 18564 | if test "$ac_cv_working_tzset" = yes |
| 18565 | then |
| 18566 | |
| 18567 | cat >>confdefs.h <<\_ACEOF |
| 18568 | #define HAVE_WORKING_TZSET 1 |
| 18569 | _ACEOF |
| 18570 | |
| 18571 | fi |
| 18572 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 18573 | # Look for subsecond timestamps in struct stat |
| 18574 | echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 18575 | echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6 |
| 18576 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
| 18577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18578 | else |
| 18579 | cat >conftest.$ac_ext <<_ACEOF |
| 18580 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18581 | /* confdefs.h. */ |
| 18582 | _ACEOF |
| 18583 | cat confdefs.h >>conftest.$ac_ext |
| 18584 | cat >>conftest.$ac_ext <<_ACEOF |
| 18585 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 18586 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 18587 | int |
| 18588 | main () |
| 18589 | { |
| 18590 | |
| 18591 | struct stat st; |
| 18592 | st.st_mtim.tv_nsec = 1; |
| 18593 | |
| 18594 | ; |
| 18595 | return 0; |
| 18596 | } |
| 18597 | _ACEOF |
| 18598 | rm -f conftest.$ac_objext |
| 18599 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18600 | (eval $ac_compile) 2>&5 |
| 18601 | ac_status=$? |
| 18602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18603 | (exit $ac_status); } && |
| 18604 | { ac_try='test -s conftest.$ac_objext' |
| 18605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18606 | (eval $ac_try) 2>&5 |
| 18607 | ac_status=$? |
| 18608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18609 | (exit $ac_status); }; }; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 18610 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 18611 | else |
| 18612 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18613 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18614 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 18615 | ac_cv_stat_tv_nsec=no |
| 18616 | fi |
| 18617 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 18618 | fi |
| 18619 | |
| 18620 | echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 18621 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6 |
| 18622 | if test "$ac_cv_stat_tv_nsec" = yes |
| 18623 | then |
| 18624 | |
| 18625 | cat >>confdefs.h <<\_ACEOF |
| 18626 | #define HAVE_STAT_TV_NSEC 1 |
| 18627 | _ACEOF |
| 18628 | |
| 18629 | fi |
| 18630 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18631 | # 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] | 18632 | echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 18633 | echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6 |
| 18634 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
| 18635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18636 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18637 | cat >conftest.$ac_ext <<_ACEOF |
| 18638 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18639 | /* confdefs.h. */ |
| 18640 | _ACEOF |
| 18641 | cat confdefs.h >>conftest.$ac_ext |
| 18642 | cat >>conftest.$ac_ext <<_ACEOF |
| 18643 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18644 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18645 | int |
| 18646 | main () |
| 18647 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18648 | |
| 18649 | int rtn; |
| 18650 | rtn = mvwdelch(0,0,0); |
| 18651 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18652 | ; |
| 18653 | return 0; |
| 18654 | } |
| 18655 | _ACEOF |
| 18656 | rm -f conftest.$ac_objext |
| 18657 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18658 | (eval $ac_compile) 2>&5 |
| 18659 | ac_status=$? |
| 18660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18661 | (exit $ac_status); } && |
| 18662 | { ac_try='test -s conftest.$ac_objext' |
| 18663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18664 | (eval $ac_try) 2>&5 |
| 18665 | ac_status=$? |
| 18666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18667 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18668 | ac_cv_mvwdelch_is_expression=yes |
| 18669 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18670 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18671 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18672 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18673 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18674 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18675 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18676 | fi |
| 18677 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18678 | echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 18679 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18680 | |
| 18681 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 18682 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18683 | |
| 18684 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18685 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18686 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18687 | |
| 18688 | fi |
| 18689 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18690 | echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 18691 | echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6 |
| 18692 | if test "${ac_cv_window_has_flags+set}" = set; then |
| 18693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18694 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18695 | cat >conftest.$ac_ext <<_ACEOF |
| 18696 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18697 | /* confdefs.h. */ |
| 18698 | _ACEOF |
| 18699 | cat confdefs.h >>conftest.$ac_ext |
| 18700 | cat >>conftest.$ac_ext <<_ACEOF |
| 18701 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18702 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18703 | int |
| 18704 | main () |
| 18705 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18706 | |
| 18707 | WINDOW *w; |
| 18708 | w->_flags = 0; |
| 18709 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18710 | ; |
| 18711 | return 0; |
| 18712 | } |
| 18713 | _ACEOF |
| 18714 | rm -f conftest.$ac_objext |
| 18715 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18716 | (eval $ac_compile) 2>&5 |
| 18717 | ac_status=$? |
| 18718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18719 | (exit $ac_status); } && |
| 18720 | { ac_try='test -s conftest.$ac_objext' |
| 18721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18722 | (eval $ac_try) 2>&5 |
| 18723 | ac_status=$? |
| 18724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18725 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18726 | ac_cv_window_has_flags=yes |
| 18727 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18728 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18729 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18730 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18731 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18732 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18733 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18734 | fi |
| 18735 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18736 | echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 18737 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18738 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18739 | |
| 18740 | if test "$ac_cv_window_has_flags" = yes |
| 18741 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18742 | |
| 18743 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18744 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18745 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18746 | |
| 18747 | fi |
| 18748 | |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 18749 | echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
| 18750 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6 |
| 18751 | |
| 18752 | if test -e /dev/ptmx |
| 18753 | then |
| 18754 | echo "$as_me:$LINENO: result: yes" >&5 |
| 18755 | echo "${ECHO_T}yes" >&6 |
| 18756 | |
| 18757 | cat >>confdefs.h <<\_ACEOF |
| 18758 | #define HAVE_DEV_PTMX 1 |
| 18759 | _ACEOF |
| 18760 | |
| 18761 | else |
| 18762 | echo "$as_me:$LINENO: result: no" >&5 |
| 18763 | echo "${ECHO_T}no" >&6 |
| 18764 | fi |
| 18765 | |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 18766 | echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 18767 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6 |
| 18768 | |
| 18769 | if test -e /dev/ptc |
| 18770 | then |
| 18771 | echo "$as_me:$LINENO: result: yes" >&5 |
| 18772 | echo "${ECHO_T}yes" >&6 |
| 18773 | |
| 18774 | cat >>confdefs.h <<\_ACEOF |
| 18775 | #define HAVE_DEV_PTC 1 |
| 18776 | _ACEOF |
| 18777 | |
| 18778 | else |
| 18779 | echo "$as_me:$LINENO: result: no" >&5 |
| 18780 | echo "${ECHO_T}no" >&6 |
| 18781 | fi |
| 18782 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18783 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 18784 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
| 18785 | if test "${ac_cv_type_socklen_t+set}" = set; then |
| 18786 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 18787 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18788 | cat >conftest.$ac_ext <<_ACEOF |
| 18789 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18790 | /* confdefs.h. */ |
| 18791 | _ACEOF |
| 18792 | cat confdefs.h >>conftest.$ac_ext |
| 18793 | cat >>conftest.$ac_ext <<_ACEOF |
| 18794 | /* end confdefs.h. */ |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 18795 | |
| 18796 | #ifdef HAVE_SYS_TYPES_H |
| 18797 | #include <sys/types.h> |
| 18798 | #endif |
| 18799 | #ifdef HAVE_SYS_SOCKET_H |
| 18800 | #include <sys/socket.h> |
| 18801 | #endif |
| 18802 | |
| 18803 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18804 | int |
| 18805 | main () |
| 18806 | { |
| 18807 | if ((socklen_t *) 0) |
| 18808 | return 0; |
| 18809 | if (sizeof (socklen_t)) |
| 18810 | return 0; |
| 18811 | ; |
| 18812 | return 0; |
| 18813 | } |
| 18814 | _ACEOF |
| 18815 | rm -f conftest.$ac_objext |
| 18816 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18817 | (eval $ac_compile) 2>&5 |
| 18818 | ac_status=$? |
| 18819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18820 | (exit $ac_status); } && |
| 18821 | { ac_try='test -s conftest.$ac_objext' |
| 18822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18823 | (eval $ac_try) 2>&5 |
| 18824 | ac_status=$? |
| 18825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18826 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 18827 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 18828 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18829 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18830 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18831 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18832 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 18833 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18834 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 18835 | fi |
| 18836 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 18837 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 |
| 18838 | if test $ac_cv_type_socklen_t = yes; then |
| 18839 | : |
| 18840 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 18841 | |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 18842 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 18843 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18844 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 18845 | |
| 18846 | fi |
| 18847 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18848 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18849 | |
| 18850 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 18851 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 18852 | do |
| 18853 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 18854 | done |
| 18855 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18856 | |
Jack Jansen | 0b06be7 | 2002-06-21 14:48:38 +0000 | [diff] [blame] | 18857 | SRCDIRS="Parser Grammar Objects Python Modules Mac Mac/Python" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18858 | echo "$as_me:$LINENO: checking for build directories" >&5 |
| 18859 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 18860 | for dir in $SRCDIRS; do |
| 18861 | if test ! -d $dir; then |
| 18862 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 18863 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 18864 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18865 | echo "$as_me:$LINENO: result: done" >&5 |
| 18866 | echo "${ECHO_T}done" >&6 |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 18867 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18868 | # generate output files |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18869 | 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] | 18870 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18871 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18872 | # This file is a shell script that caches the results of configure |
| 18873 | # 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] | 18874 | # scripts and configure runs, see configure's option --config-cache. |
| 18875 | # It is not useful on other systems. If it contains results you don't |
| 18876 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18877 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18878 | # config.status only pays attention to the cache file if you give it |
| 18879 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18880 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18881 | # `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] | 18882 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 18883 | # following values. |
| 18884 | |
| 18885 | _ACEOF |
| 18886 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 18887 | # The following way of writing the cache mishandles newlines in values, |
| 18888 | # but we know of no workaround that is simple, portable, and efficient. |
| 18889 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18890 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 18891 | # 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] | 18892 | { |
| 18893 | (set) 2>&1 | |
| 18894 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 18895 | *ac_space=\ *) |
| 18896 | # `set' does not quote correctly, so add quotes (double-quote |
| 18897 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 18898 | sed -n \ |
| 18899 | "s/'/'\\\\''/g; |
| 18900 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 18901 | ;; |
| 18902 | *) |
| 18903 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 18904 | sed -n \ |
| 18905 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 18906 | ;; |
| 18907 | esac; |
| 18908 | } | |
| 18909 | sed ' |
| 18910 | t clear |
| 18911 | : clear |
| 18912 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 18913 | t end |
| 18914 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 18915 | : end' >>confcache |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18916 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18917 | if test -w $cache_file; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18918 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 18919 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18920 | else |
| 18921 | echo "not updating unwritable cache $cache_file" |
| 18922 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18923 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18924 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 18925 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18926 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 18927 | # Let make expand exec_prefix. |
| 18928 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 18929 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18930 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 18931 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 18932 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 18933 | # (actually we leave an empty line to preserve line numbers). |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18934 | if test "x$srcdir" = x.; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18935 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 18936 | s/:*\$(srcdir):*/:/; |
| 18937 | s/:*\${srcdir}:*/:/; |
| 18938 | s/:*@srcdir@:*/:/; |
| 18939 | s/^\([^=]*=[ ]*\):*/\1/; |
| 18940 | s/:*$//; |
| 18941 | s/^[^=]*=[ ]*$//; |
| 18942 | }' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18943 | fi |
| 18944 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18945 | DEFS=-DHAVE_CONFIG_H |
| 18946 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18947 | ac_libobjs= |
| 18948 | ac_ltlibobjs= |
| 18949 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 18950 | # 1. Remove the extension, and $U if already installed. |
| 18951 | ac_i=`echo "$ac_i" | |
| 18952 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 18953 | # 2. Add them. |
| 18954 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 18955 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 18956 | done |
| 18957 | LIBOBJS=$ac_libobjs |
| 18958 | |
| 18959 | LTLIBOBJS=$ac_ltlibobjs |
| 18960 | |
| 18961 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18962 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18963 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18964 | ac_clean_files_save=$ac_clean_files |
| 18965 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 18966 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 18967 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 18968 | cat >$CONFIG_STATUS <<_ACEOF |
| 18969 | #! $SHELL |
| 18970 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18971 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18972 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18973 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18974 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18975 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18976 | ac_cs_recheck=false |
| 18977 | ac_cs_silent=false |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18978 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 18979 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18980 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18981 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18982 | ## --------------------- ## |
| 18983 | ## M4sh Initialization. ## |
| 18984 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18985 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18986 | # Be Bourne compatible |
| 18987 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 18988 | emulate sh |
| 18989 | NULLCMD=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18990 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 18991 | # is contrary to our usage. Disable this feature. |
| 18992 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18993 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 18994 | set -o posix |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18995 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18996 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18997 | # Support unset when possible. |
| 18998 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 18999 | as_unset=unset |
| 19000 | else |
| 19001 | as_unset=false |
| 19002 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19003 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19004 | |
| 19005 | # Work around bugs in pre-3.0 UWIN ksh. |
| 19006 | $as_unset ENV MAIL MAILPATH |
| 19007 | PS1='$ ' |
| 19008 | PS2='> ' |
| 19009 | PS4='+ ' |
| 19010 | |
| 19011 | # NLS nuisances. |
| 19012 | for as_var in \ |
| 19013 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 19014 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 19015 | LC_TELEPHONE LC_TIME |
| 19016 | do |
| 19017 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 19018 | eval $as_var=C; export $as_var |
| 19019 | else |
| 19020 | $as_unset $as_var |
| 19021 | fi |
| 19022 | done |
| 19023 | |
| 19024 | # Required to use basename. |
| 19025 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 19026 | as_expr=expr |
| 19027 | else |
| 19028 | as_expr=false |
| 19029 | fi |
| 19030 | |
| 19031 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 19032 | as_basename=basename |
| 19033 | else |
| 19034 | as_basename=false |
| 19035 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19036 | |
| 19037 | |
| 19038 | # Name of the executable. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19039 | as_me=`$as_basename "$0" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19040 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 19041 | X"$0" : 'X\(//\)$' \| \ |
| 19042 | X"$0" : 'X\(/\)$' \| \ |
| 19043 | . : '\(.\)' 2>/dev/null || |
| 19044 | echo X/"$0" | |
| 19045 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 19046 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 19047 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 19048 | s/.*/./; q'` |
| 19049 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19050 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19051 | # PATH needs CR, and LINENO needs CR and PATH. |
| 19052 | # Avoid depending upon Character Ranges. |
| 19053 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 19054 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 19055 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 19056 | as_cr_digits='0123456789' |
| 19057 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 19058 | |
| 19059 | # The user is always right. |
| 19060 | if test "${PATH_SEPARATOR+set}" != set; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19061 | echo "#! /bin/sh" >conf$$.sh |
| 19062 | echo "exit 0" >>conf$$.sh |
| 19063 | chmod +x conf$$.sh |
| 19064 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19065 | PATH_SEPARATOR=';' |
| 19066 | else |
| 19067 | PATH_SEPARATOR=: |
| 19068 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19069 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19070 | fi |
| 19071 | |
| 19072 | |
| 19073 | as_lineno_1=$LINENO |
| 19074 | as_lineno_2=$LINENO |
| 19075 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 19076 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 19077 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 19078 | # Find who we are. Look in the path if we contain no path at all |
| 19079 | # relative or not. |
| 19080 | case $0 in |
| 19081 | *[\\/]* ) as_myself=$0 ;; |
| 19082 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19083 | for as_dir in $PATH |
| 19084 | do |
| 19085 | IFS=$as_save_IFS |
| 19086 | test -z "$as_dir" && as_dir=. |
| 19087 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 19088 | done |
| 19089 | |
| 19090 | ;; |
| 19091 | esac |
| 19092 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 19093 | # in which case we are not to be found in the path. |
| 19094 | if test "x$as_myself" = x; then |
| 19095 | as_myself=$0 |
| 19096 | fi |
| 19097 | if test ! -f "$as_myself"; then |
| 19098 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 19099 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 19100 | { (exit 1); exit 1; }; } |
| 19101 | fi |
| 19102 | case $CONFIG_SHELL in |
| 19103 | '') |
| 19104 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19105 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 19106 | do |
| 19107 | IFS=$as_save_IFS |
| 19108 | test -z "$as_dir" && as_dir=. |
| 19109 | for as_base in sh bash ksh sh5; do |
| 19110 | case $as_dir in |
| 19111 | /*) |
| 19112 | if ("$as_dir/$as_base" -c ' |
| 19113 | as_lineno_1=$LINENO |
| 19114 | as_lineno_2=$LINENO |
| 19115 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 19116 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 19117 | 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] | 19118 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 19119 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19120 | CONFIG_SHELL=$as_dir/$as_base |
| 19121 | export CONFIG_SHELL |
| 19122 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 19123 | fi;; |
| 19124 | esac |
| 19125 | done |
| 19126 | done |
| 19127 | ;; |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19128 | esac |
| 19129 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19130 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 19131 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 19132 | # line-number line before each line; the second 'sed' does the real |
| 19133 | # work. The second script uses 'N' to pair each line-number line |
| 19134 | # with the numbered line, and appends trailing '-' during |
| 19135 | # substitution so that $LINENO is not a special case at line end. |
| 19136 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 19137 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 19138 | sed '=' <$as_myself | |
| 19139 | sed ' |
| 19140 | N |
| 19141 | s,$,-, |
| 19142 | : loop |
| 19143 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 19144 | t loop |
| 19145 | s,-$,, |
| 19146 | s,^['$as_cr_digits']*\n,, |
| 19147 | ' >$as_me.lineno && |
| 19148 | chmod +x $as_me.lineno || |
| 19149 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 19150 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 19151 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19152 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19153 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 19154 | # (the dirname of $[0] is not the place where we might find the |
| 19155 | # original and so on. Autoconf is especially sensible to this). |
| 19156 | . ./$as_me.lineno |
| 19157 | # Exit status is that of the last command. |
| 19158 | exit |
| 19159 | } |
| 19160 | |
| 19161 | |
| 19162 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 19163 | *c*,-n*) ECHO_N= ECHO_C=' |
| 19164 | ' ECHO_T=' ' ;; |
| 19165 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 19166 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 19167 | esac |
| 19168 | |
| 19169 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 19170 | as_expr=expr |
| 19171 | else |
| 19172 | as_expr=false |
| 19173 | fi |
| 19174 | |
| 19175 | rm -f conf$$ conf$$.exe conf$$.file |
| 19176 | echo >conf$$.file |
| 19177 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 19178 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 19179 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 19180 | if test -f conf$$.exe; then |
| 19181 | # Don't use ln at all; we don't have any links |
| 19182 | as_ln_s='cp -p' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19183 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19184 | as_ln_s='ln -s' |
| 19185 | fi |
| 19186 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 19187 | as_ln_s=ln |
| 19188 | else |
| 19189 | as_ln_s='cp -p' |
| 19190 | fi |
| 19191 | rm -f conf$$ conf$$.exe conf$$.file |
| 19192 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19193 | if mkdir -p . 2>/dev/null; then |
| 19194 | as_mkdir_p=: |
| 19195 | else |
| 19196 | as_mkdir_p=false |
| 19197 | fi |
| 19198 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19199 | as_executable_p="test -f" |
| 19200 | |
| 19201 | # Sed expression to map a string onto a valid CPP name. |
| 19202 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 19203 | |
| 19204 | # Sed expression to map a string onto a valid variable name. |
| 19205 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 19206 | |
| 19207 | |
| 19208 | # IFS |
| 19209 | # We need space, tab and new line, in precisely that order. |
| 19210 | as_nl=' |
| 19211 | ' |
| 19212 | IFS=" $as_nl" |
| 19213 | |
| 19214 | # CDPATH. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19215 | $as_unset CDPATH |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19216 | |
| 19217 | exec 6>&1 |
| 19218 | |
| 19219 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 19220 | # report actual input values of CONFIG_FILES etc. instead of their |
| 19221 | # values after options handling. Logging --version etc. is OK. |
| 19222 | exec 5>>config.log |
| 19223 | { |
| 19224 | echo |
| 19225 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 19226 | ## Running $as_me. ## |
| 19227 | _ASBOX |
| 19228 | } >&5 |
| 19229 | cat >&5 <<_CSEOF |
| 19230 | |
Fred Drake | 9bd4462 | 2003-07-30 17:39:48 +0000 | [diff] [blame] | 19231 | This file was extended by python $as_me 2.4, which was |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19232 | generated by GNU Autoconf 2.57. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19233 | |
| 19234 | CONFIG_FILES = $CONFIG_FILES |
| 19235 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 19236 | CONFIG_LINKS = $CONFIG_LINKS |
| 19237 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 19238 | $ $0 $@ |
| 19239 | |
| 19240 | _CSEOF |
| 19241 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 19242 | echo >&5 |
| 19243 | _ACEOF |
| 19244 | |
| 19245 | # Files that config.status was made for. |
| 19246 | if test -n "$ac_config_files"; then |
| 19247 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 19248 | fi |
| 19249 | |
| 19250 | if test -n "$ac_config_headers"; then |
| 19251 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 19252 | fi |
| 19253 | |
| 19254 | if test -n "$ac_config_links"; then |
| 19255 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 19256 | fi |
| 19257 | |
| 19258 | if test -n "$ac_config_commands"; then |
| 19259 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 19260 | fi |
| 19261 | |
| 19262 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 19263 | |
| 19264 | ac_cs_usage="\ |
| 19265 | \`$as_me' instantiates files from templates according to the |
| 19266 | current configuration. |
| 19267 | |
| 19268 | Usage: $0 [OPTIONS] [FILE]... |
| 19269 | |
| 19270 | -h, --help print this help, then exit |
| 19271 | -V, --version print version number, then exit |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19272 | -q, --quiet do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19273 | -d, --debug don't remove temporary files |
| 19274 | --recheck update $as_me by reconfiguring in the same conditions |
| 19275 | --file=FILE[:TEMPLATE] |
| 19276 | instantiate the configuration file FILE |
| 19277 | --header=FILE[:TEMPLATE] |
| 19278 | instantiate the configuration header FILE |
| 19279 | |
| 19280 | Configuration files: |
| 19281 | $config_files |
| 19282 | |
| 19283 | Configuration headers: |
| 19284 | $config_headers |
| 19285 | |
| 19286 | Report bugs to <bug-autoconf@gnu.org>." |
| 19287 | _ACEOF |
| 19288 | |
| 19289 | cat >>$CONFIG_STATUS <<_ACEOF |
| 19290 | ac_cs_version="\\ |
Fred Drake | 9bd4462 | 2003-07-30 17:39:48 +0000 | [diff] [blame] | 19291 | python config.status 2.4 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19292 | configured by $0, generated by GNU Autoconf 2.57, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19293 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 19294 | |
| 19295 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 19296 | Free Software Foundation, Inc. |
| 19297 | This config.status script is free software; the Free Software Foundation |
| 19298 | gives unlimited permission to copy, distribute and modify it." |
| 19299 | srcdir=$srcdir |
| 19300 | INSTALL="$INSTALL" |
| 19301 | _ACEOF |
| 19302 | |
| 19303 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 19304 | # If no file are specified by the user, then we need to provide default |
| 19305 | # value. By we need to know if files were specified by the user. |
| 19306 | ac_need_defaults=: |
| 19307 | while test $# != 0 |
| 19308 | do |
| 19309 | case $1 in |
| 19310 | --*=*) |
| 19311 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 19312 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19313 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19314 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19315 | -*) |
| 19316 | ac_option=$1 |
| 19317 | ac_optarg=$2 |
| 19318 | ac_shift=shift |
| 19319 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19320 | *) # This is not an option, so the user has probably given explicit |
| 19321 | # arguments. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19322 | ac_option=$1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19323 | ac_need_defaults=false;; |
| 19324 | esac |
| 19325 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19326 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19327 | # Handling of the options. |
| 19328 | _ACEOF |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 19329 | cat >>$CONFIG_STATUS <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19330 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 19331 | ac_cs_recheck=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19332 | --version | --vers* | -V ) |
| 19333 | echo "$ac_cs_version"; exit 0 ;; |
| 19334 | --he | --h) |
| 19335 | # Conflict between --help and --header |
| 19336 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 19337 | Try \`$0 --help' for more information." >&5 |
| 19338 | echo "$as_me: error: ambiguous option: $1 |
| 19339 | Try \`$0 --help' for more information." >&2;} |
| 19340 | { (exit 1); exit 1; }; };; |
| 19341 | --help | --hel | -h ) |
| 19342 | echo "$ac_cs_usage"; exit 0 ;; |
| 19343 | --debug | --d* | -d ) |
| 19344 | debug=: ;; |
| 19345 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19346 | $ac_shift |
| 19347 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19348 | ac_need_defaults=false;; |
| 19349 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19350 | $ac_shift |
| 19351 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19352 | ac_need_defaults=false;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19353 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 19354 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 19355 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19356 | |
| 19357 | # This is an error. |
| 19358 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 19359 | Try \`$0 --help' for more information." >&5 |
| 19360 | echo "$as_me: error: unrecognized option: $1 |
| 19361 | Try \`$0 --help' for more information." >&2;} |
| 19362 | { (exit 1); exit 1; }; } ;; |
| 19363 | |
| 19364 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 19365 | |
| 19366 | esac |
| 19367 | shift |
| 19368 | done |
| 19369 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19370 | ac_configure_extra_args= |
| 19371 | |
| 19372 | if $ac_cs_silent; then |
| 19373 | exec 6>/dev/null |
| 19374 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 19375 | fi |
| 19376 | |
| 19377 | _ACEOF |
| 19378 | cat >>$CONFIG_STATUS <<_ACEOF |
| 19379 | if \$ac_cs_recheck; then |
| 19380 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 19381 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 19382 | fi |
| 19383 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19384 | _ACEOF |
| 19385 | |
| 19386 | |
| 19387 | |
| 19388 | |
| 19389 | |
| 19390 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 19391 | for ac_config_target in $ac_config_targets |
| 19392 | do |
| 19393 | case "$ac_config_target" in |
| 19394 | # Handling of arguments. |
| 19395 | "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 19396 | "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
| 19397 | "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 19398 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 19399 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 19400 | { (exit 1); exit 1; }; };; |
| 19401 | esac |
| 19402 | done |
| 19403 | |
| 19404 | # If the user did not use the arguments to specify the items to instantiate, |
| 19405 | # then the envvar interface is used. Set only those that are not. |
| 19406 | # We use the long form for the default assignment because of an extremely |
| 19407 | # bizarre bug on SunOS 4.1.3. |
| 19408 | if $ac_need_defaults; then |
| 19409 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 19410 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 19411 | fi |
| 19412 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19413 | # Have a temporary directory for convenience. Make it in the build tree |
| 19414 | # simply because there is no reason to put it here, and in addition, |
| 19415 | # creating and moving files from /tmp can sometimes cause problems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19416 | # Create a temporary directory, and hook for its removal unless debugging. |
| 19417 | $debug || |
| 19418 | { |
| 19419 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 19420 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 19421 | } |
| 19422 | |
| 19423 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19424 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19425 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19426 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19427 | test -n "$tmp" && test -d "$tmp" |
| 19428 | } || |
| 19429 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19430 | tmp=./confstat$$-$RANDOM |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19431 | (umask 077 && mkdir $tmp) |
| 19432 | } || |
| 19433 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19434 | echo "$me: cannot create a temporary directory in ." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19435 | { (exit 1); exit 1; } |
| 19436 | } |
| 19437 | |
| 19438 | _ACEOF |
| 19439 | |
| 19440 | cat >>$CONFIG_STATUS <<_ACEOF |
| 19441 | |
| 19442 | # |
| 19443 | # CONFIG_FILES section. |
| 19444 | # |
| 19445 | |
| 19446 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 19447 | # This happens for instance when ./config.status config.h |
| 19448 | if test -n "\$CONFIG_FILES"; then |
| 19449 | # Protect against being on the right side of a sed subst in config.status. |
| 19450 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 19451 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 19452 | s,@SHELL@,$SHELL,;t t |
| 19453 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 19454 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 19455 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 19456 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 19457 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 19458 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 19459 | s,@exec_prefix@,$exec_prefix,;t t |
| 19460 | s,@prefix@,$prefix,;t t |
| 19461 | s,@program_transform_name@,$program_transform_name,;t t |
| 19462 | s,@bindir@,$bindir,;t t |
| 19463 | s,@sbindir@,$sbindir,;t t |
| 19464 | s,@libexecdir@,$libexecdir,;t t |
| 19465 | s,@datadir@,$datadir,;t t |
| 19466 | s,@sysconfdir@,$sysconfdir,;t t |
| 19467 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 19468 | s,@localstatedir@,$localstatedir,;t t |
| 19469 | s,@libdir@,$libdir,;t t |
| 19470 | s,@includedir@,$includedir,;t t |
| 19471 | s,@oldincludedir@,$oldincludedir,;t t |
| 19472 | s,@infodir@,$infodir,;t t |
| 19473 | s,@mandir@,$mandir,;t t |
| 19474 | s,@build_alias@,$build_alias,;t t |
| 19475 | s,@host_alias@,$host_alias,;t t |
| 19476 | s,@target_alias@,$target_alias,;t t |
| 19477 | s,@DEFS@,$DEFS,;t t |
| 19478 | s,@ECHO_C@,$ECHO_C,;t t |
| 19479 | s,@ECHO_N@,$ECHO_N,;t t |
| 19480 | s,@ECHO_T@,$ECHO_T,;t t |
| 19481 | s,@LIBS@,$LIBS,;t t |
| 19482 | s,@VERSION@,$VERSION,;t t |
| 19483 | s,@SOVERSION@,$SOVERSION,;t t |
| 19484 | s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t |
| 19485 | s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t |
| 19486 | s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t |
| 19487 | s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t |
| 19488 | s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t |
| 19489 | s,@MACHDEP@,$MACHDEP,;t t |
| 19490 | s,@SGI_ABI@,$SGI_ABI,;t t |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 19491 | s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 19492 | s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19493 | s,@CXX@,$CXX,;t t |
| 19494 | s,@MAINOBJ@,$MAINOBJ,;t t |
| 19495 | s,@EXEEXT@,$EXEEXT,;t t |
| 19496 | s,@CC@,$CC,;t t |
| 19497 | s,@CFLAGS@,$CFLAGS,;t t |
| 19498 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 19499 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 19500 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 19501 | s,@OBJEXT@,$OBJEXT,;t t |
| 19502 | s,@CPP@,$CPP,;t t |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19503 | s,@EGREP@,$EGREP,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19504 | s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t |
| 19505 | s,@LIBRARY@,$LIBRARY,;t t |
| 19506 | s,@LDLIBRARY@,$LDLIBRARY,;t t |
| 19507 | s,@DLLLIBRARY@,$DLLLIBRARY,;t t |
| 19508 | s,@BLDLIBRARY@,$BLDLIBRARY,;t t |
| 19509 | s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t |
| 19510 | s,@INSTSONAME@,$INSTSONAME,;t t |
| 19511 | s,@RUNSHARED@,$RUNSHARED,;t t |
| 19512 | s,@LINKCC@,$LINKCC,;t t |
| 19513 | s,@RANLIB@,$RANLIB,;t t |
| 19514 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 19515 | s,@AR@,$AR,;t t |
| 19516 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 19517 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 19518 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 19519 | s,@LN@,$LN,;t t |
| 19520 | s,@OPT@,$OPT,;t t |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 19521 | s,@BASECFLAGS@,$BASECFLAGS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19522 | s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t |
| 19523 | s,@SO@,$SO,;t t |
| 19524 | s,@LDSHARED@,$LDSHARED,;t t |
| 19525 | s,@BLDSHARED@,$BLDSHARED,;t t |
| 19526 | s,@CCSHARED@,$CCSHARED,;t t |
| 19527 | s,@LINKFORSHARED@,$LINKFORSHARED,;t t |
| 19528 | s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 19529 | s,@SHLIBS@,$SHLIBS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19530 | s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t |
| 19531 | s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t |
| 19532 | s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t |
| 19533 | s,@LDLAST@,$LDLAST,;t t |
| 19534 | s,@THREADOBJ@,$THREADOBJ,;t t |
| 19535 | s,@DLINCLDIR@,$DLINCLDIR,;t t |
| 19536 | s,@DYNLOADFILE@,$DYNLOADFILE,;t t |
| 19537 | s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 19538 | s,@TRUE@,$TRUE,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19539 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 19540 | s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t |
| 19541 | s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t |
| 19542 | s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t |
| 19543 | s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t |
| 19544 | s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t |
| 19545 | s,@LIBM@,$LIBM,;t t |
| 19546 | s,@LIBC@,$LIBC,;t t |
| 19547 | s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t |
| 19548 | s,@THREADHEADERS@,$THREADHEADERS,;t t |
| 19549 | s,@SRCDIRS@,$SRCDIRS,;t t |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19550 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19551 | CEOF |
| 19552 | |
| 19553 | _ACEOF |
| 19554 | |
| 19555 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 19556 | # Split the substitutions into bite-sized pieces for seds with |
| 19557 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 19558 | ac_max_sed_lines=48 |
| 19559 | ac_sed_frag=1 # Number of current file. |
| 19560 | ac_beg=1 # First line for current file. |
| 19561 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 19562 | ac_more_lines=: |
| 19563 | ac_sed_cmds= |
| 19564 | while $ac_more_lines; do |
| 19565 | if test $ac_beg -gt 1; then |
| 19566 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 19567 | else |
| 19568 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 19569 | fi |
| 19570 | if test ! -s $tmp/subs.frag; then |
| 19571 | ac_more_lines=false |
| 19572 | else |
| 19573 | # The purpose of the label and of the branching condition is to |
| 19574 | # speed up the sed processing (if there are no `@' at all, there |
| 19575 | # is no need to browse any of the substitutions). |
| 19576 | # These are the two extra sed commands mentioned above. |
| 19577 | (echo ':t |
| 19578 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 19579 | if test -z "$ac_sed_cmds"; then |
| 19580 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 19581 | else |
| 19582 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 19583 | fi |
| 19584 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 19585 | ac_beg=$ac_end |
| 19586 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 19587 | fi |
| 19588 | done |
| 19589 | if test -z "$ac_sed_cmds"; then |
| 19590 | ac_sed_cmds=cat |
| 19591 | fi |
| 19592 | fi # test -n "$CONFIG_FILES" |
| 19593 | |
| 19594 | _ACEOF |
| 19595 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 19596 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 19597 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 19598 | case $ac_file in |
| 19599 | - | *:- | *:-:* ) # input from stdin |
| 19600 | cat >$tmp/stdin |
| 19601 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 19602 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 19603 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 19604 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 19605 | * ) ac_file_in=$ac_file.in ;; |
| 19606 | esac |
| 19607 | |
| 19608 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 19609 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 19610 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 19611 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 19612 | X"$ac_file" : 'X\(//\)$' \| \ |
| 19613 | X"$ac_file" : 'X\(/\)' \| \ |
| 19614 | . : '\(.\)' 2>/dev/null || |
| 19615 | echo X"$ac_file" | |
| 19616 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 19617 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 19618 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 19619 | /^X\(\/\).*/{ s//\1/; q; } |
| 19620 | s/.*/./; q'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19621 | { if $as_mkdir_p; then |
| 19622 | mkdir -p "$ac_dir" |
| 19623 | else |
| 19624 | as_dir="$ac_dir" |
| 19625 | as_dirs= |
| 19626 | while test ! -d "$as_dir"; do |
| 19627 | as_dirs="$as_dir $as_dirs" |
| 19628 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 19629 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 19630 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 19631 | X"$as_dir" : 'X\(//\)$' \| \ |
| 19632 | X"$as_dir" : 'X\(/\)' \| \ |
| 19633 | . : '\(.\)' 2>/dev/null || |
| 19634 | echo X"$as_dir" | |
| 19635 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 19636 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 19637 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 19638 | /^X\(\/\).*/{ s//\1/; q; } |
| 19639 | s/.*/./; q'` |
| 19640 | done |
| 19641 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 19642 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 19643 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 19644 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19645 | |
| 19646 | ac_builddir=. |
| 19647 | |
| 19648 | if test "$ac_dir" != .; then |
| 19649 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 19650 | # A "../" for each directory in $ac_dir_suffix. |
| 19651 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 19652 | else |
| 19653 | ac_dir_suffix= ac_top_builddir= |
| 19654 | fi |
| 19655 | |
| 19656 | case $srcdir in |
| 19657 | .) # No --srcdir option. We are building in place. |
| 19658 | ac_srcdir=. |
| 19659 | if test -z "$ac_top_builddir"; then |
| 19660 | ac_top_srcdir=. |
| 19661 | else |
| 19662 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 19663 | fi ;; |
| 19664 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 19665 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 19666 | ac_top_srcdir=$srcdir ;; |
| 19667 | *) # Relative path. |
| 19668 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 19669 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 19670 | esac |
| 19671 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 19672 | # absolute. |
| 19673 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 19674 | 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] | 19675 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 19676 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 19677 | |
| 19678 | |
| 19679 | case $INSTALL in |
| 19680 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 19681 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 19682 | esac |
| 19683 | |
| 19684 | if test x"$ac_file" != x-; then |
| 19685 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 19686 | echo "$as_me: creating $ac_file" >&6;} |
| 19687 | rm -f "$ac_file" |
| 19688 | fi |
| 19689 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 19690 | # use $as_me), people would be surprised to read: |
| 19691 | # /* config.h. Generated by config.status. */ |
| 19692 | if test x"$ac_file" = x-; then |
| 19693 | configure_input= |
| 19694 | else |
| 19695 | configure_input="$ac_file. " |
| 19696 | fi |
| 19697 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 19698 | sed 's,.*/,,'` by configure." |
| 19699 | |
| 19700 | # First look for the input files in the build tree, otherwise in the |
| 19701 | # src tree. |
| 19702 | ac_file_inputs=`IFS=: |
| 19703 | for f in $ac_file_in; do |
| 19704 | case $f in |
| 19705 | -) echo $tmp/stdin ;; |
| 19706 | [\\/$]*) |
| 19707 | # Absolute (can't be DOS-style, as IFS=:) |
| 19708 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 19709 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 19710 | { (exit 1); exit 1; }; } |
| 19711 | echo $f;; |
| 19712 | *) # Relative |
| 19713 | if test -f "$f"; then |
| 19714 | # Build tree |
| 19715 | echo $f |
| 19716 | elif test -f "$srcdir/$f"; then |
| 19717 | # Source tree |
| 19718 | echo $srcdir/$f |
| 19719 | else |
| 19720 | # /dev/null tree |
| 19721 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 19722 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 19723 | { (exit 1); exit 1; }; } |
| 19724 | fi;; |
| 19725 | esac |
| 19726 | done` || { (exit 1); exit 1; } |
| 19727 | _ACEOF |
| 19728 | cat >>$CONFIG_STATUS <<_ACEOF |
| 19729 | sed "$ac_vpsub |
| 19730 | $extrasub |
| 19731 | _ACEOF |
| 19732 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 19733 | :t |
| 19734 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 19735 | s,@configure_input@,$configure_input,;t t |
| 19736 | s,@srcdir@,$ac_srcdir,;t t |
| 19737 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 19738 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 19739 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 19740 | s,@builddir@,$ac_builddir,;t t |
| 19741 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 19742 | s,@top_builddir@,$ac_top_builddir,;t t |
| 19743 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 19744 | s,@INSTALL@,$ac_INSTALL,;t t |
| 19745 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 19746 | rm -f $tmp/stdin |
| 19747 | if test x"$ac_file" != x-; then |
| 19748 | mv $tmp/out $ac_file |
| 19749 | else |
| 19750 | cat $tmp/out |
| 19751 | rm -f $tmp/out |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19752 | fi |
| 19753 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19754 | done |
| 19755 | _ACEOF |
| 19756 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19757 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19758 | # |
| 19759 | # CONFIG_HEADER section. |
| 19760 | # |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19761 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19762 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 19763 | # 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] | 19764 | # |
| 19765 | # ac_d sets the value in "#define NAME VALUE" lines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19766 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 19767 | ac_dB='[ ].*$,\1#\2' |
| 19768 | ac_dC=' ' |
| 19769 | ac_dD=',;t' |
| 19770 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 19771 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 19772 | ac_uB='$,\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19773 | ac_uC=' ' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19774 | ac_uD=',;t' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19775 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19776 | 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] | 19777 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19778 | case $ac_file in |
| 19779 | - | *:- | *:-:* ) # input from stdin |
| 19780 | cat >$tmp/stdin |
| 19781 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 19782 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 19783 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 19784 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 19785 | * ) ac_file_in=$ac_file.in ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19786 | esac |
| 19787 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19788 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 19789 | echo "$as_me: creating $ac_file" >&6;} |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19790 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19791 | # First look for the input files in the build tree, otherwise in the |
| 19792 | # src tree. |
| 19793 | ac_file_inputs=`IFS=: |
| 19794 | for f in $ac_file_in; do |
| 19795 | case $f in |
| 19796 | -) echo $tmp/stdin ;; |
| 19797 | [\\/$]*) |
| 19798 | # Absolute (can't be DOS-style, as IFS=:) |
| 19799 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 19800 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 19801 | { (exit 1); exit 1; }; } |
| 19802 | echo $f;; |
| 19803 | *) # Relative |
| 19804 | if test -f "$f"; then |
| 19805 | # Build tree |
| 19806 | echo $f |
| 19807 | elif test -f "$srcdir/$f"; then |
| 19808 | # Source tree |
| 19809 | echo $srcdir/$f |
| 19810 | else |
| 19811 | # /dev/null tree |
| 19812 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 19813 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 19814 | { (exit 1); exit 1; }; } |
| 19815 | fi;; |
| 19816 | esac |
| 19817 | done` || { (exit 1); exit 1; } |
| 19818 | # Remove the trailing spaces. |
| 19819 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19820 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19821 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19822 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19823 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 19824 | # `conftest.undefs', that substitutes the proper values into |
| 19825 | # config.h.in to produce config.h. The first handles `#define' |
| 19826 | # templates, and the second `#undef' templates. |
| 19827 | # And first: Protect against being on the right side of a sed subst in |
| 19828 | # config.status. Protect against being in an unquoted here document |
| 19829 | # in config.status. |
| 19830 | rm -f conftest.defines conftest.undefs |
| 19831 | # Using a here document instead of a string reduces the quoting nightmare. |
| 19832 | # Putting comments in sed scripts is not portable. |
| 19833 | # |
| 19834 | # `end' is used to avoid that the second main sed command (meant for |
| 19835 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 19836 | # See the Autoconf documentation for `clear'. |
| 19837 | cat >confdef2sed.sed <<\_ACEOF |
| 19838 | s/[\\&,]/\\&/g |
| 19839 | s,[\\$`],\\&,g |
| 19840 | t clear |
| 19841 | : clear |
| 19842 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 19843 | t end |
| 19844 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 19845 | : end |
| 19846 | _ACEOF |
| 19847 | # If some macros were called several times there might be several times |
| 19848 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 19849 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 19850 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 19851 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 19852 | rm -f confdef2sed.sed |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19853 | |
| 19854 | # This sed command replaces #undef with comments. This is necessary, for |
| 19855 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 19856 | # 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] | 19857 | cat >>conftest.undefs <<\_ACEOF |
| 19858 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 19859 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19860 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19861 | # Break up conftest.defines because some shells have a limit on the size |
| 19862 | # of here documents, and old seds have small limits too (100 cmds). |
| 19863 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19864 | 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] | 19865 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 19866 | echo ' :' >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19867 | rm -f conftest.tail |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19868 | while grep . conftest.defines >/dev/null |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19869 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19870 | # Write a limited-size here document to $tmp/defines.sed. |
| 19871 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 19872 | # Speed up: don't consider the non `#define' lines. |
| 19873 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 19874 | # Work around the forget-to-reset-the-flag bug. |
| 19875 | echo 't clr' >>$CONFIG_STATUS |
| 19876 | echo ': clr' >>$CONFIG_STATUS |
| 19877 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19878 | echo 'CEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19879 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 19880 | rm -f $tmp/in |
| 19881 | mv $tmp/out $tmp/in |
| 19882 | ' >>$CONFIG_STATUS |
| 19883 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 19884 | rm -f conftest.defines |
| 19885 | mv conftest.tail conftest.defines |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19886 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19887 | rm -f conftest.defines |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19888 | echo ' fi # grep' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19889 | echo >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19890 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19891 | # Break up conftest.undefs because some shells have a limit on the size |
| 19892 | # of here documents, and old seds have small limits too (100 cmds). |
| 19893 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 19894 | rm -f conftest.tail |
| 19895 | while grep . conftest.undefs >/dev/null |
| 19896 | do |
| 19897 | # Write a limited-size here document to $tmp/undefs.sed. |
| 19898 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 19899 | # Speed up: don't consider the non `#undef' |
| 19900 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 19901 | # Work around the forget-to-reset-the-flag bug. |
| 19902 | echo 't clr' >>$CONFIG_STATUS |
| 19903 | echo ': clr' >>$CONFIG_STATUS |
| 19904 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 19905 | echo 'CEOF |
| 19906 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 19907 | rm -f $tmp/in |
| 19908 | mv $tmp/out $tmp/in |
| 19909 | ' >>$CONFIG_STATUS |
| 19910 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 19911 | rm -f conftest.undefs |
| 19912 | mv conftest.tail conftest.undefs |
| 19913 | done |
| 19914 | rm -f conftest.undefs |
| 19915 | |
| 19916 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 19917 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 19918 | # use $as_me), people would be surprised to read: |
| 19919 | # /* config.h. Generated by config.status. */ |
| 19920 | if test x"$ac_file" = x-; then |
| 19921 | echo "/* Generated by configure. */" >$tmp/config.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19922 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19923 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19924 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19925 | cat $tmp/in >>$tmp/config.h |
| 19926 | rm -f $tmp/in |
| 19927 | if test x"$ac_file" != x-; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19928 | 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] | 19929 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 19930 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 19931 | else |
| 19932 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 19933 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 19934 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 19935 | X"$ac_file" : 'X\(//\)$' \| \ |
| 19936 | X"$ac_file" : 'X\(/\)' \| \ |
| 19937 | . : '\(.\)' 2>/dev/null || |
| 19938 | echo X"$ac_file" | |
| 19939 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 19940 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 19941 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 19942 | /^X\(\/\).*/{ s//\1/; q; } |
| 19943 | s/.*/./; q'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19944 | { if $as_mkdir_p; then |
| 19945 | mkdir -p "$ac_dir" |
| 19946 | else |
| 19947 | as_dir="$ac_dir" |
| 19948 | as_dirs= |
| 19949 | while test ! -d "$as_dir"; do |
| 19950 | as_dirs="$as_dir $as_dirs" |
| 19951 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 19952 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 19953 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 19954 | X"$as_dir" : 'X\(//\)$' \| \ |
| 19955 | X"$as_dir" : 'X\(/\)' \| \ |
| 19956 | . : '\(.\)' 2>/dev/null || |
| 19957 | echo X"$as_dir" | |
| 19958 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 19959 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 19960 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 19961 | /^X\(\/\).*/{ s//\1/; q; } |
| 19962 | s/.*/./; q'` |
| 19963 | done |
| 19964 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 19965 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 19966 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 19967 | { (exit 1); exit 1; }; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19968 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19969 | rm -f $ac_file |
| 19970 | mv $tmp/config.h $ac_file |
| 19971 | fi |
| 19972 | else |
| 19973 | cat $tmp/config.h |
| 19974 | rm -f $tmp/config.h |
| 19975 | fi |
| 19976 | done |
| 19977 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19978 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19979 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19980 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19981 | { (exit 0); exit 0; } |
| 19982 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19983 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19984 | ac_clean_files=$ac_clean_files_save |
| 19985 | |
| 19986 | |
| 19987 | # configure is writing to config.log, and then calls config.status. |
| 19988 | # config.status does its own redirection, appending to config.log. |
| 19989 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 19990 | # by configure, so config.status won't be able to write to it; its |
| 19991 | # output is simply discarded. So we exec the FD to /dev/null, |
| 19992 | # effectively closing config.log, so it can be properly (re)opened and |
| 19993 | # appended to by config.status. When coming back to configure, we |
| 19994 | # need to make the FD available again. |
| 19995 | if test "$no_create" != yes; then |
| 19996 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19997 | ac_config_status_args= |
| 19998 | test "$silent" = yes && |
| 19999 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20000 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20001 | $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] | 20002 | exec 5>>config.log |
| 20003 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 20004 | # would make configure fail if this is the last instruction. |
| 20005 | $ac_cs_success || { (exit 1); exit 1; } |
| 20006 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20007 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 20008 | |
| 20009 | echo "creating Setup" |
| 20010 | if test ! -f Modules/Setup |
| 20011 | then |
| 20012 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 20013 | fi |
| 20014 | |
| 20015 | echo "creating Setup.local" |
| 20016 | if test ! -f Modules/Setup.local |
| 20017 | then |
| 20018 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 20019 | fi |
| 20020 | |
| 20021 | echo "creating Makefile" |
| 20022 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 20023 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 20024 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 20025 | mv config.c Modules |