Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2 | # From configure.in Revision: 1.435 . |
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 | 858f817 | 2003-05-24 12:35:47 +0000 | [diff] [blame] | 1440 | # Reconfirmed for OpenBSD 3.3 by Zachary Hamm. |
| 1441 | OpenBSD/2.* | OpenBSD/3.[0123]) |
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;; |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1455 | esac |
| 1456 | |
| 1457 | if test $define_xopen_source = yes |
| 1458 | then |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1459 | |
| 1460 | cat >>confdefs.h <<\_ACEOF |
| 1461 | #define _XOPEN_SOURCE 600 |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1462 | _ACEOF |
| 1463 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1464 | |
| 1465 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 1466 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 1467 | # several APIs are not declared. Since this is also needed in some |
| 1468 | # cases for HP-UX, we define it globally. |
| 1469 | |
| 1470 | |
| 1471 | cat >>confdefs.h <<\_ACEOF |
| 1472 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 1473 | _ACEOF |
| 1474 | |
| 1475 | |
| 1476 | cat >>confdefs.h <<\_ACEOF |
| 1477 | #define _POSIX_C_SOURCE 200112L |
| 1478 | _ACEOF |
| 1479 | |
| 1480 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1481 | fi |
| 1482 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1483 | # |
| 1484 | # SGI compilers allow the specification of the both the ABI and the |
| 1485 | # ISA on the command line. Depending on the values of these switches, |
| 1486 | # different and often incompatable code will be generated. |
| 1487 | # |
| 1488 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 1489 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 1490 | # variable is also adjusted. |
| 1491 | # |
| 1492 | |
| 1493 | if test ! -z "$SGI_ABI" |
| 1494 | then |
| 1495 | CC="cc $SGI_ABI" |
| 1496 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 1497 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 1498 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1499 | echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 1500 | echo "${ECHO_T}$MACHDEP" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1501 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1502 | # And add extra plat-mac for darwin |
| 1503 | |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 1504 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1505 | echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5 |
| 1506 | echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6 |
| 1507 | if test -z "$EXTRAPLATDIR" |
| 1508 | then |
| 1509 | case $MACHDEP in |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 1510 | darwin) |
| 1511 | EXTRAPLATDIR="\$(PLATMACDIRS)" |
| 1512 | EXTRAMACHDEPPATH="\$(PLATMACPATH)" |
| 1513 | ;; |
| 1514 | *) |
| 1515 | EXTRAPLATDIR="" |
| 1516 | EXTRAMACHDEPPATH="" |
| 1517 | ;; |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1518 | esac |
| 1519 | fi |
| 1520 | echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5 |
| 1521 | echo "${ECHO_T}$EXTRAPLATDIR" >&6 |
| 1522 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1523 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1524 | |
| 1525 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 1526 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 1527 | # just to get things to compile and link. Users are free to override OPT |
| 1528 | # when running configure or make. The build should not break if they do. |
| 1529 | # BASECFLAGS should generally not be messed with, however. |
| 1530 | |
| 1531 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 1532 | # on that fiddles with OPT and BASECFLAGS? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1533 | echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 1534 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6 |
| 1535 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1536 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1537 | if test "${with_gcc+set}" = set; then |
| 1538 | withval="$with_gcc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1539 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1540 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1541 | no) CC=cc |
| 1542 | without_gcc=yes;; |
| 1543 | yes) CC=gcc |
| 1544 | without_gcc=no;; |
| 1545 | *) CC=$withval |
| 1546 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1547 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1548 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1549 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1550 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1551 | AIX*) CC=cc_r |
| 1552 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1553 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1554 | case $BE_HOST_CPU in |
| 1555 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1556 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1557 | without_gcc=yes |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1558 | BASECFLAGS="$BASECFLAGS -export pragma" |
| 1559 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1560 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1561 | ;; |
| 1562 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1563 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1564 | without_gcc=no |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1565 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1566 | ;; |
| 1567 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1568 | { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| 1569 | echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;} |
| 1570 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1571 | ;; |
| 1572 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1573 | AR="\$(srcdir)/Modules/ar_beos" |
| 1574 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1575 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1576 | Monterey*) |
| 1577 | RANLIB=: |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1578 | without_gcc=;; |
| 1579 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1580 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1581 | fi; |
| 1582 | echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 1583 | echo "${ECHO_T}$without_gcc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1584 | |
| 1585 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1586 | |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1587 | MAINOBJ=python.o |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1588 | echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5 |
| 1589 | echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6 |
| 1590 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1591 | # Check whether --with-cxx or --without-cxx was given. |
| 1592 | if test "${with_cxx+set}" = set; then |
| 1593 | withval="$with_cxx" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1594 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1595 | check_cxx=no |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1596 | case $withval in |
| 1597 | no) CXX= |
| 1598 | with_cxx=no;; |
| 1599 | *) CXX=$withval |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1600 | MAINOBJ=ccpython.o |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1601 | with_cxx=$withval;; |
| 1602 | esac |
| 1603 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1604 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1605 | with_cxx=no |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1606 | check_cxx=yes |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1607 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1608 | fi; |
| 1609 | echo "$as_me:$LINENO: result: $with_cxx" >&5 |
| 1610 | echo "${ECHO_T}$with_cxx" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1611 | |
| 1612 | if test "$with_cxx" = "yes" |
| 1613 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1614 | { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5 |
| 1615 | echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;} |
| 1616 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1617 | fi |
| 1618 | |
| 1619 | |
| 1620 | |
| 1621 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1622 | if test "$check_cxx" = "yes" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1623 | then |
| 1624 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 1625 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1626 | # 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] | 1627 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1628 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1629 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1630 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 1631 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1632 | else |
| 1633 | if test -n "$CXX"; then |
| 1634 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 1635 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1636 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1637 | for as_dir in $PATH |
| 1638 | do |
| 1639 | IFS=$as_save_IFS |
| 1640 | test -z "$as_dir" && as_dir=. |
| 1641 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1642 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1643 | ac_cv_prog_CXX="$ac_prog" |
| 1644 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1645 | break 2 |
| 1646 | fi |
| 1647 | done |
| 1648 | done |
| 1649 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1650 | fi |
| 1651 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1652 | CXX=$ac_cv_prog_CXX |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1653 | if test -n "$CXX"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1654 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 1655 | echo "${ECHO_T}$CXX" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1656 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1657 | echo "$as_me:$LINENO: result: no" >&5 |
| 1658 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1659 | fi |
| 1660 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1661 | test -n "$CXX" && break |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1662 | done |
| 1663 | test -n "$CXX" || CXX="notfound" |
| 1664 | |
| 1665 | if test "$CXX" = "notfound" |
| 1666 | then |
| 1667 | CXX= |
| 1668 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1669 | ac_ext=cc |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1670 | ac_cpp='$CXXCPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1671 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1672 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1673 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 1674 | cat >conftest.$ac_ext <<_ACEOF |
| 1675 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1676 | /* confdefs.h. */ |
| 1677 | _ACEOF |
| 1678 | cat confdefs.h >>conftest.$ac_ext |
| 1679 | cat >>conftest.$ac_ext <<_ACEOF |
| 1680 | /* end confdefs.h. */ |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1681 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1682 | int |
| 1683 | main () |
| 1684 | { |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1685 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1686 | ; |
| 1687 | return 0; |
| 1688 | } |
| 1689 | _ACEOF |
| 1690 | ac_clean_files_save=$ac_clean_files |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1691 | 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] | 1692 | # Try to create an executable without -o first, disregard a.out. |
| 1693 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1694 | # of exeext. |
| 1695 | echo "$as_me:$LINENO: checking for C++ compiler default output" >&5 |
| 1696 | echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6 |
| 1697 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1698 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1699 | (eval $ac_link_default) 2>&5 |
| 1700 | ac_status=$? |
| 1701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1702 | (exit $ac_status); }; then |
| 1703 | # Find the output, starting from the most likely. This scheme is |
| 1704 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1705 | # resort. |
| 1706 | |
| 1707 | # Be careful to initialize this variable, since it used to be cached. |
| 1708 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1709 | ac_cv_exeext= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1710 | # b.out is created by i960 compilers. |
| 1711 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 1712 | do |
| 1713 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1714 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1715 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 1716 | ;; |
| 1717 | conftest.$ac_ext ) |
| 1718 | # This is the source file. |
| 1719 | ;; |
| 1720 | [ab].out ) |
| 1721 | # We found the default executable, but exeext='' is most |
| 1722 | # certainly right. |
| 1723 | break;; |
| 1724 | *.* ) |
| 1725 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1726 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1727 | # but it would be cool to find out if it's true. Does anybody |
| 1728 | # maintain Libtool? --akim. |
| 1729 | export ac_cv_exeext |
| 1730 | break;; |
| 1731 | * ) |
| 1732 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1733 | esac |
| 1734 | done |
| 1735 | else |
| 1736 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1737 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1738 | |
| 1739 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
| 1740 | See \`config.log' for more details." >&5 |
| 1741 | echo "$as_me: error: C++ compiler cannot create executables |
| 1742 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1743 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1744 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1745 | |
| 1746 | ac_exeext=$ac_cv_exeext |
| 1747 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1748 | echo "${ECHO_T}$ac_file" >&6 |
| 1749 | |
| 1750 | # Check the compiler produces executables we can run. If not, either |
| 1751 | # the compiler is broken, or we cross compile. |
| 1752 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
| 1753 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
| 1754 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1755 | # If not cross compiling, check that we can run a simple program. |
| 1756 | if test "$cross_compiling" != yes; then |
| 1757 | if { ac_try='./$ac_file' |
| 1758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1759 | (eval $ac_try) 2>&5 |
| 1760 | ac_status=$? |
| 1761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1762 | (exit $ac_status); }; }; then |
| 1763 | cross_compiling=no |
| 1764 | else |
| 1765 | if test "$cross_compiling" = maybe; then |
| 1766 | cross_compiling=yes |
| 1767 | else |
| 1768 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1769 | If you meant to cross compile, use \`--host'. |
| 1770 | See \`config.log' for more details." >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1771 | echo "$as_me: error: cannot run C++ compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1772 | If you meant to cross compile, use \`--host'. |
| 1773 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1774 | { (exit 1); exit 1; }; } |
| 1775 | fi |
| 1776 | fi |
| 1777 | fi |
| 1778 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1779 | echo "${ECHO_T}yes" >&6 |
| 1780 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1781 | 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] | 1782 | ac_clean_files=$ac_clean_files_save |
| 1783 | # Check the compiler produces executables we can run. If not, either |
| 1784 | # the compiler is broken, or we cross compile. |
| 1785 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1786 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1787 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1788 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1789 | |
| 1790 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1791 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1792 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1793 | (eval $ac_link) 2>&5 |
| 1794 | ac_status=$? |
| 1795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1796 | (exit $ac_status); }; then |
| 1797 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1798 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1799 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1800 | # `rm'. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1801 | for ac_file in conftest.exe conftest conftest.*; do |
| 1802 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1803 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1804 | *.$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] | 1805 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1806 | export ac_cv_exeext |
| 1807 | break;; |
| 1808 | * ) break;; |
| 1809 | esac |
| 1810 | done |
| 1811 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1812 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1813 | See \`config.log' for more details." >&5 |
| 1814 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 1815 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1816 | { (exit 1); exit 1; }; } |
| 1817 | fi |
| 1818 | |
| 1819 | rm -f conftest$ac_cv_exeext |
| 1820 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1821 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1822 | |
| 1823 | rm -f conftest.$ac_ext |
| 1824 | EXEEXT=$ac_cv_exeext |
| 1825 | ac_exeext=$EXEEXT |
| 1826 | |
| 1827 | ac_ext=c |
| 1828 | ac_cpp='$CPP $CPPFLAGS' |
| 1829 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1830 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1831 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1832 | |
| 1833 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1834 | |
| 1835 | fi |
| 1836 | fi |
| 1837 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1838 | # If the user switches compilers, we can't believe the cache |
| 1839 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 1840 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1841 | { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file |
| 1842 | (it is also a good idea to do 'make clean' before compiling)" >&5 |
| 1843 | echo "$as_me: error: cached CC is different -- throw away $cache_file |
| 1844 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 1845 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1846 | fi |
| 1847 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1848 | ac_ext=c |
| 1849 | ac_cpp='$CPP $CPPFLAGS' |
| 1850 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1851 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1852 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1853 | if test -n "$ac_tool_prefix"; then |
| 1854 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1855 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1856 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1857 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1858 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1859 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1860 | else |
| 1861 | if test -n "$CC"; then |
| 1862 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1863 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1864 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1865 | for as_dir in $PATH |
| 1866 | do |
| 1867 | IFS=$as_save_IFS |
| 1868 | test -z "$as_dir" && as_dir=. |
| 1869 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1870 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1871 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1872 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1873 | break 2 |
| 1874 | fi |
| 1875 | done |
| 1876 | done |
| 1877 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1878 | fi |
| 1879 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1880 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1881 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1882 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1883 | echo "${ECHO_T}$CC" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1884 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1885 | echo "$as_me:$LINENO: result: no" >&5 |
| 1886 | echo "${ECHO_T}no" >&6 |
| 1887 | fi |
| 1888 | |
| 1889 | fi |
| 1890 | if test -z "$ac_cv_prog_CC"; then |
| 1891 | ac_ct_CC=$CC |
| 1892 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1893 | set dummy gcc; ac_word=$2 |
| 1894 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1895 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1896 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1897 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1898 | else |
| 1899 | if test -n "$ac_ct_CC"; then |
| 1900 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1901 | else |
| 1902 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1903 | for as_dir in $PATH |
| 1904 | do |
| 1905 | IFS=$as_save_IFS |
| 1906 | test -z "$as_dir" && as_dir=. |
| 1907 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1908 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1909 | ac_cv_prog_ac_ct_CC="gcc" |
| 1910 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1911 | break 2 |
| 1912 | fi |
| 1913 | done |
| 1914 | done |
| 1915 | |
| 1916 | fi |
| 1917 | fi |
| 1918 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1919 | if test -n "$ac_ct_CC"; then |
| 1920 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1921 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1922 | else |
| 1923 | echo "$as_me:$LINENO: result: no" >&5 |
| 1924 | echo "${ECHO_T}no" >&6 |
| 1925 | fi |
| 1926 | |
| 1927 | CC=$ac_ct_CC |
| 1928 | else |
| 1929 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1930 | fi |
| 1931 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1932 | if test -z "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1933 | if test -n "$ac_tool_prefix"; then |
| 1934 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1935 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1936 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1937 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1938 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1940 | else |
| 1941 | if test -n "$CC"; then |
| 1942 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1943 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1944 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1945 | for as_dir in $PATH |
| 1946 | do |
| 1947 | IFS=$as_save_IFS |
| 1948 | test -z "$as_dir" && as_dir=. |
| 1949 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1950 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1951 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1952 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1953 | break 2 |
| 1954 | fi |
| 1955 | done |
| 1956 | done |
| 1957 | |
| 1958 | fi |
| 1959 | fi |
| 1960 | CC=$ac_cv_prog_CC |
| 1961 | if test -n "$CC"; then |
| 1962 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1963 | echo "${ECHO_T}$CC" >&6 |
| 1964 | else |
| 1965 | echo "$as_me:$LINENO: result: no" >&5 |
| 1966 | echo "${ECHO_T}no" >&6 |
| 1967 | fi |
| 1968 | |
| 1969 | fi |
| 1970 | if test -z "$ac_cv_prog_CC"; then |
| 1971 | ac_ct_CC=$CC |
| 1972 | # Extract the first word of "cc", so it can be a program name with args. |
| 1973 | set dummy cc; ac_word=$2 |
| 1974 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1975 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1976 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1977 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1978 | else |
| 1979 | if test -n "$ac_ct_CC"; then |
| 1980 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1981 | else |
| 1982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1983 | for as_dir in $PATH |
| 1984 | do |
| 1985 | IFS=$as_save_IFS |
| 1986 | test -z "$as_dir" && as_dir=. |
| 1987 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1988 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1989 | ac_cv_prog_ac_ct_CC="cc" |
| 1990 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1991 | break 2 |
| 1992 | fi |
| 1993 | done |
| 1994 | done |
| 1995 | |
| 1996 | fi |
| 1997 | fi |
| 1998 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1999 | if test -n "$ac_ct_CC"; then |
| 2000 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2001 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2002 | else |
| 2003 | echo "$as_me:$LINENO: result: no" >&5 |
| 2004 | echo "${ECHO_T}no" >&6 |
| 2005 | fi |
| 2006 | |
| 2007 | CC=$ac_ct_CC |
| 2008 | else |
| 2009 | CC="$ac_cv_prog_CC" |
| 2010 | fi |
| 2011 | |
| 2012 | fi |
| 2013 | if test -z "$CC"; then |
| 2014 | # Extract the first word of "cc", so it can be a program name with args. |
| 2015 | set dummy cc; ac_word=$2 |
| 2016 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2017 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2018 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2019 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2020 | else |
| 2021 | if test -n "$CC"; then |
| 2022 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2023 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2024 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2026 | for as_dir in $PATH |
| 2027 | do |
| 2028 | IFS=$as_save_IFS |
| 2029 | test -z "$as_dir" && as_dir=. |
| 2030 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2031 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2032 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2033 | ac_prog_rejected=yes |
| 2034 | continue |
| 2035 | fi |
| 2036 | ac_cv_prog_CC="cc" |
| 2037 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2038 | break 2 |
| 2039 | fi |
| 2040 | done |
| 2041 | done |
| 2042 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2043 | if test $ac_prog_rejected = yes; then |
| 2044 | # We found a bogon in the path, so make sure we never use it. |
| 2045 | set dummy $ac_cv_prog_CC |
| 2046 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2047 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2048 | # We chose a different compiler from the bogus one. |
| 2049 | # However, it has the same basename, so the bogon will be chosen |
| 2050 | # first if we set CC to just the basename; use the full file name. |
| 2051 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2052 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2053 | fi |
| 2054 | fi |
| 2055 | fi |
| 2056 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2057 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2058 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2059 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2060 | echo "${ECHO_T}$CC" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2061 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2062 | echo "$as_me:$LINENO: result: no" >&5 |
| 2063 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2064 | fi |
| 2065 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2066 | fi |
| 2067 | if test -z "$CC"; then |
| 2068 | if test -n "$ac_tool_prefix"; then |
| 2069 | for ac_prog in cl |
| 2070 | do |
| 2071 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2072 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2073 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2074 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2075 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2076 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2077 | else |
| 2078 | if test -n "$CC"; then |
| 2079 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2080 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2082 | for as_dir in $PATH |
| 2083 | do |
| 2084 | IFS=$as_save_IFS |
| 2085 | test -z "$as_dir" && as_dir=. |
| 2086 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2087 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2088 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2089 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2090 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2091 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2092 | done |
| 2093 | done |
| 2094 | |
| 2095 | fi |
| 2096 | fi |
| 2097 | CC=$ac_cv_prog_CC |
| 2098 | if test -n "$CC"; then |
| 2099 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2100 | echo "${ECHO_T}$CC" >&6 |
| 2101 | else |
| 2102 | echo "$as_me:$LINENO: result: no" >&5 |
| 2103 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2104 | fi |
| 2105 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2106 | test -n "$CC" && break |
| 2107 | done |
| 2108 | fi |
| 2109 | if test -z "$CC"; then |
| 2110 | ac_ct_CC=$CC |
| 2111 | for ac_prog in cl |
| 2112 | do |
| 2113 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2114 | set dummy $ac_prog; ac_word=$2 |
| 2115 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2116 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2117 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2119 | else |
| 2120 | if test -n "$ac_ct_CC"; then |
| 2121 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2122 | else |
| 2123 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2124 | for as_dir in $PATH |
| 2125 | do |
| 2126 | IFS=$as_save_IFS |
| 2127 | test -z "$as_dir" && as_dir=. |
| 2128 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2129 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2130 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2131 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2132 | break 2 |
| 2133 | fi |
| 2134 | done |
| 2135 | done |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2136 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2137 | fi |
| 2138 | fi |
| 2139 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2140 | if test -n "$ac_ct_CC"; then |
| 2141 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2142 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2143 | else |
| 2144 | echo "$as_me:$LINENO: result: no" >&5 |
| 2145 | echo "${ECHO_T}no" >&6 |
| 2146 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2147 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2148 | test -n "$ac_ct_CC" && break |
| 2149 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2150 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2151 | CC=$ac_ct_CC |
| 2152 | fi |
| 2153 | |
| 2154 | fi |
| 2155 | |
| 2156 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2157 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2158 | See \`config.log' for more details." >&5 |
| 2159 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2160 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2161 | { (exit 1); exit 1; }; } |
| 2162 | |
| 2163 | # Provide some information about the compiler. |
| 2164 | echo "$as_me:$LINENO:" \ |
| 2165 | "checking for C compiler version" >&5 |
| 2166 | ac_compiler=`set X $ac_compile; echo $2` |
| 2167 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2168 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2169 | ac_status=$? |
| 2170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2171 | (exit $ac_status); } |
| 2172 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2173 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2174 | ac_status=$? |
| 2175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2176 | (exit $ac_status); } |
| 2177 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2178 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2179 | ac_status=$? |
| 2180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2181 | (exit $ac_status); } |
| 2182 | |
| 2183 | cat >conftest.$ac_ext <<_ACEOF |
| 2184 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2185 | /* confdefs.h. */ |
| 2186 | _ACEOF |
| 2187 | cat confdefs.h >>conftest.$ac_ext |
| 2188 | cat >>conftest.$ac_ext <<_ACEOF |
| 2189 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2190 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2191 | int |
| 2192 | main () |
| 2193 | { |
| 2194 | |
| 2195 | ; |
| 2196 | return 0; |
| 2197 | } |
| 2198 | _ACEOF |
| 2199 | ac_clean_files_save=$ac_clean_files |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2200 | 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] | 2201 | # Try to create an executable without -o first, disregard a.out. |
| 2202 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2203 | # of exeext. |
| 2204 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
| 2205 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 2206 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2207 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2208 | (eval $ac_link_default) 2>&5 |
| 2209 | ac_status=$? |
| 2210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2211 | (exit $ac_status); }; then |
| 2212 | # Find the output, starting from the most likely. This scheme is |
| 2213 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2214 | # resort. |
| 2215 | |
| 2216 | # Be careful to initialize this variable, since it used to be cached. |
| 2217 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2218 | ac_cv_exeext= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2219 | # b.out is created by i960 compilers. |
| 2220 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 2221 | do |
| 2222 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2223 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2224 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 2225 | ;; |
| 2226 | conftest.$ac_ext ) |
| 2227 | # This is the source file. |
| 2228 | ;; |
| 2229 | [ab].out ) |
| 2230 | # We found the default executable, but exeext='' is most |
| 2231 | # certainly right. |
| 2232 | break;; |
| 2233 | *.* ) |
| 2234 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2235 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 2236 | # but it would be cool to find out if it's true. Does anybody |
| 2237 | # maintain Libtool? --akim. |
| 2238 | export ac_cv_exeext |
| 2239 | break;; |
| 2240 | * ) |
| 2241 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2242 | esac |
| 2243 | done |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2244 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2245 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2246 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2247 | |
| 2248 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2249 | See \`config.log' for more details." >&5 |
| 2250 | echo "$as_me: error: C compiler cannot create executables |
| 2251 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2252 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2253 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2254 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2255 | ac_exeext=$ac_cv_exeext |
| 2256 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2257 | echo "${ECHO_T}$ac_file" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2258 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2259 | # Check the compiler produces executables we can run. If not, either |
| 2260 | # the compiler is broken, or we cross compile. |
| 2261 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2262 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2263 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2264 | # If not cross compiling, check that we can run a simple program. |
| 2265 | if test "$cross_compiling" != yes; then |
| 2266 | if { ac_try='./$ac_file' |
| 2267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2268 | (eval $ac_try) 2>&5 |
| 2269 | ac_status=$? |
| 2270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2271 | (exit $ac_status); }; }; then |
| 2272 | cross_compiling=no |
| 2273 | else |
| 2274 | if test "$cross_compiling" = maybe; then |
| 2275 | cross_compiling=yes |
| 2276 | else |
| 2277 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2278 | If you meant to cross compile, use \`--host'. |
| 2279 | See \`config.log' for more details." >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2280 | echo "$as_me: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2281 | If you meant to cross compile, use \`--host'. |
| 2282 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2283 | { (exit 1); exit 1; }; } |
| 2284 | fi |
| 2285 | fi |
| 2286 | fi |
| 2287 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2288 | echo "${ECHO_T}yes" >&6 |
| 2289 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2290 | 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] | 2291 | ac_clean_files=$ac_clean_files_save |
| 2292 | # Check the compiler produces executables we can run. If not, either |
| 2293 | # the compiler is broken, or we cross compile. |
| 2294 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2295 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2296 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2297 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2298 | |
| 2299 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2300 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2301 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2302 | (eval $ac_link) 2>&5 |
| 2303 | ac_status=$? |
| 2304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2305 | (exit $ac_status); }; then |
| 2306 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2307 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2308 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2309 | # `rm'. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2310 | for ac_file in conftest.exe conftest conftest.*; do |
| 2311 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2312 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2313 | *.$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] | 2314 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2315 | export ac_cv_exeext |
| 2316 | break;; |
| 2317 | * ) break;; |
| 2318 | esac |
| 2319 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2320 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2321 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2322 | See \`config.log' for more details." >&5 |
| 2323 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2324 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2325 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2326 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2327 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2328 | rm -f conftest$ac_cv_exeext |
| 2329 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2330 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2331 | |
| 2332 | rm -f conftest.$ac_ext |
| 2333 | EXEEXT=$ac_cv_exeext |
| 2334 | ac_exeext=$EXEEXT |
| 2335 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2336 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2337 | if test "${ac_cv_objext+set}" = set; then |
| 2338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2339 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2340 | cat >conftest.$ac_ext <<_ACEOF |
| 2341 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2342 | /* confdefs.h. */ |
| 2343 | _ACEOF |
| 2344 | cat confdefs.h >>conftest.$ac_ext |
| 2345 | cat >>conftest.$ac_ext <<_ACEOF |
| 2346 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2347 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2348 | int |
| 2349 | main () |
| 2350 | { |
| 2351 | |
| 2352 | ; |
| 2353 | return 0; |
| 2354 | } |
| 2355 | _ACEOF |
| 2356 | rm -f conftest.o conftest.obj |
| 2357 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2358 | (eval $ac_compile) 2>&5 |
| 2359 | ac_status=$? |
| 2360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2361 | (exit $ac_status); }; then |
| 2362 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2363 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2364 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2365 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2366 | break;; |
| 2367 | esac |
| 2368 | done |
| 2369 | else |
| 2370 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2371 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2372 | |
| 2373 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2374 | See \`config.log' for more details." >&5 |
| 2375 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2376 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2377 | { (exit 1); exit 1; }; } |
| 2378 | fi |
| 2379 | |
| 2380 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2381 | fi |
| 2382 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2383 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2384 | OBJEXT=$ac_cv_objext |
| 2385 | ac_objext=$OBJEXT |
| 2386 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2387 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2388 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2389 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2390 | else |
| 2391 | cat >conftest.$ac_ext <<_ACEOF |
| 2392 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2393 | /* confdefs.h. */ |
| 2394 | _ACEOF |
| 2395 | cat confdefs.h >>conftest.$ac_ext |
| 2396 | cat >>conftest.$ac_ext <<_ACEOF |
| 2397 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2398 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2399 | int |
| 2400 | main () |
| 2401 | { |
| 2402 | #ifndef __GNUC__ |
| 2403 | choke me |
| 2404 | #endif |
| 2405 | |
| 2406 | ; |
| 2407 | return 0; |
| 2408 | } |
| 2409 | _ACEOF |
| 2410 | rm -f conftest.$ac_objext |
| 2411 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2412 | (eval $ac_compile) 2>&5 |
| 2413 | ac_status=$? |
| 2414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2415 | (exit $ac_status); } && |
| 2416 | { ac_try='test -s conftest.$ac_objext' |
| 2417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2418 | (eval $ac_try) 2>&5 |
| 2419 | ac_status=$? |
| 2420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2421 | (exit $ac_status); }; }; then |
| 2422 | ac_compiler_gnu=yes |
| 2423 | else |
| 2424 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2425 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2426 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2427 | ac_compiler_gnu=no |
| 2428 | fi |
| 2429 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2430 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2431 | |
| 2432 | fi |
| 2433 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2434 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2435 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2436 | ac_test_CFLAGS=${CFLAGS+set} |
| 2437 | ac_save_CFLAGS=$CFLAGS |
| 2438 | CFLAGS="-g" |
| 2439 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2440 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2441 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2443 | else |
| 2444 | cat >conftest.$ac_ext <<_ACEOF |
| 2445 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2446 | /* confdefs.h. */ |
| 2447 | _ACEOF |
| 2448 | cat confdefs.h >>conftest.$ac_ext |
| 2449 | cat >>conftest.$ac_ext <<_ACEOF |
| 2450 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2451 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2452 | int |
| 2453 | main () |
| 2454 | { |
| 2455 | |
| 2456 | ; |
| 2457 | return 0; |
| 2458 | } |
| 2459 | _ACEOF |
| 2460 | rm -f conftest.$ac_objext |
| 2461 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2462 | (eval $ac_compile) 2>&5 |
| 2463 | ac_status=$? |
| 2464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2465 | (exit $ac_status); } && |
| 2466 | { ac_try='test -s conftest.$ac_objext' |
| 2467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2468 | (eval $ac_try) 2>&5 |
| 2469 | ac_status=$? |
| 2470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2471 | (exit $ac_status); }; }; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2472 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2473 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2474 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2475 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2476 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2477 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2478 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2479 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2480 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2481 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2482 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2483 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2484 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2485 | elif test $ac_cv_prog_cc_g = yes; then |
| 2486 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2487 | CFLAGS="-g -O2" |
| 2488 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2489 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2490 | fi |
| 2491 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2492 | if test "$GCC" = yes; then |
| 2493 | CFLAGS="-O2" |
| 2494 | else |
| 2495 | CFLAGS= |
| 2496 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2497 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2498 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2499 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2500 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2502 | else |
| 2503 | ac_cv_prog_cc_stdc=no |
| 2504 | ac_save_CC=$CC |
| 2505 | cat >conftest.$ac_ext <<_ACEOF |
| 2506 | #line $LINENO "configure" |
| 2507 | /* confdefs.h. */ |
| 2508 | _ACEOF |
| 2509 | cat confdefs.h >>conftest.$ac_ext |
| 2510 | cat >>conftest.$ac_ext <<_ACEOF |
| 2511 | /* end confdefs.h. */ |
| 2512 | #include <stdarg.h> |
| 2513 | #include <stdio.h> |
| 2514 | #include <sys/types.h> |
| 2515 | #include <sys/stat.h> |
| 2516 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2517 | struct buf { int x; }; |
| 2518 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2519 | static char *e (p, i) |
| 2520 | char **p; |
| 2521 | int i; |
| 2522 | { |
| 2523 | return p[i]; |
| 2524 | } |
| 2525 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2526 | { |
| 2527 | char *s; |
| 2528 | va_list v; |
| 2529 | va_start (v,p); |
| 2530 | s = g (p, va_arg (v,int)); |
| 2531 | va_end (v); |
| 2532 | return s; |
| 2533 | } |
| 2534 | int test (int i, double x); |
| 2535 | struct s1 {int (*f) (int a);}; |
| 2536 | struct s2 {int (*f) (double a);}; |
| 2537 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2538 | int argc; |
| 2539 | char **argv; |
| 2540 | int |
| 2541 | main () |
| 2542 | { |
| 2543 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2544 | ; |
| 2545 | return 0; |
| 2546 | } |
| 2547 | _ACEOF |
| 2548 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2549 | # breaks some systems' header files. |
| 2550 | # AIX -qlanglvl=ansi |
| 2551 | # Ultrix and OSF/1 -std1 |
| 2552 | # HP-UX 10.20 and later -Ae |
| 2553 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2554 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2555 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2556 | do |
| 2557 | CC="$ac_save_CC $ac_arg" |
| 2558 | rm -f conftest.$ac_objext |
| 2559 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2560 | (eval $ac_compile) 2>&5 |
| 2561 | ac_status=$? |
| 2562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2563 | (exit $ac_status); } && |
| 2564 | { ac_try='test -s conftest.$ac_objext' |
| 2565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2566 | (eval $ac_try) 2>&5 |
| 2567 | ac_status=$? |
| 2568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2569 | (exit $ac_status); }; }; then |
| 2570 | ac_cv_prog_cc_stdc=$ac_arg |
| 2571 | break |
| 2572 | else |
| 2573 | echo "$as_me: failed program was:" >&5 |
| 2574 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2575 | |
| 2576 | fi |
| 2577 | rm -f conftest.$ac_objext |
| 2578 | done |
| 2579 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2580 | CC=$ac_save_CC |
| 2581 | |
| 2582 | fi |
| 2583 | |
| 2584 | case "x$ac_cv_prog_cc_stdc" in |
| 2585 | x|xno) |
| 2586 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2587 | echo "${ECHO_T}none needed" >&6 ;; |
| 2588 | *) |
| 2589 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2590 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2591 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2592 | esac |
| 2593 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2594 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2595 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2596 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2597 | # the declaration of exit, since it's the most demanding environment. |
| 2598 | cat >conftest.$ac_ext <<_ACEOF |
| 2599 | #ifndef __cplusplus |
| 2600 | choke me |
| 2601 | #endif |
| 2602 | _ACEOF |
| 2603 | rm -f conftest.$ac_objext |
| 2604 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2605 | (eval $ac_compile) 2>&5 |
| 2606 | ac_status=$? |
| 2607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2608 | (exit $ac_status); } && |
| 2609 | { ac_try='test -s conftest.$ac_objext' |
| 2610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2611 | (eval $ac_try) 2>&5 |
| 2612 | ac_status=$? |
| 2613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2614 | (exit $ac_status); }; }; then |
| 2615 | for ac_declaration in \ |
| 2616 | ''\ |
| 2617 | '#include <stdlib.h>' \ |
| 2618 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2619 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2620 | 'extern "C" void exit (int) throw ();' \ |
| 2621 | 'extern "C" void exit (int);' \ |
| 2622 | 'void exit (int);' |
| 2623 | do |
| 2624 | cat >conftest.$ac_ext <<_ACEOF |
| 2625 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2626 | /* confdefs.h. */ |
| 2627 | _ACEOF |
| 2628 | cat confdefs.h >>conftest.$ac_ext |
| 2629 | cat >>conftest.$ac_ext <<_ACEOF |
| 2630 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2631 | #include <stdlib.h> |
| 2632 | $ac_declaration |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2633 | int |
| 2634 | main () |
| 2635 | { |
| 2636 | exit (42); |
| 2637 | ; |
| 2638 | return 0; |
| 2639 | } |
| 2640 | _ACEOF |
| 2641 | rm -f conftest.$ac_objext |
| 2642 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2643 | (eval $ac_compile) 2>&5 |
| 2644 | ac_status=$? |
| 2645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2646 | (exit $ac_status); } && |
| 2647 | { ac_try='test -s conftest.$ac_objext' |
| 2648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2649 | (eval $ac_try) 2>&5 |
| 2650 | ac_status=$? |
| 2651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2652 | (exit $ac_status); }; }; then |
| 2653 | : |
| 2654 | else |
| 2655 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2656 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2657 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2658 | continue |
| 2659 | fi |
| 2660 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2661 | cat >conftest.$ac_ext <<_ACEOF |
| 2662 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2663 | /* confdefs.h. */ |
| 2664 | _ACEOF |
| 2665 | cat confdefs.h >>conftest.$ac_ext |
| 2666 | cat >>conftest.$ac_ext <<_ACEOF |
| 2667 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2668 | $ac_declaration |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2669 | int |
| 2670 | main () |
| 2671 | { |
| 2672 | exit (42); |
| 2673 | ; |
| 2674 | return 0; |
| 2675 | } |
| 2676 | _ACEOF |
| 2677 | rm -f conftest.$ac_objext |
| 2678 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2679 | (eval $ac_compile) 2>&5 |
| 2680 | ac_status=$? |
| 2681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2682 | (exit $ac_status); } && |
| 2683 | { ac_try='test -s conftest.$ac_objext' |
| 2684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2685 | (eval $ac_try) 2>&5 |
| 2686 | ac_status=$? |
| 2687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2688 | (exit $ac_status); }; }; then |
| 2689 | break |
| 2690 | else |
| 2691 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2692 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2693 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2694 | fi |
| 2695 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2696 | done |
| 2697 | rm -f conftest* |
| 2698 | if test -n "$ac_declaration"; then |
| 2699 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2700 | echo $ac_declaration >>confdefs.h |
| 2701 | echo '#endif' >>confdefs.h |
| 2702 | fi |
| 2703 | |
| 2704 | else |
| 2705 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2706 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2707 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2708 | fi |
| 2709 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2710 | ac_ext=c |
| 2711 | ac_cpp='$CPP $CPPFLAGS' |
| 2712 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2713 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2714 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2715 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2716 | |
| 2717 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2718 | |
| 2719 | ac_ext=c |
| 2720 | ac_cpp='$CPP $CPPFLAGS' |
| 2721 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2722 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2723 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2724 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2725 | 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] | 2726 | # On Suns, sometimes $CPP names a directory. |
| 2727 | if test -n "$CPP" && test -d "$CPP"; then |
| 2728 | CPP= |
| 2729 | fi |
| 2730 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2731 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2732 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2733 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2734 | # Double quotes because CPP needs to be expanded |
| 2735 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2736 | do |
| 2737 | ac_preproc_ok=false |
| 2738 | for ac_c_preproc_warn_flag in '' yes |
| 2739 | do |
| 2740 | # Use a header file that comes with gcc, so configuring glibc |
| 2741 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2742 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2743 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2744 | # 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] | 2745 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2746 | cat >conftest.$ac_ext <<_ACEOF |
| 2747 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2748 | /* confdefs.h. */ |
| 2749 | _ACEOF |
| 2750 | cat confdefs.h >>conftest.$ac_ext |
| 2751 | cat >>conftest.$ac_ext <<_ACEOF |
| 2752 | /* end confdefs.h. */ |
| 2753 | #ifdef __STDC__ |
| 2754 | # include <limits.h> |
| 2755 | #else |
| 2756 | # include <assert.h> |
| 2757 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2758 | Syntax error |
| 2759 | _ACEOF |
| 2760 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2761 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2762 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2763 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2764 | rm -f conftest.er1 |
| 2765 | cat conftest.err >&5 |
| 2766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2767 | (exit $ac_status); } >/dev/null; then |
| 2768 | if test -s conftest.err; then |
| 2769 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2770 | else |
| 2771 | ac_cpp_err= |
| 2772 | fi |
| 2773 | else |
| 2774 | ac_cpp_err=yes |
| 2775 | fi |
| 2776 | if test -z "$ac_cpp_err"; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2777 | : |
| 2778 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2779 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2780 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2781 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2782 | # Broken: fails on valid input. |
| 2783 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2784 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2785 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2786 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2787 | # OK, works on sane cases. Now check whether non-existent headers |
| 2788 | # can be detected and how. |
| 2789 | cat >conftest.$ac_ext <<_ACEOF |
| 2790 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2791 | /* confdefs.h. */ |
| 2792 | _ACEOF |
| 2793 | cat confdefs.h >>conftest.$ac_ext |
| 2794 | cat >>conftest.$ac_ext <<_ACEOF |
| 2795 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2796 | #include <ac_nonexistent.h> |
| 2797 | _ACEOF |
| 2798 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2799 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2800 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2801 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2802 | rm -f conftest.er1 |
| 2803 | cat conftest.err >&5 |
| 2804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2805 | (exit $ac_status); } >/dev/null; then |
| 2806 | if test -s conftest.err; then |
| 2807 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2808 | else |
| 2809 | ac_cpp_err= |
| 2810 | fi |
| 2811 | else |
| 2812 | ac_cpp_err=yes |
| 2813 | fi |
| 2814 | if test -z "$ac_cpp_err"; then |
| 2815 | # Broken: success on invalid input. |
| 2816 | continue |
| 2817 | else |
| 2818 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2819 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2820 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2821 | # Passes both tests. |
| 2822 | ac_preproc_ok=: |
| 2823 | break |
| 2824 | fi |
| 2825 | rm -f conftest.err conftest.$ac_ext |
| 2826 | |
| 2827 | done |
| 2828 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2829 | rm -f conftest.err conftest.$ac_ext |
| 2830 | if $ac_preproc_ok; then |
| 2831 | break |
| 2832 | fi |
| 2833 | |
| 2834 | done |
| 2835 | ac_cv_prog_CPP=$CPP |
| 2836 | |
| 2837 | fi |
| 2838 | CPP=$ac_cv_prog_CPP |
| 2839 | else |
| 2840 | ac_cv_prog_CPP=$CPP |
| 2841 | fi |
| 2842 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2843 | echo "${ECHO_T}$CPP" >&6 |
| 2844 | ac_preproc_ok=false |
| 2845 | for ac_c_preproc_warn_flag in '' yes |
| 2846 | do |
| 2847 | # Use a header file that comes with gcc, so configuring glibc |
| 2848 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2849 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2850 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2851 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2852 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2853 | cat >conftest.$ac_ext <<_ACEOF |
| 2854 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2855 | /* confdefs.h. */ |
| 2856 | _ACEOF |
| 2857 | cat confdefs.h >>conftest.$ac_ext |
| 2858 | cat >>conftest.$ac_ext <<_ACEOF |
| 2859 | /* end confdefs.h. */ |
| 2860 | #ifdef __STDC__ |
| 2861 | # include <limits.h> |
| 2862 | #else |
| 2863 | # include <assert.h> |
| 2864 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2865 | Syntax error |
| 2866 | _ACEOF |
| 2867 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2868 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2869 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2870 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2871 | rm -f conftest.er1 |
| 2872 | cat conftest.err >&5 |
| 2873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2874 | (exit $ac_status); } >/dev/null; then |
| 2875 | if test -s conftest.err; then |
| 2876 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2877 | else |
| 2878 | ac_cpp_err= |
| 2879 | fi |
| 2880 | else |
| 2881 | ac_cpp_err=yes |
| 2882 | fi |
| 2883 | if test -z "$ac_cpp_err"; then |
| 2884 | : |
| 2885 | else |
| 2886 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2887 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2888 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2889 | # Broken: fails on valid input. |
| 2890 | continue |
| 2891 | fi |
| 2892 | rm -f conftest.err conftest.$ac_ext |
| 2893 | |
| 2894 | # OK, works on sane cases. Now check whether non-existent headers |
| 2895 | # can be detected and how. |
| 2896 | cat >conftest.$ac_ext <<_ACEOF |
| 2897 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2898 | /* confdefs.h. */ |
| 2899 | _ACEOF |
| 2900 | cat confdefs.h >>conftest.$ac_ext |
| 2901 | cat >>conftest.$ac_ext <<_ACEOF |
| 2902 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2903 | #include <ac_nonexistent.h> |
| 2904 | _ACEOF |
| 2905 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2906 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2907 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2908 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2909 | rm -f conftest.er1 |
| 2910 | cat conftest.err >&5 |
| 2911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2912 | (exit $ac_status); } >/dev/null; then |
| 2913 | if test -s conftest.err; then |
| 2914 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2915 | else |
| 2916 | ac_cpp_err= |
| 2917 | fi |
| 2918 | else |
| 2919 | ac_cpp_err=yes |
| 2920 | fi |
| 2921 | if test -z "$ac_cpp_err"; then |
| 2922 | # Broken: success on invalid input. |
| 2923 | continue |
| 2924 | else |
| 2925 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2926 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2927 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2928 | # Passes both tests. |
| 2929 | ac_preproc_ok=: |
| 2930 | break |
| 2931 | fi |
| 2932 | rm -f conftest.err conftest.$ac_ext |
| 2933 | |
| 2934 | done |
| 2935 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2936 | rm -f conftest.err conftest.$ac_ext |
| 2937 | if $ac_preproc_ok; then |
| 2938 | : |
| 2939 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2940 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 2941 | See \`config.log' for more details." >&5 |
| 2942 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 2943 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2944 | { (exit 1); exit 1; }; } |
| 2945 | fi |
| 2946 | |
| 2947 | ac_ext=c |
| 2948 | ac_cpp='$CPP $CPPFLAGS' |
| 2949 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2950 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2951 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2952 | |
| 2953 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2954 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 2955 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 2956 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 2957 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2958 | else |
| 2959 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 2960 | then ac_cv_prog_egrep='grep -E' |
| 2961 | else ac_cv_prog_egrep='egrep' |
| 2962 | fi |
| 2963 | fi |
| 2964 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 2965 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 2966 | EGREP=$ac_cv_prog_egrep |
| 2967 | |
| 2968 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2969 | |
| 2970 | echo "$as_me:$LINENO: checking for AIX" >&5 |
| 2971 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
| 2972 | cat >conftest.$ac_ext <<_ACEOF |
| 2973 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2974 | /* confdefs.h. */ |
| 2975 | _ACEOF |
| 2976 | cat confdefs.h >>conftest.$ac_ext |
| 2977 | cat >>conftest.$ac_ext <<_ACEOF |
| 2978 | /* end confdefs.h. */ |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2979 | #ifdef _AIX |
| 2980 | yes |
| 2981 | #endif |
| 2982 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2983 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2984 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2985 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2986 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2987 | echo "${ECHO_T}yes" >&6 |
| 2988 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2989 | #define _ALL_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2990 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2991 | |
| 2992 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2993 | echo "$as_me:$LINENO: result: no" >&5 |
| 2994 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2995 | fi |
| 2996 | rm -f conftest* |
| 2997 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2998 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2999 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3000 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 3001 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3003 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3004 | cat >conftest.$ac_ext <<_ACEOF |
| 3005 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3006 | /* confdefs.h. */ |
| 3007 | _ACEOF |
| 3008 | cat confdefs.h >>conftest.$ac_ext |
| 3009 | cat >>conftest.$ac_ext <<_ACEOF |
| 3010 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3011 | #include <stdlib.h> |
| 3012 | #include <stdarg.h> |
| 3013 | #include <string.h> |
| 3014 | #include <float.h> |
| 3015 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3016 | int |
| 3017 | main () |
| 3018 | { |
| 3019 | |
| 3020 | ; |
| 3021 | return 0; |
| 3022 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3023 | _ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3024 | rm -f conftest.$ac_objext |
| 3025 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3026 | (eval $ac_compile) 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3027 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3029 | (exit $ac_status); } && |
| 3030 | { ac_try='test -s conftest.$ac_objext' |
| 3031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3032 | (eval $ac_try) 2>&5 |
| 3033 | ac_status=$? |
| 3034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3035 | (exit $ac_status); }; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3036 | ac_cv_header_stdc=yes |
| 3037 | else |
| 3038 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3039 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3040 | |
| 3041 | ac_cv_header_stdc=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3042 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3043 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3044 | |
| 3045 | if test $ac_cv_header_stdc = yes; then |
| 3046 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3047 | cat >conftest.$ac_ext <<_ACEOF |
| 3048 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3049 | /* confdefs.h. */ |
| 3050 | _ACEOF |
| 3051 | cat confdefs.h >>conftest.$ac_ext |
| 3052 | cat >>conftest.$ac_ext <<_ACEOF |
| 3053 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3054 | #include <string.h> |
| 3055 | |
| 3056 | _ACEOF |
| 3057 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3058 | $EGREP "memchr" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3059 | : |
| 3060 | else |
| 3061 | ac_cv_header_stdc=no |
| 3062 | fi |
| 3063 | rm -f conftest* |
| 3064 | |
| 3065 | fi |
| 3066 | |
| 3067 | if test $ac_cv_header_stdc = yes; then |
| 3068 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3069 | cat >conftest.$ac_ext <<_ACEOF |
| 3070 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3071 | /* confdefs.h. */ |
| 3072 | _ACEOF |
| 3073 | cat confdefs.h >>conftest.$ac_ext |
| 3074 | cat >>conftest.$ac_ext <<_ACEOF |
| 3075 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3076 | #include <stdlib.h> |
| 3077 | |
| 3078 | _ACEOF |
| 3079 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3080 | $EGREP "free" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3081 | : |
| 3082 | else |
| 3083 | ac_cv_header_stdc=no |
| 3084 | fi |
| 3085 | rm -f conftest* |
| 3086 | |
| 3087 | fi |
| 3088 | |
| 3089 | if test $ac_cv_header_stdc = yes; then |
| 3090 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3091 | if test "$cross_compiling" = yes; then |
| 3092 | : |
| 3093 | else |
| 3094 | cat >conftest.$ac_ext <<_ACEOF |
| 3095 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3096 | /* confdefs.h. */ |
| 3097 | _ACEOF |
| 3098 | cat confdefs.h >>conftest.$ac_ext |
| 3099 | cat >>conftest.$ac_ext <<_ACEOF |
| 3100 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3101 | #include <ctype.h> |
| 3102 | #if ((' ' & 0x0FF) == 0x020) |
| 3103 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3104 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3105 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3106 | # define ISLOWER(c) \ |
| 3107 | (('a' <= (c) && (c) <= 'i') \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3108 | || ('j' <= (c) && (c) <= 'r') \ |
| 3109 | || ('s' <= (c) && (c) <= 'z')) |
| 3110 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3111 | #endif |
| 3112 | |
| 3113 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3114 | int |
| 3115 | main () |
| 3116 | { |
| 3117 | int i; |
| 3118 | for (i = 0; i < 256; i++) |
| 3119 | if (XOR (islower (i), ISLOWER (i)) |
| 3120 | || toupper (i) != TOUPPER (i)) |
| 3121 | exit(2); |
| 3122 | exit (0); |
| 3123 | } |
| 3124 | _ACEOF |
| 3125 | rm -f conftest$ac_exeext |
| 3126 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3127 | (eval $ac_link) 2>&5 |
| 3128 | ac_status=$? |
| 3129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3130 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3132 | (eval $ac_try) 2>&5 |
| 3133 | ac_status=$? |
| 3134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3135 | (exit $ac_status); }; }; then |
| 3136 | : |
| 3137 | else |
| 3138 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3139 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3140 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3141 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3142 | ( exit $ac_status ) |
| 3143 | ac_cv_header_stdc=no |
| 3144 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3145 | 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] | 3146 | fi |
| 3147 | fi |
| 3148 | fi |
| 3149 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3150 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 3151 | if test $ac_cv_header_stdc = yes; then |
| 3152 | |
| 3153 | cat >>confdefs.h <<\_ACEOF |
| 3154 | #define STDC_HEADERS 1 |
| 3155 | _ACEOF |
| 3156 | |
| 3157 | fi |
| 3158 | |
| 3159 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3160 | |
| 3161 | |
| 3162 | |
| 3163 | |
| 3164 | |
| 3165 | |
| 3166 | |
| 3167 | |
| 3168 | |
| 3169 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3170 | inttypes.h stdint.h unistd.h |
| 3171 | do |
| 3172 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3173 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3174 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3175 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3177 | else |
| 3178 | cat >conftest.$ac_ext <<_ACEOF |
| 3179 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3180 | /* confdefs.h. */ |
| 3181 | _ACEOF |
| 3182 | cat confdefs.h >>conftest.$ac_ext |
| 3183 | cat >>conftest.$ac_ext <<_ACEOF |
| 3184 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3185 | $ac_includes_default |
| 3186 | |
| 3187 | #include <$ac_header> |
| 3188 | _ACEOF |
| 3189 | rm -f conftest.$ac_objext |
| 3190 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3191 | (eval $ac_compile) 2>&5 |
| 3192 | ac_status=$? |
| 3193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3194 | (exit $ac_status); } && |
| 3195 | { ac_try='test -s conftest.$ac_objext' |
| 3196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3197 | (eval $ac_try) 2>&5 |
| 3198 | ac_status=$? |
| 3199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3200 | (exit $ac_status); }; }; then |
| 3201 | eval "$as_ac_Header=yes" |
| 3202 | else |
| 3203 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3204 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3205 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3206 | eval "$as_ac_Header=no" |
| 3207 | fi |
| 3208 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3209 | fi |
| 3210 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3211 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3212 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3213 | cat >>confdefs.h <<_ACEOF |
| 3214 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3215 | _ACEOF |
| 3216 | |
| 3217 | fi |
| 3218 | |
| 3219 | done |
| 3220 | |
| 3221 | |
| 3222 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 3223 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 3224 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 3225 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 3226 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3227 | fi |
| 3228 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 3229 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 3230 | else |
| 3231 | # Is the header compilable? |
| 3232 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5 |
| 3233 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 |
| 3234 | cat >conftest.$ac_ext <<_ACEOF |
| 3235 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3236 | /* confdefs.h. */ |
| 3237 | _ACEOF |
| 3238 | cat confdefs.h >>conftest.$ac_ext |
| 3239 | cat >>conftest.$ac_ext <<_ACEOF |
| 3240 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3241 | $ac_includes_default |
| 3242 | #include <minix/config.h> |
| 3243 | _ACEOF |
| 3244 | rm -f conftest.$ac_objext |
| 3245 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3246 | (eval $ac_compile) 2>&5 |
| 3247 | ac_status=$? |
| 3248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3249 | (exit $ac_status); } && |
| 3250 | { ac_try='test -s conftest.$ac_objext' |
| 3251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3252 | (eval $ac_try) 2>&5 |
| 3253 | ac_status=$? |
| 3254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3255 | (exit $ac_status); }; }; then |
| 3256 | ac_header_compiler=yes |
| 3257 | else |
| 3258 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3259 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3260 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3261 | ac_header_compiler=no |
| 3262 | fi |
| 3263 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3264 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3265 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3266 | |
| 3267 | # Is the header present? |
| 3268 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5 |
| 3269 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 |
| 3270 | cat >conftest.$ac_ext <<_ACEOF |
| 3271 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3272 | /* confdefs.h. */ |
| 3273 | _ACEOF |
| 3274 | cat confdefs.h >>conftest.$ac_ext |
| 3275 | cat >>conftest.$ac_ext <<_ACEOF |
| 3276 | /* end confdefs.h. */ |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3277 | #include <minix/config.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3278 | _ACEOF |
| 3279 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3280 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3281 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3282 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3283 | rm -f conftest.er1 |
| 3284 | cat conftest.err >&5 |
| 3285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3286 | (exit $ac_status); } >/dev/null; then |
| 3287 | if test -s conftest.err; then |
| 3288 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3289 | else |
| 3290 | ac_cpp_err= |
| 3291 | fi |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3292 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3293 | ac_cpp_err=yes |
| 3294 | fi |
| 3295 | if test -z "$ac_cpp_err"; then |
| 3296 | ac_header_preproc=yes |
| 3297 | else |
| 3298 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3299 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3300 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3301 | ac_header_preproc=no |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3302 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3303 | rm -f conftest.err conftest.$ac_ext |
| 3304 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3305 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3306 | |
| 3307 | # So? What about this header? |
| 3308 | case $ac_header_compiler:$ac_header_preproc in |
| 3309 | yes:no ) |
| 3310 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3311 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3312 | { 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] | 3313 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} |
| 3314 | ( |
| 3315 | cat <<\_ASBOX |
| 3316 | ## ------------------------------------ ## |
| 3317 | ## Report this to bug-autoconf@gnu.org. ## |
| 3318 | ## ------------------------------------ ## |
| 3319 | _ASBOX |
| 3320 | ) | |
| 3321 | sed "s/^/$as_me: WARNING: /" >&2 |
| 3322 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3323 | no:yes ) |
| 3324 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 |
| 3325 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} |
| 3326 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 |
| 3327 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} |
| 3328 | { 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] | 3329 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} |
| 3330 | ( |
| 3331 | cat <<\_ASBOX |
| 3332 | ## ------------------------------------ ## |
| 3333 | ## Report this to bug-autoconf@gnu.org. ## |
| 3334 | ## ------------------------------------ ## |
| 3335 | _ASBOX |
| 3336 | ) | |
| 3337 | sed "s/^/$as_me: WARNING: /" >&2 |
| 3338 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3339 | esac |
| 3340 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 3341 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 3342 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 3343 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3344 | else |
| 3345 | ac_cv_header_minix_config_h=$ac_header_preproc |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3346 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3347 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 3348 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 3349 | |
| 3350 | fi |
| 3351 | if test $ac_cv_header_minix_config_h = yes; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3352 | MINIX=yes |
| 3353 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3354 | MINIX= |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3355 | fi |
| 3356 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3357 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3358 | if test "$MINIX" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3359 | |
| 3360 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3361 | #define _POSIX_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3362 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3363 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3364 | |
| 3365 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3366 | #define _POSIX_1_SOURCE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3367 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3368 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3369 | |
| 3370 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3371 | #define _MINIX 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3372 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3373 | |
| 3374 | fi |
| 3375 | |
| 3376 | |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 3377 | # Check for unsupported systems |
| 3378 | case $ac_sys_system/$ac_sys_release in |
| 3379 | SunOS/4*|DYNIX/*|dgux*/*|IRIX/4*|Linux*/1*) |
| 3380 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 3381 | echo See README for details. |
| 3382 | exit 1;; |
| 3383 | esac |
| 3384 | |
| 3385 | if test "$MINIX" = yes; then |
| 3386 | echo This system \(MINIX\) is no longer supported. |
| 3387 | echo Read README for details. |
| 3388 | exit 1 |
| 3389 | fi |
| 3390 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3391 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3392 | echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 3393 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3394 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3395 | # Check whether --with-suffix or --without-suffix was given. |
| 3396 | if test "${with_suffix+set}" = set; then |
| 3397 | withval="$with_suffix" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3398 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3399 | case $withval in |
| 3400 | no) EXEEXT=;; |
| 3401 | yes) EXEEXT=.exe;; |
| 3402 | *) EXEEXT=$withval;; |
| 3403 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3404 | fi; |
| 3405 | echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 3406 | echo "${ECHO_T}$EXEEXT" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3407 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3408 | # Test whether we're running on a non-case-sensitive system, in which |
| 3409 | # case we give a warning if no ext is given |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3410 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3411 | echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 3412 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6 |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3413 | if test ! -d CaseSensitiveTestDir; then |
| 3414 | mkdir CaseSensitiveTestDir |
| 3415 | fi |
| 3416 | |
| 3417 | if test -d casesensitivetestdir |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3418 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3419 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3420 | echo "${ECHO_T}yes" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3421 | BUILDEXEEXT=.exe |
| 3422 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3423 | echo "$as_me:$LINENO: result: no" >&5 |
| 3424 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3425 | BUILDEXEEXT=$EXEEXT |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3426 | fi |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3427 | rmdir CaseSensitiveTestDir |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 3428 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 3429 | case $MACHDEP in |
| 3430 | bsdos*) |
| 3431 | case $CC in |
| 3432 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 3433 | esac;; |
| 3434 | esac |
| 3435 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3436 | case $ac_sys_system in |
| 3437 | hp*|HP*) |
| 3438 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 3439 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3440 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3441 | Monterey*) |
| 3442 | case $CC in |
| 3443 | cc) CC="$CC -Wl,-Bexport";; |
| 3444 | esac;; |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3445 | SunOS*) |
| 3446 | # 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] | 3447 | |
| 3448 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3449 | #define __EXTENSIONS__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3450 | _ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3451 | |
| 3452 | ;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3453 | esac |
| 3454 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3455 | |
| 3456 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3457 | echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 3458 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3459 | if test -z "$LIBRARY" |
| 3460 | then |
| 3461 | LIBRARY='libpython$(VERSION).a' |
| 3462 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3463 | echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 3464 | echo "${ECHO_T}$LIBRARY" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3465 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3466 | # 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] | 3467 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3468 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3469 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3470 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3471 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3472 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3473 | # DLLLIBRARY is the shared (i.e., DLL) library. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3474 | # |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3475 | # RUNSHARED is used to run shared python without installed libraries |
| 3476 | # |
| 3477 | # INSTSONAME is the name of the shared library that will be use to install |
| 3478 | # on the system - some systems like version suffix, others don't |
| 3479 | |
| 3480 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3481 | |
| 3482 | |
| 3483 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3484 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3485 | LDLIBRARY="$LIBRARY" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3486 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 09bdf72 | 2002-05-08 08:51:29 +0000 | [diff] [blame] | 3487 | INSTSONAME='$(LDLIBRARY)' |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 3488 | DLLLIBRARY='' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3489 | LDLIBRARYDIR='' |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3490 | RUNSHARED='' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3491 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3492 | # 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] | 3493 | # If CXX is set, and if it is needed to link a main function that was |
| 3494 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 3495 | # python might then depend on the C++ runtime |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3496 | # 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] | 3497 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3498 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3499 | echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 3500 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3501 | if test -z "$LINKCC" |
| 3502 | then |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 3503 | if test -z "$CXX"; then |
| 3504 | LINKCC="\$(PURIFY) \$(CC)" |
| 3505 | else |
Martin v. Löwis | 1931ca7 | 2002-06-01 21:39:58 +0000 | [diff] [blame] | 3506 | 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] | 3507 | $CXX -c conftest.$ac_ext 2>&5 |
| 3508 | if $CC -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 3509 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 3510 | then |
| 3511 | LINKCC="\$(PURIFY) \$(CC)" |
| 3512 | else |
| 3513 | LINKCC="\$(PURIFY) \$(CXX)" |
| 3514 | fi |
| 3515 | rm -fr conftest* |
| 3516 | fi |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3517 | case $ac_sys_system in |
| 3518 | AIX*) |
Neal Norwitz | 0b27ff9 | 2003-03-31 15:53:49 +0000 | [diff] [blame] | 3519 | exp_extra="\"\"" |
| 3520 | if test $ac_sys_release -ge 5 -o \ |
| 3521 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 3522 | exp_extra="." |
| 3523 | fi |
| 3524 | 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] | 3525 | dgux*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3526 | LINKCC="LD_RUN_PATH=$libdir $LINKCC";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3527 | Monterey64*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3528 | LINKCC="$LINKCC -L/usr/lib/ia64l64";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3529 | esac |
| 3530 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3531 | echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 3532 | echo "${ECHO_T}$LINKCC" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3533 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3534 | echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 3535 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3536 | # Check whether --enable-shared or --disable-shared was given. |
| 3537 | if test "${enable_shared+set}" = set; then |
| 3538 | enableval="$enable_shared" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3539 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3540 | fi; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3541 | |
| 3542 | if test -z "$enable_shared" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3543 | then |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3544 | case $ac_sys_system in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3545 | CYGWIN* | atheos*) |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3546 | enable_shared="yes";; |
| 3547 | *) |
| 3548 | enable_shared="no";; |
| 3549 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3550 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3551 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 3552 | echo "${ECHO_T}$enable_shared" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3553 | |
| 3554 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3555 | echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 3556 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3557 | |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 3558 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 3559 | # library that we build, but we do not want to link against it (we |
| 3560 | # will find it with a -framework option). For this reason there is an |
| 3561 | # extra variable BLDLIBRARY against which Python and the extension |
| 3562 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 3563 | # LDLIBRARY, but empty for MacOSX framework builds. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3564 | if test "$enable_framework" |
| 3565 | then |
| 3566 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 66b8483 | 2003-07-04 12:14:39 +0000 | [diff] [blame] | 3567 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3568 | BLDLIBRARY='' |
| 3569 | else |
| 3570 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3571 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3572 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3573 | # Other platforms follow |
| 3574 | if test $enable_shared = "yes"; then |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 3575 | |
| 3576 | cat >>confdefs.h <<\_ACEOF |
| 3577 | #define Py_ENABLE_SHARED 1 |
| 3578 | _ACEOF |
| 3579 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3580 | case $ac_sys_system in |
| 3581 | BeOS*) |
| 3582 | LDLIBRARY='libpython$(VERSION).so' |
| 3583 | ;; |
| 3584 | CYGWIN*) |
| 3585 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3586 | DLLLIBRARY='libpython$(VERSION).dll' |
| 3587 | ;; |
| 3588 | SunOS*) |
| 3589 | LDLIBRARY='libpython$(VERSION).so' |
Martin v. Löwis | d141a8c | 2003-06-14 15:20:28 +0000 | [diff] [blame] | 3590 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3591 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3592 | ;; |
Martin v. Löwis | 96ce805 | 2003-05-31 07:58:45 +0000 | [diff] [blame] | 3593 | Linux*|GNU*|NetBSD*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3594 | LDLIBRARY='libpython$(VERSION).so' |
| 3595 | BLDLIBRARY='-L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3596 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3597 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 3598 | ;; |
| 3599 | hp*|HP*) |
| 3600 | LDLIBRARY='libpython$(VERSION).sl' |
| 3601 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3602 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3603 | ;; |
| 3604 | OSF*) |
| 3605 | LDLIBRARY='libpython$(VERSION).so' |
| 3606 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3607 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3608 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3609 | atheos*) |
| 3610 | LDLIBRARY='libpython$(VERSION).so' |
| 3611 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3612 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 3613 | ;; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3614 | esac |
| 3615 | # DG/UX requires some fancy ld contortions to produce a .so from an .a |
| 3616 | case $MACHDEP in |
| 3617 | dguxR4) |
| 3618 | LDLIBRARY='libpython$(VERSION).so' |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3619 | BASECFLAGS="$BASECFLAGS -pic" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3620 | ;; |
| 3621 | esac |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 3622 | else # shared is disabled |
| 3623 | case $ac_sys_system in |
| 3624 | CYGWIN*) |
| 3625 | BLDLIBRARY='$(LIBRARY)' |
| 3626 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3627 | ;; |
| 3628 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3629 | fi |
| 3630 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3631 | echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 3632 | echo "${ECHO_T}$LDLIBRARY" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3633 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3634 | if test -n "$ac_tool_prefix"; then |
| 3635 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3636 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3637 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3638 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3639 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3640 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3641 | else |
| 3642 | if test -n "$RANLIB"; then |
| 3643 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3644 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3646 | for as_dir in $PATH |
| 3647 | do |
| 3648 | IFS=$as_save_IFS |
| 3649 | test -z "$as_dir" && as_dir=. |
| 3650 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3651 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3652 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3653 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3654 | break 2 |
| 3655 | fi |
| 3656 | done |
| 3657 | done |
| 3658 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3659 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3660 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3661 | RANLIB=$ac_cv_prog_RANLIB |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3662 | if test -n "$RANLIB"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3663 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3664 | echo "${ECHO_T}$RANLIB" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3665 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3666 | echo "$as_me:$LINENO: result: no" >&5 |
| 3667 | echo "${ECHO_T}no" >&6 |
| 3668 | fi |
| 3669 | |
| 3670 | fi |
| 3671 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3672 | ac_ct_RANLIB=$RANLIB |
| 3673 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3674 | set dummy ranlib; ac_word=$2 |
| 3675 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3676 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3677 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3679 | else |
| 3680 | if test -n "$ac_ct_RANLIB"; then |
| 3681 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3682 | else |
| 3683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3684 | for as_dir in $PATH |
| 3685 | do |
| 3686 | IFS=$as_save_IFS |
| 3687 | test -z "$as_dir" && as_dir=. |
| 3688 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3689 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3690 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3691 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3692 | break 2 |
| 3693 | fi |
| 3694 | done |
| 3695 | done |
| 3696 | |
| 3697 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3698 | fi |
| 3699 | fi |
| 3700 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3701 | if test -n "$ac_ct_RANLIB"; then |
| 3702 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3703 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3704 | else |
| 3705 | echo "$as_me:$LINENO: result: no" >&5 |
| 3706 | echo "${ECHO_T}no" >&6 |
| 3707 | fi |
| 3708 | |
| 3709 | RANLIB=$ac_ct_RANLIB |
| 3710 | else |
| 3711 | RANLIB="$ac_cv_prog_RANLIB" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3712 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3713 | |
| 3714 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3715 | for ac_prog in ar aal |
| 3716 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3717 | # 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] | 3718 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3719 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3720 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3721 | if test "${ac_cv_prog_AR+set}" = set; then |
| 3722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3723 | else |
| 3724 | if test -n "$AR"; then |
| 3725 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 3726 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3727 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3728 | for as_dir in $PATH |
| 3729 | do |
| 3730 | IFS=$as_save_IFS |
| 3731 | test -z "$as_dir" && as_dir=. |
| 3732 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3733 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3734 | ac_cv_prog_AR="$ac_prog" |
| 3735 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3736 | break 2 |
| 3737 | fi |
| 3738 | done |
| 3739 | done |
| 3740 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3741 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3742 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3743 | AR=$ac_cv_prog_AR |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3744 | if test -n "$AR"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3745 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 3746 | echo "${ECHO_T}$AR" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3747 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3748 | echo "$as_me:$LINENO: result: no" >&5 |
| 3749 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3750 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3751 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3752 | test -n "$AR" && break |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3753 | done |
| 3754 | test -n "$AR" || AR="ar" |
| 3755 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3756 | |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3757 | case $MACHDEP in |
Neil Schemenauer | af5567f | 2001-10-21 22:32:04 +0000 | [diff] [blame] | 3758 | bsdos*|hp*|HP*) |
| 3759 | # install -d does not work on BSDI or HP-UX |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3760 | if test -z "$INSTALL" |
| 3761 | then |
| 3762 | INSTALL="${srcdir}/install-sh -c" |
| 3763 | fi |
| 3764 | esac |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3765 | ac_aux_dir= |
| 3766 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 3767 | if test -f $ac_dir/install-sh; then |
| 3768 | ac_aux_dir=$ac_dir |
| 3769 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3770 | break |
| 3771 | elif test -f $ac_dir/install.sh; then |
| 3772 | ac_aux_dir=$ac_dir |
| 3773 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3774 | break |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3775 | elif test -f $ac_dir/shtool; then |
| 3776 | ac_aux_dir=$ac_dir |
| 3777 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3778 | break |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3779 | fi |
| 3780 | done |
| 3781 | if test -z "$ac_aux_dir"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3782 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 3783 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 3784 | { (exit 1); exit 1; }; } |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3785 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3786 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 3787 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 3788 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3789 | |
| 3790 | # Find a good install program. We prefer a C program (faster), |
| 3791 | # so one script is as good as another. But avoid the broken or |
| 3792 | # incompatible versions: |
| 3793 | # SysV /etc/install, /usr/sbin/install |
| 3794 | # SunOS /usr/etc/install |
| 3795 | # IRIX /sbin/install |
| 3796 | # AIX /bin/install |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3797 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3798 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3799 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3800 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3801 | # ./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] | 3802 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 3803 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3804 | if test -z "$INSTALL"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3805 | if test "${ac_cv_path_install+set}" = set; then |
| 3806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3807 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3808 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3809 | for as_dir in $PATH |
| 3810 | do |
| 3811 | IFS=$as_save_IFS |
| 3812 | test -z "$as_dir" && as_dir=. |
| 3813 | # Account for people who put trailing slashes in PATH elements. |
| 3814 | case $as_dir/ in |
| 3815 | ./ | .// | /cC/* | \ |
| 3816 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3817 | /usr/ucb/* ) ;; |
| 3818 | *) |
| 3819 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3820 | # Don't use installbsd from OSF since it installs stuff as root |
| 3821 | # by default. |
| 3822 | for ac_prog in ginstall scoinst install; do |
| 3823 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3824 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3825 | if test $ac_prog = install && |
| 3826 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3827 | # AIX install. It has an incompatible calling convention. |
| 3828 | : |
| 3829 | elif test $ac_prog = install && |
| 3830 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3831 | # program-specific install script used by HP pwplus--don't use. |
| 3832 | : |
| 3833 | else |
| 3834 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3835 | break 3 |
| 3836 | fi |
| 3837 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3838 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3839 | done |
| 3840 | ;; |
| 3841 | esac |
| 3842 | done |
| 3843 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3844 | |
| 3845 | fi |
| 3846 | if test "${ac_cv_path_install+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3847 | INSTALL=$ac_cv_path_install |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3848 | else |
| 3849 | # As a last resort, use the slow shell script. We don't cache a |
| 3850 | # path for INSTALL within a source directory, because that will |
| 3851 | # break other packages using the cache if that directory is |
| 3852 | # removed, or if the path is relative. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3853 | INSTALL=$ac_install_sh |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3854 | fi |
| 3855 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3856 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 3857 | echo "${ECHO_T}$INSTALL" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3858 | |
| 3859 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3860 | # It thinks the first close brace ends the variable substitution. |
| 3861 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3862 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3863 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3864 | |
| 3865 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3866 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3867 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3868 | # Not every filesystem supports hard links |
| 3869 | |
| 3870 | if test -z "$LN" ; then |
| 3871 | case $ac_sys_system in |
| 3872 | BeOS*) LN="ln -s";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3873 | CYGWIN*) LN="ln -s";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3874 | atheos*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3875 | *) LN=ln;; |
| 3876 | esac |
| 3877 | fi |
| 3878 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3879 | # Check for --with-pydebug |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3880 | echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 3881 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6 |
| 3882 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3883 | # Check whether --with-pydebug or --without-pydebug was given. |
| 3884 | if test "${with_pydebug+set}" = set; then |
| 3885 | withval="$with_pydebug" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3886 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3887 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3888 | then |
| 3889 | |
| 3890 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3891 | #define Py_DEBUG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3892 | _ACEOF |
| 3893 | |
| 3894 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3895 | echo "${ECHO_T}yes" >&6; |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 3896 | Py_DEBUG='true' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3897 | else echo "$as_me:$LINENO: result: no" >&5 |
| 3898 | echo "${ECHO_T}no" >&6; Py_DEBUG='false' |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3899 | fi |
| 3900 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3901 | echo "$as_me:$LINENO: result: no" >&5 |
| 3902 | echo "${ECHO_T}no" >&6 |
| 3903 | fi; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3904 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3905 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 3906 | # merged with this chunk of code? |
| 3907 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3908 | # Optimizer/debugger flags |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3909 | # ------------------------ |
| 3910 | # (The following bit of code is complicated enough - please keep things |
| 3911 | # indented properly. Just pretend you're editing Python code. ;-) |
| 3912 | |
| 3913 | # There are two parallel sets of case statements below, one that checks to |
| 3914 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 3915 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 3916 | # user set OPT. |
| 3917 | |
| 3918 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 3919 | # it on the command line |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3920 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3921 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3922 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3923 | case $GCC in |
| 3924 | yes) |
| 3925 | case $ac_cv_prog_cc_g in |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3926 | yes) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3927 | if test "$Py_DEBUG" = 'true' ; then |
| 3928 | # Optimization messes up debuggers, so turn it off for |
| 3929 | # debug builds. |
| 3930 | OPT="-g -Wall -Wstrict-prototypes" |
| 3931 | else |
| 3932 | OPT="-g -O3 -Wall -Wstrict-prototypes" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3933 | fi |
| 3934 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3935 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3936 | OPT="-O3 -Wall -Wstrict-prototypes" |
| 3937 | ;; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3938 | esac |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3939 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3940 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 3941 | ;; |
| 3942 | esac |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3943 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3944 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3945 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3946 | OPT="-O" |
| 3947 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3948 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3949 | |
| 3950 | # The current (beta) Monterey compiler dies with optimizations |
| 3951 | # 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] | 3952 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3953 | Monterey*) |
| 3954 | OPT="" |
| 3955 | ;; |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3956 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3957 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3958 | fi |
| 3959 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3960 | |
| 3961 | # tweak BASECFLAGS based on compiler and platform |
| 3962 | case $GCC in |
| 3963 | yes) |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3964 | # Python violates C99 rules, by casting between incompatible |
| 3965 | # pointer types. GCC may generate bad code as a result of that, |
| 3966 | # so use -fno-strict-aliasing if supported. |
| 3967 | echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5 |
| 3968 | echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6 |
| 3969 | ac_save_cc="$CC" |
| 3970 | CC="$CC -fno-strict-aliasing" |
| 3971 | if test "$cross_compiling" = yes; then |
| 3972 | ac_cv_no_strict_aliasing_ok=no |
| 3973 | else |
| 3974 | cat >conftest.$ac_ext <<_ACEOF |
| 3975 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3976 | /* confdefs.h. */ |
| 3977 | _ACEOF |
| 3978 | cat confdefs.h >>conftest.$ac_ext |
| 3979 | cat >>conftest.$ac_ext <<_ACEOF |
| 3980 | /* end confdefs.h. */ |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3981 | int main() { return 0; } |
| 3982 | _ACEOF |
| 3983 | rm -f conftest$ac_exeext |
| 3984 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3985 | (eval $ac_link) 2>&5 |
| 3986 | ac_status=$? |
| 3987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3988 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3990 | (eval $ac_try) 2>&5 |
| 3991 | ac_status=$? |
| 3992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3993 | (exit $ac_status); }; }; then |
| 3994 | ac_cv_no_strict_aliasing_ok=yes |
| 3995 | else |
| 3996 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3997 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3998 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3999 | |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 4000 | ( exit $ac_status ) |
| 4001 | ac_cv_no_strict_aliasing_ok=no |
| 4002 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4003 | 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] | 4004 | fi |
| 4005 | CC="$ac_save_cc" |
| 4006 | echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5 |
| 4007 | echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6 |
| 4008 | if test $ac_cv_no_strict_aliasing_ok = yes |
| 4009 | then |
| 4010 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 4011 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4012 | case $ac_sys_system in |
| 4013 | SCO_SV*) |
| 4014 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 4015 | ;; |
| 4016 | # is there any other compiler on Darwin besides gcc? |
| 4017 | Darwin*) |
Jack Jansen | e004041 | 2003-07-23 22:17:28 +0000 | [diff] [blame] | 4018 | BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4019 | ;; |
| 4020 | esac |
| 4021 | ;; |
| 4022 | |
| 4023 | *) |
| 4024 | case $ac_sys_system in |
| 4025 | OpenUNIX*|UnixWare*) |
| 4026 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 4027 | ;; |
Neal Norwitz | b44f165 | 2003-05-26 14:11:55 +0000 | [diff] [blame] | 4028 | OSF*) |
| 4029 | BASECFLAGS="$BASECFLAGS -ieee -std" |
| 4030 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4031 | SCO_SV*) |
| 4032 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 4033 | ;; |
| 4034 | esac |
| 4035 | ;; |
| 4036 | esac |
| 4037 | |
Fred Drake | e1ceaa0 | 2001-12-04 20:55:47 +0000 | [diff] [blame] | 4038 | if test "$Py_DEBUG" = 'true'; then |
| 4039 | : |
| 4040 | else |
| 4041 | OPT="-DNDEBUG $OPT" |
| 4042 | fi |
| 4043 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 4044 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 4045 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4046 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 4047 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4048 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4049 | echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 4050 | echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6 |
| 4051 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
| 4052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4053 | else |
| 4054 | ac_save_cc="$CC" |
| 4055 | CC="$CC -OPT:Olimit=0" |
| 4056 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 4057 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4058 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4059 | cat >conftest.$ac_ext <<_ACEOF |
| 4060 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4061 | /* confdefs.h. */ |
| 4062 | _ACEOF |
| 4063 | cat confdefs.h >>conftest.$ac_ext |
| 4064 | cat >>conftest.$ac_ext <<_ACEOF |
| 4065 | /* end confdefs.h. */ |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4066 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4067 | _ACEOF |
| 4068 | rm -f conftest$ac_exeext |
| 4069 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4070 | (eval $ac_link) 2>&5 |
| 4071 | ac_status=$? |
| 4072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4073 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4075 | (eval $ac_try) 2>&5 |
| 4076 | ac_status=$? |
| 4077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4078 | (exit $ac_status); }; }; then |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4079 | ac_cv_opt_olimit_ok=yes |
| 4080 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4081 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4082 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4083 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4084 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4085 | ( exit $ac_status ) |
| 4086 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4087 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4088 | 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] | 4089 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4090 | CC="$ac_save_cc" |
| 4091 | fi |
| 4092 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4093 | echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 4094 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 4095 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 4096 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4097 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 4098 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 4099 | # environment? |
| 4100 | Darwin*) |
| 4101 | ;; |
| 4102 | *) |
| 4103 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 4104 | ;; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 4105 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4106 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4107 | echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 4108 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6 |
| 4109 | if test "${ac_cv_olimit_ok+set}" = set; then |
| 4110 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4111 | else |
| 4112 | ac_save_cc="$CC" |
| 4113 | CC="$CC -Olimit 1500" |
| 4114 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 4115 | ac_cv_olimit_ok=no |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4116 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4117 | cat >conftest.$ac_ext <<_ACEOF |
| 4118 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4119 | /* confdefs.h. */ |
| 4120 | _ACEOF |
| 4121 | cat confdefs.h >>conftest.$ac_ext |
| 4122 | cat >>conftest.$ac_ext <<_ACEOF |
| 4123 | /* end confdefs.h. */ |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4124 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4125 | _ACEOF |
| 4126 | rm -f conftest$ac_exeext |
| 4127 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4128 | (eval $ac_link) 2>&5 |
| 4129 | ac_status=$? |
| 4130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4131 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4133 | (eval $ac_try) 2>&5 |
| 4134 | ac_status=$? |
| 4135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4136 | (exit $ac_status); }; }; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4137 | ac_cv_olimit_ok=yes |
| 4138 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4139 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4140 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4141 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4142 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4143 | ( exit $ac_status ) |
| 4144 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 4145 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4146 | 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] | 4147 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4148 | CC="$ac_save_cc" |
| 4149 | fi |
| 4150 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4151 | echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 4152 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4153 | if test $ac_cv_olimit_ok = yes; then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4154 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4155 | fi |
| 4156 | fi |
| 4157 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4158 | # On some compilers, pthreads are available without further options |
| 4159 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 4160 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 4161 | # So we have to see first whether pthreads are available without |
| 4162 | # options before we can check whether -Kpthread improves anything. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4163 | echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 4164 | echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6 |
| 4165 | if test "${ac_cv_pthread_is_default+set}" = set; then |
| 4166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4167 | else |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4168 | if test "$cross_compiling" = yes; then |
| 4169 | ac_cv_pthread_is_default=no |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4170 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4171 | cat >conftest.$ac_ext <<_ACEOF |
| 4172 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4173 | /* confdefs.h. */ |
| 4174 | _ACEOF |
| 4175 | cat confdefs.h >>conftest.$ac_ext |
| 4176 | cat >>conftest.$ac_ext <<_ACEOF |
| 4177 | /* end confdefs.h. */ |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4178 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4179 | #include <pthread.h> |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4180 | |
| 4181 | void* routine(void* p){return NULL;} |
| 4182 | |
| 4183 | int main(){ |
| 4184 | pthread_t p; |
| 4185 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4186 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 4187 | (void)pthread_detach(p); |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4188 | return 0; |
| 4189 | } |
| 4190 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4191 | _ACEOF |
| 4192 | rm -f conftest$ac_exeext |
| 4193 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4194 | (eval $ac_link) 2>&5 |
| 4195 | ac_status=$? |
| 4196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4197 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4199 | (eval $ac_try) 2>&5 |
| 4200 | ac_status=$? |
| 4201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4202 | (exit $ac_status); }; }; then |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4203 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4204 | ac_cv_pthread_is_default=yes |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4205 | ac_cv_kthread=no |
| 4206 | ac_cv_pthread=no |
| 4207 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4208 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4209 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4210 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4211 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4212 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4213 | ( exit $ac_status ) |
| 4214 | ac_cv_pthread_is_default=no |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4215 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4216 | 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] | 4217 | fi |
| 4218 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4219 | fi |
| 4220 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4221 | echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 4222 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4223 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4224 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4225 | if test $ac_cv_pthread_is_default = yes |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4226 | then |
| 4227 | ac_cv_kpthread=no |
| 4228 | else |
| 4229 | # -Kpthread, if available, provides the right #defines |
| 4230 | # and linker options to make pthread_create available |
| 4231 | # Some compilers won't report that they do not support -Kpthread, |
| 4232 | # so we need to run a program to see whether it really made the |
| 4233 | # function available. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4234 | echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 4235 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6 |
| 4236 | if test "${ac_cv_kpthread+set}" = set; then |
| 4237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4238 | else |
| 4239 | ac_save_cc="$CC" |
| 4240 | CC="$CC -Kpthread" |
| 4241 | if test "$cross_compiling" = yes; then |
| 4242 | ac_cv_kpthread=no |
| 4243 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4244 | cat >conftest.$ac_ext <<_ACEOF |
| 4245 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4246 | /* confdefs.h. */ |
| 4247 | _ACEOF |
| 4248 | cat confdefs.h >>conftest.$ac_ext |
| 4249 | cat >>conftest.$ac_ext <<_ACEOF |
| 4250 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4251 | |
| 4252 | #include <pthread.h> |
| 4253 | |
| 4254 | void* routine(void* p){return NULL;} |
| 4255 | |
| 4256 | int main(){ |
| 4257 | pthread_t p; |
| 4258 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4259 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 4260 | (void)pthread_detach(p); |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4261 | return 0; |
| 4262 | } |
| 4263 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4264 | _ACEOF |
| 4265 | rm -f conftest$ac_exeext |
| 4266 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4267 | (eval $ac_link) 2>&5 |
| 4268 | ac_status=$? |
| 4269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4270 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4272 | (eval $ac_try) 2>&5 |
| 4273 | ac_status=$? |
| 4274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4275 | (exit $ac_status); }; }; then |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4276 | ac_cv_kpthread=yes |
| 4277 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4278 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4279 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4280 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4281 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4282 | ( exit $ac_status ) |
| 4283 | ac_cv_kpthread=no |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4284 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4285 | 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] | 4286 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4287 | CC="$ac_save_cc" |
| 4288 | fi |
| 4289 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4290 | echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 4291 | echo "${ECHO_T}$ac_cv_kpthread" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4292 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4293 | |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4294 | 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] | 4295 | then |
| 4296 | # -Kthread, if available, provides the right #defines |
| 4297 | # and linker options to make pthread_create available |
| 4298 | # Some compilers won't report that they do not support -Kthread, |
| 4299 | # so we need to run a program to see whether it really made the |
| 4300 | # function available. |
| 4301 | echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5 |
| 4302 | echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6 |
| 4303 | if test "${ac_cv_kthread+set}" = set; then |
| 4304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4305 | else |
| 4306 | ac_save_cc="$CC" |
| 4307 | CC="$CC -Kthread" |
| 4308 | if test "$cross_compiling" = yes; then |
| 4309 | ac_cv_kthread=no |
| 4310 | else |
| 4311 | cat >conftest.$ac_ext <<_ACEOF |
| 4312 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4313 | /* confdefs.h. */ |
| 4314 | _ACEOF |
| 4315 | cat confdefs.h >>conftest.$ac_ext |
| 4316 | cat >>conftest.$ac_ext <<_ACEOF |
| 4317 | /* end confdefs.h. */ |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4318 | |
| 4319 | #include <pthread.h> |
| 4320 | |
| 4321 | void* routine(void* p){return NULL;} |
| 4322 | |
| 4323 | int main(){ |
| 4324 | pthread_t p; |
| 4325 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4326 | return 1; |
| 4327 | (void)pthread_detach(p); |
| 4328 | return 0; |
| 4329 | } |
| 4330 | |
| 4331 | _ACEOF |
| 4332 | rm -f conftest$ac_exeext |
| 4333 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4334 | (eval $ac_link) 2>&5 |
| 4335 | ac_status=$? |
| 4336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4337 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4339 | (eval $ac_try) 2>&5 |
| 4340 | ac_status=$? |
| 4341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4342 | (exit $ac_status); }; }; then |
| 4343 | ac_cv_kthread=yes |
| 4344 | else |
| 4345 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4346 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4347 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4348 | |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4349 | ( exit $ac_status ) |
| 4350 | ac_cv_kthread=no |
| 4351 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4352 | 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] | 4353 | fi |
| 4354 | CC="$ac_save_cc" |
| 4355 | fi |
| 4356 | |
| 4357 | echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5 |
| 4358 | echo "${ECHO_T}$ac_cv_kthread" >&6 |
| 4359 | fi |
| 4360 | |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4361 | 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] | 4362 | then |
| 4363 | # -pthread, if available, provides the right #defines |
| 4364 | # and linker options to make pthread_create available |
| 4365 | # Some compilers won't report that they do not support -pthread, |
| 4366 | # so we need to run a program to see whether it really made the |
| 4367 | # function available. |
| 4368 | echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5 |
| 4369 | echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6 |
| 4370 | if test "${ac_cv_thread+set}" = set; then |
| 4371 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4372 | else |
| 4373 | ac_save_cc="$CC" |
| 4374 | CC="$CC -pthread" |
| 4375 | if test "$cross_compiling" = yes; then |
| 4376 | ac_cv_pthread=no |
| 4377 | else |
| 4378 | cat >conftest.$ac_ext <<_ACEOF |
| 4379 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4380 | /* confdefs.h. */ |
| 4381 | _ACEOF |
| 4382 | cat confdefs.h >>conftest.$ac_ext |
| 4383 | cat >>conftest.$ac_ext <<_ACEOF |
| 4384 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 4385 | |
| 4386 | #include <pthread.h> |
| 4387 | |
| 4388 | void* routine(void* p){return NULL;} |
| 4389 | |
| 4390 | int main(){ |
| 4391 | pthread_t p; |
| 4392 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4393 | return 1; |
| 4394 | (void)pthread_detach(p); |
| 4395 | return 0; |
| 4396 | } |
| 4397 | |
| 4398 | _ACEOF |
| 4399 | rm -f conftest$ac_exeext |
| 4400 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4401 | (eval $ac_link) 2>&5 |
| 4402 | ac_status=$? |
| 4403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4404 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4406 | (eval $ac_try) 2>&5 |
| 4407 | ac_status=$? |
| 4408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4409 | (exit $ac_status); }; }; then |
| 4410 | ac_cv_pthread=yes |
| 4411 | else |
| 4412 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4413 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4414 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4415 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 4416 | ( exit $ac_status ) |
| 4417 | ac_cv_pthread=no |
| 4418 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4419 | 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] | 4420 | fi |
| 4421 | CC="$ac_save_cc" |
| 4422 | fi |
| 4423 | |
| 4424 | echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5 |
| 4425 | echo "${ECHO_T}$ac_cv_pthread" >&6 |
| 4426 | fi |
| 4427 | |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4428 | # If we have set a CC compiler flag for thread support then |
| 4429 | # check if it works for CXX, too. |
| 4430 | ac_cv_cxx_thread=no |
| 4431 | if test ! -z "$CXX" |
| 4432 | then |
| 4433 | echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5 |
| 4434 | echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6 |
| 4435 | ac_save_cxx="$CXX" |
| 4436 | |
| 4437 | if test "$ac_cv_kpthread" = "yes" |
| 4438 | then |
| 4439 | CXX="$CXX -Kpthread" |
| 4440 | ac_cv_cxx_thread=yes |
| 4441 | elif test "$ac_cv_kthread" = "yes" |
| 4442 | then |
| 4443 | CXX="$CXX -Kthread" |
| 4444 | ac_cv_cxx_thread=yes |
| 4445 | elif test "$ac_cv_pthread" = "yes" |
| 4446 | then |
| 4447 | CXX="$CXX -pthread" |
| 4448 | ac_cv_cxx_thread=yes |
| 4449 | fi |
| 4450 | |
| 4451 | if test $ac_cv_cxx_thread = yes |
| 4452 | then |
| 4453 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 4454 | $CXX -c conftest.$ac_ext 2>&5 |
| 4455 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 4456 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 4457 | then |
| 4458 | ac_cv_cxx_thread=yes |
| 4459 | else |
| 4460 | ac_cv_cxx_thread=no |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4461 | fi |
| 4462 | rm -fr conftest* |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4463 | fi |
| 4464 | fi |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 4465 | CXX="$ac_save_cxx" |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4466 | echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5 |
| 4467 | echo "${ECHO_T}$ac_cv_cxx_thread" >&6 |
| 4468 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4469 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4470 | # checks for header files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4471 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4472 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 4473 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4475 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4476 | cat >conftest.$ac_ext <<_ACEOF |
| 4477 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4478 | /* confdefs.h. */ |
| 4479 | _ACEOF |
| 4480 | cat confdefs.h >>conftest.$ac_ext |
| 4481 | cat >>conftest.$ac_ext <<_ACEOF |
| 4482 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4483 | #include <stdlib.h> |
| 4484 | #include <stdarg.h> |
| 4485 | #include <string.h> |
| 4486 | #include <float.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4487 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4488 | int |
| 4489 | main () |
| 4490 | { |
| 4491 | |
| 4492 | ; |
| 4493 | return 0; |
| 4494 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4495 | _ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4496 | rm -f conftest.$ac_objext |
| 4497 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4498 | (eval $ac_compile) 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4499 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4501 | (exit $ac_status); } && |
| 4502 | { ac_try='test -s conftest.$ac_objext' |
| 4503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4504 | (eval $ac_try) 2>&5 |
| 4505 | ac_status=$? |
| 4506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4507 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4508 | ac_cv_header_stdc=yes |
| 4509 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4510 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4511 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4512 | |
| 4513 | ac_cv_header_stdc=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4514 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4515 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4516 | |
| 4517 | if test $ac_cv_header_stdc = yes; then |
| 4518 | # 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] | 4519 | cat >conftest.$ac_ext <<_ACEOF |
| 4520 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4521 | /* confdefs.h. */ |
| 4522 | _ACEOF |
| 4523 | cat confdefs.h >>conftest.$ac_ext |
| 4524 | cat >>conftest.$ac_ext <<_ACEOF |
| 4525 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4526 | #include <string.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4527 | |
| 4528 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4529 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4530 | $EGREP "memchr" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4531 | : |
| 4532 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4533 | ac_cv_header_stdc=no |
| 4534 | fi |
| 4535 | rm -f conftest* |
| 4536 | |
| 4537 | fi |
| 4538 | |
| 4539 | if test $ac_cv_header_stdc = yes; then |
| 4540 | # 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] | 4541 | cat >conftest.$ac_ext <<_ACEOF |
| 4542 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4543 | /* confdefs.h. */ |
| 4544 | _ACEOF |
| 4545 | cat confdefs.h >>conftest.$ac_ext |
| 4546 | cat >>conftest.$ac_ext <<_ACEOF |
| 4547 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4548 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4549 | |
| 4550 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4551 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4552 | $EGREP "free" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4553 | : |
| 4554 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4555 | ac_cv_header_stdc=no |
| 4556 | fi |
| 4557 | rm -f conftest* |
| 4558 | |
| 4559 | fi |
| 4560 | |
| 4561 | if test $ac_cv_header_stdc = yes; then |
| 4562 | # /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] | 4563 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4564 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4565 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4566 | cat >conftest.$ac_ext <<_ACEOF |
| 4567 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4568 | /* confdefs.h. */ |
| 4569 | _ACEOF |
| 4570 | cat confdefs.h >>conftest.$ac_ext |
| 4571 | cat >>conftest.$ac_ext <<_ACEOF |
| 4572 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4573 | #include <ctype.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4574 | #if ((' ' & 0x0FF) == 0x020) |
| 4575 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4576 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4577 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4578 | # define ISLOWER(c) \ |
| 4579 | (('a' <= (c) && (c) <= 'i') \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4580 | || ('j' <= (c) && (c) <= 'r') \ |
| 4581 | || ('s' <= (c) && (c) <= 'z')) |
| 4582 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4583 | #endif |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4584 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4585 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4586 | int |
| 4587 | main () |
| 4588 | { |
| 4589 | int i; |
| 4590 | for (i = 0; i < 256; i++) |
| 4591 | if (XOR (islower (i), ISLOWER (i)) |
| 4592 | || toupper (i) != TOUPPER (i)) |
| 4593 | exit(2); |
| 4594 | exit (0); |
| 4595 | } |
| 4596 | _ACEOF |
| 4597 | rm -f conftest$ac_exeext |
| 4598 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4599 | (eval $ac_link) 2>&5 |
| 4600 | ac_status=$? |
| 4601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4602 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4604 | (eval $ac_try) 2>&5 |
| 4605 | ac_status=$? |
| 4606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4607 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4608 | : |
| 4609 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4610 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4611 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4612 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4613 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4614 | ( exit $ac_status ) |
| 4615 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4616 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4617 | 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] | 4618 | fi |
| 4619 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4620 | fi |
| 4621 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4622 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4623 | if test $ac_cv_header_stdc = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4624 | |
| 4625 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4626 | #define STDC_HEADERS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4627 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4628 | |
| 4629 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4630 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4631 | |
| 4632 | |
| 4633 | |
| 4634 | |
| 4635 | |
| 4636 | |
| 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 | |
Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 4668 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4669 | |
Neal Norwitz | 8225103 | 2003-05-23 14:35:24 +0000 | [diff] [blame] | 4670 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4671 | 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] | 4672 | libintl.h locale.h ncurses.h poll.h pthread.h \ |
Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 4673 | signal.h stdarg.h stddef.h stdlib.h stropts.h termios.h thread.h \ |
| 4674 | unistd.h utime.h \ |
Neal Norwitz | 8225103 | 2003-05-23 14:35:24 +0000 | [diff] [blame] | 4675 | 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] | 4676 | 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] | 4677 | 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] | 4678 | sys/resource.h netpacket/packet.h sysexits.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4679 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4680 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4681 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4682 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4683 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4684 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4686 | fi |
| 4687 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4688 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4689 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4690 | # Is the header compilable? |
| 4691 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 4692 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 4693 | cat >conftest.$ac_ext <<_ACEOF |
| 4694 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4695 | /* confdefs.h. */ |
| 4696 | _ACEOF |
| 4697 | cat confdefs.h >>conftest.$ac_ext |
| 4698 | cat >>conftest.$ac_ext <<_ACEOF |
| 4699 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4700 | $ac_includes_default |
| 4701 | #include <$ac_header> |
| 4702 | _ACEOF |
| 4703 | rm -f conftest.$ac_objext |
| 4704 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4705 | (eval $ac_compile) 2>&5 |
| 4706 | ac_status=$? |
| 4707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4708 | (exit $ac_status); } && |
| 4709 | { ac_try='test -s conftest.$ac_objext' |
| 4710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4711 | (eval $ac_try) 2>&5 |
| 4712 | ac_status=$? |
| 4713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4714 | (exit $ac_status); }; }; then |
| 4715 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4716 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4717 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4718 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4719 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4720 | ac_header_compiler=no |
| 4721 | fi |
| 4722 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4723 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4724 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4725 | |
| 4726 | # Is the header present? |
| 4727 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4728 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4729 | cat >conftest.$ac_ext <<_ACEOF |
| 4730 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4731 | /* confdefs.h. */ |
| 4732 | _ACEOF |
| 4733 | cat confdefs.h >>conftest.$ac_ext |
| 4734 | cat >>conftest.$ac_ext <<_ACEOF |
| 4735 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4736 | #include <$ac_header> |
| 4737 | _ACEOF |
| 4738 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4739 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4740 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4741 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4742 | rm -f conftest.er1 |
| 4743 | cat conftest.err >&5 |
| 4744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4745 | (exit $ac_status); } >/dev/null; then |
| 4746 | if test -s conftest.err; then |
| 4747 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4748 | else |
| 4749 | ac_cpp_err= |
| 4750 | fi |
| 4751 | else |
| 4752 | ac_cpp_err=yes |
| 4753 | fi |
| 4754 | if test -z "$ac_cpp_err"; then |
| 4755 | ac_header_preproc=yes |
| 4756 | else |
| 4757 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4758 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4759 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4760 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4761 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4762 | rm -f conftest.err conftest.$ac_ext |
| 4763 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4764 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4765 | |
| 4766 | # So? What about this header? |
| 4767 | case $ac_header_compiler:$ac_header_preproc in |
| 4768 | yes:no ) |
| 4769 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4770 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4771 | { 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] | 4772 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 4773 | ( |
| 4774 | cat <<\_ASBOX |
| 4775 | ## ------------------------------------ ## |
| 4776 | ## Report this to bug-autoconf@gnu.org. ## |
| 4777 | ## ------------------------------------ ## |
| 4778 | _ASBOX |
| 4779 | ) | |
| 4780 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4781 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4782 | no:yes ) |
| 4783 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4784 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 4785 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4786 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4787 | { 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] | 4788 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 4789 | ( |
| 4790 | cat <<\_ASBOX |
| 4791 | ## ------------------------------------ ## |
| 4792 | ## Report this to bug-autoconf@gnu.org. ## |
| 4793 | ## ------------------------------------ ## |
| 4794 | _ASBOX |
| 4795 | ) | |
| 4796 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4797 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4798 | esac |
| 4799 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4800 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4801 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4803 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4804 | eval "$as_ac_Header=$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4805 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4806 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4807 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4808 | |
| 4809 | fi |
| 4810 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4811 | cat >>confdefs.h <<_ACEOF |
| 4812 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4813 | _ACEOF |
| 4814 | |
| 4815 | fi |
| 4816 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4817 | done |
| 4818 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4819 | |
| 4820 | |
| 4821 | |
| 4822 | |
| 4823 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4824 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4825 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 4826 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 4827 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 4828 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 4829 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4830 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4831 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4832 | cat >conftest.$ac_ext <<_ACEOF |
| 4833 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4834 | /* confdefs.h. */ |
| 4835 | _ACEOF |
| 4836 | cat confdefs.h >>conftest.$ac_ext |
| 4837 | cat >>conftest.$ac_ext <<_ACEOF |
| 4838 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4839 | #include <sys/types.h> |
| 4840 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4841 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4842 | int |
| 4843 | main () |
| 4844 | { |
| 4845 | if ((DIR *) 0) |
| 4846 | return 0; |
| 4847 | ; |
| 4848 | return 0; |
| 4849 | } |
| 4850 | _ACEOF |
| 4851 | rm -f conftest.$ac_objext |
| 4852 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4853 | (eval $ac_compile) 2>&5 |
| 4854 | ac_status=$? |
| 4855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4856 | (exit $ac_status); } && |
| 4857 | { ac_try='test -s conftest.$ac_objext' |
| 4858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4859 | (eval $ac_try) 2>&5 |
| 4860 | ac_status=$? |
| 4861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4862 | (exit $ac_status); }; }; then |
| 4863 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4864 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4865 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4866 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4867 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4868 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4869 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4870 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4871 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4872 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4873 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4874 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4875 | cat >>confdefs.h <<_ACEOF |
| 4876 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 4877 | _ACEOF |
| 4878 | |
| 4879 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4880 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4881 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4882 | done |
| 4883 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 4884 | if test $ac_header_dirent = dirent.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4885 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4886 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4887 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4889 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4890 | ac_func_search_save_LIBS=$LIBS |
| 4891 | ac_cv_search_opendir=no |
| 4892 | cat >conftest.$ac_ext <<_ACEOF |
| 4893 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4894 | /* confdefs.h. */ |
| 4895 | _ACEOF |
| 4896 | cat confdefs.h >>conftest.$ac_ext |
| 4897 | cat >>conftest.$ac_ext <<_ACEOF |
| 4898 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4899 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4900 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4901 | #ifdef __cplusplus |
| 4902 | extern "C" |
| 4903 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4904 | /* 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] | 4905 | builtin and then its argument prototype would still apply. */ |
| 4906 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4907 | int |
| 4908 | main () |
| 4909 | { |
| 4910 | opendir (); |
| 4911 | ; |
| 4912 | return 0; |
| 4913 | } |
| 4914 | _ACEOF |
| 4915 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4916 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4917 | (eval $ac_link) 2>&5 |
| 4918 | ac_status=$? |
| 4919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4920 | (exit $ac_status); } && |
| 4921 | { ac_try='test -s conftest$ac_exeext' |
| 4922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4923 | (eval $ac_try) 2>&5 |
| 4924 | ac_status=$? |
| 4925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4926 | (exit $ac_status); }; }; then |
| 4927 | ac_cv_search_opendir="none required" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4928 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4929 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4930 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4931 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4932 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4933 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4934 | if test "$ac_cv_search_opendir" = no; then |
| 4935 | for ac_lib in dir; do |
| 4936 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4937 | cat >conftest.$ac_ext <<_ACEOF |
| 4938 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4939 | /* confdefs.h. */ |
| 4940 | _ACEOF |
| 4941 | cat confdefs.h >>conftest.$ac_ext |
| 4942 | cat >>conftest.$ac_ext <<_ACEOF |
| 4943 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4944 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4945 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4946 | #ifdef __cplusplus |
| 4947 | extern "C" |
| 4948 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4949 | /* 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] | 4950 | builtin and then its argument prototype would still apply. */ |
| 4951 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4952 | int |
| 4953 | main () |
| 4954 | { |
| 4955 | opendir (); |
| 4956 | ; |
| 4957 | return 0; |
| 4958 | } |
| 4959 | _ACEOF |
| 4960 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4961 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4962 | (eval $ac_link) 2>&5 |
| 4963 | ac_status=$? |
| 4964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4965 | (exit $ac_status); } && |
| 4966 | { ac_try='test -s conftest$ac_exeext' |
| 4967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4968 | (eval $ac_try) 2>&5 |
| 4969 | ac_status=$? |
| 4970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4971 | (exit $ac_status); }; }; then |
| 4972 | ac_cv_search_opendir="-l$ac_lib" |
| 4973 | break |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4974 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4975 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4976 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4977 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4978 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4979 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4980 | done |
| 4981 | fi |
| 4982 | LIBS=$ac_func_search_save_LIBS |
| 4983 | fi |
| 4984 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4985 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4986 | if test "$ac_cv_search_opendir" != no; then |
| 4987 | 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] | 4988 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4989 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4990 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4991 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4992 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4993 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4994 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4995 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4996 | else |
| 4997 | ac_func_search_save_LIBS=$LIBS |
| 4998 | ac_cv_search_opendir=no |
| 4999 | cat >conftest.$ac_ext <<_ACEOF |
| 5000 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5001 | /* confdefs.h. */ |
| 5002 | _ACEOF |
| 5003 | cat confdefs.h >>conftest.$ac_ext |
| 5004 | cat >>conftest.$ac_ext <<_ACEOF |
| 5005 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5006 | |
| 5007 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5008 | #ifdef __cplusplus |
| 5009 | extern "C" |
| 5010 | #endif |
| 5011 | /* We use char because int might match the return type of a gcc2 |
| 5012 | builtin and then its argument prototype would still apply. */ |
| 5013 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5014 | int |
| 5015 | main () |
| 5016 | { |
| 5017 | opendir (); |
| 5018 | ; |
| 5019 | return 0; |
| 5020 | } |
| 5021 | _ACEOF |
| 5022 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5023 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5024 | (eval $ac_link) 2>&5 |
| 5025 | ac_status=$? |
| 5026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5027 | (exit $ac_status); } && |
| 5028 | { ac_try='test -s conftest$ac_exeext' |
| 5029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5030 | (eval $ac_try) 2>&5 |
| 5031 | ac_status=$? |
| 5032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5033 | (exit $ac_status); }; }; then |
| 5034 | ac_cv_search_opendir="none required" |
| 5035 | else |
| 5036 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5037 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5038 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5039 | fi |
| 5040 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5041 | if test "$ac_cv_search_opendir" = no; then |
| 5042 | for ac_lib in x; do |
| 5043 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 5044 | cat >conftest.$ac_ext <<_ACEOF |
| 5045 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5046 | /* confdefs.h. */ |
| 5047 | _ACEOF |
| 5048 | cat confdefs.h >>conftest.$ac_ext |
| 5049 | cat >>conftest.$ac_ext <<_ACEOF |
| 5050 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5051 | |
| 5052 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5053 | #ifdef __cplusplus |
| 5054 | extern "C" |
| 5055 | #endif |
| 5056 | /* We use char because int might match the return type of a gcc2 |
| 5057 | builtin and then its argument prototype would still apply. */ |
| 5058 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5059 | int |
| 5060 | main () |
| 5061 | { |
| 5062 | opendir (); |
| 5063 | ; |
| 5064 | return 0; |
| 5065 | } |
| 5066 | _ACEOF |
| 5067 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5068 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5069 | (eval $ac_link) 2>&5 |
| 5070 | ac_status=$? |
| 5071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5072 | (exit $ac_status); } && |
| 5073 | { ac_try='test -s conftest$ac_exeext' |
| 5074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5075 | (eval $ac_try) 2>&5 |
| 5076 | ac_status=$? |
| 5077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5078 | (exit $ac_status); }; }; then |
| 5079 | ac_cv_search_opendir="-l$ac_lib" |
| 5080 | break |
| 5081 | else |
| 5082 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5083 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5084 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5085 | fi |
| 5086 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5087 | done |
| 5088 | fi |
| 5089 | LIBS=$ac_func_search_save_LIBS |
| 5090 | fi |
| 5091 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 5092 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 5093 | if test "$ac_cv_search_opendir" != no; then |
| 5094 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 5095 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5096 | fi |
| 5097 | |
| 5098 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5099 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5100 | echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 5101 | echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6 |
| 5102 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
| 5103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5104 | else |
| 5105 | cat >conftest.$ac_ext <<_ACEOF |
| 5106 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5107 | /* confdefs.h. */ |
| 5108 | _ACEOF |
| 5109 | cat confdefs.h >>conftest.$ac_ext |
| 5110 | cat >>conftest.$ac_ext <<_ACEOF |
| 5111 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5112 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5113 | int |
| 5114 | main () |
| 5115 | { |
| 5116 | return makedev(0, 0); |
| 5117 | ; |
| 5118 | return 0; |
| 5119 | } |
| 5120 | _ACEOF |
| 5121 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5122 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5123 | (eval $ac_link) 2>&5 |
| 5124 | ac_status=$? |
| 5125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5126 | (exit $ac_status); } && |
| 5127 | { ac_try='test -s conftest$ac_exeext' |
| 5128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5129 | (eval $ac_try) 2>&5 |
| 5130 | ac_status=$? |
| 5131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5132 | (exit $ac_status); }; }; then |
| 5133 | ac_cv_header_sys_types_h_makedev=yes |
| 5134 | else |
| 5135 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5136 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5137 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5138 | ac_cv_header_sys_types_h_makedev=no |
| 5139 | fi |
| 5140 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5141 | |
| 5142 | fi |
| 5143 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 5144 | echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6 |
| 5145 | |
| 5146 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 5147 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5148 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 5149 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 5150 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5152 | fi |
| 5153 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 5154 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 5155 | else |
| 5156 | # Is the header compilable? |
| 5157 | echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 5158 | echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6 |
| 5159 | cat >conftest.$ac_ext <<_ACEOF |
| 5160 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5161 | /* confdefs.h. */ |
| 5162 | _ACEOF |
| 5163 | cat confdefs.h >>conftest.$ac_ext |
| 5164 | cat >>conftest.$ac_ext <<_ACEOF |
| 5165 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5166 | $ac_includes_default |
| 5167 | #include <sys/mkdev.h> |
| 5168 | _ACEOF |
| 5169 | rm -f conftest.$ac_objext |
| 5170 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5171 | (eval $ac_compile) 2>&5 |
| 5172 | ac_status=$? |
| 5173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5174 | (exit $ac_status); } && |
| 5175 | { ac_try='test -s conftest.$ac_objext' |
| 5176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5177 | (eval $ac_try) 2>&5 |
| 5178 | ac_status=$? |
| 5179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5180 | (exit $ac_status); }; }; then |
| 5181 | ac_header_compiler=yes |
| 5182 | else |
| 5183 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5184 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5185 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5186 | ac_header_compiler=no |
| 5187 | fi |
| 5188 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5189 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5190 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5191 | |
| 5192 | # Is the header present? |
| 5193 | echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 5194 | echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6 |
| 5195 | cat >conftest.$ac_ext <<_ACEOF |
| 5196 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5197 | /* confdefs.h. */ |
| 5198 | _ACEOF |
| 5199 | cat confdefs.h >>conftest.$ac_ext |
| 5200 | cat >>conftest.$ac_ext <<_ACEOF |
| 5201 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5202 | #include <sys/mkdev.h> |
| 5203 | _ACEOF |
| 5204 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5205 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5206 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5207 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5208 | rm -f conftest.er1 |
| 5209 | cat conftest.err >&5 |
| 5210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5211 | (exit $ac_status); } >/dev/null; then |
| 5212 | if test -s conftest.err; then |
| 5213 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5214 | else |
| 5215 | ac_cpp_err= |
| 5216 | fi |
| 5217 | else |
| 5218 | ac_cpp_err=yes |
| 5219 | fi |
| 5220 | if test -z "$ac_cpp_err"; then |
| 5221 | ac_header_preproc=yes |
| 5222 | else |
| 5223 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5224 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5225 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5226 | ac_header_preproc=no |
| 5227 | fi |
| 5228 | rm -f conftest.err conftest.$ac_ext |
| 5229 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5230 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5231 | |
| 5232 | # So? What about this header? |
| 5233 | case $ac_header_compiler:$ac_header_preproc in |
| 5234 | yes:no ) |
| 5235 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5236 | echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5237 | { 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] | 5238 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;} |
| 5239 | ( |
| 5240 | cat <<\_ASBOX |
| 5241 | ## ------------------------------------ ## |
| 5242 | ## Report this to bug-autoconf@gnu.org. ## |
| 5243 | ## ------------------------------------ ## |
| 5244 | _ASBOX |
| 5245 | ) | |
| 5246 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5247 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5248 | no:yes ) |
| 5249 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 5250 | echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} |
| 5251 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 5252 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 5253 | { 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] | 5254 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;} |
| 5255 | ( |
| 5256 | cat <<\_ASBOX |
| 5257 | ## ------------------------------------ ## |
| 5258 | ## Report this to bug-autoconf@gnu.org. ## |
| 5259 | ## ------------------------------------ ## |
| 5260 | _ASBOX |
| 5261 | ) | |
| 5262 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5263 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5264 | esac |
| 5265 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 5266 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 5267 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5269 | else |
| 5270 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 5271 | fi |
| 5272 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 5273 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 5274 | |
| 5275 | fi |
| 5276 | if test $ac_cv_header_sys_mkdev_h = yes; then |
| 5277 | |
| 5278 | cat >>confdefs.h <<\_ACEOF |
| 5279 | #define MAJOR_IN_MKDEV 1 |
| 5280 | _ACEOF |
| 5281 | |
| 5282 | fi |
| 5283 | |
| 5284 | |
| 5285 | |
| 5286 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 5287 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 5288 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 5289 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 5290 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 5291 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5292 | fi |
| 5293 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 5294 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 5295 | else |
| 5296 | # Is the header compilable? |
| 5297 | echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 5298 | echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6 |
| 5299 | cat >conftest.$ac_ext <<_ACEOF |
| 5300 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5301 | /* confdefs.h. */ |
| 5302 | _ACEOF |
| 5303 | cat confdefs.h >>conftest.$ac_ext |
| 5304 | cat >>conftest.$ac_ext <<_ACEOF |
| 5305 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5306 | $ac_includes_default |
| 5307 | #include <sys/sysmacros.h> |
| 5308 | _ACEOF |
| 5309 | rm -f conftest.$ac_objext |
| 5310 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5311 | (eval $ac_compile) 2>&5 |
| 5312 | ac_status=$? |
| 5313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5314 | (exit $ac_status); } && |
| 5315 | { ac_try='test -s conftest.$ac_objext' |
| 5316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5317 | (eval $ac_try) 2>&5 |
| 5318 | ac_status=$? |
| 5319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5320 | (exit $ac_status); }; }; then |
| 5321 | ac_header_compiler=yes |
| 5322 | else |
| 5323 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5324 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5325 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5326 | ac_header_compiler=no |
| 5327 | fi |
| 5328 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5329 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5330 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5331 | |
| 5332 | # Is the header present? |
| 5333 | echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 5334 | echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6 |
| 5335 | cat >conftest.$ac_ext <<_ACEOF |
| 5336 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5337 | /* confdefs.h. */ |
| 5338 | _ACEOF |
| 5339 | cat confdefs.h >>conftest.$ac_ext |
| 5340 | cat >>conftest.$ac_ext <<_ACEOF |
| 5341 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5342 | #include <sys/sysmacros.h> |
| 5343 | _ACEOF |
| 5344 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5345 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5346 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5347 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5348 | rm -f conftest.er1 |
| 5349 | cat conftest.err >&5 |
| 5350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5351 | (exit $ac_status); } >/dev/null; then |
| 5352 | if test -s conftest.err; then |
| 5353 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5354 | else |
| 5355 | ac_cpp_err= |
| 5356 | fi |
| 5357 | else |
| 5358 | ac_cpp_err=yes |
| 5359 | fi |
| 5360 | if test -z "$ac_cpp_err"; then |
| 5361 | ac_header_preproc=yes |
| 5362 | else |
| 5363 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5364 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5365 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5366 | ac_header_preproc=no |
| 5367 | fi |
| 5368 | rm -f conftest.err conftest.$ac_ext |
| 5369 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5370 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5371 | |
| 5372 | # So? What about this header? |
| 5373 | case $ac_header_compiler:$ac_header_preproc in |
| 5374 | yes:no ) |
| 5375 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5376 | echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5377 | { 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] | 5378 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;} |
| 5379 | ( |
| 5380 | cat <<\_ASBOX |
| 5381 | ## ------------------------------------ ## |
| 5382 | ## Report this to bug-autoconf@gnu.org. ## |
| 5383 | ## ------------------------------------ ## |
| 5384 | _ASBOX |
| 5385 | ) | |
| 5386 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5387 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5388 | no:yes ) |
| 5389 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 5390 | echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} |
| 5391 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 5392 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 5393 | { 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] | 5394 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;} |
| 5395 | ( |
| 5396 | cat <<\_ASBOX |
| 5397 | ## ------------------------------------ ## |
| 5398 | ## Report this to bug-autoconf@gnu.org. ## |
| 5399 | ## ------------------------------------ ## |
| 5400 | _ASBOX |
| 5401 | ) | |
| 5402 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5403 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5404 | esac |
| 5405 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 5406 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 5407 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 5408 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5409 | else |
| 5410 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 5411 | fi |
| 5412 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 5413 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 5414 | |
| 5415 | fi |
| 5416 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
| 5417 | |
| 5418 | cat >>confdefs.h <<\_ACEOF |
| 5419 | #define MAJOR_IN_SYSMACROS 1 |
| 5420 | _ACEOF |
| 5421 | |
| 5422 | fi |
| 5423 | |
| 5424 | |
| 5425 | fi |
| 5426 | fi |
| 5427 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5428 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5429 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5430 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5431 | echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 5432 | echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6 |
| 5433 | cat >conftest.$ac_ext <<_ACEOF |
| 5434 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5435 | /* confdefs.h. */ |
| 5436 | _ACEOF |
| 5437 | cat confdefs.h >>conftest.$ac_ext |
| 5438 | cat >>conftest.$ac_ext <<_ACEOF |
| 5439 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5440 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5441 | |
| 5442 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5443 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5444 | $EGREP "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5445 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5446 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5447 | |
| 5448 | |
| 5449 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5450 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5451 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5452 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 5453 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5454 | fi |
| 5455 | rm -f conftest* |
| 5456 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5457 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 5458 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5459 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5460 | # Check whether using makedev requires defining _OSF_SOURCE |
| 5461 | echo "$as_me:$LINENO: checking for makedev" >&5 |
| 5462 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6 |
| 5463 | cat >conftest.$ac_ext <<_ACEOF |
| 5464 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5465 | /* confdefs.h. */ |
| 5466 | _ACEOF |
| 5467 | cat confdefs.h >>conftest.$ac_ext |
| 5468 | cat >>conftest.$ac_ext <<_ACEOF |
| 5469 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 5470 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5471 | int |
| 5472 | main () |
| 5473 | { |
| 5474 | makedev(0, 0) |
| 5475 | ; |
| 5476 | return 0; |
| 5477 | } |
| 5478 | _ACEOF |
| 5479 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5480 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5481 | (eval $ac_link) 2>&5 |
| 5482 | ac_status=$? |
| 5483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5484 | (exit $ac_status); } && |
| 5485 | { ac_try='test -s conftest$ac_exeext' |
| 5486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5487 | (eval $ac_try) 2>&5 |
| 5488 | ac_status=$? |
| 5489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5490 | (exit $ac_status); }; }; then |
| 5491 | ac_cv_has_makedev=yes |
| 5492 | else |
| 5493 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5494 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5495 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5496 | ac_cv_has_makedev=no |
| 5497 | fi |
| 5498 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5499 | if test "$ac_cv_has_makedev" = "no"; then |
| 5500 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 5501 | cat >conftest.$ac_ext <<_ACEOF |
| 5502 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5503 | /* confdefs.h. */ |
| 5504 | _ACEOF |
| 5505 | cat confdefs.h >>conftest.$ac_ext |
| 5506 | cat >>conftest.$ac_ext <<_ACEOF |
| 5507 | /* end confdefs.h. */ |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5508 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 5509 | #define _OSF_SOURCE 1 |
| 5510 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5511 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5512 | int |
| 5513 | main () |
| 5514 | { |
| 5515 | makedev(0, 0) |
| 5516 | ; |
| 5517 | return 0; |
| 5518 | } |
| 5519 | _ACEOF |
| 5520 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5521 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5522 | (eval $ac_link) 2>&5 |
| 5523 | ac_status=$? |
| 5524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5525 | (exit $ac_status); } && |
| 5526 | { ac_try='test -s conftest$ac_exeext' |
| 5527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5528 | (eval $ac_try) 2>&5 |
| 5529 | ac_status=$? |
| 5530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5531 | (exit $ac_status); }; }; then |
| 5532 | ac_cv_has_makedev=yes |
| 5533 | else |
| 5534 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5535 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5536 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5537 | ac_cv_has_makedev=no |
| 5538 | fi |
| 5539 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5540 | if test "$ac_cv_has_makedev" = "yes"; then |
| 5541 | |
| 5542 | cat >>confdefs.h <<\_ACEOF |
| 5543 | #define _OSF_SOURCE 1 |
| 5544 | _ACEOF |
| 5545 | |
| 5546 | fi |
| 5547 | fi |
| 5548 | echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 5549 | echo "${ECHO_T}$ac_cv_has_makedev" >&6 |
| 5550 | if test "$ac_cv_has_makedev" = "yes"; then |
| 5551 | |
| 5552 | cat >>confdefs.h <<\_ACEOF |
| 5553 | #define HAVE_MAKEDEV 1 |
| 5554 | _ACEOF |
| 5555 | |
| 5556 | fi |
| 5557 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5558 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 5559 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 5560 | # defined, but the compiler does not support pragma redefine_extname, |
| 5561 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 5562 | # structures (such as rlimit64) without declaring them. As a |
| 5563 | # work-around, disable LFS on such configurations |
| 5564 | |
| 5565 | use_lfs=yes |
| 5566 | echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 5567 | echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6 |
| 5568 | cat >conftest.$ac_ext <<_ACEOF |
| 5569 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5570 | /* confdefs.h. */ |
| 5571 | _ACEOF |
| 5572 | cat confdefs.h >>conftest.$ac_ext |
| 5573 | cat >>conftest.$ac_ext <<_ACEOF |
| 5574 | /* end confdefs.h. */ |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5575 | |
| 5576 | #define _LARGEFILE_SOURCE 1 |
| 5577 | #define _FILE_OFFSET_BITS 64 |
| 5578 | #include <sys/resource.h> |
| 5579 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5580 | int |
| 5581 | main () |
| 5582 | { |
| 5583 | struct rlimit foo; |
| 5584 | ; |
| 5585 | return 0; |
| 5586 | } |
| 5587 | _ACEOF |
| 5588 | rm -f conftest.$ac_objext |
| 5589 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5590 | (eval $ac_compile) 2>&5 |
| 5591 | ac_status=$? |
| 5592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5593 | (exit $ac_status); } && |
| 5594 | { ac_try='test -s conftest.$ac_objext' |
| 5595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5596 | (eval $ac_try) 2>&5 |
| 5597 | ac_status=$? |
| 5598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5599 | (exit $ac_status); }; }; then |
| 5600 | sol_lfs_bug=no |
| 5601 | else |
| 5602 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5603 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5604 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5605 | sol_lfs_bug=yes |
| 5606 | fi |
| 5607 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5608 | echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 5609 | echo "${ECHO_T}$sol_lfs_bug" >&6 |
| 5610 | if test "$sol_lfs_bug" = "yes"; then |
| 5611 | use_lfs=no |
| 5612 | fi |
| 5613 | |
| 5614 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5615 | # Two defines needed to enable largefile support on various platforms |
| 5616 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5617 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5618 | cat >>confdefs.h <<\_ACEOF |
| 5619 | #define _LARGEFILE_SOURCE 1 |
| 5620 | _ACEOF |
| 5621 | |
| 5622 | |
| 5623 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5624 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5625 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5626 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5627 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5628 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 5629 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 5630 | cat >> confdefs.h <<\EOF |
| 5631 | #if defined(SCO_DS) |
| 5632 | #undef _OFF_T |
| 5633 | #endif |
| 5634 | EOF |
| 5635 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5636 | # Type availability checks |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5637 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 5638 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 5639 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 5640 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5641 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5642 | cat >conftest.$ac_ext <<_ACEOF |
| 5643 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5644 | /* confdefs.h. */ |
| 5645 | _ACEOF |
| 5646 | cat confdefs.h >>conftest.$ac_ext |
| 5647 | cat >>conftest.$ac_ext <<_ACEOF |
| 5648 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5649 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5650 | int |
| 5651 | main () |
| 5652 | { |
| 5653 | if ((mode_t *) 0) |
| 5654 | return 0; |
| 5655 | if (sizeof (mode_t)) |
| 5656 | return 0; |
| 5657 | ; |
| 5658 | return 0; |
| 5659 | } |
| 5660 | _ACEOF |
| 5661 | rm -f conftest.$ac_objext |
| 5662 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5663 | (eval $ac_compile) 2>&5 |
| 5664 | ac_status=$? |
| 5665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5666 | (exit $ac_status); } && |
| 5667 | { ac_try='test -s conftest.$ac_objext' |
| 5668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5669 | (eval $ac_try) 2>&5 |
| 5670 | ac_status=$? |
| 5671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5672 | (exit $ac_status); }; }; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5673 | ac_cv_type_mode_t=yes |
| 5674 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5675 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5676 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5677 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5678 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5679 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5680 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5681 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5682 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 5683 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 5684 | if test $ac_cv_type_mode_t = yes; then |
| 5685 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5686 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5687 | |
| 5688 | cat >>confdefs.h <<_ACEOF |
| 5689 | #define mode_t int |
| 5690 | _ACEOF |
| 5691 | |
| 5692 | fi |
| 5693 | |
| 5694 | echo "$as_me:$LINENO: checking for off_t" >&5 |
| 5695 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 5696 | if test "${ac_cv_type_off_t+set}" = set; then |
| 5697 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5698 | else |
| 5699 | cat >conftest.$ac_ext <<_ACEOF |
| 5700 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5701 | /* confdefs.h. */ |
| 5702 | _ACEOF |
| 5703 | cat confdefs.h >>conftest.$ac_ext |
| 5704 | cat >>conftest.$ac_ext <<_ACEOF |
| 5705 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5706 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5707 | int |
| 5708 | main () |
| 5709 | { |
| 5710 | if ((off_t *) 0) |
| 5711 | return 0; |
| 5712 | if (sizeof (off_t)) |
| 5713 | return 0; |
| 5714 | ; |
| 5715 | return 0; |
| 5716 | } |
| 5717 | _ACEOF |
| 5718 | rm -f conftest.$ac_objext |
| 5719 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5720 | (eval $ac_compile) 2>&5 |
| 5721 | ac_status=$? |
| 5722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5723 | (exit $ac_status); } && |
| 5724 | { ac_try='test -s conftest.$ac_objext' |
| 5725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5726 | (eval $ac_try) 2>&5 |
| 5727 | ac_status=$? |
| 5728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5729 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5730 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5731 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5732 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5733 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5734 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5735 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5736 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5737 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5738 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5739 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 5740 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 5741 | if test $ac_cv_type_off_t = yes; then |
| 5742 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5743 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5744 | |
| 5745 | cat >>confdefs.h <<_ACEOF |
| 5746 | #define off_t long |
| 5747 | _ACEOF |
| 5748 | |
| 5749 | fi |
| 5750 | |
| 5751 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 5752 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 5753 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 5754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5755 | else |
| 5756 | cat >conftest.$ac_ext <<_ACEOF |
| 5757 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5758 | /* confdefs.h. */ |
| 5759 | _ACEOF |
| 5760 | cat confdefs.h >>conftest.$ac_ext |
| 5761 | cat >>conftest.$ac_ext <<_ACEOF |
| 5762 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5763 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5764 | int |
| 5765 | main () |
| 5766 | { |
| 5767 | if ((pid_t *) 0) |
| 5768 | return 0; |
| 5769 | if (sizeof (pid_t)) |
| 5770 | return 0; |
| 5771 | ; |
| 5772 | return 0; |
| 5773 | } |
| 5774 | _ACEOF |
| 5775 | rm -f conftest.$ac_objext |
| 5776 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5777 | (eval $ac_compile) 2>&5 |
| 5778 | ac_status=$? |
| 5779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5780 | (exit $ac_status); } && |
| 5781 | { ac_try='test -s conftest.$ac_objext' |
| 5782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5783 | (eval $ac_try) 2>&5 |
| 5784 | ac_status=$? |
| 5785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5786 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5787 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5788 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5789 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5790 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5791 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5792 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5793 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5794 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5795 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5796 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 5797 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 5798 | if test $ac_cv_type_pid_t = yes; then |
| 5799 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5800 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5801 | |
| 5802 | cat >>confdefs.h <<_ACEOF |
| 5803 | #define pid_t int |
| 5804 | _ACEOF |
| 5805 | |
| 5806 | fi |
| 5807 | |
| 5808 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 5809 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 5810 | if test "${ac_cv_type_signal+set}" = set; then |
| 5811 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5812 | else |
| 5813 | cat >conftest.$ac_ext <<_ACEOF |
| 5814 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5815 | /* confdefs.h. */ |
| 5816 | _ACEOF |
| 5817 | cat confdefs.h >>conftest.$ac_ext |
| 5818 | cat >>conftest.$ac_ext <<_ACEOF |
| 5819 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5820 | #include <sys/types.h> |
| 5821 | #include <signal.h> |
| 5822 | #ifdef signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5823 | # undef signal |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5824 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5825 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5826 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 5827 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5828 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5829 | #endif |
| 5830 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5831 | int |
| 5832 | main () |
| 5833 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5834 | int i; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5835 | ; |
| 5836 | return 0; |
| 5837 | } |
| 5838 | _ACEOF |
| 5839 | rm -f conftest.$ac_objext |
| 5840 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5841 | (eval $ac_compile) 2>&5 |
| 5842 | ac_status=$? |
| 5843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5844 | (exit $ac_status); } && |
| 5845 | { ac_try='test -s conftest.$ac_objext' |
| 5846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5847 | (eval $ac_try) 2>&5 |
| 5848 | ac_status=$? |
| 5849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5850 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5851 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5852 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5853 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5854 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5855 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5856 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5857 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5858 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5859 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5860 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 5861 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5862 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5863 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5864 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5865 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5866 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5867 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5868 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 5869 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 5870 | if test "${ac_cv_type_size_t+set}" = set; then |
| 5871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5872 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5873 | cat >conftest.$ac_ext <<_ACEOF |
| 5874 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5875 | /* confdefs.h. */ |
| 5876 | _ACEOF |
| 5877 | cat confdefs.h >>conftest.$ac_ext |
| 5878 | cat >>conftest.$ac_ext <<_ACEOF |
| 5879 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5880 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5881 | int |
| 5882 | main () |
| 5883 | { |
| 5884 | if ((size_t *) 0) |
| 5885 | return 0; |
| 5886 | if (sizeof (size_t)) |
| 5887 | return 0; |
| 5888 | ; |
| 5889 | return 0; |
| 5890 | } |
| 5891 | _ACEOF |
| 5892 | rm -f conftest.$ac_objext |
| 5893 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5894 | (eval $ac_compile) 2>&5 |
| 5895 | ac_status=$? |
| 5896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5897 | (exit $ac_status); } && |
| 5898 | { ac_try='test -s conftest.$ac_objext' |
| 5899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5900 | (eval $ac_try) 2>&5 |
| 5901 | ac_status=$? |
| 5902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5903 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5904 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5905 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5906 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5907 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5908 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5909 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5910 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5911 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5912 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5913 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 5914 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 5915 | if test $ac_cv_type_size_t = yes; then |
| 5916 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5917 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5918 | |
| 5919 | cat >>confdefs.h <<_ACEOF |
| 5920 | #define size_t unsigned |
| 5921 | _ACEOF |
| 5922 | |
| 5923 | fi |
| 5924 | |
| 5925 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 5926 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
| 5927 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 5928 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5929 | else |
| 5930 | cat >conftest.$ac_ext <<_ACEOF |
| 5931 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5932 | /* confdefs.h. */ |
| 5933 | _ACEOF |
| 5934 | cat confdefs.h >>conftest.$ac_ext |
| 5935 | cat >>conftest.$ac_ext <<_ACEOF |
| 5936 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5937 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5938 | |
| 5939 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5940 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5941 | $EGREP "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5942 | ac_cv_type_uid_t=yes |
| 5943 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5944 | ac_cv_type_uid_t=no |
| 5945 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5946 | rm -f conftest* |
| 5947 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5948 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5949 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 5950 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5951 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5952 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5953 | cat >>confdefs.h <<\_ACEOF |
| 5954 | #define uid_t int |
| 5955 | _ACEOF |
| 5956 | |
| 5957 | |
| 5958 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5959 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5960 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5961 | |
| 5962 | fi |
| 5963 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5964 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5965 | # Sizes of various common basic types |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5966 | echo "$as_me:$LINENO: checking for int" >&5 |
| 5967 | echo $ECHO_N "checking for int... $ECHO_C" >&6 |
| 5968 | if test "${ac_cv_type_int+set}" = set; then |
| 5969 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5970 | else |
| 5971 | cat >conftest.$ac_ext <<_ACEOF |
| 5972 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5973 | /* confdefs.h. */ |
| 5974 | _ACEOF |
| 5975 | cat confdefs.h >>conftest.$ac_ext |
| 5976 | cat >>conftest.$ac_ext <<_ACEOF |
| 5977 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5978 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5979 | int |
| 5980 | main () |
| 5981 | { |
| 5982 | if ((int *) 0) |
| 5983 | return 0; |
| 5984 | if (sizeof (int)) |
| 5985 | return 0; |
| 5986 | ; |
| 5987 | return 0; |
| 5988 | } |
| 5989 | _ACEOF |
| 5990 | rm -f conftest.$ac_objext |
| 5991 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5992 | (eval $ac_compile) 2>&5 |
| 5993 | ac_status=$? |
| 5994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5995 | (exit $ac_status); } && |
| 5996 | { ac_try='test -s conftest.$ac_objext' |
| 5997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5998 | (eval $ac_try) 2>&5 |
| 5999 | ac_status=$? |
| 6000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6001 | (exit $ac_status); }; }; then |
| 6002 | ac_cv_type_int=yes |
| 6003 | else |
| 6004 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6005 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6006 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6007 | ac_cv_type_int=no |
| 6008 | fi |
| 6009 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6010 | fi |
| 6011 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 6012 | echo "${ECHO_T}$ac_cv_type_int" >&6 |
| 6013 | |
| 6014 | echo "$as_me:$LINENO: checking size of int" >&5 |
| 6015 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| 6016 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 6017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6018 | else |
| 6019 | if test "$ac_cv_type_int" = yes; then |
| 6020 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6021 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6022 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6023 | # This bug is HP SR number 8606223364. |
| 6024 | if test "$cross_compiling" = yes; then |
| 6025 | # Depending upon the size, compute the lo and hi bounds. |
| 6026 | cat >conftest.$ac_ext <<_ACEOF |
| 6027 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6028 | /* confdefs.h. */ |
| 6029 | _ACEOF |
| 6030 | cat confdefs.h >>conftest.$ac_ext |
| 6031 | cat >>conftest.$ac_ext <<_ACEOF |
| 6032 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6033 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6034 | int |
| 6035 | main () |
| 6036 | { |
| 6037 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
| 6038 | test_array [0] = 0 |
| 6039 | |
| 6040 | ; |
| 6041 | return 0; |
| 6042 | } |
| 6043 | _ACEOF |
| 6044 | rm -f conftest.$ac_objext |
| 6045 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6046 | (eval $ac_compile) 2>&5 |
| 6047 | ac_status=$? |
| 6048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6049 | (exit $ac_status); } && |
| 6050 | { ac_try='test -s conftest.$ac_objext' |
| 6051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6052 | (eval $ac_try) 2>&5 |
| 6053 | ac_status=$? |
| 6054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6055 | (exit $ac_status); }; }; then |
| 6056 | ac_lo=0 ac_mid=0 |
| 6057 | while :; do |
| 6058 | cat >conftest.$ac_ext <<_ACEOF |
| 6059 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6060 | /* confdefs.h. */ |
| 6061 | _ACEOF |
| 6062 | cat confdefs.h >>conftest.$ac_ext |
| 6063 | cat >>conftest.$ac_ext <<_ACEOF |
| 6064 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6065 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6066 | int |
| 6067 | main () |
| 6068 | { |
| 6069 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 6070 | test_array [0] = 0 |
| 6071 | |
| 6072 | ; |
| 6073 | return 0; |
| 6074 | } |
| 6075 | _ACEOF |
| 6076 | rm -f conftest.$ac_objext |
| 6077 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6078 | (eval $ac_compile) 2>&5 |
| 6079 | ac_status=$? |
| 6080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6081 | (exit $ac_status); } && |
| 6082 | { ac_try='test -s conftest.$ac_objext' |
| 6083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6084 | (eval $ac_try) 2>&5 |
| 6085 | ac_status=$? |
| 6086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6087 | (exit $ac_status); }; }; then |
| 6088 | ac_hi=$ac_mid; break |
| 6089 | else |
| 6090 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6091 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6092 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6093 | ac_lo=`expr $ac_mid + 1` |
| 6094 | if test $ac_lo -le $ac_mid; then |
| 6095 | ac_lo= ac_hi= |
| 6096 | break |
| 6097 | fi |
| 6098 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6099 | fi |
| 6100 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6101 | done |
| 6102 | else |
| 6103 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6104 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6105 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6106 | cat >conftest.$ac_ext <<_ACEOF |
| 6107 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6108 | /* confdefs.h. */ |
| 6109 | _ACEOF |
| 6110 | cat confdefs.h >>conftest.$ac_ext |
| 6111 | cat >>conftest.$ac_ext <<_ACEOF |
| 6112 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6113 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6114 | int |
| 6115 | main () |
| 6116 | { |
| 6117 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
| 6118 | test_array [0] = 0 |
| 6119 | |
| 6120 | ; |
| 6121 | return 0; |
| 6122 | } |
| 6123 | _ACEOF |
| 6124 | rm -f conftest.$ac_objext |
| 6125 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6126 | (eval $ac_compile) 2>&5 |
| 6127 | ac_status=$? |
| 6128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6129 | (exit $ac_status); } && |
| 6130 | { ac_try='test -s conftest.$ac_objext' |
| 6131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6132 | (eval $ac_try) 2>&5 |
| 6133 | ac_status=$? |
| 6134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6135 | (exit $ac_status); }; }; then |
| 6136 | ac_hi=-1 ac_mid=-1 |
| 6137 | while :; do |
| 6138 | cat >conftest.$ac_ext <<_ACEOF |
| 6139 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6140 | /* confdefs.h. */ |
| 6141 | _ACEOF |
| 6142 | cat confdefs.h >>conftest.$ac_ext |
| 6143 | cat >>conftest.$ac_ext <<_ACEOF |
| 6144 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6145 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6146 | int |
| 6147 | main () |
| 6148 | { |
| 6149 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
| 6150 | test_array [0] = 0 |
| 6151 | |
| 6152 | ; |
| 6153 | return 0; |
| 6154 | } |
| 6155 | _ACEOF |
| 6156 | rm -f conftest.$ac_objext |
| 6157 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6158 | (eval $ac_compile) 2>&5 |
| 6159 | ac_status=$? |
| 6160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6161 | (exit $ac_status); } && |
| 6162 | { ac_try='test -s conftest.$ac_objext' |
| 6163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6164 | (eval $ac_try) 2>&5 |
| 6165 | ac_status=$? |
| 6166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6167 | (exit $ac_status); }; }; then |
| 6168 | ac_lo=$ac_mid; break |
| 6169 | else |
| 6170 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6171 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6172 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6173 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6174 | if test $ac_mid -le $ac_hi; then |
| 6175 | ac_lo= ac_hi= |
| 6176 | break |
| 6177 | fi |
| 6178 | ac_mid=`expr 2 '*' $ac_mid` |
| 6179 | fi |
| 6180 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6181 | done |
| 6182 | else |
| 6183 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6184 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6185 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6186 | ac_lo= ac_hi= |
| 6187 | fi |
| 6188 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6189 | fi |
| 6190 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6191 | # Binary search between lo and hi bounds. |
| 6192 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6193 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6194 | cat >conftest.$ac_ext <<_ACEOF |
| 6195 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6196 | /* confdefs.h. */ |
| 6197 | _ACEOF |
| 6198 | cat confdefs.h >>conftest.$ac_ext |
| 6199 | cat >>conftest.$ac_ext <<_ACEOF |
| 6200 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6201 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6202 | int |
| 6203 | main () |
| 6204 | { |
| 6205 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 6206 | test_array [0] = 0 |
| 6207 | |
| 6208 | ; |
| 6209 | return 0; |
| 6210 | } |
| 6211 | _ACEOF |
| 6212 | rm -f conftest.$ac_objext |
| 6213 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6214 | (eval $ac_compile) 2>&5 |
| 6215 | ac_status=$? |
| 6216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6217 | (exit $ac_status); } && |
| 6218 | { ac_try='test -s conftest.$ac_objext' |
| 6219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6220 | (eval $ac_try) 2>&5 |
| 6221 | ac_status=$? |
| 6222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6223 | (exit $ac_status); }; }; then |
| 6224 | ac_hi=$ac_mid |
| 6225 | else |
| 6226 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6227 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6228 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6229 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6230 | fi |
| 6231 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6232 | done |
| 6233 | case $ac_lo in |
| 6234 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6235 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
| 6236 | See \`config.log' for more details." >&5 |
| 6237 | echo "$as_me: error: cannot compute sizeof (int), 77 |
| 6238 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6239 | { (exit 1); exit 1; }; } ;; |
| 6240 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6241 | else |
| 6242 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6243 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 6244 | See \`config.log' for more details." >&5 |
| 6245 | echo "$as_me: error: cannot run test program while cross compiling |
| 6246 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6247 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6248 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6249 | cat >conftest.$ac_ext <<_ACEOF |
| 6250 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6251 | /* confdefs.h. */ |
| 6252 | _ACEOF |
| 6253 | cat confdefs.h >>conftest.$ac_ext |
| 6254 | cat >>conftest.$ac_ext <<_ACEOF |
| 6255 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6256 | $ac_includes_default |
| 6257 | long longval () { return (long) (sizeof (int)); } |
| 6258 | unsigned long ulongval () { return (long) (sizeof (int)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6259 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6260 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6261 | int |
| 6262 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6263 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6264 | |
| 6265 | FILE *f = fopen ("conftest.val", "w"); |
| 6266 | if (! f) |
| 6267 | exit (1); |
| 6268 | if (((long) (sizeof (int))) < 0) |
| 6269 | { |
| 6270 | long i = longval (); |
| 6271 | if (i != ((long) (sizeof (int)))) |
| 6272 | exit (1); |
| 6273 | fprintf (f, "%ld\n", i); |
| 6274 | } |
| 6275 | else |
| 6276 | { |
| 6277 | unsigned long i = ulongval (); |
| 6278 | if (i != ((long) (sizeof (int)))) |
| 6279 | exit (1); |
| 6280 | fprintf (f, "%lu\n", i); |
| 6281 | } |
| 6282 | exit (ferror (f) || fclose (f) != 0); |
| 6283 | |
| 6284 | ; |
| 6285 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6286 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6287 | _ACEOF |
| 6288 | rm -f conftest$ac_exeext |
| 6289 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6290 | (eval $ac_link) 2>&5 |
| 6291 | ac_status=$? |
| 6292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6293 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6295 | (eval $ac_try) 2>&5 |
| 6296 | ac_status=$? |
| 6297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6298 | (exit $ac_status); }; }; then |
| 6299 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6300 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6301 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6302 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6303 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6304 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6305 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6306 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
| 6307 | See \`config.log' for more details." >&5 |
| 6308 | echo "$as_me: error: cannot compute sizeof (int), 77 |
| 6309 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6310 | { (exit 1); exit 1; }; } |
| 6311 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6312 | 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] | 6313 | fi |
| 6314 | fi |
| 6315 | rm -f conftest.val |
| 6316 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6317 | ac_cv_sizeof_int=0 |
| 6318 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6319 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6320 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 6321 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| 6322 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6323 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6324 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6325 | |
| 6326 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6327 | echo "$as_me:$LINENO: checking for long" >&5 |
| 6328 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
| 6329 | if test "${ac_cv_type_long+set}" = set; then |
| 6330 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6331 | else |
| 6332 | cat >conftest.$ac_ext <<_ACEOF |
| 6333 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6334 | /* confdefs.h. */ |
| 6335 | _ACEOF |
| 6336 | cat confdefs.h >>conftest.$ac_ext |
| 6337 | cat >>conftest.$ac_ext <<_ACEOF |
| 6338 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6339 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6340 | int |
| 6341 | main () |
| 6342 | { |
| 6343 | if ((long *) 0) |
| 6344 | return 0; |
| 6345 | if (sizeof (long)) |
| 6346 | return 0; |
| 6347 | ; |
| 6348 | return 0; |
| 6349 | } |
| 6350 | _ACEOF |
| 6351 | rm -f conftest.$ac_objext |
| 6352 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6353 | (eval $ac_compile) 2>&5 |
| 6354 | ac_status=$? |
| 6355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6356 | (exit $ac_status); } && |
| 6357 | { ac_try='test -s conftest.$ac_objext' |
| 6358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6359 | (eval $ac_try) 2>&5 |
| 6360 | ac_status=$? |
| 6361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6362 | (exit $ac_status); }; }; then |
| 6363 | ac_cv_type_long=yes |
| 6364 | else |
| 6365 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6366 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6367 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6368 | ac_cv_type_long=no |
| 6369 | fi |
| 6370 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6371 | fi |
| 6372 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 6373 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
| 6374 | |
| 6375 | echo "$as_me:$LINENO: checking size of long" >&5 |
| 6376 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
| 6377 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 6378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6379 | else |
| 6380 | if test "$ac_cv_type_long" = yes; then |
| 6381 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6382 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6383 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6384 | # This bug is HP SR number 8606223364. |
| 6385 | if test "$cross_compiling" = yes; then |
| 6386 | # Depending upon the size, compute the lo and hi bounds. |
| 6387 | cat >conftest.$ac_ext <<_ACEOF |
| 6388 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6389 | /* confdefs.h. */ |
| 6390 | _ACEOF |
| 6391 | cat confdefs.h >>conftest.$ac_ext |
| 6392 | cat >>conftest.$ac_ext <<_ACEOF |
| 6393 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6394 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6395 | int |
| 6396 | main () |
| 6397 | { |
| 6398 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
| 6399 | test_array [0] = 0 |
| 6400 | |
| 6401 | ; |
| 6402 | return 0; |
| 6403 | } |
| 6404 | _ACEOF |
| 6405 | rm -f conftest.$ac_objext |
| 6406 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6407 | (eval $ac_compile) 2>&5 |
| 6408 | ac_status=$? |
| 6409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6410 | (exit $ac_status); } && |
| 6411 | { ac_try='test -s conftest.$ac_objext' |
| 6412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6413 | (eval $ac_try) 2>&5 |
| 6414 | ac_status=$? |
| 6415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6416 | (exit $ac_status); }; }; then |
| 6417 | ac_lo=0 ac_mid=0 |
| 6418 | while :; do |
| 6419 | cat >conftest.$ac_ext <<_ACEOF |
| 6420 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6421 | /* confdefs.h. */ |
| 6422 | _ACEOF |
| 6423 | cat confdefs.h >>conftest.$ac_ext |
| 6424 | cat >>conftest.$ac_ext <<_ACEOF |
| 6425 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6426 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6427 | int |
| 6428 | main () |
| 6429 | { |
| 6430 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 6431 | test_array [0] = 0 |
| 6432 | |
| 6433 | ; |
| 6434 | return 0; |
| 6435 | } |
| 6436 | _ACEOF |
| 6437 | rm -f conftest.$ac_objext |
| 6438 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6439 | (eval $ac_compile) 2>&5 |
| 6440 | ac_status=$? |
| 6441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6442 | (exit $ac_status); } && |
| 6443 | { ac_try='test -s conftest.$ac_objext' |
| 6444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6445 | (eval $ac_try) 2>&5 |
| 6446 | ac_status=$? |
| 6447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6448 | (exit $ac_status); }; }; then |
| 6449 | ac_hi=$ac_mid; break |
| 6450 | else |
| 6451 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6452 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6453 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6454 | ac_lo=`expr $ac_mid + 1` |
| 6455 | if test $ac_lo -le $ac_mid; then |
| 6456 | ac_lo= ac_hi= |
| 6457 | break |
| 6458 | fi |
| 6459 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6460 | fi |
| 6461 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6462 | done |
| 6463 | else |
| 6464 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6465 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6466 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6467 | cat >conftest.$ac_ext <<_ACEOF |
| 6468 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6469 | /* confdefs.h. */ |
| 6470 | _ACEOF |
| 6471 | cat confdefs.h >>conftest.$ac_ext |
| 6472 | cat >>conftest.$ac_ext <<_ACEOF |
| 6473 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6474 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6475 | int |
| 6476 | main () |
| 6477 | { |
| 6478 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
| 6479 | test_array [0] = 0 |
| 6480 | |
| 6481 | ; |
| 6482 | return 0; |
| 6483 | } |
| 6484 | _ACEOF |
| 6485 | rm -f conftest.$ac_objext |
| 6486 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6487 | (eval $ac_compile) 2>&5 |
| 6488 | ac_status=$? |
| 6489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6490 | (exit $ac_status); } && |
| 6491 | { ac_try='test -s conftest.$ac_objext' |
| 6492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6493 | (eval $ac_try) 2>&5 |
| 6494 | ac_status=$? |
| 6495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6496 | (exit $ac_status); }; }; then |
| 6497 | ac_hi=-1 ac_mid=-1 |
| 6498 | while :; do |
| 6499 | cat >conftest.$ac_ext <<_ACEOF |
| 6500 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6501 | /* confdefs.h. */ |
| 6502 | _ACEOF |
| 6503 | cat confdefs.h >>conftest.$ac_ext |
| 6504 | cat >>conftest.$ac_ext <<_ACEOF |
| 6505 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6506 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6507 | int |
| 6508 | main () |
| 6509 | { |
| 6510 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
| 6511 | test_array [0] = 0 |
| 6512 | |
| 6513 | ; |
| 6514 | return 0; |
| 6515 | } |
| 6516 | _ACEOF |
| 6517 | rm -f conftest.$ac_objext |
| 6518 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6519 | (eval $ac_compile) 2>&5 |
| 6520 | ac_status=$? |
| 6521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6522 | (exit $ac_status); } && |
| 6523 | { ac_try='test -s conftest.$ac_objext' |
| 6524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6525 | (eval $ac_try) 2>&5 |
| 6526 | ac_status=$? |
| 6527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6528 | (exit $ac_status); }; }; then |
| 6529 | ac_lo=$ac_mid; break |
| 6530 | else |
| 6531 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6532 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6533 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6534 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6535 | if test $ac_mid -le $ac_hi; then |
| 6536 | ac_lo= ac_hi= |
| 6537 | break |
| 6538 | fi |
| 6539 | ac_mid=`expr 2 '*' $ac_mid` |
| 6540 | fi |
| 6541 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6542 | done |
| 6543 | else |
| 6544 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6545 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6546 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6547 | ac_lo= ac_hi= |
| 6548 | fi |
| 6549 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6550 | fi |
| 6551 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6552 | # Binary search between lo and hi bounds. |
| 6553 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6554 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6555 | cat >conftest.$ac_ext <<_ACEOF |
| 6556 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6557 | /* confdefs.h. */ |
| 6558 | _ACEOF |
| 6559 | cat confdefs.h >>conftest.$ac_ext |
| 6560 | cat >>conftest.$ac_ext <<_ACEOF |
| 6561 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6562 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6563 | int |
| 6564 | main () |
| 6565 | { |
| 6566 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 6567 | test_array [0] = 0 |
| 6568 | |
| 6569 | ; |
| 6570 | return 0; |
| 6571 | } |
| 6572 | _ACEOF |
| 6573 | rm -f conftest.$ac_objext |
| 6574 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6575 | (eval $ac_compile) 2>&5 |
| 6576 | ac_status=$? |
| 6577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6578 | (exit $ac_status); } && |
| 6579 | { ac_try='test -s conftest.$ac_objext' |
| 6580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6581 | (eval $ac_try) 2>&5 |
| 6582 | ac_status=$? |
| 6583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6584 | (exit $ac_status); }; }; then |
| 6585 | ac_hi=$ac_mid |
| 6586 | else |
| 6587 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6588 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6589 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6590 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6591 | fi |
| 6592 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6593 | done |
| 6594 | case $ac_lo in |
| 6595 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6596 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
| 6597 | See \`config.log' for more details." >&5 |
| 6598 | echo "$as_me: error: cannot compute sizeof (long), 77 |
| 6599 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6600 | { (exit 1); exit 1; }; } ;; |
| 6601 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6602 | else |
| 6603 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6604 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 6605 | See \`config.log' for more details." >&5 |
| 6606 | echo "$as_me: error: cannot run test program while cross compiling |
| 6607 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6608 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6609 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6610 | cat >conftest.$ac_ext <<_ACEOF |
| 6611 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6612 | /* confdefs.h. */ |
| 6613 | _ACEOF |
| 6614 | cat confdefs.h >>conftest.$ac_ext |
| 6615 | cat >>conftest.$ac_ext <<_ACEOF |
| 6616 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6617 | $ac_includes_default |
| 6618 | long longval () { return (long) (sizeof (long)); } |
| 6619 | unsigned long ulongval () { return (long) (sizeof (long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6620 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6621 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6622 | int |
| 6623 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6624 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6625 | |
| 6626 | FILE *f = fopen ("conftest.val", "w"); |
| 6627 | if (! f) |
| 6628 | exit (1); |
| 6629 | if (((long) (sizeof (long))) < 0) |
| 6630 | { |
| 6631 | long i = longval (); |
| 6632 | if (i != ((long) (sizeof (long)))) |
| 6633 | exit (1); |
| 6634 | fprintf (f, "%ld\n", i); |
| 6635 | } |
| 6636 | else |
| 6637 | { |
| 6638 | unsigned long i = ulongval (); |
| 6639 | if (i != ((long) (sizeof (long)))) |
| 6640 | exit (1); |
| 6641 | fprintf (f, "%lu\n", i); |
| 6642 | } |
| 6643 | exit (ferror (f) || fclose (f) != 0); |
| 6644 | |
| 6645 | ; |
| 6646 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6647 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6648 | _ACEOF |
| 6649 | rm -f conftest$ac_exeext |
| 6650 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6651 | (eval $ac_link) 2>&5 |
| 6652 | ac_status=$? |
| 6653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6654 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6656 | (eval $ac_try) 2>&5 |
| 6657 | ac_status=$? |
| 6658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6659 | (exit $ac_status); }; }; then |
| 6660 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6661 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6662 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6663 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6664 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6665 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6666 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6667 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
| 6668 | See \`config.log' for more details." >&5 |
| 6669 | echo "$as_me: error: cannot compute sizeof (long), 77 |
| 6670 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6671 | { (exit 1); exit 1; }; } |
| 6672 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6673 | 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] | 6674 | fi |
| 6675 | fi |
| 6676 | rm -f conftest.val |
| 6677 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6678 | ac_cv_sizeof_long=0 |
| 6679 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6680 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6681 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 6682 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
| 6683 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6684 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6685 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6686 | |
| 6687 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6688 | echo "$as_me:$LINENO: checking for void *" >&5 |
| 6689 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 |
| 6690 | if test "${ac_cv_type_void_p+set}" = set; then |
| 6691 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6692 | else |
| 6693 | cat >conftest.$ac_ext <<_ACEOF |
| 6694 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6695 | /* confdefs.h. */ |
| 6696 | _ACEOF |
| 6697 | cat confdefs.h >>conftest.$ac_ext |
| 6698 | cat >>conftest.$ac_ext <<_ACEOF |
| 6699 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6700 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6701 | int |
| 6702 | main () |
| 6703 | { |
| 6704 | if ((void * *) 0) |
| 6705 | return 0; |
| 6706 | if (sizeof (void *)) |
| 6707 | return 0; |
| 6708 | ; |
| 6709 | return 0; |
| 6710 | } |
| 6711 | _ACEOF |
| 6712 | rm -f conftest.$ac_objext |
| 6713 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6714 | (eval $ac_compile) 2>&5 |
| 6715 | ac_status=$? |
| 6716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6717 | (exit $ac_status); } && |
| 6718 | { ac_try='test -s conftest.$ac_objext' |
| 6719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6720 | (eval $ac_try) 2>&5 |
| 6721 | ac_status=$? |
| 6722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6723 | (exit $ac_status); }; }; then |
| 6724 | ac_cv_type_void_p=yes |
| 6725 | else |
| 6726 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6727 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6728 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6729 | ac_cv_type_void_p=no |
| 6730 | fi |
| 6731 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6732 | fi |
| 6733 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 6734 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 |
| 6735 | |
| 6736 | echo "$as_me:$LINENO: checking size of void *" >&5 |
| 6737 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 |
| 6738 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
| 6739 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6740 | else |
| 6741 | if test "$ac_cv_type_void_p" = yes; then |
| 6742 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6743 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6744 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6745 | # This bug is HP SR number 8606223364. |
| 6746 | if test "$cross_compiling" = yes; then |
| 6747 | # Depending upon the size, compute the lo and hi bounds. |
| 6748 | cat >conftest.$ac_ext <<_ACEOF |
| 6749 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6750 | /* confdefs.h. */ |
| 6751 | _ACEOF |
| 6752 | cat confdefs.h >>conftest.$ac_ext |
| 6753 | cat >>conftest.$ac_ext <<_ACEOF |
| 6754 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6755 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6756 | int |
| 6757 | main () |
| 6758 | { |
| 6759 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
| 6760 | test_array [0] = 0 |
| 6761 | |
| 6762 | ; |
| 6763 | return 0; |
| 6764 | } |
| 6765 | _ACEOF |
| 6766 | rm -f conftest.$ac_objext |
| 6767 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6768 | (eval $ac_compile) 2>&5 |
| 6769 | ac_status=$? |
| 6770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6771 | (exit $ac_status); } && |
| 6772 | { ac_try='test -s conftest.$ac_objext' |
| 6773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6774 | (eval $ac_try) 2>&5 |
| 6775 | ac_status=$? |
| 6776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6777 | (exit $ac_status); }; }; then |
| 6778 | ac_lo=0 ac_mid=0 |
| 6779 | while :; do |
| 6780 | cat >conftest.$ac_ext <<_ACEOF |
| 6781 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6782 | /* confdefs.h. */ |
| 6783 | _ACEOF |
| 6784 | cat confdefs.h >>conftest.$ac_ext |
| 6785 | cat >>conftest.$ac_ext <<_ACEOF |
| 6786 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6787 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6788 | int |
| 6789 | main () |
| 6790 | { |
| 6791 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 6792 | test_array [0] = 0 |
| 6793 | |
| 6794 | ; |
| 6795 | return 0; |
| 6796 | } |
| 6797 | _ACEOF |
| 6798 | rm -f conftest.$ac_objext |
| 6799 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6800 | (eval $ac_compile) 2>&5 |
| 6801 | ac_status=$? |
| 6802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6803 | (exit $ac_status); } && |
| 6804 | { ac_try='test -s conftest.$ac_objext' |
| 6805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6806 | (eval $ac_try) 2>&5 |
| 6807 | ac_status=$? |
| 6808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6809 | (exit $ac_status); }; }; then |
| 6810 | ac_hi=$ac_mid; break |
| 6811 | else |
| 6812 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6813 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6814 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6815 | ac_lo=`expr $ac_mid + 1` |
| 6816 | if test $ac_lo -le $ac_mid; then |
| 6817 | ac_lo= ac_hi= |
| 6818 | break |
| 6819 | fi |
| 6820 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6821 | fi |
| 6822 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6823 | done |
| 6824 | else |
| 6825 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6826 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6827 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6828 | cat >conftest.$ac_ext <<_ACEOF |
| 6829 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6830 | /* confdefs.h. */ |
| 6831 | _ACEOF |
| 6832 | cat confdefs.h >>conftest.$ac_ext |
| 6833 | cat >>conftest.$ac_ext <<_ACEOF |
| 6834 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6835 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6836 | int |
| 6837 | main () |
| 6838 | { |
| 6839 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
| 6840 | test_array [0] = 0 |
| 6841 | |
| 6842 | ; |
| 6843 | return 0; |
| 6844 | } |
| 6845 | _ACEOF |
| 6846 | rm -f conftest.$ac_objext |
| 6847 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6848 | (eval $ac_compile) 2>&5 |
| 6849 | ac_status=$? |
| 6850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6851 | (exit $ac_status); } && |
| 6852 | { ac_try='test -s conftest.$ac_objext' |
| 6853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6854 | (eval $ac_try) 2>&5 |
| 6855 | ac_status=$? |
| 6856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6857 | (exit $ac_status); }; }; then |
| 6858 | ac_hi=-1 ac_mid=-1 |
| 6859 | while :; do |
| 6860 | cat >conftest.$ac_ext <<_ACEOF |
| 6861 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6862 | /* confdefs.h. */ |
| 6863 | _ACEOF |
| 6864 | cat confdefs.h >>conftest.$ac_ext |
| 6865 | cat >>conftest.$ac_ext <<_ACEOF |
| 6866 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6867 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6868 | int |
| 6869 | main () |
| 6870 | { |
| 6871 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
| 6872 | test_array [0] = 0 |
| 6873 | |
| 6874 | ; |
| 6875 | return 0; |
| 6876 | } |
| 6877 | _ACEOF |
| 6878 | rm -f conftest.$ac_objext |
| 6879 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6880 | (eval $ac_compile) 2>&5 |
| 6881 | ac_status=$? |
| 6882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6883 | (exit $ac_status); } && |
| 6884 | { ac_try='test -s conftest.$ac_objext' |
| 6885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6886 | (eval $ac_try) 2>&5 |
| 6887 | ac_status=$? |
| 6888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6889 | (exit $ac_status); }; }; then |
| 6890 | ac_lo=$ac_mid; break |
| 6891 | else |
| 6892 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6893 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6894 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6895 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6896 | if test $ac_mid -le $ac_hi; then |
| 6897 | ac_lo= ac_hi= |
| 6898 | break |
| 6899 | fi |
| 6900 | ac_mid=`expr 2 '*' $ac_mid` |
| 6901 | fi |
| 6902 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6903 | done |
| 6904 | else |
| 6905 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6906 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6907 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6908 | ac_lo= ac_hi= |
| 6909 | fi |
| 6910 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6911 | fi |
| 6912 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6913 | # Binary search between lo and hi bounds. |
| 6914 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6915 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6916 | cat >conftest.$ac_ext <<_ACEOF |
| 6917 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6918 | /* confdefs.h. */ |
| 6919 | _ACEOF |
| 6920 | cat confdefs.h >>conftest.$ac_ext |
| 6921 | cat >>conftest.$ac_ext <<_ACEOF |
| 6922 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6923 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6924 | int |
| 6925 | main () |
| 6926 | { |
| 6927 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 6928 | test_array [0] = 0 |
| 6929 | |
| 6930 | ; |
| 6931 | return 0; |
| 6932 | } |
| 6933 | _ACEOF |
| 6934 | rm -f conftest.$ac_objext |
| 6935 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6936 | (eval $ac_compile) 2>&5 |
| 6937 | ac_status=$? |
| 6938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6939 | (exit $ac_status); } && |
| 6940 | { ac_try='test -s conftest.$ac_objext' |
| 6941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6942 | (eval $ac_try) 2>&5 |
| 6943 | ac_status=$? |
| 6944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6945 | (exit $ac_status); }; }; then |
| 6946 | ac_hi=$ac_mid |
| 6947 | else |
| 6948 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6949 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6950 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6951 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6952 | fi |
| 6953 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6954 | done |
| 6955 | case $ac_lo in |
| 6956 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6957 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
| 6958 | See \`config.log' for more details." >&5 |
| 6959 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
| 6960 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6961 | { (exit 1); exit 1; }; } ;; |
| 6962 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6963 | else |
| 6964 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6965 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 6966 | See \`config.log' for more details." >&5 |
| 6967 | echo "$as_me: error: cannot run test program while cross compiling |
| 6968 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6969 | { (exit 1); exit 1; }; } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6970 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6971 | cat >conftest.$ac_ext <<_ACEOF |
| 6972 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6973 | /* confdefs.h. */ |
| 6974 | _ACEOF |
| 6975 | cat confdefs.h >>conftest.$ac_ext |
| 6976 | cat >>conftest.$ac_ext <<_ACEOF |
| 6977 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6978 | $ac_includes_default |
| 6979 | long longval () { return (long) (sizeof (void *)); } |
| 6980 | unsigned long ulongval () { return (long) (sizeof (void *)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6981 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6982 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6983 | int |
| 6984 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6985 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6986 | |
| 6987 | FILE *f = fopen ("conftest.val", "w"); |
| 6988 | if (! f) |
| 6989 | exit (1); |
| 6990 | if (((long) (sizeof (void *))) < 0) |
| 6991 | { |
| 6992 | long i = longval (); |
| 6993 | if (i != ((long) (sizeof (void *)))) |
| 6994 | exit (1); |
| 6995 | fprintf (f, "%ld\n", i); |
| 6996 | } |
| 6997 | else |
| 6998 | { |
| 6999 | unsigned long i = ulongval (); |
| 7000 | if (i != ((long) (sizeof (void *)))) |
| 7001 | exit (1); |
| 7002 | fprintf (f, "%lu\n", i); |
| 7003 | } |
| 7004 | exit (ferror (f) || fclose (f) != 0); |
| 7005 | |
| 7006 | ; |
| 7007 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7008 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7009 | _ACEOF |
| 7010 | rm -f conftest$ac_exeext |
| 7011 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7012 | (eval $ac_link) 2>&5 |
| 7013 | ac_status=$? |
| 7014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7015 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7017 | (eval $ac_try) 2>&5 |
| 7018 | ac_status=$? |
| 7019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7020 | (exit $ac_status); }; }; then |
| 7021 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7022 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7023 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7024 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7025 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7026 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7027 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7028 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
| 7029 | See \`config.log' for more details." >&5 |
| 7030 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
| 7031 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7032 | { (exit 1); exit 1; }; } |
| 7033 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7034 | 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] | 7035 | fi |
| 7036 | fi |
| 7037 | rm -f conftest.val |
| 7038 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7039 | ac_cv_sizeof_void_p=0 |
| 7040 | fi |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7041 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7042 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 7043 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 |
| 7044 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7045 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7046 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7047 | |
| 7048 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7049 | echo "$as_me:$LINENO: checking for char" >&5 |
| 7050 | echo $ECHO_N "checking for char... $ECHO_C" >&6 |
| 7051 | if test "${ac_cv_type_char+set}" = set; then |
| 7052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7053 | else |
| 7054 | cat >conftest.$ac_ext <<_ACEOF |
| 7055 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7056 | /* confdefs.h. */ |
| 7057 | _ACEOF |
| 7058 | cat confdefs.h >>conftest.$ac_ext |
| 7059 | cat >>conftest.$ac_ext <<_ACEOF |
| 7060 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7061 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7062 | int |
| 7063 | main () |
| 7064 | { |
| 7065 | if ((char *) 0) |
| 7066 | return 0; |
| 7067 | if (sizeof (char)) |
| 7068 | return 0; |
| 7069 | ; |
| 7070 | return 0; |
| 7071 | } |
| 7072 | _ACEOF |
| 7073 | rm -f conftest.$ac_objext |
| 7074 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7075 | (eval $ac_compile) 2>&5 |
| 7076 | ac_status=$? |
| 7077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7078 | (exit $ac_status); } && |
| 7079 | { ac_try='test -s conftest.$ac_objext' |
| 7080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7081 | (eval $ac_try) 2>&5 |
| 7082 | ac_status=$? |
| 7083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7084 | (exit $ac_status); }; }; then |
| 7085 | ac_cv_type_char=yes |
| 7086 | else |
| 7087 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7088 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7089 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7090 | ac_cv_type_char=no |
| 7091 | fi |
| 7092 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7093 | fi |
| 7094 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 |
| 7095 | echo "${ECHO_T}$ac_cv_type_char" >&6 |
| 7096 | |
| 7097 | echo "$as_me:$LINENO: checking size of char" >&5 |
| 7098 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 |
| 7099 | if test "${ac_cv_sizeof_char+set}" = set; then |
| 7100 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7101 | else |
| 7102 | if test "$ac_cv_type_char" = yes; then |
| 7103 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7104 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7105 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7106 | # This bug is HP SR number 8606223364. |
| 7107 | if test "$cross_compiling" = yes; then |
| 7108 | # Depending upon the size, compute the lo and hi bounds. |
| 7109 | cat >conftest.$ac_ext <<_ACEOF |
| 7110 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7111 | /* confdefs.h. */ |
| 7112 | _ACEOF |
| 7113 | cat confdefs.h >>conftest.$ac_ext |
| 7114 | cat >>conftest.$ac_ext <<_ACEOF |
| 7115 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7116 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7117 | int |
| 7118 | main () |
| 7119 | { |
| 7120 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; |
| 7121 | test_array [0] = 0 |
| 7122 | |
| 7123 | ; |
| 7124 | return 0; |
| 7125 | } |
| 7126 | _ACEOF |
| 7127 | rm -f conftest.$ac_objext |
| 7128 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7129 | (eval $ac_compile) 2>&5 |
| 7130 | ac_status=$? |
| 7131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7132 | (exit $ac_status); } && |
| 7133 | { ac_try='test -s conftest.$ac_objext' |
| 7134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7135 | (eval $ac_try) 2>&5 |
| 7136 | ac_status=$? |
| 7137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7138 | (exit $ac_status); }; }; then |
| 7139 | ac_lo=0 ac_mid=0 |
| 7140 | while :; do |
| 7141 | cat >conftest.$ac_ext <<_ACEOF |
| 7142 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7143 | /* confdefs.h. */ |
| 7144 | _ACEOF |
| 7145 | cat confdefs.h >>conftest.$ac_ext |
| 7146 | cat >>conftest.$ac_ext <<_ACEOF |
| 7147 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7148 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7149 | int |
| 7150 | main () |
| 7151 | { |
| 7152 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 7153 | test_array [0] = 0 |
| 7154 | |
| 7155 | ; |
| 7156 | return 0; |
| 7157 | } |
| 7158 | _ACEOF |
| 7159 | rm -f conftest.$ac_objext |
| 7160 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7161 | (eval $ac_compile) 2>&5 |
| 7162 | ac_status=$? |
| 7163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7164 | (exit $ac_status); } && |
| 7165 | { ac_try='test -s conftest.$ac_objext' |
| 7166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7167 | (eval $ac_try) 2>&5 |
| 7168 | ac_status=$? |
| 7169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7170 | (exit $ac_status); }; }; then |
| 7171 | ac_hi=$ac_mid; break |
| 7172 | else |
| 7173 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7174 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7175 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7176 | ac_lo=`expr $ac_mid + 1` |
| 7177 | if test $ac_lo -le $ac_mid; then |
| 7178 | ac_lo= ac_hi= |
| 7179 | break |
| 7180 | fi |
| 7181 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7182 | fi |
| 7183 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7184 | done |
| 7185 | else |
| 7186 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7187 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7188 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7189 | cat >conftest.$ac_ext <<_ACEOF |
| 7190 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7191 | /* confdefs.h. */ |
| 7192 | _ACEOF |
| 7193 | cat confdefs.h >>conftest.$ac_ext |
| 7194 | cat >>conftest.$ac_ext <<_ACEOF |
| 7195 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7196 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7197 | int |
| 7198 | main () |
| 7199 | { |
| 7200 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; |
| 7201 | test_array [0] = 0 |
| 7202 | |
| 7203 | ; |
| 7204 | return 0; |
| 7205 | } |
| 7206 | _ACEOF |
| 7207 | rm -f conftest.$ac_objext |
| 7208 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7209 | (eval $ac_compile) 2>&5 |
| 7210 | ac_status=$? |
| 7211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7212 | (exit $ac_status); } && |
| 7213 | { ac_try='test -s conftest.$ac_objext' |
| 7214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7215 | (eval $ac_try) 2>&5 |
| 7216 | ac_status=$? |
| 7217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7218 | (exit $ac_status); }; }; then |
| 7219 | ac_hi=-1 ac_mid=-1 |
| 7220 | while :; do |
| 7221 | cat >conftest.$ac_ext <<_ACEOF |
| 7222 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7223 | /* confdefs.h. */ |
| 7224 | _ACEOF |
| 7225 | cat confdefs.h >>conftest.$ac_ext |
| 7226 | cat >>conftest.$ac_ext <<_ACEOF |
| 7227 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7228 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7229 | int |
| 7230 | main () |
| 7231 | { |
| 7232 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; |
| 7233 | test_array [0] = 0 |
| 7234 | |
| 7235 | ; |
| 7236 | return 0; |
| 7237 | } |
| 7238 | _ACEOF |
| 7239 | rm -f conftest.$ac_objext |
| 7240 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7241 | (eval $ac_compile) 2>&5 |
| 7242 | ac_status=$? |
| 7243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7244 | (exit $ac_status); } && |
| 7245 | { ac_try='test -s conftest.$ac_objext' |
| 7246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7247 | (eval $ac_try) 2>&5 |
| 7248 | ac_status=$? |
| 7249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7250 | (exit $ac_status); }; }; then |
| 7251 | ac_lo=$ac_mid; break |
| 7252 | else |
| 7253 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7254 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7255 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7256 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7257 | if test $ac_mid -le $ac_hi; then |
| 7258 | ac_lo= ac_hi= |
| 7259 | break |
| 7260 | fi |
| 7261 | ac_mid=`expr 2 '*' $ac_mid` |
| 7262 | fi |
| 7263 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7264 | done |
| 7265 | else |
| 7266 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7267 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7268 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7269 | ac_lo= ac_hi= |
| 7270 | fi |
| 7271 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7272 | fi |
| 7273 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7274 | # Binary search between lo and hi bounds. |
| 7275 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7276 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7277 | cat >conftest.$ac_ext <<_ACEOF |
| 7278 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7279 | /* confdefs.h. */ |
| 7280 | _ACEOF |
| 7281 | cat confdefs.h >>conftest.$ac_ext |
| 7282 | cat >>conftest.$ac_ext <<_ACEOF |
| 7283 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7284 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7285 | int |
| 7286 | main () |
| 7287 | { |
| 7288 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 7289 | test_array [0] = 0 |
| 7290 | |
| 7291 | ; |
| 7292 | return 0; |
| 7293 | } |
| 7294 | _ACEOF |
| 7295 | rm -f conftest.$ac_objext |
| 7296 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7297 | (eval $ac_compile) 2>&5 |
| 7298 | ac_status=$? |
| 7299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7300 | (exit $ac_status); } && |
| 7301 | { ac_try='test -s conftest.$ac_objext' |
| 7302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7303 | (eval $ac_try) 2>&5 |
| 7304 | ac_status=$? |
| 7305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7306 | (exit $ac_status); }; }; then |
| 7307 | ac_hi=$ac_mid |
| 7308 | else |
| 7309 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7310 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7311 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7312 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7313 | fi |
| 7314 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7315 | done |
| 7316 | case $ac_lo in |
| 7317 | ?*) ac_cv_sizeof_char=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7318 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 |
| 7319 | See \`config.log' for more details." >&5 |
| 7320 | echo "$as_me: error: cannot compute sizeof (char), 77 |
| 7321 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7322 | { (exit 1); exit 1; }; } ;; |
| 7323 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7324 | else |
| 7325 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7326 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 7327 | See \`config.log' for more details." >&5 |
| 7328 | echo "$as_me: error: cannot run test program while cross compiling |
| 7329 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7330 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7331 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7332 | cat >conftest.$ac_ext <<_ACEOF |
| 7333 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7334 | /* confdefs.h. */ |
| 7335 | _ACEOF |
| 7336 | cat confdefs.h >>conftest.$ac_ext |
| 7337 | cat >>conftest.$ac_ext <<_ACEOF |
| 7338 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7339 | $ac_includes_default |
| 7340 | long longval () { return (long) (sizeof (char)); } |
| 7341 | unsigned long ulongval () { return (long) (sizeof (char)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7342 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7343 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7344 | int |
| 7345 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7346 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7347 | |
| 7348 | FILE *f = fopen ("conftest.val", "w"); |
| 7349 | if (! f) |
| 7350 | exit (1); |
| 7351 | if (((long) (sizeof (char))) < 0) |
| 7352 | { |
| 7353 | long i = longval (); |
| 7354 | if (i != ((long) (sizeof (char)))) |
| 7355 | exit (1); |
| 7356 | fprintf (f, "%ld\n", i); |
| 7357 | } |
| 7358 | else |
| 7359 | { |
| 7360 | unsigned long i = ulongval (); |
| 7361 | if (i != ((long) (sizeof (char)))) |
| 7362 | exit (1); |
| 7363 | fprintf (f, "%lu\n", i); |
| 7364 | } |
| 7365 | exit (ferror (f) || fclose (f) != 0); |
| 7366 | |
| 7367 | ; |
| 7368 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7369 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7370 | _ACEOF |
| 7371 | rm -f conftest$ac_exeext |
| 7372 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7373 | (eval $ac_link) 2>&5 |
| 7374 | ac_status=$? |
| 7375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7376 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7378 | (eval $ac_try) 2>&5 |
| 7379 | ac_status=$? |
| 7380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7381 | (exit $ac_status); }; }; then |
| 7382 | ac_cv_sizeof_char=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7383 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7384 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7385 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7386 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7387 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7388 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7389 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 |
| 7390 | See \`config.log' for more details." >&5 |
| 7391 | echo "$as_me: error: cannot compute sizeof (char), 77 |
| 7392 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7393 | { (exit 1); exit 1; }; } |
| 7394 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7395 | 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] | 7396 | fi |
| 7397 | fi |
| 7398 | rm -f conftest.val |
| 7399 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7400 | ac_cv_sizeof_char=0 |
| 7401 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7402 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7403 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
| 7404 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 |
| 7405 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7406 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7407 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7408 | |
| 7409 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7410 | echo "$as_me:$LINENO: checking for short" >&5 |
| 7411 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
| 7412 | if test "${ac_cv_type_short+set}" = set; then |
| 7413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7414 | else |
| 7415 | cat >conftest.$ac_ext <<_ACEOF |
| 7416 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7417 | /* confdefs.h. */ |
| 7418 | _ACEOF |
| 7419 | cat confdefs.h >>conftest.$ac_ext |
| 7420 | cat >>conftest.$ac_ext <<_ACEOF |
| 7421 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7422 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7423 | int |
| 7424 | main () |
| 7425 | { |
| 7426 | if ((short *) 0) |
| 7427 | return 0; |
| 7428 | if (sizeof (short)) |
| 7429 | return 0; |
| 7430 | ; |
| 7431 | return 0; |
| 7432 | } |
| 7433 | _ACEOF |
| 7434 | rm -f conftest.$ac_objext |
| 7435 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7436 | (eval $ac_compile) 2>&5 |
| 7437 | ac_status=$? |
| 7438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7439 | (exit $ac_status); } && |
| 7440 | { ac_try='test -s conftest.$ac_objext' |
| 7441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7442 | (eval $ac_try) 2>&5 |
| 7443 | ac_status=$? |
| 7444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7445 | (exit $ac_status); }; }; then |
| 7446 | ac_cv_type_short=yes |
| 7447 | else |
| 7448 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7449 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7450 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7451 | ac_cv_type_short=no |
| 7452 | fi |
| 7453 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7454 | fi |
| 7455 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 7456 | echo "${ECHO_T}$ac_cv_type_short" >&6 |
| 7457 | |
| 7458 | echo "$as_me:$LINENO: checking size of short" >&5 |
| 7459 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 |
| 7460 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 7461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7462 | else |
| 7463 | if test "$ac_cv_type_short" = yes; then |
| 7464 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7465 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7466 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7467 | # This bug is HP SR number 8606223364. |
| 7468 | if test "$cross_compiling" = yes; then |
| 7469 | # Depending upon the size, compute the lo and hi bounds. |
| 7470 | cat >conftest.$ac_ext <<_ACEOF |
| 7471 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7472 | /* confdefs.h. */ |
| 7473 | _ACEOF |
| 7474 | cat confdefs.h >>conftest.$ac_ext |
| 7475 | cat >>conftest.$ac_ext <<_ACEOF |
| 7476 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7477 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7478 | int |
| 7479 | main () |
| 7480 | { |
| 7481 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
| 7482 | test_array [0] = 0 |
| 7483 | |
| 7484 | ; |
| 7485 | return 0; |
| 7486 | } |
| 7487 | _ACEOF |
| 7488 | rm -f conftest.$ac_objext |
| 7489 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7490 | (eval $ac_compile) 2>&5 |
| 7491 | ac_status=$? |
| 7492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7493 | (exit $ac_status); } && |
| 7494 | { ac_try='test -s conftest.$ac_objext' |
| 7495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7496 | (eval $ac_try) 2>&5 |
| 7497 | ac_status=$? |
| 7498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7499 | (exit $ac_status); }; }; then |
| 7500 | ac_lo=0 ac_mid=0 |
| 7501 | while :; do |
| 7502 | cat >conftest.$ac_ext <<_ACEOF |
| 7503 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7504 | /* confdefs.h. */ |
| 7505 | _ACEOF |
| 7506 | cat confdefs.h >>conftest.$ac_ext |
| 7507 | cat >>conftest.$ac_ext <<_ACEOF |
| 7508 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7509 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7510 | int |
| 7511 | main () |
| 7512 | { |
| 7513 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 7514 | test_array [0] = 0 |
| 7515 | |
| 7516 | ; |
| 7517 | return 0; |
| 7518 | } |
| 7519 | _ACEOF |
| 7520 | rm -f conftest.$ac_objext |
| 7521 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7522 | (eval $ac_compile) 2>&5 |
| 7523 | ac_status=$? |
| 7524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7525 | (exit $ac_status); } && |
| 7526 | { ac_try='test -s conftest.$ac_objext' |
| 7527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7528 | (eval $ac_try) 2>&5 |
| 7529 | ac_status=$? |
| 7530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7531 | (exit $ac_status); }; }; then |
| 7532 | ac_hi=$ac_mid; break |
| 7533 | else |
| 7534 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7535 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7536 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7537 | ac_lo=`expr $ac_mid + 1` |
| 7538 | if test $ac_lo -le $ac_mid; then |
| 7539 | ac_lo= ac_hi= |
| 7540 | break |
| 7541 | fi |
| 7542 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7543 | fi |
| 7544 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7545 | done |
| 7546 | else |
| 7547 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7548 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7549 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7550 | cat >conftest.$ac_ext <<_ACEOF |
| 7551 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7552 | /* confdefs.h. */ |
| 7553 | _ACEOF |
| 7554 | cat confdefs.h >>conftest.$ac_ext |
| 7555 | cat >>conftest.$ac_ext <<_ACEOF |
| 7556 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7557 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7558 | int |
| 7559 | main () |
| 7560 | { |
| 7561 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
| 7562 | test_array [0] = 0 |
| 7563 | |
| 7564 | ; |
| 7565 | return 0; |
| 7566 | } |
| 7567 | _ACEOF |
| 7568 | rm -f conftest.$ac_objext |
| 7569 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7570 | (eval $ac_compile) 2>&5 |
| 7571 | ac_status=$? |
| 7572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7573 | (exit $ac_status); } && |
| 7574 | { ac_try='test -s conftest.$ac_objext' |
| 7575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7576 | (eval $ac_try) 2>&5 |
| 7577 | ac_status=$? |
| 7578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7579 | (exit $ac_status); }; }; then |
| 7580 | ac_hi=-1 ac_mid=-1 |
| 7581 | while :; do |
| 7582 | cat >conftest.$ac_ext <<_ACEOF |
| 7583 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7584 | /* confdefs.h. */ |
| 7585 | _ACEOF |
| 7586 | cat confdefs.h >>conftest.$ac_ext |
| 7587 | cat >>conftest.$ac_ext <<_ACEOF |
| 7588 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7589 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7590 | int |
| 7591 | main () |
| 7592 | { |
| 7593 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
| 7594 | test_array [0] = 0 |
| 7595 | |
| 7596 | ; |
| 7597 | return 0; |
| 7598 | } |
| 7599 | _ACEOF |
| 7600 | rm -f conftest.$ac_objext |
| 7601 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7602 | (eval $ac_compile) 2>&5 |
| 7603 | ac_status=$? |
| 7604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7605 | (exit $ac_status); } && |
| 7606 | { ac_try='test -s conftest.$ac_objext' |
| 7607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7608 | (eval $ac_try) 2>&5 |
| 7609 | ac_status=$? |
| 7610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7611 | (exit $ac_status); }; }; then |
| 7612 | ac_lo=$ac_mid; break |
| 7613 | else |
| 7614 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7615 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7616 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7617 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7618 | if test $ac_mid -le $ac_hi; then |
| 7619 | ac_lo= ac_hi= |
| 7620 | break |
| 7621 | fi |
| 7622 | ac_mid=`expr 2 '*' $ac_mid` |
| 7623 | fi |
| 7624 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7625 | done |
| 7626 | else |
| 7627 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7628 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7629 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7630 | ac_lo= ac_hi= |
| 7631 | fi |
| 7632 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7633 | fi |
| 7634 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7635 | # Binary search between lo and hi bounds. |
| 7636 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7637 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7638 | cat >conftest.$ac_ext <<_ACEOF |
| 7639 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7640 | /* confdefs.h. */ |
| 7641 | _ACEOF |
| 7642 | cat confdefs.h >>conftest.$ac_ext |
| 7643 | cat >>conftest.$ac_ext <<_ACEOF |
| 7644 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7645 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7646 | int |
| 7647 | main () |
| 7648 | { |
| 7649 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 7650 | test_array [0] = 0 |
| 7651 | |
| 7652 | ; |
| 7653 | return 0; |
| 7654 | } |
| 7655 | _ACEOF |
| 7656 | rm -f conftest.$ac_objext |
| 7657 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7658 | (eval $ac_compile) 2>&5 |
| 7659 | ac_status=$? |
| 7660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7661 | (exit $ac_status); } && |
| 7662 | { ac_try='test -s conftest.$ac_objext' |
| 7663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7664 | (eval $ac_try) 2>&5 |
| 7665 | ac_status=$? |
| 7666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7667 | (exit $ac_status); }; }; then |
| 7668 | ac_hi=$ac_mid |
| 7669 | else |
| 7670 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7671 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7672 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7673 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7674 | fi |
| 7675 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7676 | done |
| 7677 | case $ac_lo in |
| 7678 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7679 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
| 7680 | See \`config.log' for more details." >&5 |
| 7681 | echo "$as_me: error: cannot compute sizeof (short), 77 |
| 7682 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7683 | { (exit 1); exit 1; }; } ;; |
| 7684 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7685 | else |
| 7686 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7687 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 7688 | See \`config.log' for more details." >&5 |
| 7689 | echo "$as_me: error: cannot run test program while cross compiling |
| 7690 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7691 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7692 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7693 | cat >conftest.$ac_ext <<_ACEOF |
| 7694 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7695 | /* confdefs.h. */ |
| 7696 | _ACEOF |
| 7697 | cat confdefs.h >>conftest.$ac_ext |
| 7698 | cat >>conftest.$ac_ext <<_ACEOF |
| 7699 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7700 | $ac_includes_default |
| 7701 | long longval () { return (long) (sizeof (short)); } |
| 7702 | unsigned long ulongval () { return (long) (sizeof (short)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7703 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7704 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7705 | int |
| 7706 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7707 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7708 | |
| 7709 | FILE *f = fopen ("conftest.val", "w"); |
| 7710 | if (! f) |
| 7711 | exit (1); |
| 7712 | if (((long) (sizeof (short))) < 0) |
| 7713 | { |
| 7714 | long i = longval (); |
| 7715 | if (i != ((long) (sizeof (short)))) |
| 7716 | exit (1); |
| 7717 | fprintf (f, "%ld\n", i); |
| 7718 | } |
| 7719 | else |
| 7720 | { |
| 7721 | unsigned long i = ulongval (); |
| 7722 | if (i != ((long) (sizeof (short)))) |
| 7723 | exit (1); |
| 7724 | fprintf (f, "%lu\n", i); |
| 7725 | } |
| 7726 | exit (ferror (f) || fclose (f) != 0); |
| 7727 | |
| 7728 | ; |
| 7729 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7730 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7731 | _ACEOF |
| 7732 | rm -f conftest$ac_exeext |
| 7733 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7734 | (eval $ac_link) 2>&5 |
| 7735 | ac_status=$? |
| 7736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7737 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7739 | (eval $ac_try) 2>&5 |
| 7740 | ac_status=$? |
| 7741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7742 | (exit $ac_status); }; }; then |
| 7743 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7744 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7745 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7746 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7747 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7748 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7749 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7750 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
| 7751 | See \`config.log' for more details." >&5 |
| 7752 | echo "$as_me: error: cannot compute sizeof (short), 77 |
| 7753 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7754 | { (exit 1); exit 1; }; } |
| 7755 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7756 | 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] | 7757 | fi |
| 7758 | fi |
| 7759 | rm -f conftest.val |
| 7760 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7761 | ac_cv_sizeof_short=0 |
| 7762 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7763 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7764 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 7765 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 |
| 7766 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7767 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7768 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7769 | |
| 7770 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7771 | echo "$as_me:$LINENO: checking for float" >&5 |
| 7772 | echo $ECHO_N "checking for float... $ECHO_C" >&6 |
| 7773 | if test "${ac_cv_type_float+set}" = set; then |
| 7774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7775 | else |
| 7776 | cat >conftest.$ac_ext <<_ACEOF |
| 7777 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7778 | /* confdefs.h. */ |
| 7779 | _ACEOF |
| 7780 | cat confdefs.h >>conftest.$ac_ext |
| 7781 | cat >>conftest.$ac_ext <<_ACEOF |
| 7782 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7783 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7784 | int |
| 7785 | main () |
| 7786 | { |
| 7787 | if ((float *) 0) |
| 7788 | return 0; |
| 7789 | if (sizeof (float)) |
| 7790 | return 0; |
| 7791 | ; |
| 7792 | return 0; |
| 7793 | } |
| 7794 | _ACEOF |
| 7795 | rm -f conftest.$ac_objext |
| 7796 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7797 | (eval $ac_compile) 2>&5 |
| 7798 | ac_status=$? |
| 7799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7800 | (exit $ac_status); } && |
| 7801 | { ac_try='test -s conftest.$ac_objext' |
| 7802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7803 | (eval $ac_try) 2>&5 |
| 7804 | ac_status=$? |
| 7805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7806 | (exit $ac_status); }; }; then |
| 7807 | ac_cv_type_float=yes |
| 7808 | else |
| 7809 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7810 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7811 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7812 | ac_cv_type_float=no |
| 7813 | fi |
| 7814 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7815 | fi |
| 7816 | echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 7817 | echo "${ECHO_T}$ac_cv_type_float" >&6 |
| 7818 | |
| 7819 | echo "$as_me:$LINENO: checking size of float" >&5 |
| 7820 | echo $ECHO_N "checking size of float... $ECHO_C" >&6 |
| 7821 | if test "${ac_cv_sizeof_float+set}" = set; then |
| 7822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7823 | else |
| 7824 | if test "$ac_cv_type_float" = yes; then |
| 7825 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7826 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7827 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7828 | # This bug is HP SR number 8606223364. |
| 7829 | if test "$cross_compiling" = yes; then |
| 7830 | # Depending upon the size, compute the lo and hi bounds. |
| 7831 | cat >conftest.$ac_ext <<_ACEOF |
| 7832 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7833 | /* confdefs.h. */ |
| 7834 | _ACEOF |
| 7835 | cat confdefs.h >>conftest.$ac_ext |
| 7836 | cat >>conftest.$ac_ext <<_ACEOF |
| 7837 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7838 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7839 | int |
| 7840 | main () |
| 7841 | { |
| 7842 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)]; |
| 7843 | test_array [0] = 0 |
| 7844 | |
| 7845 | ; |
| 7846 | return 0; |
| 7847 | } |
| 7848 | _ACEOF |
| 7849 | rm -f conftest.$ac_objext |
| 7850 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7851 | (eval $ac_compile) 2>&5 |
| 7852 | ac_status=$? |
| 7853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7854 | (exit $ac_status); } && |
| 7855 | { ac_try='test -s conftest.$ac_objext' |
| 7856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7857 | (eval $ac_try) 2>&5 |
| 7858 | ac_status=$? |
| 7859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7860 | (exit $ac_status); }; }; then |
| 7861 | ac_lo=0 ac_mid=0 |
| 7862 | while :; do |
| 7863 | cat >conftest.$ac_ext <<_ACEOF |
| 7864 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7865 | /* confdefs.h. */ |
| 7866 | _ACEOF |
| 7867 | cat confdefs.h >>conftest.$ac_ext |
| 7868 | cat >>conftest.$ac_ext <<_ACEOF |
| 7869 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7870 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7871 | int |
| 7872 | main () |
| 7873 | { |
| 7874 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 7875 | test_array [0] = 0 |
| 7876 | |
| 7877 | ; |
| 7878 | return 0; |
| 7879 | } |
| 7880 | _ACEOF |
| 7881 | rm -f conftest.$ac_objext |
| 7882 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7883 | (eval $ac_compile) 2>&5 |
| 7884 | ac_status=$? |
| 7885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7886 | (exit $ac_status); } && |
| 7887 | { ac_try='test -s conftest.$ac_objext' |
| 7888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7889 | (eval $ac_try) 2>&5 |
| 7890 | ac_status=$? |
| 7891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7892 | (exit $ac_status); }; }; then |
| 7893 | ac_hi=$ac_mid; break |
| 7894 | else |
| 7895 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7896 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7897 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7898 | ac_lo=`expr $ac_mid + 1` |
| 7899 | if test $ac_lo -le $ac_mid; then |
| 7900 | ac_lo= ac_hi= |
| 7901 | break |
| 7902 | fi |
| 7903 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7904 | fi |
| 7905 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7906 | done |
| 7907 | else |
| 7908 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7909 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7910 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7911 | cat >conftest.$ac_ext <<_ACEOF |
| 7912 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7913 | /* confdefs.h. */ |
| 7914 | _ACEOF |
| 7915 | cat confdefs.h >>conftest.$ac_ext |
| 7916 | cat >>conftest.$ac_ext <<_ACEOF |
| 7917 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7918 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7919 | int |
| 7920 | main () |
| 7921 | { |
| 7922 | static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)]; |
| 7923 | test_array [0] = 0 |
| 7924 | |
| 7925 | ; |
| 7926 | return 0; |
| 7927 | } |
| 7928 | _ACEOF |
| 7929 | rm -f conftest.$ac_objext |
| 7930 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7931 | (eval $ac_compile) 2>&5 |
| 7932 | ac_status=$? |
| 7933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7934 | (exit $ac_status); } && |
| 7935 | { ac_try='test -s conftest.$ac_objext' |
| 7936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7937 | (eval $ac_try) 2>&5 |
| 7938 | ac_status=$? |
| 7939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7940 | (exit $ac_status); }; }; then |
| 7941 | ac_hi=-1 ac_mid=-1 |
| 7942 | while :; do |
| 7943 | cat >conftest.$ac_ext <<_ACEOF |
| 7944 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7945 | /* confdefs.h. */ |
| 7946 | _ACEOF |
| 7947 | cat confdefs.h >>conftest.$ac_ext |
| 7948 | cat >>conftest.$ac_ext <<_ACEOF |
| 7949 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7950 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7951 | int |
| 7952 | main () |
| 7953 | { |
| 7954 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)]; |
| 7955 | test_array [0] = 0 |
| 7956 | |
| 7957 | ; |
| 7958 | return 0; |
| 7959 | } |
| 7960 | _ACEOF |
| 7961 | rm -f conftest.$ac_objext |
| 7962 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7963 | (eval $ac_compile) 2>&5 |
| 7964 | ac_status=$? |
| 7965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7966 | (exit $ac_status); } && |
| 7967 | { ac_try='test -s conftest.$ac_objext' |
| 7968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7969 | (eval $ac_try) 2>&5 |
| 7970 | ac_status=$? |
| 7971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7972 | (exit $ac_status); }; }; then |
| 7973 | ac_lo=$ac_mid; break |
| 7974 | else |
| 7975 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7976 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7977 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7978 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7979 | if test $ac_mid -le $ac_hi; then |
| 7980 | ac_lo= ac_hi= |
| 7981 | break |
| 7982 | fi |
| 7983 | ac_mid=`expr 2 '*' $ac_mid` |
| 7984 | fi |
| 7985 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7986 | done |
| 7987 | else |
| 7988 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7989 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7990 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7991 | ac_lo= ac_hi= |
| 7992 | fi |
| 7993 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7994 | fi |
| 7995 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7996 | # Binary search between lo and hi bounds. |
| 7997 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7998 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7999 | cat >conftest.$ac_ext <<_ACEOF |
| 8000 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8001 | /* confdefs.h. */ |
| 8002 | _ACEOF |
| 8003 | cat confdefs.h >>conftest.$ac_ext |
| 8004 | cat >>conftest.$ac_ext <<_ACEOF |
| 8005 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8006 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8007 | int |
| 8008 | main () |
| 8009 | { |
| 8010 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 8011 | test_array [0] = 0 |
| 8012 | |
| 8013 | ; |
| 8014 | return 0; |
| 8015 | } |
| 8016 | _ACEOF |
| 8017 | rm -f conftest.$ac_objext |
| 8018 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8019 | (eval $ac_compile) 2>&5 |
| 8020 | ac_status=$? |
| 8021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8022 | (exit $ac_status); } && |
| 8023 | { ac_try='test -s conftest.$ac_objext' |
| 8024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8025 | (eval $ac_try) 2>&5 |
| 8026 | ac_status=$? |
| 8027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8028 | (exit $ac_status); }; }; then |
| 8029 | ac_hi=$ac_mid |
| 8030 | else |
| 8031 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8032 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8033 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8034 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8035 | fi |
| 8036 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8037 | done |
| 8038 | case $ac_lo in |
| 8039 | ?*) ac_cv_sizeof_float=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8040 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77 |
| 8041 | See \`config.log' for more details." >&5 |
| 8042 | echo "$as_me: error: cannot compute sizeof (float), 77 |
| 8043 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8044 | { (exit 1); exit 1; }; } ;; |
| 8045 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8046 | else |
| 8047 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8048 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 8049 | See \`config.log' for more details." >&5 |
| 8050 | echo "$as_me: error: cannot run test program while cross compiling |
| 8051 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8052 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8053 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8054 | cat >conftest.$ac_ext <<_ACEOF |
| 8055 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8056 | /* confdefs.h. */ |
| 8057 | _ACEOF |
| 8058 | cat confdefs.h >>conftest.$ac_ext |
| 8059 | cat >>conftest.$ac_ext <<_ACEOF |
| 8060 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8061 | $ac_includes_default |
| 8062 | long longval () { return (long) (sizeof (float)); } |
| 8063 | unsigned long ulongval () { return (long) (sizeof (float)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8064 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8065 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8066 | int |
| 8067 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8068 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8069 | |
| 8070 | FILE *f = fopen ("conftest.val", "w"); |
| 8071 | if (! f) |
| 8072 | exit (1); |
| 8073 | if (((long) (sizeof (float))) < 0) |
| 8074 | { |
| 8075 | long i = longval (); |
| 8076 | if (i != ((long) (sizeof (float)))) |
| 8077 | exit (1); |
| 8078 | fprintf (f, "%ld\n", i); |
| 8079 | } |
| 8080 | else |
| 8081 | { |
| 8082 | unsigned long i = ulongval (); |
| 8083 | if (i != ((long) (sizeof (float)))) |
| 8084 | exit (1); |
| 8085 | fprintf (f, "%lu\n", i); |
| 8086 | } |
| 8087 | exit (ferror (f) || fclose (f) != 0); |
| 8088 | |
| 8089 | ; |
| 8090 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8091 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8092 | _ACEOF |
| 8093 | rm -f conftest$ac_exeext |
| 8094 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8095 | (eval $ac_link) 2>&5 |
| 8096 | ac_status=$? |
| 8097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8098 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8100 | (eval $ac_try) 2>&5 |
| 8101 | ac_status=$? |
| 8102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8103 | (exit $ac_status); }; }; then |
| 8104 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8105 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8106 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8107 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8108 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8109 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8110 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8111 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77 |
| 8112 | See \`config.log' for more details." >&5 |
| 8113 | echo "$as_me: error: cannot compute sizeof (float), 77 |
| 8114 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8115 | { (exit 1); exit 1; }; } |
| 8116 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8117 | 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] | 8118 | fi |
| 8119 | fi |
| 8120 | rm -f conftest.val |
| 8121 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8122 | ac_cv_sizeof_float=0 |
| 8123 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8124 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8125 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 8126 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6 |
| 8127 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8128 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8129 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8130 | |
| 8131 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8132 | echo "$as_me:$LINENO: checking for double" >&5 |
| 8133 | echo $ECHO_N "checking for double... $ECHO_C" >&6 |
| 8134 | if test "${ac_cv_type_double+set}" = set; then |
| 8135 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8136 | else |
| 8137 | cat >conftest.$ac_ext <<_ACEOF |
| 8138 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8139 | /* confdefs.h. */ |
| 8140 | _ACEOF |
| 8141 | cat confdefs.h >>conftest.$ac_ext |
| 8142 | cat >>conftest.$ac_ext <<_ACEOF |
| 8143 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8144 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8145 | int |
| 8146 | main () |
| 8147 | { |
| 8148 | if ((double *) 0) |
| 8149 | return 0; |
| 8150 | if (sizeof (double)) |
| 8151 | return 0; |
| 8152 | ; |
| 8153 | return 0; |
| 8154 | } |
| 8155 | _ACEOF |
| 8156 | rm -f conftest.$ac_objext |
| 8157 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8158 | (eval $ac_compile) 2>&5 |
| 8159 | ac_status=$? |
| 8160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8161 | (exit $ac_status); } && |
| 8162 | { ac_try='test -s conftest.$ac_objext' |
| 8163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8164 | (eval $ac_try) 2>&5 |
| 8165 | ac_status=$? |
| 8166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8167 | (exit $ac_status); }; }; then |
| 8168 | ac_cv_type_double=yes |
| 8169 | else |
| 8170 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8171 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8172 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8173 | ac_cv_type_double=no |
| 8174 | fi |
| 8175 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8176 | fi |
| 8177 | echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 8178 | echo "${ECHO_T}$ac_cv_type_double" >&6 |
| 8179 | |
| 8180 | echo "$as_me:$LINENO: checking size of double" >&5 |
| 8181 | echo $ECHO_N "checking size of double... $ECHO_C" >&6 |
| 8182 | if test "${ac_cv_sizeof_double+set}" = set; then |
| 8183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8184 | else |
| 8185 | if test "$ac_cv_type_double" = yes; then |
| 8186 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8187 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8188 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8189 | # This bug is HP SR number 8606223364. |
| 8190 | if test "$cross_compiling" = yes; then |
| 8191 | # Depending upon the size, compute the lo and hi bounds. |
| 8192 | cat >conftest.$ac_ext <<_ACEOF |
| 8193 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8194 | /* confdefs.h. */ |
| 8195 | _ACEOF |
| 8196 | cat confdefs.h >>conftest.$ac_ext |
| 8197 | cat >>conftest.$ac_ext <<_ACEOF |
| 8198 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8199 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8200 | int |
| 8201 | main () |
| 8202 | { |
| 8203 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)]; |
| 8204 | test_array [0] = 0 |
| 8205 | |
| 8206 | ; |
| 8207 | return 0; |
| 8208 | } |
| 8209 | _ACEOF |
| 8210 | rm -f conftest.$ac_objext |
| 8211 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8212 | (eval $ac_compile) 2>&5 |
| 8213 | ac_status=$? |
| 8214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8215 | (exit $ac_status); } && |
| 8216 | { ac_try='test -s conftest.$ac_objext' |
| 8217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8218 | (eval $ac_try) 2>&5 |
| 8219 | ac_status=$? |
| 8220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8221 | (exit $ac_status); }; }; then |
| 8222 | ac_lo=0 ac_mid=0 |
| 8223 | while :; do |
| 8224 | cat >conftest.$ac_ext <<_ACEOF |
| 8225 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8226 | /* confdefs.h. */ |
| 8227 | _ACEOF |
| 8228 | cat confdefs.h >>conftest.$ac_ext |
| 8229 | cat >>conftest.$ac_ext <<_ACEOF |
| 8230 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8231 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8232 | int |
| 8233 | main () |
| 8234 | { |
| 8235 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 8236 | test_array [0] = 0 |
| 8237 | |
| 8238 | ; |
| 8239 | return 0; |
| 8240 | } |
| 8241 | _ACEOF |
| 8242 | rm -f conftest.$ac_objext |
| 8243 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8244 | (eval $ac_compile) 2>&5 |
| 8245 | ac_status=$? |
| 8246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8247 | (exit $ac_status); } && |
| 8248 | { ac_try='test -s conftest.$ac_objext' |
| 8249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8250 | (eval $ac_try) 2>&5 |
| 8251 | ac_status=$? |
| 8252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8253 | (exit $ac_status); }; }; then |
| 8254 | ac_hi=$ac_mid; break |
| 8255 | else |
| 8256 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8257 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8258 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8259 | ac_lo=`expr $ac_mid + 1` |
| 8260 | if test $ac_lo -le $ac_mid; then |
| 8261 | ac_lo= ac_hi= |
| 8262 | break |
| 8263 | fi |
| 8264 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8265 | fi |
| 8266 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8267 | done |
| 8268 | else |
| 8269 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8270 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8271 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8272 | cat >conftest.$ac_ext <<_ACEOF |
| 8273 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8274 | /* confdefs.h. */ |
| 8275 | _ACEOF |
| 8276 | cat confdefs.h >>conftest.$ac_ext |
| 8277 | cat >>conftest.$ac_ext <<_ACEOF |
| 8278 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8279 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8280 | int |
| 8281 | main () |
| 8282 | { |
| 8283 | static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)]; |
| 8284 | test_array [0] = 0 |
| 8285 | |
| 8286 | ; |
| 8287 | return 0; |
| 8288 | } |
| 8289 | _ACEOF |
| 8290 | rm -f conftest.$ac_objext |
| 8291 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8292 | (eval $ac_compile) 2>&5 |
| 8293 | ac_status=$? |
| 8294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8295 | (exit $ac_status); } && |
| 8296 | { ac_try='test -s conftest.$ac_objext' |
| 8297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8298 | (eval $ac_try) 2>&5 |
| 8299 | ac_status=$? |
| 8300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8301 | (exit $ac_status); }; }; then |
| 8302 | ac_hi=-1 ac_mid=-1 |
| 8303 | while :; do |
| 8304 | cat >conftest.$ac_ext <<_ACEOF |
| 8305 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8306 | /* confdefs.h. */ |
| 8307 | _ACEOF |
| 8308 | cat confdefs.h >>conftest.$ac_ext |
| 8309 | cat >>conftest.$ac_ext <<_ACEOF |
| 8310 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8311 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8312 | int |
| 8313 | main () |
| 8314 | { |
| 8315 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)]; |
| 8316 | test_array [0] = 0 |
| 8317 | |
| 8318 | ; |
| 8319 | return 0; |
| 8320 | } |
| 8321 | _ACEOF |
| 8322 | rm -f conftest.$ac_objext |
| 8323 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8324 | (eval $ac_compile) 2>&5 |
| 8325 | ac_status=$? |
| 8326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8327 | (exit $ac_status); } && |
| 8328 | { ac_try='test -s conftest.$ac_objext' |
| 8329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8330 | (eval $ac_try) 2>&5 |
| 8331 | ac_status=$? |
| 8332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8333 | (exit $ac_status); }; }; then |
| 8334 | ac_lo=$ac_mid; break |
| 8335 | else |
| 8336 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8337 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8338 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8339 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8340 | if test $ac_mid -le $ac_hi; then |
| 8341 | ac_lo= ac_hi= |
| 8342 | break |
| 8343 | fi |
| 8344 | ac_mid=`expr 2 '*' $ac_mid` |
| 8345 | fi |
| 8346 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8347 | done |
| 8348 | else |
| 8349 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8350 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8351 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8352 | ac_lo= ac_hi= |
| 8353 | fi |
| 8354 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8355 | fi |
| 8356 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8357 | # Binary search between lo and hi bounds. |
| 8358 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8359 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8360 | cat >conftest.$ac_ext <<_ACEOF |
| 8361 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8362 | /* confdefs.h. */ |
| 8363 | _ACEOF |
| 8364 | cat confdefs.h >>conftest.$ac_ext |
| 8365 | cat >>conftest.$ac_ext <<_ACEOF |
| 8366 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8367 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8368 | int |
| 8369 | main () |
| 8370 | { |
| 8371 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 8372 | test_array [0] = 0 |
| 8373 | |
| 8374 | ; |
| 8375 | return 0; |
| 8376 | } |
| 8377 | _ACEOF |
| 8378 | rm -f conftest.$ac_objext |
| 8379 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8380 | (eval $ac_compile) 2>&5 |
| 8381 | ac_status=$? |
| 8382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8383 | (exit $ac_status); } && |
| 8384 | { ac_try='test -s conftest.$ac_objext' |
| 8385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8386 | (eval $ac_try) 2>&5 |
| 8387 | ac_status=$? |
| 8388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8389 | (exit $ac_status); }; }; then |
| 8390 | ac_hi=$ac_mid |
| 8391 | else |
| 8392 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8393 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8394 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8395 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8396 | fi |
| 8397 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8398 | done |
| 8399 | case $ac_lo in |
| 8400 | ?*) ac_cv_sizeof_double=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8401 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77 |
| 8402 | See \`config.log' for more details." >&5 |
| 8403 | echo "$as_me: error: cannot compute sizeof (double), 77 |
| 8404 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8405 | { (exit 1); exit 1; }; } ;; |
| 8406 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8407 | else |
| 8408 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8409 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 8410 | See \`config.log' for more details." >&5 |
| 8411 | echo "$as_me: error: cannot run test program while cross compiling |
| 8412 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8413 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8414 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8415 | cat >conftest.$ac_ext <<_ACEOF |
| 8416 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8417 | /* confdefs.h. */ |
| 8418 | _ACEOF |
| 8419 | cat confdefs.h >>conftest.$ac_ext |
| 8420 | cat >>conftest.$ac_ext <<_ACEOF |
| 8421 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8422 | $ac_includes_default |
| 8423 | long longval () { return (long) (sizeof (double)); } |
| 8424 | unsigned long ulongval () { return (long) (sizeof (double)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8425 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8426 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8427 | int |
| 8428 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8429 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8430 | |
| 8431 | FILE *f = fopen ("conftest.val", "w"); |
| 8432 | if (! f) |
| 8433 | exit (1); |
| 8434 | if (((long) (sizeof (double))) < 0) |
| 8435 | { |
| 8436 | long i = longval (); |
| 8437 | if (i != ((long) (sizeof (double)))) |
| 8438 | exit (1); |
| 8439 | fprintf (f, "%ld\n", i); |
| 8440 | } |
| 8441 | else |
| 8442 | { |
| 8443 | unsigned long i = ulongval (); |
| 8444 | if (i != ((long) (sizeof (double)))) |
| 8445 | exit (1); |
| 8446 | fprintf (f, "%lu\n", i); |
| 8447 | } |
| 8448 | exit (ferror (f) || fclose (f) != 0); |
| 8449 | |
| 8450 | ; |
| 8451 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8452 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8453 | _ACEOF |
| 8454 | rm -f conftest$ac_exeext |
| 8455 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8456 | (eval $ac_link) 2>&5 |
| 8457 | ac_status=$? |
| 8458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8459 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8461 | (eval $ac_try) 2>&5 |
| 8462 | ac_status=$? |
| 8463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8464 | (exit $ac_status); }; }; then |
| 8465 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8466 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8467 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8468 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8469 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8470 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8471 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8472 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77 |
| 8473 | See \`config.log' for more details." >&5 |
| 8474 | echo "$as_me: error: cannot compute sizeof (double), 77 |
| 8475 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8476 | { (exit 1); exit 1; }; } |
| 8477 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8478 | 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] | 8479 | fi |
| 8480 | fi |
| 8481 | rm -f conftest.val |
| 8482 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8483 | ac_cv_sizeof_double=0 |
| 8484 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8485 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8486 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 8487 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6 |
| 8488 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8489 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8490 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8491 | |
| 8492 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8493 | echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 8494 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6 |
| 8495 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 8496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8497 | else |
| 8498 | cat >conftest.$ac_ext <<_ACEOF |
| 8499 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8500 | /* confdefs.h. */ |
| 8501 | _ACEOF |
| 8502 | cat confdefs.h >>conftest.$ac_ext |
| 8503 | cat >>conftest.$ac_ext <<_ACEOF |
| 8504 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8505 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8506 | int |
| 8507 | main () |
| 8508 | { |
| 8509 | if ((fpos_t *) 0) |
| 8510 | return 0; |
| 8511 | if (sizeof (fpos_t)) |
| 8512 | return 0; |
| 8513 | ; |
| 8514 | return 0; |
| 8515 | } |
| 8516 | _ACEOF |
| 8517 | rm -f conftest.$ac_objext |
| 8518 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8519 | (eval $ac_compile) 2>&5 |
| 8520 | ac_status=$? |
| 8521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8522 | (exit $ac_status); } && |
| 8523 | { ac_try='test -s conftest.$ac_objext' |
| 8524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8525 | (eval $ac_try) 2>&5 |
| 8526 | ac_status=$? |
| 8527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8528 | (exit $ac_status); }; }; then |
| 8529 | ac_cv_type_fpos_t=yes |
| 8530 | else |
| 8531 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8532 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8533 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8534 | ac_cv_type_fpos_t=no |
| 8535 | fi |
| 8536 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8537 | fi |
| 8538 | echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 8539 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6 |
| 8540 | |
| 8541 | echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 8542 | echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6 |
| 8543 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
| 8544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8545 | else |
| 8546 | if test "$ac_cv_type_fpos_t" = yes; then |
| 8547 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8548 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8549 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8550 | # This bug is HP SR number 8606223364. |
| 8551 | if test "$cross_compiling" = yes; then |
| 8552 | # Depending upon the size, compute the lo and hi bounds. |
| 8553 | cat >conftest.$ac_ext <<_ACEOF |
| 8554 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8555 | /* confdefs.h. */ |
| 8556 | _ACEOF |
| 8557 | cat confdefs.h >>conftest.$ac_ext |
| 8558 | cat >>conftest.$ac_ext <<_ACEOF |
| 8559 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8560 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8561 | int |
| 8562 | main () |
| 8563 | { |
| 8564 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)]; |
| 8565 | test_array [0] = 0 |
| 8566 | |
| 8567 | ; |
| 8568 | return 0; |
| 8569 | } |
| 8570 | _ACEOF |
| 8571 | rm -f conftest.$ac_objext |
| 8572 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8573 | (eval $ac_compile) 2>&5 |
| 8574 | ac_status=$? |
| 8575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8576 | (exit $ac_status); } && |
| 8577 | { ac_try='test -s conftest.$ac_objext' |
| 8578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8579 | (eval $ac_try) 2>&5 |
| 8580 | ac_status=$? |
| 8581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8582 | (exit $ac_status); }; }; then |
| 8583 | ac_lo=0 ac_mid=0 |
| 8584 | while :; do |
| 8585 | cat >conftest.$ac_ext <<_ACEOF |
| 8586 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8587 | /* confdefs.h. */ |
| 8588 | _ACEOF |
| 8589 | cat confdefs.h >>conftest.$ac_ext |
| 8590 | cat >>conftest.$ac_ext <<_ACEOF |
| 8591 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8592 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8593 | int |
| 8594 | main () |
| 8595 | { |
| 8596 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 8597 | test_array [0] = 0 |
| 8598 | |
| 8599 | ; |
| 8600 | return 0; |
| 8601 | } |
| 8602 | _ACEOF |
| 8603 | rm -f conftest.$ac_objext |
| 8604 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8605 | (eval $ac_compile) 2>&5 |
| 8606 | ac_status=$? |
| 8607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8608 | (exit $ac_status); } && |
| 8609 | { ac_try='test -s conftest.$ac_objext' |
| 8610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8611 | (eval $ac_try) 2>&5 |
| 8612 | ac_status=$? |
| 8613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8614 | (exit $ac_status); }; }; then |
| 8615 | ac_hi=$ac_mid; break |
| 8616 | else |
| 8617 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8618 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8619 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8620 | ac_lo=`expr $ac_mid + 1` |
| 8621 | if test $ac_lo -le $ac_mid; then |
| 8622 | ac_lo= ac_hi= |
| 8623 | break |
| 8624 | fi |
| 8625 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8626 | fi |
| 8627 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8628 | done |
| 8629 | else |
| 8630 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8631 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8632 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8633 | cat >conftest.$ac_ext <<_ACEOF |
| 8634 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8635 | /* confdefs.h. */ |
| 8636 | _ACEOF |
| 8637 | cat confdefs.h >>conftest.$ac_ext |
| 8638 | cat >>conftest.$ac_ext <<_ACEOF |
| 8639 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8640 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8641 | int |
| 8642 | main () |
| 8643 | { |
| 8644 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)]; |
| 8645 | test_array [0] = 0 |
| 8646 | |
| 8647 | ; |
| 8648 | return 0; |
| 8649 | } |
| 8650 | _ACEOF |
| 8651 | rm -f conftest.$ac_objext |
| 8652 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8653 | (eval $ac_compile) 2>&5 |
| 8654 | ac_status=$? |
| 8655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8656 | (exit $ac_status); } && |
| 8657 | { ac_try='test -s conftest.$ac_objext' |
| 8658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8659 | (eval $ac_try) 2>&5 |
| 8660 | ac_status=$? |
| 8661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8662 | (exit $ac_status); }; }; then |
| 8663 | ac_hi=-1 ac_mid=-1 |
| 8664 | while :; do |
| 8665 | cat >conftest.$ac_ext <<_ACEOF |
| 8666 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8667 | /* confdefs.h. */ |
| 8668 | _ACEOF |
| 8669 | cat confdefs.h >>conftest.$ac_ext |
| 8670 | cat >>conftest.$ac_ext <<_ACEOF |
| 8671 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8672 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8673 | int |
| 8674 | main () |
| 8675 | { |
| 8676 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)]; |
| 8677 | test_array [0] = 0 |
| 8678 | |
| 8679 | ; |
| 8680 | return 0; |
| 8681 | } |
| 8682 | _ACEOF |
| 8683 | rm -f conftest.$ac_objext |
| 8684 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8685 | (eval $ac_compile) 2>&5 |
| 8686 | ac_status=$? |
| 8687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8688 | (exit $ac_status); } && |
| 8689 | { ac_try='test -s conftest.$ac_objext' |
| 8690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8691 | (eval $ac_try) 2>&5 |
| 8692 | ac_status=$? |
| 8693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8694 | (exit $ac_status); }; }; then |
| 8695 | ac_lo=$ac_mid; break |
| 8696 | else |
| 8697 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8698 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8699 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8700 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8701 | if test $ac_mid -le $ac_hi; then |
| 8702 | ac_lo= ac_hi= |
| 8703 | break |
| 8704 | fi |
| 8705 | ac_mid=`expr 2 '*' $ac_mid` |
| 8706 | fi |
| 8707 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8708 | done |
| 8709 | else |
| 8710 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8711 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8712 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8713 | ac_lo= ac_hi= |
| 8714 | fi |
| 8715 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8716 | fi |
| 8717 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8718 | # Binary search between lo and hi bounds. |
| 8719 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8720 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8721 | cat >conftest.$ac_ext <<_ACEOF |
| 8722 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8723 | /* confdefs.h. */ |
| 8724 | _ACEOF |
| 8725 | cat confdefs.h >>conftest.$ac_ext |
| 8726 | cat >>conftest.$ac_ext <<_ACEOF |
| 8727 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8728 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8729 | int |
| 8730 | main () |
| 8731 | { |
| 8732 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 8733 | test_array [0] = 0 |
| 8734 | |
| 8735 | ; |
| 8736 | return 0; |
| 8737 | } |
| 8738 | _ACEOF |
| 8739 | rm -f conftest.$ac_objext |
| 8740 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8741 | (eval $ac_compile) 2>&5 |
| 8742 | ac_status=$? |
| 8743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8744 | (exit $ac_status); } && |
| 8745 | { ac_try='test -s conftest.$ac_objext' |
| 8746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8747 | (eval $ac_try) 2>&5 |
| 8748 | ac_status=$? |
| 8749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8750 | (exit $ac_status); }; }; then |
| 8751 | ac_hi=$ac_mid |
| 8752 | else |
| 8753 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8754 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8755 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8756 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8757 | fi |
| 8758 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8759 | done |
| 8760 | case $ac_lo in |
| 8761 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8762 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77 |
| 8763 | See \`config.log' for more details." >&5 |
| 8764 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77 |
| 8765 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8766 | { (exit 1); exit 1; }; } ;; |
| 8767 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8768 | else |
| 8769 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8770 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 8771 | See \`config.log' for more details." >&5 |
| 8772 | echo "$as_me: error: cannot run test program while cross compiling |
| 8773 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8774 | { (exit 1); exit 1; }; } |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8775 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8776 | cat >conftest.$ac_ext <<_ACEOF |
| 8777 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8778 | /* confdefs.h. */ |
| 8779 | _ACEOF |
| 8780 | cat confdefs.h >>conftest.$ac_ext |
| 8781 | cat >>conftest.$ac_ext <<_ACEOF |
| 8782 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8783 | $ac_includes_default |
| 8784 | long longval () { return (long) (sizeof (fpos_t)); } |
| 8785 | unsigned long ulongval () { return (long) (sizeof (fpos_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8786 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8787 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8788 | int |
| 8789 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8790 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8791 | |
| 8792 | FILE *f = fopen ("conftest.val", "w"); |
| 8793 | if (! f) |
| 8794 | exit (1); |
| 8795 | if (((long) (sizeof (fpos_t))) < 0) |
| 8796 | { |
| 8797 | long i = longval (); |
| 8798 | if (i != ((long) (sizeof (fpos_t)))) |
| 8799 | exit (1); |
| 8800 | fprintf (f, "%ld\n", i); |
| 8801 | } |
| 8802 | else |
| 8803 | { |
| 8804 | unsigned long i = ulongval (); |
| 8805 | if (i != ((long) (sizeof (fpos_t)))) |
| 8806 | exit (1); |
| 8807 | fprintf (f, "%lu\n", i); |
| 8808 | } |
| 8809 | exit (ferror (f) || fclose (f) != 0); |
| 8810 | |
| 8811 | ; |
| 8812 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8813 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8814 | _ACEOF |
| 8815 | rm -f conftest$ac_exeext |
| 8816 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8817 | (eval $ac_link) 2>&5 |
| 8818 | ac_status=$? |
| 8819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8820 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8822 | (eval $ac_try) 2>&5 |
| 8823 | ac_status=$? |
| 8824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8825 | (exit $ac_status); }; }; then |
| 8826 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8827 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8828 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8829 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8830 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8831 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8832 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8833 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77 |
| 8834 | See \`config.log' for more details." >&5 |
| 8835 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77 |
| 8836 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8837 | { (exit 1); exit 1; }; } |
| 8838 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8839 | 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] | 8840 | fi |
| 8841 | fi |
| 8842 | rm -f conftest.val |
| 8843 | else |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8844 | ac_cv_sizeof_fpos_t=0 |
| 8845 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8846 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8847 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 8848 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6 |
| 8849 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8850 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8851 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8852 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8853 | |
| 8854 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8855 | echo "$as_me:$LINENO: checking for long long support" >&5 |
| 8856 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8857 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8858 | cat >conftest.$ac_ext <<_ACEOF |
| 8859 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8860 | /* confdefs.h. */ |
| 8861 | _ACEOF |
| 8862 | cat confdefs.h >>conftest.$ac_ext |
| 8863 | cat >>conftest.$ac_ext <<_ACEOF |
| 8864 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8865 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8866 | int |
| 8867 | main () |
| 8868 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8869 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8870 | ; |
| 8871 | return 0; |
| 8872 | } |
| 8873 | _ACEOF |
| 8874 | rm -f conftest.$ac_objext |
| 8875 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8876 | (eval $ac_compile) 2>&5 |
| 8877 | ac_status=$? |
| 8878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8879 | (exit $ac_status); } && |
| 8880 | { ac_try='test -s conftest.$ac_objext' |
| 8881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8882 | (eval $ac_try) 2>&5 |
| 8883 | ac_status=$? |
| 8884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8885 | (exit $ac_status); }; }; then |
| 8886 | |
| 8887 | |
| 8888 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8889 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8890 | _ACEOF |
| 8891 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8892 | have_long_long=yes |
| 8893 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8894 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8895 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8896 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8897 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8898 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8899 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8900 | echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 8901 | echo "${ECHO_T}$have_long_long" >&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 8902 | if test "$have_long_long" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8903 | echo "$as_me:$LINENO: checking for long long" >&5 |
| 8904 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 8905 | if test "${ac_cv_type_long_long+set}" = set; then |
| 8906 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8907 | else |
| 8908 | cat >conftest.$ac_ext <<_ACEOF |
| 8909 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8910 | /* confdefs.h. */ |
| 8911 | _ACEOF |
| 8912 | cat confdefs.h >>conftest.$ac_ext |
| 8913 | cat >>conftest.$ac_ext <<_ACEOF |
| 8914 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8915 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8916 | int |
| 8917 | main () |
| 8918 | { |
| 8919 | if ((long long *) 0) |
| 8920 | return 0; |
| 8921 | if (sizeof (long long)) |
| 8922 | return 0; |
| 8923 | ; |
| 8924 | return 0; |
| 8925 | } |
| 8926 | _ACEOF |
| 8927 | rm -f conftest.$ac_objext |
| 8928 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8929 | (eval $ac_compile) 2>&5 |
| 8930 | ac_status=$? |
| 8931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8932 | (exit $ac_status); } && |
| 8933 | { ac_try='test -s conftest.$ac_objext' |
| 8934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8935 | (eval $ac_try) 2>&5 |
| 8936 | ac_status=$? |
| 8937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8938 | (exit $ac_status); }; }; then |
| 8939 | ac_cv_type_long_long=yes |
| 8940 | else |
| 8941 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8942 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8943 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8944 | ac_cv_type_long_long=no |
| 8945 | fi |
| 8946 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8947 | fi |
| 8948 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 8949 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
| 8950 | |
| 8951 | echo "$as_me:$LINENO: checking size of long long" >&5 |
| 8952 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 |
| 8953 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 8954 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8955 | else |
| 8956 | if test "$ac_cv_type_long_long" = yes; then |
| 8957 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8958 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8959 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8960 | # This bug is HP SR number 8606223364. |
| 8961 | if test "$cross_compiling" = yes; then |
| 8962 | # Depending upon the size, compute the lo and hi bounds. |
| 8963 | cat >conftest.$ac_ext <<_ACEOF |
| 8964 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8965 | /* confdefs.h. */ |
| 8966 | _ACEOF |
| 8967 | cat confdefs.h >>conftest.$ac_ext |
| 8968 | cat >>conftest.$ac_ext <<_ACEOF |
| 8969 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8970 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8971 | int |
| 8972 | main () |
| 8973 | { |
| 8974 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; |
| 8975 | test_array [0] = 0 |
| 8976 | |
| 8977 | ; |
| 8978 | return 0; |
| 8979 | } |
| 8980 | _ACEOF |
| 8981 | rm -f conftest.$ac_objext |
| 8982 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8983 | (eval $ac_compile) 2>&5 |
| 8984 | ac_status=$? |
| 8985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8986 | (exit $ac_status); } && |
| 8987 | { ac_try='test -s conftest.$ac_objext' |
| 8988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8989 | (eval $ac_try) 2>&5 |
| 8990 | ac_status=$? |
| 8991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8992 | (exit $ac_status); }; }; then |
| 8993 | ac_lo=0 ac_mid=0 |
| 8994 | while :; do |
| 8995 | cat >conftest.$ac_ext <<_ACEOF |
| 8996 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8997 | /* confdefs.h. */ |
| 8998 | _ACEOF |
| 8999 | cat confdefs.h >>conftest.$ac_ext |
| 9000 | cat >>conftest.$ac_ext <<_ACEOF |
| 9001 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9002 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9003 | int |
| 9004 | main () |
| 9005 | { |
| 9006 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 9007 | test_array [0] = 0 |
| 9008 | |
| 9009 | ; |
| 9010 | return 0; |
| 9011 | } |
| 9012 | _ACEOF |
| 9013 | rm -f conftest.$ac_objext |
| 9014 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9015 | (eval $ac_compile) 2>&5 |
| 9016 | ac_status=$? |
| 9017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9018 | (exit $ac_status); } && |
| 9019 | { ac_try='test -s conftest.$ac_objext' |
| 9020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9021 | (eval $ac_try) 2>&5 |
| 9022 | ac_status=$? |
| 9023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9024 | (exit $ac_status); }; }; then |
| 9025 | ac_hi=$ac_mid; break |
| 9026 | else |
| 9027 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9028 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9029 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9030 | ac_lo=`expr $ac_mid + 1` |
| 9031 | if test $ac_lo -le $ac_mid; then |
| 9032 | ac_lo= ac_hi= |
| 9033 | break |
| 9034 | fi |
| 9035 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 9036 | fi |
| 9037 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9038 | done |
| 9039 | else |
| 9040 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9041 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9042 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9043 | cat >conftest.$ac_ext <<_ACEOF |
| 9044 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9045 | /* confdefs.h. */ |
| 9046 | _ACEOF |
| 9047 | cat confdefs.h >>conftest.$ac_ext |
| 9048 | cat >>conftest.$ac_ext <<_ACEOF |
| 9049 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9050 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9051 | int |
| 9052 | main () |
| 9053 | { |
| 9054 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; |
| 9055 | test_array [0] = 0 |
| 9056 | |
| 9057 | ; |
| 9058 | return 0; |
| 9059 | } |
| 9060 | _ACEOF |
| 9061 | rm -f conftest.$ac_objext |
| 9062 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9063 | (eval $ac_compile) 2>&5 |
| 9064 | ac_status=$? |
| 9065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9066 | (exit $ac_status); } && |
| 9067 | { ac_try='test -s conftest.$ac_objext' |
| 9068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9069 | (eval $ac_try) 2>&5 |
| 9070 | ac_status=$? |
| 9071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9072 | (exit $ac_status); }; }; then |
| 9073 | ac_hi=-1 ac_mid=-1 |
| 9074 | while :; do |
| 9075 | cat >conftest.$ac_ext <<_ACEOF |
| 9076 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9077 | /* confdefs.h. */ |
| 9078 | _ACEOF |
| 9079 | cat confdefs.h >>conftest.$ac_ext |
| 9080 | cat >>conftest.$ac_ext <<_ACEOF |
| 9081 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9082 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9083 | int |
| 9084 | main () |
| 9085 | { |
| 9086 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; |
| 9087 | test_array [0] = 0 |
| 9088 | |
| 9089 | ; |
| 9090 | return 0; |
| 9091 | } |
| 9092 | _ACEOF |
| 9093 | rm -f conftest.$ac_objext |
| 9094 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9095 | (eval $ac_compile) 2>&5 |
| 9096 | ac_status=$? |
| 9097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9098 | (exit $ac_status); } && |
| 9099 | { ac_try='test -s conftest.$ac_objext' |
| 9100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9101 | (eval $ac_try) 2>&5 |
| 9102 | ac_status=$? |
| 9103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9104 | (exit $ac_status); }; }; then |
| 9105 | ac_lo=$ac_mid; break |
| 9106 | else |
| 9107 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9108 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9109 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9110 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9111 | if test $ac_mid -le $ac_hi; then |
| 9112 | ac_lo= ac_hi= |
| 9113 | break |
| 9114 | fi |
| 9115 | ac_mid=`expr 2 '*' $ac_mid` |
| 9116 | fi |
| 9117 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9118 | done |
| 9119 | else |
| 9120 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9121 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9122 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9123 | ac_lo= ac_hi= |
| 9124 | fi |
| 9125 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9126 | fi |
| 9127 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9128 | # Binary search between lo and hi bounds. |
| 9129 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9130 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9131 | cat >conftest.$ac_ext <<_ACEOF |
| 9132 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9133 | /* confdefs.h. */ |
| 9134 | _ACEOF |
| 9135 | cat confdefs.h >>conftest.$ac_ext |
| 9136 | cat >>conftest.$ac_ext <<_ACEOF |
| 9137 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9138 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9139 | int |
| 9140 | main () |
| 9141 | { |
| 9142 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 9143 | test_array [0] = 0 |
| 9144 | |
| 9145 | ; |
| 9146 | return 0; |
| 9147 | } |
| 9148 | _ACEOF |
| 9149 | rm -f conftest.$ac_objext |
| 9150 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9151 | (eval $ac_compile) 2>&5 |
| 9152 | ac_status=$? |
| 9153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9154 | (exit $ac_status); } && |
| 9155 | { ac_try='test -s conftest.$ac_objext' |
| 9156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9157 | (eval $ac_try) 2>&5 |
| 9158 | ac_status=$? |
| 9159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9160 | (exit $ac_status); }; }; then |
| 9161 | ac_hi=$ac_mid |
| 9162 | else |
| 9163 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9164 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9165 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9166 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 9167 | fi |
| 9168 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9169 | done |
| 9170 | case $ac_lo in |
| 9171 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9172 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 |
| 9173 | See \`config.log' for more details." >&5 |
| 9174 | echo "$as_me: error: cannot compute sizeof (long long), 77 |
| 9175 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9176 | { (exit 1); exit 1; }; } ;; |
| 9177 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9178 | else |
| 9179 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9180 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 9181 | See \`config.log' for more details." >&5 |
| 9182 | echo "$as_me: error: cannot run test program while cross compiling |
| 9183 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9184 | { (exit 1); exit 1; }; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9185 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9186 | cat >conftest.$ac_ext <<_ACEOF |
| 9187 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9188 | /* confdefs.h. */ |
| 9189 | _ACEOF |
| 9190 | cat confdefs.h >>conftest.$ac_ext |
| 9191 | cat >>conftest.$ac_ext <<_ACEOF |
| 9192 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9193 | $ac_includes_default |
| 9194 | long longval () { return (long) (sizeof (long long)); } |
| 9195 | unsigned long ulongval () { return (long) (sizeof (long long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9196 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9197 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9198 | int |
| 9199 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9200 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9201 | |
| 9202 | FILE *f = fopen ("conftest.val", "w"); |
| 9203 | if (! f) |
| 9204 | exit (1); |
| 9205 | if (((long) (sizeof (long long))) < 0) |
| 9206 | { |
| 9207 | long i = longval (); |
| 9208 | if (i != ((long) (sizeof (long long)))) |
| 9209 | exit (1); |
| 9210 | fprintf (f, "%ld\n", i); |
| 9211 | } |
| 9212 | else |
| 9213 | { |
| 9214 | unsigned long i = ulongval (); |
| 9215 | if (i != ((long) (sizeof (long long)))) |
| 9216 | exit (1); |
| 9217 | fprintf (f, "%lu\n", i); |
| 9218 | } |
| 9219 | exit (ferror (f) || fclose (f) != 0); |
| 9220 | |
| 9221 | ; |
| 9222 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9223 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9224 | _ACEOF |
| 9225 | rm -f conftest$ac_exeext |
| 9226 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9227 | (eval $ac_link) 2>&5 |
| 9228 | ac_status=$? |
| 9229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9230 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9232 | (eval $ac_try) 2>&5 |
| 9233 | ac_status=$? |
| 9234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9235 | (exit $ac_status); }; }; then |
| 9236 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9237 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9238 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9239 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9240 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9241 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9242 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9243 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 |
| 9244 | See \`config.log' for more details." >&5 |
| 9245 | echo "$as_me: error: cannot compute sizeof (long long), 77 |
| 9246 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9247 | { (exit 1); exit 1; }; } |
| 9248 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9249 | 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] | 9250 | fi |
| 9251 | fi |
| 9252 | rm -f conftest.val |
| 9253 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9254 | ac_cv_sizeof_long_long=0 |
| 9255 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9256 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9257 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 9258 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 |
| 9259 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9260 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9261 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9262 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9263 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9264 | fi |
| 9265 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9266 | echo "$as_me:$LINENO: checking for uintptr_t support" >&5 |
| 9267 | echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9268 | have_uintptr_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9269 | cat >conftest.$ac_ext <<_ACEOF |
| 9270 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9271 | /* confdefs.h. */ |
| 9272 | _ACEOF |
| 9273 | cat confdefs.h >>conftest.$ac_ext |
| 9274 | cat >>conftest.$ac_ext <<_ACEOF |
| 9275 | /* end confdefs.h. */ |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9276 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9277 | int |
| 9278 | main () |
| 9279 | { |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9280 | uintptr_t x; x = (uintptr_t)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9281 | ; |
| 9282 | return 0; |
| 9283 | } |
| 9284 | _ACEOF |
| 9285 | rm -f conftest.$ac_objext |
| 9286 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9287 | (eval $ac_compile) 2>&5 |
| 9288 | ac_status=$? |
| 9289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9290 | (exit $ac_status); } && |
| 9291 | { ac_try='test -s conftest.$ac_objext' |
| 9292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9293 | (eval $ac_try) 2>&5 |
| 9294 | ac_status=$? |
| 9295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9296 | (exit $ac_status); }; }; then |
| 9297 | |
| 9298 | |
| 9299 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9300 | #define HAVE_UINTPTR_T 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9301 | _ACEOF |
| 9302 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 9303 | have_uintptr_t=yes |
| 9304 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9305 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9306 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9307 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9308 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9309 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9310 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9311 | echo "$as_me:$LINENO: result: $have_uintptr_t" >&5 |
| 9312 | echo "${ECHO_T}$have_uintptr_t" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9313 | if test "$have_uintptr_t" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9314 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 9315 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| 9316 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 9317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9318 | else |
| 9319 | cat >conftest.$ac_ext <<_ACEOF |
| 9320 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9321 | /* confdefs.h. */ |
| 9322 | _ACEOF |
| 9323 | cat confdefs.h >>conftest.$ac_ext |
| 9324 | cat >>conftest.$ac_ext <<_ACEOF |
| 9325 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9326 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9327 | int |
| 9328 | main () |
| 9329 | { |
| 9330 | if ((uintptr_t *) 0) |
| 9331 | return 0; |
| 9332 | if (sizeof (uintptr_t)) |
| 9333 | return 0; |
| 9334 | ; |
| 9335 | return 0; |
| 9336 | } |
| 9337 | _ACEOF |
| 9338 | rm -f conftest.$ac_objext |
| 9339 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9340 | (eval $ac_compile) 2>&5 |
| 9341 | ac_status=$? |
| 9342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9343 | (exit $ac_status); } && |
| 9344 | { ac_try='test -s conftest.$ac_objext' |
| 9345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9346 | (eval $ac_try) 2>&5 |
| 9347 | ac_status=$? |
| 9348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9349 | (exit $ac_status); }; }; then |
| 9350 | ac_cv_type_uintptr_t=yes |
| 9351 | else |
| 9352 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9353 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9354 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9355 | ac_cv_type_uintptr_t=no |
| 9356 | fi |
| 9357 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9358 | fi |
| 9359 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 9360 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| 9361 | |
| 9362 | echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 9363 | echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6 |
| 9364 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
| 9365 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9366 | else |
| 9367 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 9368 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 9369 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9370 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9371 | # This bug is HP SR number 8606223364. |
| 9372 | if test "$cross_compiling" = yes; then |
| 9373 | # Depending upon the size, compute the lo and hi bounds. |
| 9374 | cat >conftest.$ac_ext <<_ACEOF |
| 9375 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9376 | /* confdefs.h. */ |
| 9377 | _ACEOF |
| 9378 | cat confdefs.h >>conftest.$ac_ext |
| 9379 | cat >>conftest.$ac_ext <<_ACEOF |
| 9380 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9381 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9382 | int |
| 9383 | main () |
| 9384 | { |
| 9385 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)]; |
| 9386 | test_array [0] = 0 |
| 9387 | |
| 9388 | ; |
| 9389 | return 0; |
| 9390 | } |
| 9391 | _ACEOF |
| 9392 | rm -f conftest.$ac_objext |
| 9393 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9394 | (eval $ac_compile) 2>&5 |
| 9395 | ac_status=$? |
| 9396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9397 | (exit $ac_status); } && |
| 9398 | { ac_try='test -s conftest.$ac_objext' |
| 9399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9400 | (eval $ac_try) 2>&5 |
| 9401 | ac_status=$? |
| 9402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9403 | (exit $ac_status); }; }; then |
| 9404 | ac_lo=0 ac_mid=0 |
| 9405 | while :; do |
| 9406 | cat >conftest.$ac_ext <<_ACEOF |
| 9407 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9408 | /* confdefs.h. */ |
| 9409 | _ACEOF |
| 9410 | cat confdefs.h >>conftest.$ac_ext |
| 9411 | cat >>conftest.$ac_ext <<_ACEOF |
| 9412 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9413 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9414 | int |
| 9415 | main () |
| 9416 | { |
| 9417 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 9418 | test_array [0] = 0 |
| 9419 | |
| 9420 | ; |
| 9421 | return 0; |
| 9422 | } |
| 9423 | _ACEOF |
| 9424 | rm -f conftest.$ac_objext |
| 9425 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9426 | (eval $ac_compile) 2>&5 |
| 9427 | ac_status=$? |
| 9428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9429 | (exit $ac_status); } && |
| 9430 | { ac_try='test -s conftest.$ac_objext' |
| 9431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9432 | (eval $ac_try) 2>&5 |
| 9433 | ac_status=$? |
| 9434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9435 | (exit $ac_status); }; }; then |
| 9436 | ac_hi=$ac_mid; break |
| 9437 | else |
| 9438 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9439 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9440 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9441 | ac_lo=`expr $ac_mid + 1` |
| 9442 | if test $ac_lo -le $ac_mid; then |
| 9443 | ac_lo= ac_hi= |
| 9444 | break |
| 9445 | fi |
| 9446 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 9447 | fi |
| 9448 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9449 | done |
| 9450 | else |
| 9451 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9452 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9453 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9454 | cat >conftest.$ac_ext <<_ACEOF |
| 9455 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9456 | /* confdefs.h. */ |
| 9457 | _ACEOF |
| 9458 | cat confdefs.h >>conftest.$ac_ext |
| 9459 | cat >>conftest.$ac_ext <<_ACEOF |
| 9460 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9461 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9462 | int |
| 9463 | main () |
| 9464 | { |
| 9465 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)]; |
| 9466 | test_array [0] = 0 |
| 9467 | |
| 9468 | ; |
| 9469 | return 0; |
| 9470 | } |
| 9471 | _ACEOF |
| 9472 | rm -f conftest.$ac_objext |
| 9473 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9474 | (eval $ac_compile) 2>&5 |
| 9475 | ac_status=$? |
| 9476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9477 | (exit $ac_status); } && |
| 9478 | { ac_try='test -s conftest.$ac_objext' |
| 9479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9480 | (eval $ac_try) 2>&5 |
| 9481 | ac_status=$? |
| 9482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9483 | (exit $ac_status); }; }; then |
| 9484 | ac_hi=-1 ac_mid=-1 |
| 9485 | while :; do |
| 9486 | cat >conftest.$ac_ext <<_ACEOF |
| 9487 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9488 | /* confdefs.h. */ |
| 9489 | _ACEOF |
| 9490 | cat confdefs.h >>conftest.$ac_ext |
| 9491 | cat >>conftest.$ac_ext <<_ACEOF |
| 9492 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9493 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9494 | int |
| 9495 | main () |
| 9496 | { |
| 9497 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)]; |
| 9498 | test_array [0] = 0 |
| 9499 | |
| 9500 | ; |
| 9501 | return 0; |
| 9502 | } |
| 9503 | _ACEOF |
| 9504 | rm -f conftest.$ac_objext |
| 9505 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9506 | (eval $ac_compile) 2>&5 |
| 9507 | ac_status=$? |
| 9508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9509 | (exit $ac_status); } && |
| 9510 | { ac_try='test -s conftest.$ac_objext' |
| 9511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9512 | (eval $ac_try) 2>&5 |
| 9513 | ac_status=$? |
| 9514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9515 | (exit $ac_status); }; }; then |
| 9516 | ac_lo=$ac_mid; break |
| 9517 | else |
| 9518 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9519 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9520 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9521 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9522 | if test $ac_mid -le $ac_hi; then |
| 9523 | ac_lo= ac_hi= |
| 9524 | break |
| 9525 | fi |
| 9526 | ac_mid=`expr 2 '*' $ac_mid` |
| 9527 | fi |
| 9528 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9529 | done |
| 9530 | else |
| 9531 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9532 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9533 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9534 | ac_lo= ac_hi= |
| 9535 | fi |
| 9536 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9537 | fi |
| 9538 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9539 | # Binary search between lo and hi bounds. |
| 9540 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9541 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9542 | cat >conftest.$ac_ext <<_ACEOF |
| 9543 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9544 | /* confdefs.h. */ |
| 9545 | _ACEOF |
| 9546 | cat confdefs.h >>conftest.$ac_ext |
| 9547 | cat >>conftest.$ac_ext <<_ACEOF |
| 9548 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9549 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9550 | int |
| 9551 | main () |
| 9552 | { |
| 9553 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 9554 | test_array [0] = 0 |
| 9555 | |
| 9556 | ; |
| 9557 | return 0; |
| 9558 | } |
| 9559 | _ACEOF |
| 9560 | rm -f conftest.$ac_objext |
| 9561 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9562 | (eval $ac_compile) 2>&5 |
| 9563 | ac_status=$? |
| 9564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9565 | (exit $ac_status); } && |
| 9566 | { ac_try='test -s conftest.$ac_objext' |
| 9567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9568 | (eval $ac_try) 2>&5 |
| 9569 | ac_status=$? |
| 9570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9571 | (exit $ac_status); }; }; then |
| 9572 | ac_hi=$ac_mid |
| 9573 | else |
| 9574 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9575 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9576 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9577 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 9578 | fi |
| 9579 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9580 | done |
| 9581 | case $ac_lo in |
| 9582 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9583 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77 |
| 9584 | See \`config.log' for more details." >&5 |
| 9585 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77 |
| 9586 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9587 | { (exit 1); exit 1; }; } ;; |
| 9588 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9589 | else |
| 9590 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9591 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 9592 | See \`config.log' for more details." >&5 |
| 9593 | echo "$as_me: error: cannot run test program while cross compiling |
| 9594 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9595 | { (exit 1); exit 1; }; } |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9596 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9597 | cat >conftest.$ac_ext <<_ACEOF |
| 9598 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9599 | /* confdefs.h. */ |
| 9600 | _ACEOF |
| 9601 | cat confdefs.h >>conftest.$ac_ext |
| 9602 | cat >>conftest.$ac_ext <<_ACEOF |
| 9603 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9604 | $ac_includes_default |
| 9605 | long longval () { return (long) (sizeof (uintptr_t)); } |
| 9606 | unsigned long ulongval () { return (long) (sizeof (uintptr_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9607 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9608 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9609 | int |
| 9610 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9611 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9612 | |
| 9613 | FILE *f = fopen ("conftest.val", "w"); |
| 9614 | if (! f) |
| 9615 | exit (1); |
| 9616 | if (((long) (sizeof (uintptr_t))) < 0) |
| 9617 | { |
| 9618 | long i = longval (); |
| 9619 | if (i != ((long) (sizeof (uintptr_t)))) |
| 9620 | exit (1); |
| 9621 | fprintf (f, "%ld\n", i); |
| 9622 | } |
| 9623 | else |
| 9624 | { |
| 9625 | unsigned long i = ulongval (); |
| 9626 | if (i != ((long) (sizeof (uintptr_t)))) |
| 9627 | exit (1); |
| 9628 | fprintf (f, "%lu\n", i); |
| 9629 | } |
| 9630 | exit (ferror (f) || fclose (f) != 0); |
| 9631 | |
| 9632 | ; |
| 9633 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9634 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9635 | _ACEOF |
| 9636 | rm -f conftest$ac_exeext |
| 9637 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9638 | (eval $ac_link) 2>&5 |
| 9639 | ac_status=$? |
| 9640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9641 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9643 | (eval $ac_try) 2>&5 |
| 9644 | ac_status=$? |
| 9645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9646 | (exit $ac_status); }; }; then |
| 9647 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9648 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9649 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9650 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9651 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9652 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9653 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9654 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77 |
| 9655 | See \`config.log' for more details." >&5 |
| 9656 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77 |
| 9657 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9658 | { (exit 1); exit 1; }; } |
| 9659 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9660 | 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] | 9661 | fi |
| 9662 | fi |
| 9663 | rm -f conftest.val |
| 9664 | else |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9665 | ac_cv_sizeof_uintptr_t=0 |
| 9666 | fi |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9667 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9668 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 9669 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6 |
| 9670 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9671 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9672 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9673 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9674 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9675 | fi |
| 9676 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9677 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9678 | echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 9679 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6 |
| 9680 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 9681 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9682 | else |
| 9683 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 9684 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9685 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9686 | cat >conftest.$ac_ext <<_ACEOF |
| 9687 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9688 | /* confdefs.h. */ |
| 9689 | _ACEOF |
| 9690 | cat confdefs.h >>conftest.$ac_ext |
| 9691 | cat >>conftest.$ac_ext <<_ACEOF |
| 9692 | /* end confdefs.h. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9693 | #include <stdio.h> |
| 9694 | #include <sys/types.h> |
| 9695 | main() |
| 9696 | { |
| 9697 | FILE *f=fopen("conftestval", "w"); |
| 9698 | if (!f) exit(1); |
| 9699 | fprintf(f, "%d\n", sizeof(off_t)); |
| 9700 | exit(0); |
| 9701 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9702 | _ACEOF |
| 9703 | rm -f conftest$ac_exeext |
| 9704 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9705 | (eval $ac_link) 2>&5 |
| 9706 | ac_status=$? |
| 9707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9708 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9710 | (eval $ac_try) 2>&5 |
| 9711 | ac_status=$? |
| 9712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9713 | (exit $ac_status); }; }; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9714 | ac_cv_sizeof_off_t=`cat conftestval` |
| 9715 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9716 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9717 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9718 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9719 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9720 | ( exit $ac_status ) |
| 9721 | ac_cv_sizeof_off_t=0 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9722 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9723 | 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] | 9724 | fi |
| 9725 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9726 | fi |
| 9727 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9728 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 9729 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6 |
| 9730 | |
| 9731 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9732 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9733 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9734 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9735 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9736 | echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 9737 | 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] | 9738 | if test "$have_long_long" = yes -a \ |
| 9739 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 9740 | "$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] | 9741 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9742 | cat >>confdefs.h <<\_ACEOF |
| 9743 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 9744 | _ACEOF |
| 9745 | |
| 9746 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9747 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9748 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9749 | echo "$as_me:$LINENO: result: no" >&5 |
| 9750 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9751 | fi |
| 9752 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9753 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9754 | echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 9755 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6 |
| 9756 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 9757 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9758 | else |
| 9759 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 9760 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9761 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9762 | cat >conftest.$ac_ext <<_ACEOF |
| 9763 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9764 | /* confdefs.h. */ |
| 9765 | _ACEOF |
| 9766 | cat confdefs.h >>conftest.$ac_ext |
| 9767 | cat >>conftest.$ac_ext <<_ACEOF |
| 9768 | /* end confdefs.h. */ |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9769 | #include <stdio.h> |
| 9770 | #include <time.h> |
| 9771 | main() |
| 9772 | { |
| 9773 | FILE *f=fopen("conftestval", "w"); |
| 9774 | if (!f) exit(1); |
| 9775 | fprintf(f, "%d\n", sizeof(time_t)); |
| 9776 | exit(0); |
| 9777 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9778 | _ACEOF |
| 9779 | rm -f conftest$ac_exeext |
| 9780 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9781 | (eval $ac_link) 2>&5 |
| 9782 | ac_status=$? |
| 9783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9784 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9786 | (eval $ac_try) 2>&5 |
| 9787 | ac_status=$? |
| 9788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9789 | (exit $ac_status); }; }; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9790 | ac_cv_sizeof_time_t=`cat conftestval` |
| 9791 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9792 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9793 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9794 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9795 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9796 | ( exit $ac_status ) |
| 9797 | ac_cv_sizeof_time_t=0 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9798 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9799 | 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] | 9800 | fi |
| 9801 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9802 | fi |
| 9803 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9804 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 9805 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6 |
| 9806 | |
| 9807 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9808 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9809 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9810 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9811 | |
| 9812 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9813 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9814 | ac_save_cc="$CC" |
| 9815 | if test "$ac_cv_kpthread" = "yes" |
| 9816 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 9817 | elif test "$ac_cv_kthread" = "yes" |
| 9818 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9819 | elif test "$ac_cv_pthread" = "yes" |
| 9820 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9821 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9822 | echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 9823 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9824 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9825 | cat >conftest.$ac_ext <<_ACEOF |
| 9826 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9827 | /* confdefs.h. */ |
| 9828 | _ACEOF |
| 9829 | cat confdefs.h >>conftest.$ac_ext |
| 9830 | cat >>conftest.$ac_ext <<_ACEOF |
| 9831 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9832 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9833 | int |
| 9834 | main () |
| 9835 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 9836 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9837 | ; |
| 9838 | return 0; |
| 9839 | } |
| 9840 | _ACEOF |
| 9841 | rm -f conftest.$ac_objext |
| 9842 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9843 | (eval $ac_compile) 2>&5 |
| 9844 | ac_status=$? |
| 9845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9846 | (exit $ac_status); } && |
| 9847 | { ac_try='test -s conftest.$ac_objext' |
| 9848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9849 | (eval $ac_try) 2>&5 |
| 9850 | ac_status=$? |
| 9851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9852 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9853 | have_pthread_t=yes |
| 9854 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9855 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9856 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9857 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9858 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9859 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9860 | echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 9861 | echo "${ECHO_T}$have_pthread_t" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9862 | if test "$have_pthread_t" = yes ; then |
| 9863 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9864 | echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 9865 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6 |
| 9866 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 9867 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9868 | else |
| 9869 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 9870 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9871 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9872 | cat >conftest.$ac_ext <<_ACEOF |
| 9873 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9874 | /* confdefs.h. */ |
| 9875 | _ACEOF |
| 9876 | cat confdefs.h >>conftest.$ac_ext |
| 9877 | cat >>conftest.$ac_ext <<_ACEOF |
| 9878 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9879 | #include <stdio.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 9880 | #include <pthread.h> |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9881 | main() |
| 9882 | { |
| 9883 | FILE *f=fopen("conftestval", "w"); |
| 9884 | if (!f) exit(1); |
| 9885 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 9886 | exit(0); |
| 9887 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9888 | _ACEOF |
| 9889 | rm -f conftest$ac_exeext |
| 9890 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9891 | (eval $ac_link) 2>&5 |
| 9892 | ac_status=$? |
| 9893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9894 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9896 | (eval $ac_try) 2>&5 |
| 9897 | ac_status=$? |
| 9898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9899 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9900 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 9901 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9902 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9903 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9904 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9905 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9906 | ( exit $ac_status ) |
| 9907 | ac_cv_sizeof_pthread_t=0 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9908 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9909 | 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] | 9910 | fi |
| 9911 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9912 | fi |
| 9913 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9914 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
| 9915 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6 |
| 9916 | |
| 9917 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9918 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9919 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9920 | |
| 9921 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9922 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9923 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9924 | echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 9925 | echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9926 | # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given. |
| 9927 | if test "${enable_toolbox_glue+set}" = set; then |
| 9928 | enableval="$enable_toolbox_glue" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9929 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9930 | fi; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9931 | |
| 9932 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9933 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9934 | case $ac_sys_system/$ac_sys_release in |
| 9935 | Darwin/*) |
| 9936 | enable_toolbox_glue="yes";; |
| 9937 | *) |
| 9938 | enable_toolbox_glue="no";; |
| 9939 | esac |
| 9940 | fi |
| 9941 | case "$enable_toolbox_glue" in |
| 9942 | yes) |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 9943 | extra_frameworks="-framework CoreServices -framework Foundation" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9944 | extra_machdep_objs="Python/mactoolboxglue.o" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 9945 | extra_undefs="-u __dummy -u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9946 | |
| 9947 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9948 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9949 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9950 | |
| 9951 | ;; |
| 9952 | *) |
| 9953 | extra_frameworks="" |
| 9954 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 9955 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9956 | ;; |
| 9957 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9958 | echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 9959 | echo "${ECHO_T}$enable_toolbox_glue" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9960 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9961 | |
| 9962 | case $ac_sys_system/$ac_sys_release in |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9963 | Darwin/1.3*) |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9964 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc" |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9965 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | 66b8483 | 2003-07-04 12:14:39 +0000 | [diff] [blame] | 9966 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/Python' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9967 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 9968 | Darwin/*) |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9969 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc" |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9970 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | 66b8483 | 2003-07-04 12:14:39 +0000 | [diff] [blame] | 9971 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/Python' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9972 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9973 | esac |
| 9974 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9975 | echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 9976 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9977 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9978 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9979 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9980 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9981 | # in the build location. |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9982 | LDFLAGS="$LDFLAGS -Wl,-F." |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9983 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9984 | cat >>confdefs.h <<\_ACEOF |
| 9985 | #define WITH_NEXT_FRAMEWORK 1 |
| 9986 | _ACEOF |
| 9987 | |
| 9988 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9989 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9990 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9991 | echo "$as_me:$LINENO: result: no" >&5 |
| 9992 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9993 | fi |
| 9994 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9995 | echo "$as_me:$LINENO: checking for dyld" >&5 |
| 9996 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9997 | case $ac_sys_system/$ac_sys_release in |
| 9998 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9999 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10000 | cat >>confdefs.h <<\_ACEOF |
| 10001 | #define WITH_DYLD 1 |
| 10002 | _ACEOF |
| 10003 | |
| 10004 | echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 10005 | echo "${ECHO_T}always on for Darwin" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10006 | ;; |
| 10007 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10008 | echo "$as_me:$LINENO: result: no" >&5 |
| 10009 | echo "${ECHO_T}no" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10010 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10011 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10012 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10013 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10014 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10015 | |
| 10016 | |
| 10017 | |
| 10018 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10019 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 10020 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10021 | echo "$as_me:$LINENO: checking SO" >&5 |
| 10022 | echo $ECHO_N "checking SO... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10023 | if test -z "$SO" |
| 10024 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10025 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 10026 | hp*|HP*) SO=.sl;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 10027 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 10028 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10029 | esac |
Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 10030 | else |
| 10031 | # this might also be a termcap variable, see #610332 |
| 10032 | echo |
| 10033 | echo '=====================================================================' |
| 10034 | echo '+ +' |
| 10035 | echo '+ WARNING: You have set SO in your environment. +' |
| 10036 | echo '+ Do you really mean to change the extension for shared libraries? +' |
| 10037 | echo '+ Continuing in 10 seconds to let you to ponder. +' |
| 10038 | echo '+ +' |
| 10039 | echo '=====================================================================' |
| 10040 | sleep 10 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10041 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10042 | echo "$as_me:$LINENO: result: $SO" >&5 |
| 10043 | echo "${ECHO_T}$SO" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10044 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 5b718fc | 2001-09-10 15:34:42 +0000 | [diff] [blame] | 10045 | # -- "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] | 10046 | # (Shared libraries in this instance are shared modules to be loaded into |
| 10047 | # 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] | 10048 | echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 10049 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10050 | if test -z "$LDSHARED" |
| 10051 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10052 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10053 | AIX*) |
| 10054 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 10055 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10056 | ;; |
| 10057 | BeOS*) |
| 10058 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 10059 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10060 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 10061 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 10062 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10063 | SunOS/4*) LDSHARED="ld";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10064 | SunOS/5*) |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 10065 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 10066 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 10067 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 10068 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10069 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 10070 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
| 10071 | DYNIX/ptx*) LDSHARED="ld -G";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 10072 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10073 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 10074 | if test "$enable_framework" ; then |
| 10075 | # Link against the framework. All externals should be defined. |
| 10076 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 10077 | else |
| 10078 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 10079 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10080 | fi ;; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10081 | Darwin/*) |
| 10082 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 10083 | if test "$enable_framework" ; then |
| 10084 | # Link against the framework. All externals should be defined. |
| 10085 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 10086 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 10087 | # No framework, use the Python app as bundle-loader |
| 10088 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 10089 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10090 | fi ;; |
Martin v. Löwis | 3cba5c0 | 2002-09-16 17:50:59 +0000 | [diff] [blame] | 10091 | Linux*|GNU*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 10092 | dgux*) LDSHARED="ld -G";; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 10093 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 10094 | OpenBSD*|FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 10095 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 10096 | then |
| 10097 | LDSHARED="cc -shared ${LDFLAGS}" |
| 10098 | else |
| 10099 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 10100 | fi;; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 10101 | NetBSD*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 10102 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10103 | if test "$GCC" = "yes" |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 10104 | then LDSHARED='$(CC) -shared' |
| 10105 | else LDSHARED='$(CC) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10106 | fi;; |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 10107 | SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10108 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 10109 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10110 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10111 | *) LDSHARED="ld";; |
| 10112 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10113 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10114 | echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 10115 | echo "${ECHO_T}$LDSHARED" >&6 |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10116 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10117 | # 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] | 10118 | # library (module) -- this is only needed for a few systems |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10119 | echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 10120 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10121 | if test -z "$CCSHARED" |
| 10122 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 10123 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 10124 | SunOS*) if test "$GCC" = yes; |
| 10125 | then CCSHARED="-fPIC"; |
| 10126 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 10127 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 10128 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 10129 | else CCSHARED="+z"; |
| 10130 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10131 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 10132 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 10133 | FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 10134 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10135 | if test "$GCC" = "yes" |
| 10136 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10137 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10138 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 10139 | SCO_SV*) |
| 10140 | if test "$GCC" = "yes" |
| 10141 | then CCSHARED="-fPIC" |
| 10142 | else CCSHARED="-Kpic -belf" |
| 10143 | fi;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10144 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10145 | IRIX*/6*) case $CC in |
| 10146 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 10147 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10148 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10149 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10150 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10151 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10152 | echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 10153 | echo "${ECHO_T}$CCSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10154 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10155 | # 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] | 10156 | echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 10157 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10158 | if test -z "$LINKFORSHARED" |
| 10159 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 10160 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10161 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 10162 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10163 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 10164 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 10165 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10166 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10167 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10168 | Darwin/*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10169 | # -u __dummy makes the linker aware of the objc runtime |
| 10170 | # in System.framework; otherwise, __objcInit (referenced in |
| 10171 | # crt1.o) gets erroneously defined as common, which breaks dynamic |
| 10172 | # loading of any modules which reference it in System.framework. |
| 10173 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, which is |
| 10174 | # not used by the core itself but which needs to be in the core so |
| 10175 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 10176 | # -prebind is no longer used, because it actually seems to give a |
| 10177 | # slowdown in stead of a speedup, maybe due to the large number of |
| 10178 | # dynamic loads Python does. |
| 10179 | LINKFORSHARED="$extra_undefs -framework System" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10180 | if test "$enable_framework" |
| 10181 | then |
| 10182 | LINKFORSHARED="$LINKFORSHARED -framework Python" |
| 10183 | fi |
| 10184 | LINKFORSHARED="$LINKFORSHARED $extra_frameworks";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 10185 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 10186 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 10187 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10188 | FreeBSD*|NetBSD*|OpenBSD*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 10189 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 10190 | then |
| 10191 | LINKFORSHARED="-Wl,--export-dynamic" |
| 10192 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10193 | SunOS/5*) case $CC in |
| 10194 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 10195 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 10196 | then |
| 10197 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10198 | fi;; |
| 10199 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 10200 | CYGWIN*) |
| 10201 | if test $enable_shared = "no" |
| 10202 | then |
| 10203 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 10204 | fi;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10205 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10206 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10207 | echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 10208 | echo "${ECHO_T}$LINKFORSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10209 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10210 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10211 | echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 10212 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 10213 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 10214 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 10215 | case $ac_sys_system in |
| 10216 | CYGWIN*) |
| 10217 | # Cygwin needs CCSHARED when building extension DLLs |
| 10218 | # but not when building the interpreter DLL. |
| 10219 | CFLAGSFORSHARED='';; |
| 10220 | *) |
| 10221 | CFLAGSFORSHARED='$(CCSHARED)' |
| 10222 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 10223 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10224 | echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 10225 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 10226 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10227 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 10228 | # library (with --enable-shared). |
| 10229 | # 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] | 10230 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 10231 | # if it is not required, since it creates a dependency of the shared library |
| 10232 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 10233 | # don't need to link LIBS explicitly. The default should be only changed |
| 10234 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10235 | |
| 10236 | echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 10237 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6 |
| 10238 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10239 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 10240 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10241 | esac |
| 10242 | echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 10243 | echo "${ECHO_T}$SHLIBS" >&6 |
| 10244 | |
| 10245 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10246 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10247 | |
| 10248 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 10249 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 10250 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 10251 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10252 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10253 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10254 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10255 | cat >conftest.$ac_ext <<_ACEOF |
| 10256 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10257 | /* confdefs.h. */ |
| 10258 | _ACEOF |
| 10259 | cat confdefs.h >>conftest.$ac_ext |
| 10260 | cat >>conftest.$ac_ext <<_ACEOF |
| 10261 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10262 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10263 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10264 | #ifdef __cplusplus |
| 10265 | extern "C" |
| 10266 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10267 | /* 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] | 10268 | builtin and then its argument prototype would still apply. */ |
| 10269 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10270 | int |
| 10271 | main () |
| 10272 | { |
| 10273 | dlopen (); |
| 10274 | ; |
| 10275 | return 0; |
| 10276 | } |
| 10277 | _ACEOF |
| 10278 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10279 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10280 | (eval $ac_link) 2>&5 |
| 10281 | ac_status=$? |
| 10282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10283 | (exit $ac_status); } && |
| 10284 | { ac_try='test -s conftest$ac_exeext' |
| 10285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10286 | (eval $ac_try) 2>&5 |
| 10287 | ac_status=$? |
| 10288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10289 | (exit $ac_status); }; }; then |
| 10290 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10291 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10292 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10293 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10294 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10295 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10296 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10297 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10298 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10299 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10300 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10301 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 10302 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 10303 | cat >>confdefs.h <<_ACEOF |
| 10304 | #define HAVE_LIBDL 1 |
| 10305 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10306 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10307 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10308 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10309 | fi |
| 10310 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10311 | |
| 10312 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 10313 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 10314 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 10315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10316 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10317 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10318 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10319 | cat >conftest.$ac_ext <<_ACEOF |
| 10320 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10321 | /* confdefs.h. */ |
| 10322 | _ACEOF |
| 10323 | cat confdefs.h >>conftest.$ac_ext |
| 10324 | cat >>conftest.$ac_ext <<_ACEOF |
| 10325 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10326 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10327 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10328 | #ifdef __cplusplus |
| 10329 | extern "C" |
| 10330 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10331 | /* 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] | 10332 | builtin and then its argument prototype would still apply. */ |
| 10333 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10334 | int |
| 10335 | main () |
| 10336 | { |
| 10337 | shl_load (); |
| 10338 | ; |
| 10339 | return 0; |
| 10340 | } |
| 10341 | _ACEOF |
| 10342 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10343 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10344 | (eval $ac_link) 2>&5 |
| 10345 | ac_status=$? |
| 10346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10347 | (exit $ac_status); } && |
| 10348 | { ac_try='test -s conftest$ac_exeext' |
| 10349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10350 | (eval $ac_try) 2>&5 |
| 10351 | ac_status=$? |
| 10352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10353 | (exit $ac_status); }; }; then |
| 10354 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10355 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10356 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10357 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10358 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10359 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10360 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10361 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10362 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10363 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10364 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 10365 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 10366 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 10367 | cat >>confdefs.h <<_ACEOF |
| 10368 | #define HAVE_LIBDLD 1 |
| 10369 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10370 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10371 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10372 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10373 | fi |
| 10374 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10375 | |
| 10376 | # only check for sem_ini if thread support is requested |
| 10377 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
| 10378 | 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] | 10379 | echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6 |
| 10380 | if test "${ac_cv_search_sem_init+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10382 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10383 | ac_func_search_save_LIBS=$LIBS |
| 10384 | ac_cv_search_sem_init=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10385 | cat >conftest.$ac_ext <<_ACEOF |
| 10386 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10387 | /* confdefs.h. */ |
| 10388 | _ACEOF |
| 10389 | cat confdefs.h >>conftest.$ac_ext |
| 10390 | cat >>conftest.$ac_ext <<_ACEOF |
| 10391 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10392 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10393 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10394 | #ifdef __cplusplus |
| 10395 | extern "C" |
| 10396 | #endif |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10397 | /* 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] | 10398 | builtin and then its argument prototype would still apply. */ |
| 10399 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10400 | int |
| 10401 | main () |
| 10402 | { |
| 10403 | sem_init (); |
| 10404 | ; |
| 10405 | return 0; |
| 10406 | } |
| 10407 | _ACEOF |
| 10408 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10409 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10410 | (eval $ac_link) 2>&5 |
| 10411 | ac_status=$? |
| 10412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10413 | (exit $ac_status); } && |
| 10414 | { ac_try='test -s conftest$ac_exeext' |
| 10415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10416 | (eval $ac_try) 2>&5 |
| 10417 | ac_status=$? |
| 10418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10419 | (exit $ac_status); }; }; then |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10420 | ac_cv_search_sem_init="none required" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10421 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10422 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10423 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10424 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10425 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10426 | 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] | 10427 | if test "$ac_cv_search_sem_init" = no; then |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 10428 | for ac_lib in pthread rt posix4; do |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10429 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 10430 | cat >conftest.$ac_ext <<_ACEOF |
| 10431 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10432 | /* confdefs.h. */ |
| 10433 | _ACEOF |
| 10434 | cat confdefs.h >>conftest.$ac_ext |
| 10435 | cat >>conftest.$ac_ext <<_ACEOF |
| 10436 | /* end confdefs.h. */ |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10437 | |
| 10438 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10439 | #ifdef __cplusplus |
| 10440 | extern "C" |
| 10441 | #endif |
| 10442 | /* We use char because int might match the return type of a gcc2 |
| 10443 | builtin and then its argument prototype would still apply. */ |
| 10444 | char sem_init (); |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10445 | int |
| 10446 | main () |
| 10447 | { |
| 10448 | sem_init (); |
| 10449 | ; |
| 10450 | return 0; |
| 10451 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10452 | _ACEOF |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10453 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10454 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10455 | (eval $ac_link) 2>&5 |
| 10456 | ac_status=$? |
| 10457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10458 | (exit $ac_status); } && |
| 10459 | { ac_try='test -s conftest$ac_exeext' |
| 10460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10461 | (eval $ac_try) 2>&5 |
| 10462 | ac_status=$? |
| 10463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10464 | (exit $ac_status); }; }; then |
| 10465 | ac_cv_search_sem_init="-l$ac_lib" |
| 10466 | break |
| 10467 | else |
| 10468 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10469 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10470 | |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10471 | fi |
| 10472 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10473 | done |
| 10474 | fi |
| 10475 | LIBS=$ac_func_search_save_LIBS |
| 10476 | fi |
| 10477 | echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 10478 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6 |
| 10479 | if test "$ac_cv_search_sem_init" != no; then |
| 10480 | 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] | 10481 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10482 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 10483 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10484 | # posix4 on Solaris 2.6 |
| 10485 | # pthread (first!) on Linux |
| 10486 | fi |
| 10487 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10488 | # check if we need libintl for locale functions |
| 10489 | echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5 |
| 10490 | echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6 |
| 10491 | if test "${ac_cv_lib_intl_textdomain+set}" = set; then |
| 10492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10493 | else |
| 10494 | ac_check_lib_save_LIBS=$LIBS |
| 10495 | LIBS="-lintl $LIBS" |
| 10496 | cat >conftest.$ac_ext <<_ACEOF |
| 10497 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10498 | /* confdefs.h. */ |
| 10499 | _ACEOF |
| 10500 | cat confdefs.h >>conftest.$ac_ext |
| 10501 | cat >>conftest.$ac_ext <<_ACEOF |
| 10502 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10503 | |
| 10504 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10505 | #ifdef __cplusplus |
| 10506 | extern "C" |
| 10507 | #endif |
| 10508 | /* We use char because int might match the return type of a gcc2 |
| 10509 | builtin and then its argument prototype would still apply. */ |
| 10510 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10511 | int |
| 10512 | main () |
| 10513 | { |
| 10514 | textdomain (); |
| 10515 | ; |
| 10516 | return 0; |
| 10517 | } |
| 10518 | _ACEOF |
| 10519 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10520 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10521 | (eval $ac_link) 2>&5 |
| 10522 | ac_status=$? |
| 10523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10524 | (exit $ac_status); } && |
| 10525 | { ac_try='test -s conftest$ac_exeext' |
| 10526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10527 | (eval $ac_try) 2>&5 |
| 10528 | ac_status=$? |
| 10529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10530 | (exit $ac_status); }; }; then |
| 10531 | ac_cv_lib_intl_textdomain=yes |
| 10532 | else |
| 10533 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10534 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10535 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10536 | ac_cv_lib_intl_textdomain=no |
| 10537 | fi |
| 10538 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10539 | LIBS=$ac_check_lib_save_LIBS |
| 10540 | fi |
| 10541 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5 |
| 10542 | echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6 |
| 10543 | if test $ac_cv_lib_intl_textdomain = yes; then |
| 10544 | |
| 10545 | cat >>confdefs.h <<\_ACEOF |
| 10546 | #define WITH_LIBINTL 1 |
| 10547 | _ACEOF |
| 10548 | |
| 10549 | fi |
| 10550 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10551 | |
| 10552 | # checks for system dependent C++ extensions support |
| 10553 | case "$ac_sys_system" in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10554 | AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 10555 | echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6 |
| 10556 | cat >conftest.$ac_ext <<_ACEOF |
| 10557 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10558 | /* confdefs.h. */ |
| 10559 | _ACEOF |
| 10560 | cat confdefs.h >>conftest.$ac_ext |
| 10561 | cat >>conftest.$ac_ext <<_ACEOF |
| 10562 | /* end confdefs.h. */ |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10563 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10564 | int |
| 10565 | main () |
| 10566 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10567 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10568 | ; |
| 10569 | return 0; |
| 10570 | } |
| 10571 | _ACEOF |
| 10572 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10573 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10574 | (eval $ac_link) 2>&5 |
| 10575 | ac_status=$? |
| 10576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10577 | (exit $ac_status); } && |
| 10578 | { ac_try='test -s conftest$ac_exeext' |
| 10579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10580 | (eval $ac_try) 2>&5 |
| 10581 | ac_status=$? |
| 10582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10583 | (exit $ac_status); }; }; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10584 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10585 | cat >>confdefs.h <<\_ACEOF |
| 10586 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 10587 | _ACEOF |
| 10588 | |
| 10589 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10590 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10591 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10592 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10593 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10594 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10595 | echo "$as_me:$LINENO: result: no" >&5 |
| 10596 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10597 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10598 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10599 | *) ;; |
| 10600 | esac |
| 10601 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 10602 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Martin v. Löwis | e117258 | 2002-11-13 08:51:19 +0000 | [diff] [blame] | 10603 | # However on SGI IRIX 4, these exist but are broken. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10604 | # BeOS' sockets are stashed in libnet. |
| 10605 | case "$ac_sys_system" in |
| 10606 | IRIX*) ;; |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10607 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10608 | echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 10609 | echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6 |
| 10610 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
| 10611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10612 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10613 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10614 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10615 | cat >conftest.$ac_ext <<_ACEOF |
| 10616 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10617 | /* confdefs.h. */ |
| 10618 | _ACEOF |
| 10619 | cat confdefs.h >>conftest.$ac_ext |
| 10620 | cat >>conftest.$ac_ext <<_ACEOF |
| 10621 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10622 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10623 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10624 | #ifdef __cplusplus |
| 10625 | extern "C" |
| 10626 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10627 | /* 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] | 10628 | builtin and then its argument prototype would still apply. */ |
| 10629 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10630 | int |
| 10631 | main () |
| 10632 | { |
| 10633 | t_open (); |
| 10634 | ; |
| 10635 | return 0; |
| 10636 | } |
| 10637 | _ACEOF |
| 10638 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10639 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10640 | (eval $ac_link) 2>&5 |
| 10641 | ac_status=$? |
| 10642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10643 | (exit $ac_status); } && |
| 10644 | { ac_try='test -s conftest$ac_exeext' |
| 10645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10646 | (eval $ac_try) 2>&5 |
| 10647 | ac_status=$? |
| 10648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10649 | (exit $ac_status); }; }; then |
| 10650 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10651 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10652 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10653 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10654 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10655 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10656 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10657 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10658 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10659 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10660 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 10661 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6 |
| 10662 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10663 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10664 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 10665 | # SVR4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10666 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 10667 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 10668 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 10669 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10670 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10671 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10672 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10673 | cat >conftest.$ac_ext <<_ACEOF |
| 10674 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10675 | /* confdefs.h. */ |
| 10676 | _ACEOF |
| 10677 | cat confdefs.h >>conftest.$ac_ext |
| 10678 | cat >>conftest.$ac_ext <<_ACEOF |
| 10679 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10680 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10681 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10682 | #ifdef __cplusplus |
| 10683 | extern "C" |
| 10684 | #endif |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10685 | /* 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] | 10686 | builtin and then its argument prototype would still apply. */ |
| 10687 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10688 | int |
| 10689 | main () |
| 10690 | { |
| 10691 | socket (); |
| 10692 | ; |
| 10693 | return 0; |
| 10694 | } |
| 10695 | _ACEOF |
| 10696 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10697 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10698 | (eval $ac_link) 2>&5 |
| 10699 | ac_status=$? |
| 10700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10701 | (exit $ac_status); } && |
| 10702 | { ac_try='test -s conftest$ac_exeext' |
| 10703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10704 | (eval $ac_try) 2>&5 |
| 10705 | ac_status=$? |
| 10706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10707 | (exit $ac_status); }; }; then |
| 10708 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10709 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10710 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10711 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10712 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10713 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10714 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10715 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10716 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10717 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10718 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 10719 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 10720 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10721 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10722 | fi |
| 10723 | # SVR4 sockets |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 10724 | ;; |
| 10725 | esac |
| 10726 | case "$ac_sys_system" in |
| 10727 | BeOS*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10728 | echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 10729 | echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6 |
| 10730 | if test "${ac_cv_lib_net_socket+set}" = set; then |
| 10731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10732 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10733 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10734 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10735 | cat >conftest.$ac_ext <<_ACEOF |
| 10736 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10737 | /* confdefs.h. */ |
| 10738 | _ACEOF |
| 10739 | cat confdefs.h >>conftest.$ac_ext |
| 10740 | cat >>conftest.$ac_ext <<_ACEOF |
| 10741 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10742 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10743 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10744 | #ifdef __cplusplus |
| 10745 | extern "C" |
| 10746 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10747 | /* 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] | 10748 | builtin and then its argument prototype would still apply. */ |
| 10749 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10750 | int |
| 10751 | main () |
| 10752 | { |
| 10753 | socket (); |
| 10754 | ; |
| 10755 | return 0; |
| 10756 | } |
| 10757 | _ACEOF |
| 10758 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10759 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10760 | (eval $ac_link) 2>&5 |
| 10761 | ac_status=$? |
| 10762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10763 | (exit $ac_status); } && |
| 10764 | { ac_try='test -s conftest$ac_exeext' |
| 10765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10766 | (eval $ac_try) 2>&5 |
| 10767 | ac_status=$? |
| 10768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10769 | (exit $ac_status); }; }; then |
| 10770 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10771 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10772 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10773 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10774 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10775 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10776 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10777 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10778 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10779 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10780 | echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 10781 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6 |
| 10782 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10783 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10784 | fi |
| 10785 | # BeOS |
| 10786 | ;; |
| 10787 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 10788 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10789 | echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 10790 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6 |
| 10791 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 10792 | # Check whether --with-libs or --without-libs was given. |
| 10793 | if test "${with_libs+set}" = set; then |
| 10794 | withval="$with_libs" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10795 | |
| 10796 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 10797 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 10798 | LIBS="$withval $LIBS" |
| 10799 | |
| 10800 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10801 | echo "$as_me:$LINENO: result: no" >&5 |
| 10802 | echo "${ECHO_T}no" >&6 |
| 10803 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10804 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10805 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10806 | |
| 10807 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10808 | echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 10809 | echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6 |
| 10810 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10811 | # Check whether --with-signal-module or --without-signal-module was given. |
| 10812 | if test "${with_signal_module+set}" = set; then |
| 10813 | withval="$with_signal_module" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10814 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10815 | fi; |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10816 | |
| 10817 | if test -z "$with_signal_module" |
| 10818 | then with_signal_module="yes" |
| 10819 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10820 | echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 10821 | echo "${ECHO_T}$with_signal_module" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10822 | |
| 10823 | if test "${with_signal_module}" = "yes"; then |
| 10824 | USE_SIGNAL_MODULE="" |
| 10825 | SIGNAL_OBJS="" |
| 10826 | else |
| 10827 | USE_SIGNAL_MODULE="#" |
| 10828 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 10829 | fi |
| 10830 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 10831 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 10832 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10833 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 10834 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10835 | echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 10836 | echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6 |
| 10837 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10838 | |
| 10839 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 10840 | if test "${with_dec_threads+set}" = set; then |
| 10841 | withval="$with_dec_threads" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10842 | |
| 10843 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 10844 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10845 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 10846 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10847 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 10848 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10849 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10850 | echo "$as_me:$LINENO: result: no" >&5 |
| 10851 | echo "${ECHO_T}no" >&6 |
| 10852 | fi; |
| 10853 | |
| 10854 | # Templates for things AC_DEFINEd more than once. |
| 10855 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10856 | |
| 10857 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10858 | |
| 10859 | |
| 10860 | |
| 10861 | |
| 10862 | |
| 10863 | echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 10864 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6 |
| 10865 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10866 | # Check whether --with-threads or --without-threads was given. |
| 10867 | if test "${with_threads+set}" = set; then |
| 10868 | withval="$with_threads" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10869 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10870 | fi; |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10871 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10872 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10873 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10874 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10875 | if test "${with_thread+set}" = set; then |
| 10876 | withval="$with_thread" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10877 | with_threads=$with_thread |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10878 | fi; |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10879 | |
| 10880 | if test -z "$with_threads" |
| 10881 | then with_threads="yes" |
| 10882 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10883 | echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 10884 | echo "${ECHO_T}$with_threads" >&6 |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10885 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10886 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10887 | if test "$with_threads" = "no" |
| 10888 | then |
| 10889 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10890 | elif test "$ac_cv_pthread_is_default" = yes |
| 10891 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10892 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10893 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10894 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10895 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10896 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10897 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10898 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10899 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10900 | |
| 10901 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10902 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10903 | elif test "$ac_cv_kpthread" = "yes" |
| 10904 | then |
| 10905 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10906 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 10907 | CXX="$CXX -Kpthread" |
| 10908 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10909 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 10910 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10911 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 10912 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10913 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10914 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10915 | elif test "$ac_cv_kthread" = "yes" |
| 10916 | then |
| 10917 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10918 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 10919 | CXX="$CXX -Kthread" |
| 10920 | fi |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10921 | cat >>confdefs.h <<\_ACEOF |
| 10922 | #define WITH_THREAD 1 |
| 10923 | _ACEOF |
| 10924 | |
| 10925 | posix_threads=yes |
| 10926 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10927 | elif test "$ac_cv_pthread" = "yes" |
| 10928 | then |
| 10929 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10930 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 10931 | CXX="$CXX -pthread" |
| 10932 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10933 | cat >>confdefs.h <<\_ACEOF |
| 10934 | #define WITH_THREAD 1 |
| 10935 | _ACEOF |
| 10936 | |
| 10937 | posix_threads=yes |
| 10938 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10939 | else |
| 10940 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 10941 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 10942 | fi |
| 10943 | if test ! -z "$withval" -a -d "$withval" |
| 10944 | then LDFLAGS="$LDFLAGS -L$withval" |
| 10945 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10946 | |
| 10947 | # According to the POSIX spec, a pthreads implementation must |
| 10948 | # 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] | 10949 | echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 10950 | echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6 |
| 10951 | cat >conftest.$ac_ext <<_ACEOF |
| 10952 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10953 | /* confdefs.h. */ |
| 10954 | _ACEOF |
| 10955 | cat confdefs.h >>conftest.$ac_ext |
| 10956 | cat >>conftest.$ac_ext <<_ACEOF |
| 10957 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10958 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10959 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10960 | #ifdef _POSIX_THREADS |
| 10961 | yes |
| 10962 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10963 | |
| 10964 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10965 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10966 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10967 | unistd_defines_pthreads=yes |
| 10968 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10969 | unistd_defines_pthreads=no |
| 10970 | fi |
| 10971 | rm -f conftest* |
| 10972 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10973 | echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 10974 | echo "${ECHO_T}$unistd_defines_pthreads" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10975 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10976 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10977 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10978 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10979 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10980 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10981 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 10982 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 10983 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10985 | fi |
| 10986 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 10987 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10988 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10989 | # Is the header compilable? |
| 10990 | echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 10991 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6 |
| 10992 | cat >conftest.$ac_ext <<_ACEOF |
| 10993 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10994 | /* confdefs.h. */ |
| 10995 | _ACEOF |
| 10996 | cat confdefs.h >>conftest.$ac_ext |
| 10997 | cat >>conftest.$ac_ext <<_ACEOF |
| 10998 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10999 | $ac_includes_default |
| 11000 | #include <cthreads.h> |
| 11001 | _ACEOF |
| 11002 | rm -f conftest.$ac_objext |
| 11003 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11004 | (eval $ac_compile) 2>&5 |
| 11005 | ac_status=$? |
| 11006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11007 | (exit $ac_status); } && |
| 11008 | { ac_try='test -s conftest.$ac_objext' |
| 11009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11010 | (eval $ac_try) 2>&5 |
| 11011 | ac_status=$? |
| 11012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11013 | (exit $ac_status); }; }; then |
| 11014 | ac_header_compiler=yes |
| 11015 | else |
| 11016 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11017 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11018 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11019 | ac_header_compiler=no |
| 11020 | fi |
| 11021 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 11022 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11023 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11024 | |
| 11025 | # Is the header present? |
| 11026 | echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 11027 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6 |
| 11028 | cat >conftest.$ac_ext <<_ACEOF |
| 11029 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11030 | /* confdefs.h. */ |
| 11031 | _ACEOF |
| 11032 | cat confdefs.h >>conftest.$ac_ext |
| 11033 | cat >>conftest.$ac_ext <<_ACEOF |
| 11034 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11035 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11036 | _ACEOF |
| 11037 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11038 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11039 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11040 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11041 | rm -f conftest.er1 |
| 11042 | cat conftest.err >&5 |
| 11043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11044 | (exit $ac_status); } >/dev/null; then |
| 11045 | if test -s conftest.err; then |
| 11046 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11047 | else |
| 11048 | ac_cpp_err= |
| 11049 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11050 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11051 | ac_cpp_err=yes |
| 11052 | fi |
| 11053 | if test -z "$ac_cpp_err"; then |
| 11054 | ac_header_preproc=yes |
| 11055 | else |
| 11056 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11057 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11058 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11059 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11060 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11061 | rm -f conftest.err conftest.$ac_ext |
| 11062 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11063 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11064 | |
| 11065 | # So? What about this header? |
| 11066 | case $ac_header_compiler:$ac_header_preproc in |
| 11067 | yes:no ) |
| 11068 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11069 | echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11070 | { 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] | 11071 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 11072 | ( |
| 11073 | cat <<\_ASBOX |
| 11074 | ## ------------------------------------ ## |
| 11075 | ## Report this to bug-autoconf@gnu.org. ## |
| 11076 | ## ------------------------------------ ## |
| 11077 | _ASBOX |
| 11078 | ) | |
| 11079 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11080 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11081 | no:yes ) |
| 11082 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 11083 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
| 11084 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 11085 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 11086 | { 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] | 11087 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 11088 | ( |
| 11089 | cat <<\_ASBOX |
| 11090 | ## ------------------------------------ ## |
| 11091 | ## Report this to bug-autoconf@gnu.org. ## |
| 11092 | ## ------------------------------------ ## |
| 11093 | _ASBOX |
| 11094 | ) | |
| 11095 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11096 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11097 | esac |
| 11098 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 11099 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 11100 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 11101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11102 | else |
| 11103 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11104 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11105 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 11106 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
| 11107 | |
| 11108 | fi |
| 11109 | if test $ac_cv_header_cthreads_h = yes; then |
| 11110 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11111 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11112 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11113 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11114 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11115 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11116 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11117 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11118 | |
| 11119 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11120 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11121 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11122 | |
| 11123 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11124 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11125 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11126 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11127 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 11128 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 11129 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 11130 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 11131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11132 | fi |
| 11133 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 11134 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11135 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11136 | # Is the header compilable? |
| 11137 | echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 11138 | echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6 |
| 11139 | cat >conftest.$ac_ext <<_ACEOF |
| 11140 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11141 | /* confdefs.h. */ |
| 11142 | _ACEOF |
| 11143 | cat confdefs.h >>conftest.$ac_ext |
| 11144 | cat >>conftest.$ac_ext <<_ACEOF |
| 11145 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11146 | $ac_includes_default |
| 11147 | #include <mach/cthreads.h> |
| 11148 | _ACEOF |
| 11149 | rm -f conftest.$ac_objext |
| 11150 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11151 | (eval $ac_compile) 2>&5 |
| 11152 | ac_status=$? |
| 11153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11154 | (exit $ac_status); } && |
| 11155 | { ac_try='test -s conftest.$ac_objext' |
| 11156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11157 | (eval $ac_try) 2>&5 |
| 11158 | ac_status=$? |
| 11159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11160 | (exit $ac_status); }; }; then |
| 11161 | ac_header_compiler=yes |
| 11162 | else |
| 11163 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11164 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11165 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11166 | ac_header_compiler=no |
| 11167 | fi |
| 11168 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 11169 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11170 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11171 | |
| 11172 | # Is the header present? |
| 11173 | echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 11174 | echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6 |
| 11175 | cat >conftest.$ac_ext <<_ACEOF |
| 11176 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11177 | /* confdefs.h. */ |
| 11178 | _ACEOF |
| 11179 | cat confdefs.h >>conftest.$ac_ext |
| 11180 | cat >>conftest.$ac_ext <<_ACEOF |
| 11181 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11182 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11183 | _ACEOF |
| 11184 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11185 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11186 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11187 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11188 | rm -f conftest.er1 |
| 11189 | cat conftest.err >&5 |
| 11190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11191 | (exit $ac_status); } >/dev/null; then |
| 11192 | if test -s conftest.err; then |
| 11193 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11194 | else |
| 11195 | ac_cpp_err= |
| 11196 | fi |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11197 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11198 | ac_cpp_err=yes |
| 11199 | fi |
| 11200 | if test -z "$ac_cpp_err"; then |
| 11201 | ac_header_preproc=yes |
| 11202 | else |
| 11203 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11204 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11205 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11206 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11207 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11208 | rm -f conftest.err conftest.$ac_ext |
| 11209 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11210 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11211 | |
| 11212 | # So? What about this header? |
| 11213 | case $ac_header_compiler:$ac_header_preproc in |
| 11214 | yes:no ) |
| 11215 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11216 | echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11217 | { 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] | 11218 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 11219 | ( |
| 11220 | cat <<\_ASBOX |
| 11221 | ## ------------------------------------ ## |
| 11222 | ## Report this to bug-autoconf@gnu.org. ## |
| 11223 | ## ------------------------------------ ## |
| 11224 | _ASBOX |
| 11225 | ) | |
| 11226 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11227 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11228 | no:yes ) |
| 11229 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 11230 | echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
| 11231 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 11232 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 11233 | { 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] | 11234 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 11235 | ( |
| 11236 | cat <<\_ASBOX |
| 11237 | ## ------------------------------------ ## |
| 11238 | ## Report this to bug-autoconf@gnu.org. ## |
| 11239 | ## ------------------------------------ ## |
| 11240 | _ASBOX |
| 11241 | ) | |
| 11242 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11243 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11244 | esac |
| 11245 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 11246 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 11247 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 11248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11249 | else |
| 11250 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11251 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11252 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 11253 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
| 11254 | |
| 11255 | fi |
| 11256 | if test $ac_cv_header_mach_cthreads_h = yes; then |
| 11257 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11258 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11259 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11260 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11261 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11262 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11263 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11264 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11265 | |
| 11266 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11267 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11268 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11269 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11270 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11271 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11272 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11273 | echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 11274 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6 |
| 11275 | |
| 11276 | # Check whether --with-pth or --without-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 11277 | if test "${with_pth+set}" = set; then |
| 11278 | withval="$with_pth" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11279 | echo "$as_me:$LINENO: result: $withval" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11280 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11281 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11282 | #define WITH_THREAD 1 |
| 11283 | _ACEOF |
| 11284 | |
| 11285 | |
| 11286 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 11287 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11288 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 11289 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11290 | LIBS="-lpth $LIBS" |
| 11291 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 11292 | else |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11293 | echo "$as_me:$LINENO: result: no" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11294 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11295 | |
| 11296 | # Just looking for pthread_create in libpthread is not enough: |
| 11297 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 11298 | # So we really have to include pthread.h, and then link. |
| 11299 | _libs=$LIBS |
| 11300 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11301 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 11302 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| 11303 | cat >conftest.$ac_ext <<_ACEOF |
| 11304 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11305 | /* confdefs.h. */ |
| 11306 | _ACEOF |
| 11307 | cat confdefs.h >>conftest.$ac_ext |
| 11308 | cat >>conftest.$ac_ext <<_ACEOF |
| 11309 | /* end confdefs.h. */ |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11310 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 11311 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11312 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11313 | int |
| 11314 | main () |
| 11315 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11316 | |
| 11317 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11318 | ; |
| 11319 | return 0; |
| 11320 | } |
| 11321 | _ACEOF |
| 11322 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11323 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11324 | (eval $ac_link) 2>&5 |
| 11325 | ac_status=$? |
| 11326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11327 | (exit $ac_status); } && |
| 11328 | { ac_try='test -s conftest$ac_exeext' |
| 11329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11330 | (eval $ac_try) 2>&5 |
| 11331 | ac_status=$? |
| 11332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11333 | (exit $ac_status); }; }; then |
| 11334 | |
| 11335 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11336 | echo "${ECHO_T}yes" >&6 |
| 11337 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 11338 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11339 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 11340 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11341 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11342 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 11343 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11344 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11345 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11346 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11347 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11348 | LIBS=$_libs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11349 | echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 11350 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6 |
| 11351 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
| 11352 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11353 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11354 | cat >conftest.$ac_ext <<_ACEOF |
| 11355 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11356 | /* confdefs.h. */ |
| 11357 | _ACEOF |
| 11358 | cat confdefs.h >>conftest.$ac_ext |
| 11359 | cat >>conftest.$ac_ext <<_ACEOF |
| 11360 | /* end confdefs.h. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11361 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11362 | which can conflict with char pthread_detach (); below. |
| 11363 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11364 | <limits.h> exists even on freestanding compilers. */ |
| 11365 | #ifdef __STDC__ |
| 11366 | # include <limits.h> |
| 11367 | #else |
| 11368 | # include <assert.h> |
| 11369 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11370 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11371 | #ifdef __cplusplus |
| 11372 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11373 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11374 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11375 | /* 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] | 11376 | builtin and then its argument prototype would still apply. */ |
| 11377 | char pthread_detach (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11378 | /* The GNU C library defines this for functions which it implements |
| 11379 | to always fail with ENOSYS. Some functions are actually named |
| 11380 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 11381 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11382 | choke me |
| 11383 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11384 | char (*f) () = pthread_detach; |
| 11385 | #endif |
| 11386 | #ifdef __cplusplus |
| 11387 | } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11388 | #endif |
| 11389 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11390 | int |
| 11391 | main () |
| 11392 | { |
| 11393 | return f != pthread_detach; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11394 | ; |
| 11395 | return 0; |
| 11396 | } |
| 11397 | _ACEOF |
| 11398 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11399 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11400 | (eval $ac_link) 2>&5 |
| 11401 | ac_status=$? |
| 11402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11403 | (exit $ac_status); } && |
| 11404 | { ac_try='test -s conftest$ac_exeext' |
| 11405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11406 | (eval $ac_try) 2>&5 |
| 11407 | ac_status=$? |
| 11408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11409 | (exit $ac_status); }; }; then |
| 11410 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11411 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11412 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11413 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11414 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11415 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11416 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11417 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11418 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11419 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 11420 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6 |
| 11421 | if test $ac_cv_func_pthread_detach = yes; then |
| 11422 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11423 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11424 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11425 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11426 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11427 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11428 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11429 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11430 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 11431 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 11432 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 11433 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 11434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11435 | fi |
| 11436 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 11437 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 11438 | else |
| 11439 | # Is the header compilable? |
| 11440 | echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 11441 | echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6 |
| 11442 | cat >conftest.$ac_ext <<_ACEOF |
| 11443 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11444 | /* confdefs.h. */ |
| 11445 | _ACEOF |
| 11446 | cat confdefs.h >>conftest.$ac_ext |
| 11447 | cat >>conftest.$ac_ext <<_ACEOF |
| 11448 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11449 | $ac_includes_default |
| 11450 | #include <atheos/threads.h> |
| 11451 | _ACEOF |
| 11452 | rm -f conftest.$ac_objext |
| 11453 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11454 | (eval $ac_compile) 2>&5 |
| 11455 | ac_status=$? |
| 11456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11457 | (exit $ac_status); } && |
| 11458 | { ac_try='test -s conftest.$ac_objext' |
| 11459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11460 | (eval $ac_try) 2>&5 |
| 11461 | ac_status=$? |
| 11462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11463 | (exit $ac_status); }; }; then |
| 11464 | ac_header_compiler=yes |
| 11465 | else |
| 11466 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11467 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11468 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11469 | ac_header_compiler=no |
| 11470 | fi |
| 11471 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 11472 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11473 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11474 | |
| 11475 | # Is the header present? |
| 11476 | echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 11477 | echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6 |
| 11478 | cat >conftest.$ac_ext <<_ACEOF |
| 11479 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11480 | /* confdefs.h. */ |
| 11481 | _ACEOF |
| 11482 | cat confdefs.h >>conftest.$ac_ext |
| 11483 | cat >>conftest.$ac_ext <<_ACEOF |
| 11484 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11485 | #include <atheos/threads.h> |
| 11486 | _ACEOF |
| 11487 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11488 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11489 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11490 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11491 | rm -f conftest.er1 |
| 11492 | cat conftest.err >&5 |
| 11493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11494 | (exit $ac_status); } >/dev/null; then |
| 11495 | if test -s conftest.err; then |
| 11496 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11497 | else |
| 11498 | ac_cpp_err= |
| 11499 | fi |
| 11500 | else |
| 11501 | ac_cpp_err=yes |
| 11502 | fi |
| 11503 | if test -z "$ac_cpp_err"; then |
| 11504 | ac_header_preproc=yes |
| 11505 | else |
| 11506 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11507 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11508 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11509 | ac_header_preproc=no |
| 11510 | fi |
| 11511 | rm -f conftest.err conftest.$ac_ext |
| 11512 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11513 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11514 | |
| 11515 | # So? What about this header? |
| 11516 | case $ac_header_compiler:$ac_header_preproc in |
| 11517 | yes:no ) |
| 11518 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11519 | echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11520 | { 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] | 11521 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;} |
| 11522 | ( |
| 11523 | cat <<\_ASBOX |
| 11524 | ## ------------------------------------ ## |
| 11525 | ## Report this to bug-autoconf@gnu.org. ## |
| 11526 | ## ------------------------------------ ## |
| 11527 | _ASBOX |
| 11528 | ) | |
| 11529 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11530 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11531 | no:yes ) |
| 11532 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 11533 | echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;} |
| 11534 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 11535 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 11536 | { 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] | 11537 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;} |
| 11538 | ( |
| 11539 | cat <<\_ASBOX |
| 11540 | ## ------------------------------------ ## |
| 11541 | ## Report this to bug-autoconf@gnu.org. ## |
| 11542 | ## ------------------------------------ ## |
| 11543 | _ASBOX |
| 11544 | ) | |
| 11545 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11546 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11547 | esac |
| 11548 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 11549 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 11550 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 11551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11552 | else |
| 11553 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 11554 | fi |
| 11555 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 11556 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 11557 | |
| 11558 | fi |
| 11559 | if test $ac_cv_header_atheos_threads_h = yes; then |
| 11560 | cat >>confdefs.h <<\_ACEOF |
| 11561 | #define WITH_THREAD 1 |
| 11562 | _ACEOF |
| 11563 | |
| 11564 | |
| 11565 | cat >>confdefs.h <<\_ACEOF |
| 11566 | #define ATHEOS_THREADS 1 |
| 11567 | _ACEOF |
| 11568 | |
| 11569 | THREADOBJ="Python/thread.o" |
| 11570 | else |
| 11571 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11572 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 11573 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 11574 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 11575 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 11576 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11577 | fi |
| 11578 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 11579 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11580 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11581 | # Is the header compilable? |
| 11582 | echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 11583 | echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6 |
| 11584 | cat >conftest.$ac_ext <<_ACEOF |
| 11585 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11586 | /* confdefs.h. */ |
| 11587 | _ACEOF |
| 11588 | cat confdefs.h >>conftest.$ac_ext |
| 11589 | cat >>conftest.$ac_ext <<_ACEOF |
| 11590 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11591 | $ac_includes_default |
| 11592 | #include <kernel/OS.h> |
| 11593 | _ACEOF |
| 11594 | rm -f conftest.$ac_objext |
| 11595 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11596 | (eval $ac_compile) 2>&5 |
| 11597 | ac_status=$? |
| 11598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11599 | (exit $ac_status); } && |
| 11600 | { ac_try='test -s conftest.$ac_objext' |
| 11601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11602 | (eval $ac_try) 2>&5 |
| 11603 | ac_status=$? |
| 11604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11605 | (exit $ac_status); }; }; then |
| 11606 | ac_header_compiler=yes |
| 11607 | else |
| 11608 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11609 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11610 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11611 | ac_header_compiler=no |
| 11612 | fi |
| 11613 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 11614 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11615 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11616 | |
| 11617 | # Is the header present? |
| 11618 | echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 11619 | echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6 |
| 11620 | cat >conftest.$ac_ext <<_ACEOF |
| 11621 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11622 | /* confdefs.h. */ |
| 11623 | _ACEOF |
| 11624 | cat confdefs.h >>conftest.$ac_ext |
| 11625 | cat >>conftest.$ac_ext <<_ACEOF |
| 11626 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11627 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11628 | _ACEOF |
| 11629 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11630 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11631 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11632 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11633 | rm -f conftest.er1 |
| 11634 | cat conftest.err >&5 |
| 11635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11636 | (exit $ac_status); } >/dev/null; then |
| 11637 | if test -s conftest.err; then |
| 11638 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11639 | else |
| 11640 | ac_cpp_err= |
| 11641 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11642 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11643 | ac_cpp_err=yes |
| 11644 | fi |
| 11645 | if test -z "$ac_cpp_err"; then |
| 11646 | ac_header_preproc=yes |
| 11647 | else |
| 11648 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11649 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11650 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11651 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11652 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11653 | rm -f conftest.err conftest.$ac_ext |
| 11654 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11655 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11656 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11657 | # So? What about this header? |
| 11658 | case $ac_header_compiler:$ac_header_preproc in |
| 11659 | yes:no ) |
| 11660 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11661 | echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11662 | { 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] | 11663 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;} |
| 11664 | ( |
| 11665 | cat <<\_ASBOX |
| 11666 | ## ------------------------------------ ## |
| 11667 | ## Report this to bug-autoconf@gnu.org. ## |
| 11668 | ## ------------------------------------ ## |
| 11669 | _ASBOX |
| 11670 | ) | |
| 11671 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11672 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11673 | no:yes ) |
| 11674 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 11675 | echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;} |
| 11676 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 11677 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 11678 | { 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] | 11679 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;} |
| 11680 | ( |
| 11681 | cat <<\_ASBOX |
| 11682 | ## ------------------------------------ ## |
| 11683 | ## Report this to bug-autoconf@gnu.org. ## |
| 11684 | ## ------------------------------------ ## |
| 11685 | _ASBOX |
| 11686 | ) | |
| 11687 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11688 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11689 | esac |
| 11690 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 11691 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 11692 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 11693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11694 | else |
| 11695 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 11696 | fi |
| 11697 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 11698 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
| 11699 | |
| 11700 | fi |
| 11701 | if test $ac_cv_header_kernel_OS_h = yes; then |
| 11702 | cat >>confdefs.h <<\_ACEOF |
| 11703 | #define WITH_THREAD 1 |
| 11704 | _ACEOF |
| 11705 | |
| 11706 | |
| 11707 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11708 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11709 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11710 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11711 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11712 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11713 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11714 | echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 11715 | echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6 |
| 11716 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
| 11717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11718 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11719 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11720 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11721 | cat >conftest.$ac_ext <<_ACEOF |
| 11722 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11723 | /* confdefs.h. */ |
| 11724 | _ACEOF |
| 11725 | cat confdefs.h >>conftest.$ac_ext |
| 11726 | cat >>conftest.$ac_ext <<_ACEOF |
| 11727 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11728 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11729 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11730 | #ifdef __cplusplus |
| 11731 | extern "C" |
| 11732 | #endif |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11733 | /* 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] | 11734 | builtin and then its argument prototype would still apply. */ |
| 11735 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11736 | int |
| 11737 | main () |
| 11738 | { |
| 11739 | pthread_create (); |
| 11740 | ; |
| 11741 | return 0; |
| 11742 | } |
| 11743 | _ACEOF |
| 11744 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11745 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11746 | (eval $ac_link) 2>&5 |
| 11747 | ac_status=$? |
| 11748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11749 | (exit $ac_status); } && |
| 11750 | { ac_try='test -s conftest$ac_exeext' |
| 11751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11752 | (eval $ac_try) 2>&5 |
| 11753 | ac_status=$? |
| 11754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11755 | (exit $ac_status); }; }; then |
| 11756 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11757 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11758 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11759 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11760 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11761 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11762 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11763 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11764 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11765 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11766 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 11767 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6 |
| 11768 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
| 11769 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11770 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11771 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11772 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11773 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11774 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11775 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11776 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11777 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11778 | echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 11779 | echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6 |
| 11780 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
| 11781 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11782 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11783 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11784 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11785 | cat >conftest.$ac_ext <<_ACEOF |
| 11786 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11787 | /* confdefs.h. */ |
| 11788 | _ACEOF |
| 11789 | cat confdefs.h >>conftest.$ac_ext |
| 11790 | cat >>conftest.$ac_ext <<_ACEOF |
| 11791 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11792 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11793 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11794 | #ifdef __cplusplus |
| 11795 | extern "C" |
| 11796 | #endif |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11797 | /* 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] | 11798 | builtin and then its argument prototype would still apply. */ |
| 11799 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11800 | int |
| 11801 | main () |
| 11802 | { |
| 11803 | pthread_create (); |
| 11804 | ; |
| 11805 | return 0; |
| 11806 | } |
| 11807 | _ACEOF |
| 11808 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11809 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11810 | (eval $ac_link) 2>&5 |
| 11811 | ac_status=$? |
| 11812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11813 | (exit $ac_status); } && |
| 11814 | { ac_try='test -s conftest$ac_exeext' |
| 11815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11816 | (eval $ac_try) 2>&5 |
| 11817 | ac_status=$? |
| 11818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11819 | (exit $ac_status); }; }; then |
| 11820 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11821 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11822 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11823 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11824 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11825 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11826 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11827 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11828 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11829 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11830 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 11831 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6 |
| 11832 | if test $ac_cv_lib_c_r_pthread_create = yes; then |
| 11833 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11834 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11835 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11836 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11837 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11838 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11839 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11840 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11841 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11842 | echo "$as_me:$LINENO: checking for __d6_pthread_create in -lthread" >&5 |
| 11843 | echo $ECHO_N "checking for __d6_pthread_create in -lthread... $ECHO_C" >&6 |
| 11844 | if test "${ac_cv_lib_thread___d6_pthread_create+set}" = set; then |
| 11845 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11846 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11847 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11848 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11849 | cat >conftest.$ac_ext <<_ACEOF |
| 11850 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11851 | /* confdefs.h. */ |
| 11852 | _ACEOF |
| 11853 | cat confdefs.h >>conftest.$ac_ext |
| 11854 | cat >>conftest.$ac_ext <<_ACEOF |
| 11855 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11856 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11857 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11858 | #ifdef __cplusplus |
| 11859 | extern "C" |
| 11860 | #endif |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11861 | /* 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] | 11862 | builtin and then its argument prototype would still apply. */ |
| 11863 | char __d6_pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11864 | int |
| 11865 | main () |
| 11866 | { |
| 11867 | __d6_pthread_create (); |
| 11868 | ; |
| 11869 | return 0; |
| 11870 | } |
| 11871 | _ACEOF |
| 11872 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11873 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11874 | (eval $ac_link) 2>&5 |
| 11875 | ac_status=$? |
| 11876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11877 | (exit $ac_status); } && |
| 11878 | { ac_try='test -s conftest$ac_exeext' |
| 11879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11880 | (eval $ac_try) 2>&5 |
| 11881 | ac_status=$? |
| 11882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11883 | (exit $ac_status); }; }; then |
| 11884 | ac_cv_lib_thread___d6_pthread_create=yes |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11885 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11886 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11887 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11888 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11889 | ac_cv_lib_thread___d6_pthread_create=no |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11890 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11891 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11892 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11893 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11894 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread___d6_pthread_create" >&5 |
| 11895 | echo "${ECHO_T}$ac_cv_lib_thread___d6_pthread_create" >&6 |
| 11896 | if test $ac_cv_lib_thread___d6_pthread_create = yes; then |
| 11897 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11898 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11899 | _ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11900 | |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 11901 | echo Systems with __d6_pthread_create are not supported anymore. |
| 11902 | echo See README |
| 11903 | exit 1 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11904 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11905 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11906 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11907 | else |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11908 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11909 | echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 11910 | echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6 |
| 11911 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
| 11912 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11913 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11914 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11915 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11916 | cat >conftest.$ac_ext <<_ACEOF |
| 11917 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11918 | /* confdefs.h. */ |
| 11919 | _ACEOF |
| 11920 | cat confdefs.h >>conftest.$ac_ext |
| 11921 | cat >>conftest.$ac_ext <<_ACEOF |
| 11922 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11923 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11924 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11925 | #ifdef __cplusplus |
| 11926 | extern "C" |
| 11927 | #endif |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11928 | /* 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] | 11929 | builtin and then its argument prototype would still apply. */ |
| 11930 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11931 | int |
| 11932 | main () |
| 11933 | { |
| 11934 | __pthread_create_system (); |
| 11935 | ; |
| 11936 | return 0; |
| 11937 | } |
| 11938 | _ACEOF |
| 11939 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11940 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11941 | (eval $ac_link) 2>&5 |
| 11942 | ac_status=$? |
| 11943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11944 | (exit $ac_status); } && |
| 11945 | { ac_try='test -s conftest$ac_exeext' |
| 11946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11947 | (eval $ac_try) 2>&5 |
| 11948 | ac_status=$? |
| 11949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11950 | (exit $ac_status); }; }; then |
| 11951 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11952 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11953 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11954 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11955 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11956 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11957 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11958 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11959 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11960 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11961 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 11962 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6 |
| 11963 | if test $ac_cv_lib_pthread___pthread_create_system = yes; then |
| 11964 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11965 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11966 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11967 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11968 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11969 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11970 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11971 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11972 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11973 | echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 11974 | echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6 |
| 11975 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
| 11976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11977 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11978 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11979 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11980 | cat >conftest.$ac_ext <<_ACEOF |
| 11981 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11982 | /* confdefs.h. */ |
| 11983 | _ACEOF |
| 11984 | cat confdefs.h >>conftest.$ac_ext |
| 11985 | cat >>conftest.$ac_ext <<_ACEOF |
| 11986 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11987 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11988 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11989 | #ifdef __cplusplus |
| 11990 | extern "C" |
| 11991 | #endif |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11992 | /* 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] | 11993 | builtin and then its argument prototype would still apply. */ |
| 11994 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11995 | int |
| 11996 | main () |
| 11997 | { |
| 11998 | pthread_create (); |
| 11999 | ; |
| 12000 | return 0; |
| 12001 | } |
| 12002 | _ACEOF |
| 12003 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12004 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12005 | (eval $ac_link) 2>&5 |
| 12006 | ac_status=$? |
| 12007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12008 | (exit $ac_status); } && |
| 12009 | { ac_try='test -s conftest$ac_exeext' |
| 12010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12011 | (eval $ac_try) 2>&5 |
| 12012 | ac_status=$? |
| 12013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12014 | (exit $ac_status); }; }; then |
| 12015 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12016 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12017 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12018 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12019 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12020 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12021 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12022 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12023 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12024 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12025 | echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 12026 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6 |
| 12027 | if test $ac_cv_lib_cma_pthread_create = yes; then |
| 12028 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12029 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12030 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12031 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12032 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12033 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12034 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12035 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 12036 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12037 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 12038 | fi |
| 12039 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12040 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 12041 | fi |
| 12042 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 12043 | fi |
| 12044 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12045 | fi |
| 12046 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12047 | fi |
| 12048 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12049 | fi |
| 12050 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 12051 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12052 | fi |
| 12053 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12054 | |
| 12055 | fi |
| 12056 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12057 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12058 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12059 | fi; |
| 12060 | fi |
| 12061 | |
| 12062 | |
| 12063 | fi |
| 12064 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12065 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12066 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12067 | echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 12068 | echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6 |
| 12069 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
| 12070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12071 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12072 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12073 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12074 | cat >conftest.$ac_ext <<_ACEOF |
| 12075 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12076 | /* confdefs.h. */ |
| 12077 | _ACEOF |
| 12078 | cat confdefs.h >>conftest.$ac_ext |
| 12079 | cat >>conftest.$ac_ext <<_ACEOF |
| 12080 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12081 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12082 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12083 | #ifdef __cplusplus |
| 12084 | extern "C" |
| 12085 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12086 | /* 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] | 12087 | builtin and then its argument prototype would still apply. */ |
| 12088 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12089 | int |
| 12090 | main () |
| 12091 | { |
| 12092 | usconfig (); |
| 12093 | ; |
| 12094 | return 0; |
| 12095 | } |
| 12096 | _ACEOF |
| 12097 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12098 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12099 | (eval $ac_link) 2>&5 |
| 12100 | ac_status=$? |
| 12101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12102 | (exit $ac_status); } && |
| 12103 | { ac_try='test -s conftest$ac_exeext' |
| 12104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12105 | (eval $ac_try) 2>&5 |
| 12106 | ac_status=$? |
| 12107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12108 | (exit $ac_status); }; }; then |
| 12109 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12110 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12111 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12112 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12113 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12114 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12115 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12116 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12117 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12118 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12119 | echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 12120 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6 |
| 12121 | if test $ac_cv_lib_mpc_usconfig = yes; then |
| 12122 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12123 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12124 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12125 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12126 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12127 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12128 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12129 | fi |
| 12130 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 12131 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 12132 | if test "$posix_threads" != "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12133 | echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 12134 | echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6 |
| 12135 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
| 12136 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12137 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12138 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12139 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12140 | cat >conftest.$ac_ext <<_ACEOF |
| 12141 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12142 | /* confdefs.h. */ |
| 12143 | _ACEOF |
| 12144 | cat confdefs.h >>conftest.$ac_ext |
| 12145 | cat >>conftest.$ac_ext <<_ACEOF |
| 12146 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12147 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12148 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12149 | #ifdef __cplusplus |
| 12150 | extern "C" |
| 12151 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12152 | /* 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] | 12153 | builtin and then its argument prototype would still apply. */ |
| 12154 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12155 | int |
| 12156 | main () |
| 12157 | { |
| 12158 | thr_create (); |
| 12159 | ; |
| 12160 | return 0; |
| 12161 | } |
| 12162 | _ACEOF |
| 12163 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12164 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12165 | (eval $ac_link) 2>&5 |
| 12166 | ac_status=$? |
| 12167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12168 | (exit $ac_status); } && |
| 12169 | { ac_try='test -s conftest$ac_exeext' |
| 12170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12171 | (eval $ac_try) 2>&5 |
| 12172 | ac_status=$? |
| 12173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12174 | (exit $ac_status); }; }; then |
| 12175 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12176 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12177 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12178 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12179 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12180 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12181 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12182 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12183 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12184 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12185 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 12186 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6 |
| 12187 | if test $ac_cv_lib_thread_thr_create = yes; then |
| 12188 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12189 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12190 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12191 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 12192 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12193 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 12194 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12195 | fi |
| 12196 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 12197 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12198 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12199 | if test "$USE_THREAD_MODULE" != "#" |
| 12200 | then |
| 12201 | # If the above checks didn't disable threads, (at least) OSF1 |
| 12202 | # needs this '-threads' argument during linking. |
| 12203 | case $ac_sys_system in |
| 12204 | OSF1) LDLAST=-threads;; |
| 12205 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 12206 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12207 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12208 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12209 | if test "$posix_threads" = "yes"; then |
| 12210 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12211 | |
| 12212 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12213 | #define _POSIX_THREADS 1 |
| 12214 | _ACEOF |
| 12215 | |
| 12216 | fi |
| 12217 | |
| 12218 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 12219 | case $ac_sys_system/$ac_sys_release in |
| 12220 | SunOS/5.6) |
| 12221 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12222 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 12223 | _ACEOF |
| 12224 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12225 | ;; |
| 12226 | SunOS/5.8) |
| 12227 | cat >>confdefs.h <<\_ACEOF |
| 12228 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 12229 | _ACEOF |
| 12230 | |
| 12231 | ;; |
| 12232 | esac |
| 12233 | |
| 12234 | echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 12235 | echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6 |
| 12236 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
| 12237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12238 | else |
| 12239 | if test "$cross_compiling" = yes; then |
| 12240 | ac_cv_pthread_system_supported=no |
| 12241 | else |
| 12242 | cat >conftest.$ac_ext <<_ACEOF |
| 12243 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12244 | /* confdefs.h. */ |
| 12245 | _ACEOF |
| 12246 | cat confdefs.h >>conftest.$ac_ext |
| 12247 | cat >>conftest.$ac_ext <<_ACEOF |
| 12248 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12249 | #include <pthread.h> |
| 12250 | void *foo(void *parm) { |
| 12251 | return NULL; |
| 12252 | } |
| 12253 | main() { |
| 12254 | pthread_attr_t attr; |
| 12255 | pthread_t id; |
| 12256 | if (pthread_attr_init(&attr)) exit(-1); |
| 12257 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 12258 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 12259 | exit(0); |
| 12260 | } |
| 12261 | _ACEOF |
| 12262 | rm -f conftest$ac_exeext |
| 12263 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12264 | (eval $ac_link) 2>&5 |
| 12265 | ac_status=$? |
| 12266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12267 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12269 | (eval $ac_try) 2>&5 |
| 12270 | ac_status=$? |
| 12271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12272 | (exit $ac_status); }; }; then |
| 12273 | ac_cv_pthread_system_supported=yes |
| 12274 | else |
| 12275 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12276 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12277 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12278 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12279 | ( exit $ac_status ) |
| 12280 | ac_cv_pthread_system_supported=no |
| 12281 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12282 | 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] | 12283 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12284 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12285 | fi |
| 12286 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12287 | echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 12288 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6 |
| 12289 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 12290 | |
| 12291 | cat >>confdefs.h <<\_ACEOF |
| 12292 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
| 12293 | _ACEOF |
| 12294 | |
| 12295 | fi |
| 12296 | |
| 12297 | for ac_func in pthread_sigmask |
| 12298 | do |
| 12299 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12300 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12301 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12302 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12304 | else |
| 12305 | cat >conftest.$ac_ext <<_ACEOF |
| 12306 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12307 | /* confdefs.h. */ |
| 12308 | _ACEOF |
| 12309 | cat confdefs.h >>conftest.$ac_ext |
| 12310 | cat >>conftest.$ac_ext <<_ACEOF |
| 12311 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12312 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12313 | which can conflict with char $ac_func (); below. |
| 12314 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12315 | <limits.h> exists even on freestanding compilers. */ |
| 12316 | #ifdef __STDC__ |
| 12317 | # include <limits.h> |
| 12318 | #else |
| 12319 | # include <assert.h> |
| 12320 | #endif |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12321 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12322 | #ifdef __cplusplus |
| 12323 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12324 | { |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12325 | #endif |
| 12326 | /* We use char because int might match the return type of a gcc2 |
| 12327 | builtin and then its argument prototype would still apply. */ |
| 12328 | char $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12329 | /* The GNU C library defines this for functions which it implements |
| 12330 | to always fail with ENOSYS. Some functions are actually named |
| 12331 | something starting with __ and the normal name is an alias. */ |
| 12332 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12333 | choke me |
| 12334 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12335 | char (*f) () = $ac_func; |
| 12336 | #endif |
| 12337 | #ifdef __cplusplus |
| 12338 | } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12339 | #endif |
| 12340 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12341 | int |
| 12342 | main () |
| 12343 | { |
| 12344 | return f != $ac_func; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12345 | ; |
| 12346 | return 0; |
| 12347 | } |
| 12348 | _ACEOF |
| 12349 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12350 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12351 | (eval $ac_link) 2>&5 |
| 12352 | ac_status=$? |
| 12353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12354 | (exit $ac_status); } && |
| 12355 | { ac_try='test -s conftest$ac_exeext' |
| 12356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12357 | (eval $ac_try) 2>&5 |
| 12358 | ac_status=$? |
| 12359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12360 | (exit $ac_status); }; }; then |
| 12361 | eval "$as_ac_var=yes" |
| 12362 | else |
| 12363 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12364 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12365 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12366 | eval "$as_ac_var=no" |
| 12367 | fi |
| 12368 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12369 | fi |
| 12370 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12371 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12372 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12373 | cat >>confdefs.h <<_ACEOF |
| 12374 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12375 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 12376 | case $ac_sys_system in |
| 12377 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12378 | |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 12379 | cat >>confdefs.h <<\_ACEOF |
| 12380 | #define HAVE_BROKEN_PTHREAD_SIGMASK 1 |
| 12381 | _ACEOF |
| 12382 | |
| 12383 | ;; |
| 12384 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12385 | fi |
| 12386 | done |
| 12387 | |
| 12388 | fi |
| 12389 | |
| 12390 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12391 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12392 | |
| 12393 | |
| 12394 | echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 12395 | 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] | 12396 | # Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 12397 | if test "${enable_ipv6+set}" = set; then |
| 12398 | enableval="$enable_ipv6" |
| 12399 | case "$enableval" in |
| 12400 | no) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12401 | echo "$as_me:$LINENO: result: no" >&5 |
| 12402 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12403 | ipv6=no |
| 12404 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12405 | *) echo "$as_me:$LINENO: result: yes" >&5 |
| 12406 | echo "${ECHO_T}yes" >&6 |
| 12407 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12408 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12409 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12410 | |
| 12411 | ipv6=yes |
| 12412 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12413 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12414 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12415 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12416 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12417 | echo "$as_me:$LINENO: result: no" >&5 |
| 12418 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12419 | ipv6=no |
| 12420 | |
| 12421 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12422 | cat >conftest.$ac_ext <<_ACEOF |
| 12423 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12424 | /* confdefs.h. */ |
| 12425 | _ACEOF |
| 12426 | cat confdefs.h >>conftest.$ac_ext |
| 12427 | cat >>conftest.$ac_ext <<_ACEOF |
| 12428 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12429 | /* AF_INET6 available check */ |
| 12430 | #include <sys/types.h> |
| 12431 | #include <sys/socket.h> |
| 12432 | main() |
| 12433 | { |
| 12434 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 12435 | exit(1); |
| 12436 | else |
| 12437 | exit(0); |
| 12438 | } |
| 12439 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12440 | _ACEOF |
| 12441 | rm -f conftest$ac_exeext |
| 12442 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12443 | (eval $ac_link) 2>&5 |
| 12444 | ac_status=$? |
| 12445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12446 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12448 | (eval $ac_try) 2>&5 |
| 12449 | ac_status=$? |
| 12450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12451 | (exit $ac_status); }; }; then |
| 12452 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12453 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12454 | ipv6=yes |
| 12455 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12456 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12457 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12458 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12459 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12460 | ( exit $ac_status ) |
| 12461 | echo "$as_me:$LINENO: result: no" >&5 |
| 12462 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12463 | ipv6=no |
| 12464 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12465 | 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] | 12466 | fi |
| 12467 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12468 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12469 | echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 12470 | echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6 |
| 12471 | cat >conftest.$ac_ext <<_ACEOF |
| 12472 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12473 | /* confdefs.h. */ |
| 12474 | _ACEOF |
| 12475 | cat confdefs.h >>conftest.$ac_ext |
| 12476 | cat >>conftest.$ac_ext <<_ACEOF |
| 12477 | /* end confdefs.h. */ |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12478 | #include <sys/types.h> |
| 12479 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12480 | int |
| 12481 | main () |
| 12482 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12483 | struct sockaddr_in6 x; |
| 12484 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12485 | ; |
| 12486 | return 0; |
| 12487 | } |
| 12488 | _ACEOF |
| 12489 | rm -f conftest.$ac_objext |
| 12490 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12491 | (eval $ac_compile) 2>&5 |
| 12492 | ac_status=$? |
| 12493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12494 | (exit $ac_status); } && |
| 12495 | { ac_try='test -s conftest.$ac_objext' |
| 12496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12497 | (eval $ac_try) 2>&5 |
| 12498 | ac_status=$? |
| 12499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12500 | (exit $ac_status); }; }; then |
| 12501 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12502 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12503 | ipv6=yes |
| 12504 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12505 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12506 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12507 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12508 | echo "$as_me:$LINENO: result: no" >&5 |
| 12509 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12510 | ipv6=no |
| 12511 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12512 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12513 | fi |
| 12514 | |
| 12515 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12516 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12517 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12518 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12519 | |
| 12520 | fi |
| 12521 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12522 | fi; |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12523 | |
| 12524 | ipv6type=unknown |
| 12525 | ipv6lib=none |
| 12526 | ipv6trylibc=no |
| 12527 | |
| 12528 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12529 | echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 12530 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 12531 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 12532 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12533 | case $i in |
| 12534 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12535 | cat >conftest.$ac_ext <<_ACEOF |
| 12536 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12537 | /* confdefs.h. */ |
| 12538 | _ACEOF |
| 12539 | cat confdefs.h >>conftest.$ac_ext |
| 12540 | cat >>conftest.$ac_ext <<_ACEOF |
| 12541 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12542 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12543 | #include <netinet/in.h> |
| 12544 | #ifdef IPV6_INRIA_VERSION |
| 12545 | yes |
| 12546 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12547 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12548 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12549 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 12550 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12551 | fi |
| 12552 | rm -f conftest* |
| 12553 | |
| 12554 | ;; |
| 12555 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12556 | cat >conftest.$ac_ext <<_ACEOF |
| 12557 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12558 | /* confdefs.h. */ |
| 12559 | _ACEOF |
| 12560 | cat confdefs.h >>conftest.$ac_ext |
| 12561 | cat >>conftest.$ac_ext <<_ACEOF |
| 12562 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12563 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12564 | #include <netinet/in.h> |
| 12565 | #ifdef __KAME__ |
| 12566 | yes |
| 12567 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12568 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12569 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12570 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12571 | ipv6type=$i; |
| 12572 | ipv6lib=inet6 |
| 12573 | ipv6libdir=/usr/local/v6/lib |
| 12574 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12575 | fi |
| 12576 | rm -f conftest* |
| 12577 | |
| 12578 | ;; |
| 12579 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12580 | cat >conftest.$ac_ext <<_ACEOF |
| 12581 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12582 | /* confdefs.h. */ |
| 12583 | _ACEOF |
| 12584 | cat confdefs.h >>conftest.$ac_ext |
| 12585 | cat >>conftest.$ac_ext <<_ACEOF |
| 12586 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12587 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12588 | #include <features.h> |
| 12589 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 12590 | yes |
| 12591 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12592 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12593 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12594 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12595 | ipv6type=$i; |
| 12596 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12597 | fi |
| 12598 | rm -f conftest* |
| 12599 | |
| 12600 | ;; |
| 12601 | linux-inet6) |
| 12602 | if test -d /usr/inet6; then |
| 12603 | ipv6type=$i |
| 12604 | ipv6lib=inet6 |
| 12605 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 12606 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12607 | fi |
| 12608 | ;; |
| 12609 | solaris) |
| 12610 | if test -f /etc/netconfig; then |
| 12611 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 12612 | ipv6type=$i |
| 12613 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12614 | fi |
| 12615 | fi |
| 12616 | ;; |
| 12617 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12618 | cat >conftest.$ac_ext <<_ACEOF |
| 12619 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12620 | /* confdefs.h. */ |
| 12621 | _ACEOF |
| 12622 | cat confdefs.h >>conftest.$ac_ext |
| 12623 | cat >>conftest.$ac_ext <<_ACEOF |
| 12624 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12625 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12626 | #include <sys/param.h> |
| 12627 | #ifdef _TOSHIBA_INET6 |
| 12628 | yes |
| 12629 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12630 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12631 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12632 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12633 | ipv6type=$i; |
| 12634 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 12635 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12636 | fi |
| 12637 | rm -f conftest* |
| 12638 | |
| 12639 | ;; |
| 12640 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12641 | cat >conftest.$ac_ext <<_ACEOF |
| 12642 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12643 | /* confdefs.h. */ |
| 12644 | _ACEOF |
| 12645 | cat confdefs.h >>conftest.$ac_ext |
| 12646 | cat >>conftest.$ac_ext <<_ACEOF |
| 12647 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12648 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12649 | #include </usr/local/v6/include/sys/v6config.h> |
| 12650 | #ifdef __V6D__ |
| 12651 | yes |
| 12652 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12653 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12654 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12655 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12656 | ipv6type=$i; |
| 12657 | ipv6lib=v6; |
| 12658 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 12659 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12660 | fi |
| 12661 | rm -f conftest* |
| 12662 | |
| 12663 | ;; |
| 12664 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12665 | cat >conftest.$ac_ext <<_ACEOF |
| 12666 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12667 | /* confdefs.h. */ |
| 12668 | _ACEOF |
| 12669 | cat confdefs.h >>conftest.$ac_ext |
| 12670 | cat >>conftest.$ac_ext <<_ACEOF |
| 12671 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12672 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12673 | #include <sys/param.h> |
| 12674 | #ifdef _ZETA_MINAMI_INET6 |
| 12675 | yes |
| 12676 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12677 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12678 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12679 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12680 | ipv6type=$i; |
| 12681 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 12682 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12683 | fi |
| 12684 | rm -f conftest* |
| 12685 | |
| 12686 | ;; |
| 12687 | esac |
| 12688 | if test "$ipv6type" != "unknown"; then |
| 12689 | break |
| 12690 | fi |
| 12691 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12692 | echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 12693 | echo "${ECHO_T}$ipv6type" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12694 | fi |
| 12695 | |
| 12696 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 12697 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 12698 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 12699 | echo "using lib$ipv6lib" |
| 12700 | else |
| 12701 | if test $ipv6trylibc = "yes"; then |
| 12702 | echo "using libc" |
| 12703 | else |
| 12704 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 12705 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 12706 | echo 'ipv6 kit and compile beforehand.' |
| 12707 | exit 1 |
| 12708 | fi |
| 12709 | fi |
| 12710 | fi |
| 12711 | |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 12712 | # Check for universal newline support |
Guido van Rossum | 402905e | 2002-08-15 13:56:35 +0000 | [diff] [blame] | 12713 | echo "$as_me:$LINENO: checking for --with-universal-newlines" >&5 |
| 12714 | echo $ECHO_N "checking for --with-universal-newlines... $ECHO_C" >&6 |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 12715 | |
| 12716 | # Check whether --with-universal-newlines or --without-universal-newlines was given. |
| 12717 | if test "${with_universal_newlines+set}" = set; then |
| 12718 | withval="$with_universal_newlines" |
| 12719 | |
| 12720 | fi; |
| 12721 | |
| 12722 | if test -z "$with_universal_newlines" |
| 12723 | then with_universal_newlines="yes" |
| 12724 | fi |
Martin v. Löwis | 7e4cfcb | 2002-12-19 16:21:49 +0000 | [diff] [blame] | 12725 | if test "$with_universal_newlines" = "no" |
Martin v. Löwis | 03d00d5 | 2002-12-19 19:03:31 +0000 | [diff] [blame] | 12726 | then |
Martin v. Löwis | 7e4cfcb | 2002-12-19 16:21:49 +0000 | [diff] [blame] | 12727 | echo --without-universal-newlines is unsupported, see README |
| 12728 | exit 1 |
Martin v. Löwis | 03d00d5 | 2002-12-19 19:03:31 +0000 | [diff] [blame] | 12729 | else |
Martin v. Löwis | e8aea58 | 2002-04-16 05:51:02 +0000 | [diff] [blame] | 12730 | |
| 12731 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 12732 | #define WITH_UNIVERSAL_NEWLINES 1 |
| 12733 | _ACEOF |
| 12734 | |
| 12735 | fi |
| 12736 | echo "$as_me:$LINENO: result: $with_universal_newlines" >&5 |
| 12737 | echo "${ECHO_T}$with_universal_newlines" >&6 |
| 12738 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 12739 | # Check for --with-doc-strings |
| 12740 | echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 12741 | echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6 |
| 12742 | |
| 12743 | # Check whether --with-doc-strings or --without-doc-strings was given. |
| 12744 | if test "${with_doc_strings+set}" = set; then |
| 12745 | withval="$with_doc_strings" |
| 12746 | |
| 12747 | fi; |
| 12748 | |
| 12749 | if test -z "$with_doc_strings" |
| 12750 | then with_doc_strings="yes" |
| 12751 | fi |
| 12752 | if test "$with_doc_strings" != "no" |
| 12753 | then |
| 12754 | |
| 12755 | cat >>confdefs.h <<\_ACEOF |
| 12756 | #define WITH_DOC_STRINGS 1 |
| 12757 | _ACEOF |
| 12758 | |
| 12759 | fi |
| 12760 | echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 12761 | echo "${ECHO_T}$with_doc_strings" >&6 |
| 12762 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 12763 | # Check for Python-specific malloc support |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12764 | echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 12765 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6 |
| 12766 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 12767 | # Check whether --with-pymalloc or --without-pymalloc was given. |
| 12768 | if test "${with_pymalloc+set}" = set; then |
| 12769 | withval="$with_pymalloc" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12770 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12771 | fi; |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 12772 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 12773 | if test -z "$with_pymalloc" |
| 12774 | then with_pymalloc="yes" |
| 12775 | fi |
| 12776 | if test "$with_pymalloc" != "no" |
| 12777 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12778 | |
| 12779 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 12780 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12781 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 12782 | |
| 12783 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12784 | echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 12785 | echo "${ECHO_T}$with_pymalloc" >&6 |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 12786 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 12787 | # Check for --with-wctype-functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12788 | echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 12789 | echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6 |
| 12790 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 12791 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 12792 | if test "${with_wctype_functions+set}" = set; then |
| 12793 | withval="$with_wctype_functions" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12794 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 12795 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12796 | then |
| 12797 | |
| 12798 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 12799 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12800 | _ACEOF |
| 12801 | |
| 12802 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12803 | echo "${ECHO_T}yes" >&6 |
| 12804 | else echo "$as_me:$LINENO: result: no" >&5 |
| 12805 | echo "${ECHO_T}no" >&6 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 12806 | fi |
| 12807 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12808 | echo "$as_me:$LINENO: result: no" >&5 |
| 12809 | echo "${ECHO_T}no" >&6 |
| 12810 | fi; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 12811 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12812 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12813 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 12814 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12815 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12816 | echo "$as_me:$LINENO: checking for --with-sgi-dl" >&5 |
| 12817 | echo $ECHO_N "checking for --with-sgi-dl... $ECHO_C" >&6 |
| 12818 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12819 | # Check whether --with-sgi-dl or --without-sgi-dl was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12820 | if test "${with_sgi_dl+set}" = set; then |
| 12821 | withval="$with_sgi_dl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12822 | |
| 12823 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 12824 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 9ef3376 | 2002-12-02 22:23:56 +0000 | [diff] [blame] | 12825 | echo --with-sgi-dl is unsupported, see README |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 12826 | exit 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12827 | |
| 12828 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12829 | #define WITH_SGI_DL 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12830 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12831 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12832 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12833 | dldir=$withval |
Guido van Rossum | 4095101 | 2000-10-07 16:21:27 +0000 | [diff] [blame] | 12834 | if test ! -z "$dldir" -a -d "$dldir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 12835 | then LDFLAGS="$LDFLAGS -L$dldir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12836 | else { { echo "$as_me:$LINENO: error: proper usage is --with-sgi-dl=DIRECTORY" >&5 |
| 12837 | echo "$as_me: error: proper usage is --with-sgi-dl=DIRECTORY" >&2;} |
| 12838 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12839 | fi |
| 12840 | DLINCLDIR=${dldir} |
| 12841 | LIBS="$LIBS -ldl -lmld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12842 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12843 | echo "$as_me:$LINENO: result: no" >&5 |
| 12844 | echo "${ECHO_T}no" >&6 |
| 12845 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12846 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12847 | echo "$as_me:$LINENO: checking for --with-dl-dld" >&5 |
| 12848 | echo $ECHO_N "checking for --with-dl-dld... $ECHO_C" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12849 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12850 | # Check whether --with-dl-dld or --without-dl-dld was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12851 | if test "${with_dl_dld+set}" = set; then |
| 12852 | withval="$with_dl_dld" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12853 | |
| 12854 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 12855 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 9ef3376 | 2002-12-02 22:23:56 +0000 | [diff] [blame] | 12856 | echo --with-dl-dld is unsupported, see README |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 12857 | exit 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12858 | |
| 12859 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12860 | #define WITH_DL_DLD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12861 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12862 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12863 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12864 | dldir=`echo "$withval" | sed 's/,.*//'` |
| 12865 | dlddir=`echo "$withval" | sed 's/.*,//'` |
Barry Warsaw | 7d1219d | 2000-10-05 18:45:53 +0000 | [diff] [blame] | 12866 | 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] | 12867 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 12868 | else { { echo "$as_me:$LINENO: error: proper usage is --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY" >&5 |
| 12869 | echo "$as_me: error: proper usage is --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY" >&2;} |
| 12870 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12871 | fi |
| 12872 | DLINCLDIR=${dldir} |
| 12873 | LIBS="$LIBS -ldl -ldld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12874 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12875 | echo "$as_me:$LINENO: result: no" >&5 |
| 12876 | echo "${ECHO_T}no" >&6 |
| 12877 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12878 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12879 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 12880 | # 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] | 12881 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12882 | for ac_func in dlopen |
| 12883 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12884 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12885 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12886 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12887 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12889 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12890 | cat >conftest.$ac_ext <<_ACEOF |
| 12891 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12892 | /* confdefs.h. */ |
| 12893 | _ACEOF |
| 12894 | cat confdefs.h >>conftest.$ac_ext |
| 12895 | cat >>conftest.$ac_ext <<_ACEOF |
| 12896 | /* end confdefs.h. */ |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12897 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12898 | which can conflict with char $ac_func (); below. |
| 12899 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12900 | <limits.h> exists even on freestanding compilers. */ |
| 12901 | #ifdef __STDC__ |
| 12902 | # include <limits.h> |
| 12903 | #else |
| 12904 | # include <assert.h> |
| 12905 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12906 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12907 | #ifdef __cplusplus |
| 12908 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12909 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12910 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12911 | /* 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] | 12912 | builtin and then its argument prototype would still apply. */ |
| 12913 | char $ac_func (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12914 | /* The GNU C library defines this for functions which it implements |
| 12915 | to always fail with ENOSYS. Some functions are actually named |
| 12916 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12917 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12918 | choke me |
| 12919 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12920 | char (*f) () = $ac_func; |
| 12921 | #endif |
| 12922 | #ifdef __cplusplus |
| 12923 | } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12924 | #endif |
| 12925 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12926 | int |
| 12927 | main () |
| 12928 | { |
| 12929 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12930 | ; |
| 12931 | return 0; |
| 12932 | } |
| 12933 | _ACEOF |
| 12934 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12935 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12936 | (eval $ac_link) 2>&5 |
| 12937 | ac_status=$? |
| 12938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12939 | (exit $ac_status); } && |
| 12940 | { ac_try='test -s conftest$ac_exeext' |
| 12941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12942 | (eval $ac_try) 2>&5 |
| 12943 | ac_status=$? |
| 12944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12945 | (exit $ac_status); }; }; then |
| 12946 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12947 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12948 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12949 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12950 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12951 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12952 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12953 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12954 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12955 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12956 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12957 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12958 | cat >>confdefs.h <<_ACEOF |
| 12959 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12960 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12961 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12962 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12963 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12964 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12965 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12966 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 12967 | # loading of modules. |
| 12968 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12969 | echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 12970 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12971 | if test -z "$DYNLOADFILE" |
| 12972 | then |
| 12973 | case $ac_sys_system/$ac_sys_release in |
| 12974 | AIX*) DYNLOADFILE="dynload_aix.o";; |
| 12975 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 12976 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12977 | Darwin/*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12978 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12979 | *) |
| 12980 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 12981 | # out any dynamic loading |
| 12982 | if test "$ac_cv_func_dlopen" = yes |
| 12983 | then DYNLOADFILE="dynload_shlib.o" |
| 12984 | else DYNLOADFILE="dynload_stub.o" |
| 12985 | fi |
| 12986 | ;; |
| 12987 | esac |
| 12988 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12989 | echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 12990 | echo "${ECHO_T}$DYNLOADFILE" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12991 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 12992 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12993 | |
| 12994 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12995 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12996 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12997 | |
| 12998 | fi |
| 12999 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 13000 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 13001 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13002 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13003 | echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 13004 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 13005 | if test -z "$MACHDEP_OBJS" |
| 13006 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13007 | MACHDEP_OBJS=$extra_machdep_objs |
| 13008 | else |
| 13009 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 13010 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13011 | echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 13012 | echo "${ECHO_T}MACHDEP_OBJS" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 13013 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13014 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13015 | |
| 13016 | |
| 13017 | |
| 13018 | |
| 13019 | |
| 13020 | |
| 13021 | |
| 13022 | |
| 13023 | |
| 13024 | |
| 13025 | |
| 13026 | |
| 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 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13086 | for ac_func in alarm chown clock confstr ctermid execv \ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13087 | fork fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 13088 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
| 13089 | getpriority getpwent getwd \ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13090 | kill killpg lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 13091 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 13092 | putenv readlink realpath \ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13093 | select setegid seteuid setgid \ |
Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 13094 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13095 | sigaction siginterrupt sigrelse strftime strptime \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 13096 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 13097 | truncate uname unsetenv utimes waitpid wcscoll _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13098 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13099 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13100 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13101 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13102 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13104 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13105 | cat >conftest.$ac_ext <<_ACEOF |
| 13106 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13107 | /* confdefs.h. */ |
| 13108 | _ACEOF |
| 13109 | cat confdefs.h >>conftest.$ac_ext |
| 13110 | cat >>conftest.$ac_ext <<_ACEOF |
| 13111 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13112 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13113 | which can conflict with char $ac_func (); below. |
| 13114 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13115 | <limits.h> exists even on freestanding compilers. */ |
| 13116 | #ifdef __STDC__ |
| 13117 | # include <limits.h> |
| 13118 | #else |
| 13119 | # include <assert.h> |
| 13120 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13121 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13122 | #ifdef __cplusplus |
| 13123 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13124 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13125 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13126 | /* 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] | 13127 | builtin and then its argument prototype would still apply. */ |
| 13128 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13129 | /* The GNU C library defines this for functions which it implements |
| 13130 | to always fail with ENOSYS. Some functions are actually named |
| 13131 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13132 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13133 | choke me |
| 13134 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13135 | char (*f) () = $ac_func; |
| 13136 | #endif |
| 13137 | #ifdef __cplusplus |
| 13138 | } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13139 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13140 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13141 | int |
| 13142 | main () |
| 13143 | { |
| 13144 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13145 | ; |
| 13146 | return 0; |
| 13147 | } |
| 13148 | _ACEOF |
| 13149 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13150 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13151 | (eval $ac_link) 2>&5 |
| 13152 | ac_status=$? |
| 13153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13154 | (exit $ac_status); } && |
| 13155 | { ac_try='test -s conftest$ac_exeext' |
| 13156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13157 | (eval $ac_try) 2>&5 |
| 13158 | ac_status=$? |
| 13159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13160 | (exit $ac_status); }; }; then |
| 13161 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13162 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13163 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13164 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13165 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13166 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13167 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13168 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13169 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13170 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13171 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13172 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13173 | cat >>confdefs.h <<_ACEOF |
| 13174 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13175 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13176 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13177 | fi |
| 13178 | done |
| 13179 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13180 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13181 | # For some functions, having a definition is not sufficient, since |
| 13182 | # we want to take their address. |
| 13183 | echo "$as_me:$LINENO: checking for chroot" >&5 |
| 13184 | echo $ECHO_N "checking for chroot... $ECHO_C" >&6 |
| 13185 | cat >conftest.$ac_ext <<_ACEOF |
| 13186 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13187 | /* confdefs.h. */ |
| 13188 | _ACEOF |
| 13189 | cat confdefs.h >>conftest.$ac_ext |
| 13190 | cat >>conftest.$ac_ext <<_ACEOF |
| 13191 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13192 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13193 | int |
| 13194 | main () |
| 13195 | { |
| 13196 | void *x=chroot |
| 13197 | ; |
| 13198 | return 0; |
| 13199 | } |
| 13200 | _ACEOF |
| 13201 | rm -f conftest.$ac_objext |
| 13202 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13203 | (eval $ac_compile) 2>&5 |
| 13204 | ac_status=$? |
| 13205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13206 | (exit $ac_status); } && |
| 13207 | { ac_try='test -s conftest.$ac_objext' |
| 13208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13209 | (eval $ac_try) 2>&5 |
| 13210 | ac_status=$? |
| 13211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13212 | (exit $ac_status); }; }; then |
| 13213 | |
| 13214 | cat >>confdefs.h <<\_ACEOF |
| 13215 | #define HAVE_CHROOT 1 |
| 13216 | _ACEOF |
| 13217 | |
| 13218 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13219 | echo "${ECHO_T}yes" >&6 |
| 13220 | else |
| 13221 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13222 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13223 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13224 | echo "$as_me:$LINENO: result: no" >&5 |
| 13225 | echo "${ECHO_T}no" >&6 |
| 13226 | |
| 13227 | fi |
| 13228 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13229 | echo "$as_me:$LINENO: checking for link" >&5 |
| 13230 | echo $ECHO_N "checking for link... $ECHO_C" >&6 |
| 13231 | cat >conftest.$ac_ext <<_ACEOF |
| 13232 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13233 | /* confdefs.h. */ |
| 13234 | _ACEOF |
| 13235 | cat confdefs.h >>conftest.$ac_ext |
| 13236 | cat >>conftest.$ac_ext <<_ACEOF |
| 13237 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13238 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13239 | int |
| 13240 | main () |
| 13241 | { |
| 13242 | void *x=link |
| 13243 | ; |
| 13244 | return 0; |
| 13245 | } |
| 13246 | _ACEOF |
| 13247 | rm -f conftest.$ac_objext |
| 13248 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13249 | (eval $ac_compile) 2>&5 |
| 13250 | ac_status=$? |
| 13251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13252 | (exit $ac_status); } && |
| 13253 | { ac_try='test -s conftest.$ac_objext' |
| 13254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13255 | (eval $ac_try) 2>&5 |
| 13256 | ac_status=$? |
| 13257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13258 | (exit $ac_status); }; }; then |
| 13259 | |
| 13260 | cat >>confdefs.h <<\_ACEOF |
| 13261 | #define HAVE_LINK 1 |
| 13262 | _ACEOF |
| 13263 | |
| 13264 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13265 | echo "${ECHO_T}yes" >&6 |
| 13266 | else |
| 13267 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13268 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13269 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13270 | echo "$as_me:$LINENO: result: no" >&5 |
| 13271 | echo "${ECHO_T}no" >&6 |
| 13272 | |
| 13273 | fi |
| 13274 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13275 | echo "$as_me:$LINENO: checking for symlink" >&5 |
| 13276 | echo $ECHO_N "checking for symlink... $ECHO_C" >&6 |
| 13277 | cat >conftest.$ac_ext <<_ACEOF |
| 13278 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13279 | /* confdefs.h. */ |
| 13280 | _ACEOF |
| 13281 | cat confdefs.h >>conftest.$ac_ext |
| 13282 | cat >>conftest.$ac_ext <<_ACEOF |
| 13283 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13284 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13285 | int |
| 13286 | main () |
| 13287 | { |
| 13288 | void *x=symlink |
| 13289 | ; |
| 13290 | return 0; |
| 13291 | } |
| 13292 | _ACEOF |
| 13293 | rm -f conftest.$ac_objext |
| 13294 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13295 | (eval $ac_compile) 2>&5 |
| 13296 | ac_status=$? |
| 13297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13298 | (exit $ac_status); } && |
| 13299 | { ac_try='test -s conftest.$ac_objext' |
| 13300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13301 | (eval $ac_try) 2>&5 |
| 13302 | ac_status=$? |
| 13303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13304 | (exit $ac_status); }; }; then |
| 13305 | |
| 13306 | cat >>confdefs.h <<\_ACEOF |
| 13307 | #define HAVE_SYMLINK 1 |
| 13308 | _ACEOF |
| 13309 | |
| 13310 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13311 | echo "${ECHO_T}yes" >&6 |
| 13312 | else |
| 13313 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13314 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13315 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13316 | echo "$as_me:$LINENO: result: no" >&5 |
| 13317 | echo "${ECHO_T}no" >&6 |
| 13318 | |
| 13319 | fi |
| 13320 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13321 | echo "$as_me:$LINENO: checking for fchdir" >&5 |
| 13322 | echo $ECHO_N "checking for fchdir... $ECHO_C" >&6 |
| 13323 | cat >conftest.$ac_ext <<_ACEOF |
| 13324 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13325 | /* confdefs.h. */ |
| 13326 | _ACEOF |
| 13327 | cat confdefs.h >>conftest.$ac_ext |
| 13328 | cat >>conftest.$ac_ext <<_ACEOF |
| 13329 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13330 | #include <unistd.h> |
| 13331 | int |
| 13332 | main () |
| 13333 | { |
| 13334 | void *x=fchdir |
| 13335 | ; |
| 13336 | return 0; |
| 13337 | } |
| 13338 | _ACEOF |
| 13339 | rm -f conftest.$ac_objext |
| 13340 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13341 | (eval $ac_compile) 2>&5 |
| 13342 | ac_status=$? |
| 13343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13344 | (exit $ac_status); } && |
| 13345 | { ac_try='test -s conftest.$ac_objext' |
| 13346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13347 | (eval $ac_try) 2>&5 |
| 13348 | ac_status=$? |
| 13349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13350 | (exit $ac_status); }; }; then |
| 13351 | |
| 13352 | cat >>confdefs.h <<\_ACEOF |
| 13353 | #define HAVE_FCHDIR 1 |
| 13354 | _ACEOF |
| 13355 | |
| 13356 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13357 | echo "${ECHO_T}yes" >&6 |
| 13358 | else |
| 13359 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13360 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13361 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13362 | echo "$as_me:$LINENO: result: no" >&5 |
| 13363 | echo "${ECHO_T}no" >&6 |
| 13364 | |
| 13365 | fi |
| 13366 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13367 | echo "$as_me:$LINENO: checking for fsync" >&5 |
| 13368 | echo $ECHO_N "checking for fsync... $ECHO_C" >&6 |
| 13369 | cat >conftest.$ac_ext <<_ACEOF |
| 13370 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13371 | /* confdefs.h. */ |
| 13372 | _ACEOF |
| 13373 | cat confdefs.h >>conftest.$ac_ext |
| 13374 | cat >>conftest.$ac_ext <<_ACEOF |
| 13375 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13376 | #include <unistd.h> |
| 13377 | int |
| 13378 | main () |
| 13379 | { |
| 13380 | void *x=fsync |
| 13381 | ; |
| 13382 | return 0; |
| 13383 | } |
| 13384 | _ACEOF |
| 13385 | rm -f conftest.$ac_objext |
| 13386 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13387 | (eval $ac_compile) 2>&5 |
| 13388 | ac_status=$? |
| 13389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13390 | (exit $ac_status); } && |
| 13391 | { ac_try='test -s conftest.$ac_objext' |
| 13392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13393 | (eval $ac_try) 2>&5 |
| 13394 | ac_status=$? |
| 13395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13396 | (exit $ac_status); }; }; then |
| 13397 | |
| 13398 | cat >>confdefs.h <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13399 | #define HAVE_FSYNC 1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13400 | _ACEOF |
| 13401 | |
| 13402 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13403 | echo "${ECHO_T}yes" >&6 |
| 13404 | else |
| 13405 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13406 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13407 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13408 | echo "$as_me:$LINENO: result: no" >&5 |
| 13409 | echo "${ECHO_T}no" >&6 |
| 13410 | |
| 13411 | fi |
| 13412 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13413 | echo "$as_me:$LINENO: checking for fdatasync" >&5 |
| 13414 | echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6 |
| 13415 | cat >conftest.$ac_ext <<_ACEOF |
| 13416 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13417 | /* confdefs.h. */ |
| 13418 | _ACEOF |
| 13419 | cat confdefs.h >>conftest.$ac_ext |
| 13420 | cat >>conftest.$ac_ext <<_ACEOF |
| 13421 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13422 | #include <unistd.h> |
| 13423 | int |
| 13424 | main () |
| 13425 | { |
| 13426 | void *x=fdatasync |
| 13427 | ; |
| 13428 | return 0; |
| 13429 | } |
| 13430 | _ACEOF |
| 13431 | rm -f conftest.$ac_objext |
| 13432 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13433 | (eval $ac_compile) 2>&5 |
| 13434 | ac_status=$? |
| 13435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13436 | (exit $ac_status); } && |
| 13437 | { ac_try='test -s conftest.$ac_objext' |
| 13438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13439 | (eval $ac_try) 2>&5 |
| 13440 | ac_status=$? |
| 13441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13442 | (exit $ac_status); }; }; then |
| 13443 | |
| 13444 | cat >>confdefs.h <<\_ACEOF |
| 13445 | #define HAVE_FDATASYNC 1 |
| 13446 | _ACEOF |
| 13447 | |
| 13448 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13449 | echo "${ECHO_T}yes" >&6 |
| 13450 | else |
| 13451 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13452 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13453 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13454 | echo "$as_me:$LINENO: result: no" >&5 |
| 13455 | echo "${ECHO_T}no" >&6 |
| 13456 | |
| 13457 | fi |
| 13458 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13459 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13460 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 13461 | # functions ctermid_r, setgroups in the library, but no prototype |
| 13462 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 13463 | # address to avoid compiler warnings and potential miscompilations |
| 13464 | # because of the missing prototypes. |
| 13465 | |
| 13466 | echo "$as_me:$LINENO: checking for ctermid_r" >&5 |
| 13467 | echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6 |
| 13468 | cat >conftest.$ac_ext <<_ACEOF |
| 13469 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13470 | /* confdefs.h. */ |
| 13471 | _ACEOF |
| 13472 | cat confdefs.h >>conftest.$ac_ext |
| 13473 | cat >>conftest.$ac_ext <<_ACEOF |
| 13474 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13475 | |
| 13476 | #include "confdefs.h" |
| 13477 | #include <stdio.h> |
| 13478 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13479 | int |
| 13480 | main () |
| 13481 | { |
| 13482 | void* p = ctermid_r |
| 13483 | ; |
| 13484 | return 0; |
| 13485 | } |
| 13486 | _ACEOF |
| 13487 | rm -f conftest.$ac_objext |
| 13488 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13489 | (eval $ac_compile) 2>&5 |
| 13490 | ac_status=$? |
| 13491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13492 | (exit $ac_status); } && |
| 13493 | { ac_try='test -s conftest.$ac_objext' |
| 13494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13495 | (eval $ac_try) 2>&5 |
| 13496 | ac_status=$? |
| 13497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13498 | (exit $ac_status); }; }; then |
| 13499 | |
| 13500 | cat >>confdefs.h <<\_ACEOF |
| 13501 | #define HAVE_CTERMID_R 1 |
| 13502 | _ACEOF |
| 13503 | |
| 13504 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13505 | echo "${ECHO_T}yes" >&6 |
| 13506 | else |
| 13507 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13508 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13509 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13510 | echo "$as_me:$LINENO: result: no" >&5 |
| 13511 | echo "${ECHO_T}no" >&6 |
| 13512 | |
| 13513 | fi |
| 13514 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13515 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13516 | echo "$as_me:$LINENO: checking for flock" >&5 |
| 13517 | echo $ECHO_N "checking for flock... $ECHO_C" >&6 |
| 13518 | cat >conftest.$ac_ext <<_ACEOF |
| 13519 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13520 | /* confdefs.h. */ |
| 13521 | _ACEOF |
| 13522 | cat confdefs.h >>conftest.$ac_ext |
| 13523 | cat >>conftest.$ac_ext <<_ACEOF |
| 13524 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13525 | |
| 13526 | #include "confdefs.h" |
| 13527 | #include <sys/file.h> |
| 13528 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13529 | int |
| 13530 | main () |
| 13531 | { |
| 13532 | void* p = flock |
| 13533 | ; |
| 13534 | return 0; |
| 13535 | } |
| 13536 | _ACEOF |
| 13537 | rm -f conftest.$ac_objext |
| 13538 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13539 | (eval $ac_compile) 2>&5 |
| 13540 | ac_status=$? |
| 13541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13542 | (exit $ac_status); } && |
| 13543 | { ac_try='test -s conftest.$ac_objext' |
| 13544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13545 | (eval $ac_try) 2>&5 |
| 13546 | ac_status=$? |
| 13547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13548 | (exit $ac_status); }; }; then |
| 13549 | |
| 13550 | cat >>confdefs.h <<\_ACEOF |
| 13551 | #define HAVE_FLOCK 1 |
| 13552 | _ACEOF |
| 13553 | |
| 13554 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13555 | echo "${ECHO_T}yes" >&6 |
| 13556 | else |
| 13557 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13558 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13559 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13560 | echo "$as_me:$LINENO: result: no" >&5 |
| 13561 | echo "${ECHO_T}no" >&6 |
| 13562 | |
| 13563 | fi |
| 13564 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13565 | |
| 13566 | echo "$as_me:$LINENO: checking for getpagesize" >&5 |
| 13567 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6 |
| 13568 | cat >conftest.$ac_ext <<_ACEOF |
| 13569 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13570 | /* confdefs.h. */ |
| 13571 | _ACEOF |
| 13572 | cat confdefs.h >>conftest.$ac_ext |
| 13573 | cat >>conftest.$ac_ext <<_ACEOF |
| 13574 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13575 | |
| 13576 | #include "confdefs.h" |
| 13577 | #include <unistd.h> |
| 13578 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13579 | int |
| 13580 | main () |
| 13581 | { |
| 13582 | void* p = getpagesize |
| 13583 | ; |
| 13584 | return 0; |
| 13585 | } |
| 13586 | _ACEOF |
| 13587 | rm -f conftest.$ac_objext |
| 13588 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13589 | (eval $ac_compile) 2>&5 |
| 13590 | ac_status=$? |
| 13591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13592 | (exit $ac_status); } && |
| 13593 | { ac_try='test -s conftest.$ac_objext' |
| 13594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13595 | (eval $ac_try) 2>&5 |
| 13596 | ac_status=$? |
| 13597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13598 | (exit $ac_status); }; }; then |
| 13599 | |
| 13600 | cat >>confdefs.h <<\_ACEOF |
| 13601 | #define HAVE_GETPAGESIZE 1 |
| 13602 | _ACEOF |
| 13603 | |
| 13604 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13605 | echo "${ECHO_T}yes" >&6 |
| 13606 | else |
| 13607 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13608 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13609 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13610 | echo "$as_me:$LINENO: result: no" >&5 |
| 13611 | echo "${ECHO_T}no" >&6 |
| 13612 | |
| 13613 | fi |
| 13614 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13615 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13616 | for ac_prog in true |
| 13617 | do |
| 13618 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 13619 | set dummy $ac_prog; ac_word=$2 |
| 13620 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13621 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 13622 | if test "${ac_cv_prog_TRUE+set}" = set; then |
| 13623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13624 | else |
| 13625 | if test -n "$TRUE"; then |
| 13626 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 13627 | else |
| 13628 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13629 | for as_dir in $PATH |
| 13630 | do |
| 13631 | IFS=$as_save_IFS |
| 13632 | test -z "$as_dir" && as_dir=. |
| 13633 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13634 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 13635 | ac_cv_prog_TRUE="$ac_prog" |
| 13636 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13637 | break 2 |
| 13638 | fi |
| 13639 | done |
| 13640 | done |
| 13641 | |
| 13642 | fi |
| 13643 | fi |
| 13644 | TRUE=$ac_cv_prog_TRUE |
| 13645 | if test -n "$TRUE"; then |
| 13646 | echo "$as_me:$LINENO: result: $TRUE" >&5 |
| 13647 | echo "${ECHO_T}$TRUE" >&6 |
| 13648 | else |
| 13649 | echo "$as_me:$LINENO: result: no" >&5 |
| 13650 | echo "${ECHO_T}no" >&6 |
| 13651 | fi |
| 13652 | |
| 13653 | test -n "$TRUE" && break |
| 13654 | done |
| 13655 | test -n "$TRUE" || TRUE="/bin/true" |
| 13656 | |
| 13657 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13658 | echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5 |
| 13659 | echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6 |
| 13660 | if test "${ac_cv_lib_c_inet_aton+set}" = set; then |
| 13661 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13662 | else |
| 13663 | ac_check_lib_save_LIBS=$LIBS |
| 13664 | LIBS="-lc $LIBS" |
| 13665 | cat >conftest.$ac_ext <<_ACEOF |
| 13666 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13667 | /* confdefs.h. */ |
| 13668 | _ACEOF |
| 13669 | cat confdefs.h >>conftest.$ac_ext |
| 13670 | cat >>conftest.$ac_ext <<_ACEOF |
| 13671 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13672 | |
| 13673 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 13674 | #ifdef __cplusplus |
| 13675 | extern "C" |
| 13676 | #endif |
| 13677 | /* We use char because int might match the return type of a gcc2 |
| 13678 | builtin and then its argument prototype would still apply. */ |
| 13679 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13680 | int |
| 13681 | main () |
| 13682 | { |
| 13683 | inet_aton (); |
| 13684 | ; |
| 13685 | return 0; |
| 13686 | } |
| 13687 | _ACEOF |
| 13688 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13689 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13690 | (eval $ac_link) 2>&5 |
| 13691 | ac_status=$? |
| 13692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13693 | (exit $ac_status); } && |
| 13694 | { ac_try='test -s conftest$ac_exeext' |
| 13695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13696 | (eval $ac_try) 2>&5 |
| 13697 | ac_status=$? |
| 13698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13699 | (exit $ac_status); }; }; then |
| 13700 | ac_cv_lib_c_inet_aton=yes |
| 13701 | else |
| 13702 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13703 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13704 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13705 | ac_cv_lib_c_inet_aton=no |
| 13706 | fi |
| 13707 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 13708 | LIBS=$ac_check_lib_save_LIBS |
| 13709 | fi |
| 13710 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5 |
| 13711 | echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6 |
| 13712 | if test $ac_cv_lib_c_inet_aton = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13713 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13714 | else |
| 13715 | |
| 13716 | echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
| 13717 | echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6 |
| 13718 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
| 13719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13720 | else |
| 13721 | ac_check_lib_save_LIBS=$LIBS |
| 13722 | LIBS="-lresolv $LIBS" |
| 13723 | cat >conftest.$ac_ext <<_ACEOF |
| 13724 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13725 | /* confdefs.h. */ |
| 13726 | _ACEOF |
| 13727 | cat confdefs.h >>conftest.$ac_ext |
| 13728 | cat >>conftest.$ac_ext <<_ACEOF |
| 13729 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13730 | |
| 13731 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 13732 | #ifdef __cplusplus |
| 13733 | extern "C" |
| 13734 | #endif |
| 13735 | /* We use char because int might match the return type of a gcc2 |
| 13736 | builtin and then its argument prototype would still apply. */ |
| 13737 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13738 | int |
| 13739 | main () |
| 13740 | { |
| 13741 | inet_aton (); |
| 13742 | ; |
| 13743 | return 0; |
| 13744 | } |
| 13745 | _ACEOF |
| 13746 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13747 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13748 | (eval $ac_link) 2>&5 |
| 13749 | ac_status=$? |
| 13750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13751 | (exit $ac_status); } && |
| 13752 | { ac_try='test -s conftest$ac_exeext' |
| 13753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13754 | (eval $ac_try) 2>&5 |
| 13755 | ac_status=$? |
| 13756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13757 | (exit $ac_status); }; }; then |
| 13758 | ac_cv_lib_resolv_inet_aton=yes |
| 13759 | else |
| 13760 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13761 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13762 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13763 | ac_cv_lib_resolv_inet_aton=no |
| 13764 | fi |
| 13765 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 13766 | LIBS=$ac_check_lib_save_LIBS |
| 13767 | fi |
| 13768 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 13769 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6 |
| 13770 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
| 13771 | cat >>confdefs.h <<_ACEOF |
| 13772 | #define HAVE_LIBRESOLV 1 |
| 13773 | _ACEOF |
| 13774 | |
| 13775 | LIBS="-lresolv $LIBS" |
| 13776 | |
| 13777 | fi |
| 13778 | |
| 13779 | |
| 13780 | fi |
| 13781 | |
| 13782 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13783 | echo "$as_me:$LINENO: checking for hstrerror" >&5 |
| 13784 | echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6 |
| 13785 | cat >conftest.$ac_ext <<_ACEOF |
| 13786 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13787 | /* confdefs.h. */ |
| 13788 | _ACEOF |
| 13789 | cat confdefs.h >>conftest.$ac_ext |
| 13790 | cat >>conftest.$ac_ext <<_ACEOF |
| 13791 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13792 | |
| 13793 | #include "confdefs.h" |
| 13794 | #include <netdb.h> |
| 13795 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13796 | int |
| 13797 | main () |
| 13798 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13799 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13800 | ; |
| 13801 | return 0; |
| 13802 | } |
| 13803 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13804 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13805 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13806 | (eval $ac_link) 2>&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13807 | ac_status=$? |
| 13808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13809 | (exit $ac_status); } && |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13810 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13812 | (eval $ac_try) 2>&5 |
| 13813 | ac_status=$? |
| 13814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13815 | (exit $ac_status); }; }; then |
| 13816 | |
| 13817 | cat >>confdefs.h <<\_ACEOF |
| 13818 | #define HAVE_HSTRERROR 1 |
| 13819 | _ACEOF |
| 13820 | |
| 13821 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13822 | echo "${ECHO_T}yes" >&6 |
| 13823 | else |
| 13824 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13825 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13826 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13827 | echo "$as_me:$LINENO: result: no" >&5 |
| 13828 | echo "${ECHO_T}no" >&6 |
| 13829 | |
| 13830 | fi |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13831 | 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] | 13832 | |
| 13833 | echo "$as_me:$LINENO: checking for inet_aton" >&5 |
| 13834 | echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6 |
| 13835 | cat >conftest.$ac_ext <<_ACEOF |
| 13836 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13837 | /* confdefs.h. */ |
| 13838 | _ACEOF |
| 13839 | cat confdefs.h >>conftest.$ac_ext |
| 13840 | cat >>conftest.$ac_ext <<_ACEOF |
| 13841 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13842 | |
| 13843 | #include "confdefs.h" |
| 13844 | #include <sys/socket.h> |
| 13845 | #include <netinet/in.h> |
| 13846 | #include <arpa/inet.h> |
| 13847 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13848 | int |
| 13849 | main () |
| 13850 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13851 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13852 | ; |
| 13853 | return 0; |
| 13854 | } |
| 13855 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13856 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13857 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13858 | (eval $ac_link) 2>&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13859 | ac_status=$? |
| 13860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13861 | (exit $ac_status); } && |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13862 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13864 | (eval $ac_try) 2>&5 |
| 13865 | ac_status=$? |
| 13866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13867 | (exit $ac_status); }; }; then |
| 13868 | |
| 13869 | cat >>confdefs.h <<\_ACEOF |
| 13870 | #define HAVE_INET_ATON 1 |
| 13871 | _ACEOF |
| 13872 | |
| 13873 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13874 | echo "${ECHO_T}yes" >&6 |
| 13875 | else |
| 13876 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13877 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13878 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13879 | echo "$as_me:$LINENO: result: no" >&5 |
| 13880 | echo "${ECHO_T}no" >&6 |
| 13881 | |
| 13882 | fi |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13883 | 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] | 13884 | |
| 13885 | echo "$as_me:$LINENO: checking for inet_pton" >&5 |
| 13886 | echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6 |
| 13887 | cat >conftest.$ac_ext <<_ACEOF |
| 13888 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13889 | /* confdefs.h. */ |
| 13890 | _ACEOF |
| 13891 | cat confdefs.h >>conftest.$ac_ext |
| 13892 | cat >>conftest.$ac_ext <<_ACEOF |
| 13893 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13894 | |
| 13895 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 13896 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13897 | #include <sys/socket.h> |
| 13898 | #include <netinet/in.h> |
| 13899 | #include <arpa/inet.h> |
| 13900 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13901 | int |
| 13902 | main () |
| 13903 | { |
| 13904 | void* p = inet_pton |
| 13905 | ; |
| 13906 | return 0; |
| 13907 | } |
| 13908 | _ACEOF |
| 13909 | rm -f conftest.$ac_objext |
| 13910 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13911 | (eval $ac_compile) 2>&5 |
| 13912 | ac_status=$? |
| 13913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13914 | (exit $ac_status); } && |
| 13915 | { ac_try='test -s conftest.$ac_objext' |
| 13916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13917 | (eval $ac_try) 2>&5 |
| 13918 | ac_status=$? |
| 13919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13920 | (exit $ac_status); }; }; then |
| 13921 | |
| 13922 | cat >>confdefs.h <<\_ACEOF |
| 13923 | #define HAVE_INET_PTON 1 |
| 13924 | _ACEOF |
| 13925 | |
| 13926 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13927 | echo "${ECHO_T}yes" >&6 |
| 13928 | else |
| 13929 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13930 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13931 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13932 | echo "$as_me:$LINENO: result: no" >&5 |
| 13933 | echo "${ECHO_T}no" >&6 |
| 13934 | |
| 13935 | fi |
| 13936 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13937 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 13938 | # 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] | 13939 | echo "$as_me:$LINENO: checking for setgroups" >&5 |
| 13940 | echo $ECHO_N "checking for setgroups... $ECHO_C" >&6 |
| 13941 | cat >conftest.$ac_ext <<_ACEOF |
| 13942 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13943 | /* confdefs.h. */ |
| 13944 | _ACEOF |
| 13945 | cat confdefs.h >>conftest.$ac_ext |
| 13946 | cat >>conftest.$ac_ext <<_ACEOF |
| 13947 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13948 | |
| 13949 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 13950 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 13951 | #ifdef HAVE_GRP_H |
| 13952 | #include <grp.h> |
| 13953 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13954 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13955 | int |
| 13956 | main () |
| 13957 | { |
| 13958 | void* p = setgroups |
| 13959 | ; |
| 13960 | return 0; |
| 13961 | } |
| 13962 | _ACEOF |
| 13963 | rm -f conftest.$ac_objext |
| 13964 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13965 | (eval $ac_compile) 2>&5 |
| 13966 | ac_status=$? |
| 13967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13968 | (exit $ac_status); } && |
| 13969 | { ac_try='test -s conftest.$ac_objext' |
| 13970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13971 | (eval $ac_try) 2>&5 |
| 13972 | ac_status=$? |
| 13973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13974 | (exit $ac_status); }; }; then |
| 13975 | |
| 13976 | cat >>confdefs.h <<\_ACEOF |
| 13977 | #define HAVE_SETGROUPS 1 |
| 13978 | _ACEOF |
| 13979 | |
| 13980 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13981 | echo "${ECHO_T}yes" >&6 |
| 13982 | else |
| 13983 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13984 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13985 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13986 | echo "$as_me:$LINENO: result: no" >&5 |
| 13987 | echo "${ECHO_T}no" >&6 |
| 13988 | |
| 13989 | fi |
| 13990 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13991 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13992 | # check for openpty and forkpty |
| 13993 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13994 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13995 | for ac_func in openpty |
| 13996 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13997 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13998 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13999 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14000 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14001 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14002 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14003 | cat >conftest.$ac_ext <<_ACEOF |
| 14004 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14005 | /* confdefs.h. */ |
| 14006 | _ACEOF |
| 14007 | cat confdefs.h >>conftest.$ac_ext |
| 14008 | cat >>conftest.$ac_ext <<_ACEOF |
| 14009 | /* end confdefs.h. */ |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14010 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14011 | which can conflict with char $ac_func (); below. |
| 14012 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14013 | <limits.h> exists even on freestanding compilers. */ |
| 14014 | #ifdef __STDC__ |
| 14015 | # include <limits.h> |
| 14016 | #else |
| 14017 | # include <assert.h> |
| 14018 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14019 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14020 | #ifdef __cplusplus |
| 14021 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14022 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14023 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14024 | /* 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] | 14025 | builtin and then its argument prototype would still apply. */ |
| 14026 | char $ac_func (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14027 | /* The GNU C library defines this for functions which it implements |
| 14028 | to always fail with ENOSYS. Some functions are actually named |
| 14029 | something starting with __ and the normal name is an alias. */ |
| 14030 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14031 | choke me |
| 14032 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14033 | char (*f) () = $ac_func; |
| 14034 | #endif |
| 14035 | #ifdef __cplusplus |
| 14036 | } |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14037 | #endif |
| 14038 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14039 | int |
| 14040 | main () |
| 14041 | { |
| 14042 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14043 | ; |
| 14044 | return 0; |
| 14045 | } |
| 14046 | _ACEOF |
| 14047 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14048 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14049 | (eval $ac_link) 2>&5 |
| 14050 | ac_status=$? |
| 14051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14052 | (exit $ac_status); } && |
| 14053 | { ac_try='test -s conftest$ac_exeext' |
| 14054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14055 | (eval $ac_try) 2>&5 |
| 14056 | ac_status=$? |
| 14057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14058 | (exit $ac_status); }; }; then |
| 14059 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14060 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14061 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14062 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14063 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14064 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14065 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14066 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14067 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14068 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14069 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14070 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14071 | cat >>confdefs.h <<_ACEOF |
| 14072 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14073 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14074 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14075 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14076 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 14077 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
| 14078 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
| 14079 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14080 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14081 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14082 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14083 | cat >conftest.$ac_ext <<_ACEOF |
| 14084 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14085 | /* confdefs.h. */ |
| 14086 | _ACEOF |
| 14087 | cat confdefs.h >>conftest.$ac_ext |
| 14088 | cat >>conftest.$ac_ext <<_ACEOF |
| 14089 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14090 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14091 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14092 | #ifdef __cplusplus |
| 14093 | extern "C" |
| 14094 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14095 | /* 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] | 14096 | builtin and then its argument prototype would still apply. */ |
| 14097 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14098 | int |
| 14099 | main () |
| 14100 | { |
| 14101 | openpty (); |
| 14102 | ; |
| 14103 | return 0; |
| 14104 | } |
| 14105 | _ACEOF |
| 14106 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14107 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14108 | (eval $ac_link) 2>&5 |
| 14109 | ac_status=$? |
| 14110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14111 | (exit $ac_status); } && |
| 14112 | { ac_try='test -s conftest$ac_exeext' |
| 14113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14114 | (eval $ac_try) 2>&5 |
| 14115 | ac_status=$? |
| 14116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14117 | (exit $ac_status); }; }; then |
| 14118 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14119 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14120 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14121 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14122 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14123 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14124 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14125 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 14126 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14127 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14128 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 14129 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
| 14130 | if test $ac_cv_lib_util_openpty = yes; then |
| 14131 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14132 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14133 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14134 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14135 | fi |
| 14136 | |
| 14137 | fi |
| 14138 | done |
| 14139 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14140 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14141 | for ac_func in forkpty |
| 14142 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14143 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14144 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14145 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14146 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14147 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14148 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14149 | cat >conftest.$ac_ext <<_ACEOF |
| 14150 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14151 | /* confdefs.h. */ |
| 14152 | _ACEOF |
| 14153 | cat confdefs.h >>conftest.$ac_ext |
| 14154 | cat >>conftest.$ac_ext <<_ACEOF |
| 14155 | /* end confdefs.h. */ |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14156 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14157 | which can conflict with char $ac_func (); below. |
| 14158 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14159 | <limits.h> exists even on freestanding compilers. */ |
| 14160 | #ifdef __STDC__ |
| 14161 | # include <limits.h> |
| 14162 | #else |
| 14163 | # include <assert.h> |
| 14164 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14165 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14166 | #ifdef __cplusplus |
| 14167 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14168 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14169 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14170 | /* 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] | 14171 | builtin and then its argument prototype would still apply. */ |
| 14172 | char $ac_func (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14173 | /* The GNU C library defines this for functions which it implements |
| 14174 | to always fail with ENOSYS. Some functions are actually named |
| 14175 | something starting with __ and the normal name is an alias. */ |
| 14176 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14177 | choke me |
| 14178 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14179 | char (*f) () = $ac_func; |
| 14180 | #endif |
| 14181 | #ifdef __cplusplus |
| 14182 | } |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14183 | #endif |
| 14184 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14185 | int |
| 14186 | main () |
| 14187 | { |
| 14188 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14189 | ; |
| 14190 | return 0; |
| 14191 | } |
| 14192 | _ACEOF |
| 14193 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14194 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14195 | (eval $ac_link) 2>&5 |
| 14196 | ac_status=$? |
| 14197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14198 | (exit $ac_status); } && |
| 14199 | { ac_try='test -s conftest$ac_exeext' |
| 14200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14201 | (eval $ac_try) 2>&5 |
| 14202 | ac_status=$? |
| 14203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14204 | (exit $ac_status); }; }; then |
| 14205 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14206 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14207 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14208 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14209 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14210 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14211 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14212 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14213 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14214 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14215 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14216 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14217 | cat >>confdefs.h <<_ACEOF |
| 14218 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14219 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14220 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14221 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14222 | echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 14223 | echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6 |
| 14224 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
| 14225 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14226 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14227 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14228 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14229 | cat >conftest.$ac_ext <<_ACEOF |
| 14230 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14231 | /* confdefs.h. */ |
| 14232 | _ACEOF |
| 14233 | cat confdefs.h >>conftest.$ac_ext |
| 14234 | cat >>conftest.$ac_ext <<_ACEOF |
| 14235 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14236 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14237 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14238 | #ifdef __cplusplus |
| 14239 | extern "C" |
| 14240 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14241 | /* 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] | 14242 | builtin and then its argument prototype would still apply. */ |
| 14243 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14244 | int |
| 14245 | main () |
| 14246 | { |
| 14247 | forkpty (); |
| 14248 | ; |
| 14249 | return 0; |
| 14250 | } |
| 14251 | _ACEOF |
| 14252 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14253 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14254 | (eval $ac_link) 2>&5 |
| 14255 | ac_status=$? |
| 14256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14257 | (exit $ac_status); } && |
| 14258 | { ac_try='test -s conftest$ac_exeext' |
| 14259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14260 | (eval $ac_try) 2>&5 |
| 14261 | ac_status=$? |
| 14262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14263 | (exit $ac_status); }; }; then |
| 14264 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14265 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14266 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14267 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14268 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14269 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14270 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14271 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 14272 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14273 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14274 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 14275 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6 |
| 14276 | if test $ac_cv_lib_util_forkpty = yes; then |
| 14277 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14278 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14279 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14280 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14281 | fi |
| 14282 | |
| 14283 | fi |
| 14284 | done |
| 14285 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14286 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14287 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14288 | |
| 14289 | |
| 14290 | |
| 14291 | |
| 14292 | |
| 14293 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14294 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 14295 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14296 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14297 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14298 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14299 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14301 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14302 | cat >conftest.$ac_ext <<_ACEOF |
| 14303 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14304 | /* confdefs.h. */ |
| 14305 | _ACEOF |
| 14306 | cat confdefs.h >>conftest.$ac_ext |
| 14307 | cat >>conftest.$ac_ext <<_ACEOF |
| 14308 | /* end confdefs.h. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14309 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14310 | which can conflict with char $ac_func (); below. |
| 14311 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14312 | <limits.h> exists even on freestanding compilers. */ |
| 14313 | #ifdef __STDC__ |
| 14314 | # include <limits.h> |
| 14315 | #else |
| 14316 | # include <assert.h> |
| 14317 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14318 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14319 | #ifdef __cplusplus |
| 14320 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14321 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14322 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14323 | /* 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] | 14324 | builtin and then its argument prototype would still apply. */ |
| 14325 | char $ac_func (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14326 | /* The GNU C library defines this for functions which it implements |
| 14327 | to always fail with ENOSYS. Some functions are actually named |
| 14328 | something starting with __ and the normal name is an alias. */ |
| 14329 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14330 | choke me |
| 14331 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14332 | char (*f) () = $ac_func; |
| 14333 | #endif |
| 14334 | #ifdef __cplusplus |
| 14335 | } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14336 | #endif |
| 14337 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14338 | int |
| 14339 | main () |
| 14340 | { |
| 14341 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14342 | ; |
| 14343 | return 0; |
| 14344 | } |
| 14345 | _ACEOF |
| 14346 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14347 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14348 | (eval $ac_link) 2>&5 |
| 14349 | ac_status=$? |
| 14350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14351 | (exit $ac_status); } && |
| 14352 | { ac_try='test -s conftest$ac_exeext' |
| 14353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14354 | (eval $ac_try) 2>&5 |
| 14355 | ac_status=$? |
| 14356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14357 | (exit $ac_status); }; }; then |
| 14358 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14359 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14360 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14361 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14362 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14363 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14364 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14365 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14366 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14367 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14368 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14369 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14370 | cat >>confdefs.h <<_ACEOF |
| 14371 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14372 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14373 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14374 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14375 | done |
| 14376 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14377 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14378 | |
| 14379 | |
| 14380 | |
| 14381 | |
| 14382 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14383 | for ac_func in dup2 getcwd strdup strerror memmove |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14384 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14385 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14386 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14387 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14388 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14389 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14390 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14391 | cat >conftest.$ac_ext <<_ACEOF |
| 14392 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14393 | /* confdefs.h. */ |
| 14394 | _ACEOF |
| 14395 | cat confdefs.h >>conftest.$ac_ext |
| 14396 | cat >>conftest.$ac_ext <<_ACEOF |
| 14397 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14398 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14399 | which can conflict with char $ac_func (); below. |
| 14400 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14401 | <limits.h> exists even on freestanding compilers. */ |
| 14402 | #ifdef __STDC__ |
| 14403 | # include <limits.h> |
| 14404 | #else |
| 14405 | # include <assert.h> |
| 14406 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14407 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14408 | #ifdef __cplusplus |
| 14409 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14410 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14411 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14412 | /* 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] | 14413 | builtin and then its argument prototype would still apply. */ |
| 14414 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14415 | /* The GNU C library defines this for functions which it implements |
| 14416 | to always fail with ENOSYS. Some functions are actually named |
| 14417 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14418 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14419 | choke me |
| 14420 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14421 | char (*f) () = $ac_func; |
| 14422 | #endif |
| 14423 | #ifdef __cplusplus |
| 14424 | } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14425 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14426 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14427 | int |
| 14428 | main () |
| 14429 | { |
| 14430 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14431 | ; |
| 14432 | return 0; |
| 14433 | } |
| 14434 | _ACEOF |
| 14435 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14436 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14437 | (eval $ac_link) 2>&5 |
| 14438 | ac_status=$? |
| 14439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14440 | (exit $ac_status); } && |
| 14441 | { ac_try='test -s conftest$ac_exeext' |
| 14442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14443 | (eval $ac_try) 2>&5 |
| 14444 | ac_status=$? |
| 14445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14446 | (exit $ac_status); }; }; then |
| 14447 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14448 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14449 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14450 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14451 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14452 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14453 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14454 | 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] | 14455 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14456 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14457 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14458 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14459 | cat >>confdefs.h <<_ACEOF |
| 14460 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14461 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14462 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14463 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14464 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14465 | fi |
| 14466 | done |
| 14467 | |
| 14468 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14469 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14470 | for ac_func in getpgrp |
| 14471 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14472 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14473 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14474 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14475 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14476 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14477 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14478 | cat >conftest.$ac_ext <<_ACEOF |
| 14479 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14480 | /* confdefs.h. */ |
| 14481 | _ACEOF |
| 14482 | cat confdefs.h >>conftest.$ac_ext |
| 14483 | cat >>conftest.$ac_ext <<_ACEOF |
| 14484 | /* end confdefs.h. */ |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14485 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14486 | which can conflict with char $ac_func (); below. |
| 14487 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14488 | <limits.h> exists even on freestanding compilers. */ |
| 14489 | #ifdef __STDC__ |
| 14490 | # include <limits.h> |
| 14491 | #else |
| 14492 | # include <assert.h> |
| 14493 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14494 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14495 | #ifdef __cplusplus |
| 14496 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14497 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14498 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14499 | /* 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] | 14500 | builtin and then its argument prototype would still apply. */ |
| 14501 | char $ac_func (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14502 | /* The GNU C library defines this for functions which it implements |
| 14503 | to always fail with ENOSYS. Some functions are actually named |
| 14504 | something starting with __ and the normal name is an alias. */ |
| 14505 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14506 | choke me |
| 14507 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14508 | char (*f) () = $ac_func; |
| 14509 | #endif |
| 14510 | #ifdef __cplusplus |
| 14511 | } |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14512 | #endif |
| 14513 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14514 | int |
| 14515 | main () |
| 14516 | { |
| 14517 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14518 | ; |
| 14519 | return 0; |
| 14520 | } |
| 14521 | _ACEOF |
| 14522 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14523 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14524 | (eval $ac_link) 2>&5 |
| 14525 | ac_status=$? |
| 14526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14527 | (exit $ac_status); } && |
| 14528 | { ac_try='test -s conftest$ac_exeext' |
| 14529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14530 | (eval $ac_try) 2>&5 |
| 14531 | ac_status=$? |
| 14532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14533 | (exit $ac_status); }; }; then |
| 14534 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14535 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14536 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14537 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14538 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14539 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14540 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14541 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14542 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14543 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14544 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14545 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14546 | cat >>confdefs.h <<_ACEOF |
| 14547 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14548 | _ACEOF |
| 14549 | cat >conftest.$ac_ext <<_ACEOF |
| 14550 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14551 | /* confdefs.h. */ |
| 14552 | _ACEOF |
| 14553 | cat confdefs.h >>conftest.$ac_ext |
| 14554 | cat >>conftest.$ac_ext <<_ACEOF |
| 14555 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14556 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14557 | int |
| 14558 | main () |
| 14559 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14560 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14561 | ; |
| 14562 | return 0; |
| 14563 | } |
| 14564 | _ACEOF |
| 14565 | rm -f conftest.$ac_objext |
| 14566 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14567 | (eval $ac_compile) 2>&5 |
| 14568 | ac_status=$? |
| 14569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14570 | (exit $ac_status); } && |
| 14571 | { ac_try='test -s conftest.$ac_objext' |
| 14572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14573 | (eval $ac_try) 2>&5 |
| 14574 | ac_status=$? |
| 14575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14576 | (exit $ac_status); }; }; then |
| 14577 | |
| 14578 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14579 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14580 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14581 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14582 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 14583 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14584 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14585 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14586 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14587 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14588 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14589 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14590 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14591 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14592 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14593 | |
| 14594 | for ac_func in setpgrp |
| 14595 | do |
| 14596 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14597 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14598 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14599 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14600 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14601 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14602 | cat >conftest.$ac_ext <<_ACEOF |
| 14603 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14604 | /* confdefs.h. */ |
| 14605 | _ACEOF |
| 14606 | cat confdefs.h >>conftest.$ac_ext |
| 14607 | cat >>conftest.$ac_ext <<_ACEOF |
| 14608 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14609 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14610 | which can conflict with char $ac_func (); below. |
| 14611 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14612 | <limits.h> exists even on freestanding compilers. */ |
| 14613 | #ifdef __STDC__ |
| 14614 | # include <limits.h> |
| 14615 | #else |
| 14616 | # include <assert.h> |
| 14617 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14618 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14619 | #ifdef __cplusplus |
| 14620 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14621 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14622 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14623 | /* We use char because int might match the return type of a gcc2 |
| 14624 | builtin and then its argument prototype would still apply. */ |
| 14625 | char $ac_func (); |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14626 | /* The GNU C library defines this for functions which it implements |
| 14627 | to always fail with ENOSYS. Some functions are actually named |
| 14628 | something starting with __ and the normal name is an alias. */ |
| 14629 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14630 | choke me |
| 14631 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14632 | char (*f) () = $ac_func; |
| 14633 | #endif |
| 14634 | #ifdef __cplusplus |
| 14635 | } |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14636 | #endif |
| 14637 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14638 | int |
| 14639 | main () |
| 14640 | { |
| 14641 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14642 | ; |
| 14643 | return 0; |
| 14644 | } |
| 14645 | _ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14646 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14647 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14648 | (eval $ac_link) 2>&5 |
| 14649 | ac_status=$? |
| 14650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14651 | (exit $ac_status); } && |
| 14652 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14654 | (eval $ac_try) 2>&5 |
| 14655 | ac_status=$? |
| 14656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14657 | (exit $ac_status); }; }; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14658 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14659 | else |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14660 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14661 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14662 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14663 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14664 | fi |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14665 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14666 | fi |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14667 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14668 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14669 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14670 | cat >>confdefs.h <<_ACEOF |
| 14671 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14672 | _ACEOF |
| 14673 | cat >conftest.$ac_ext <<_ACEOF |
| 14674 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14675 | /* confdefs.h. */ |
| 14676 | _ACEOF |
| 14677 | cat confdefs.h >>conftest.$ac_ext |
| 14678 | cat >>conftest.$ac_ext <<_ACEOF |
| 14679 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14680 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14681 | int |
| 14682 | main () |
| 14683 | { |
| 14684 | setpgrp(0,0); |
| 14685 | ; |
| 14686 | return 0; |
| 14687 | } |
| 14688 | _ACEOF |
| 14689 | rm -f conftest.$ac_objext |
| 14690 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14691 | (eval $ac_compile) 2>&5 |
| 14692 | ac_status=$? |
| 14693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14694 | (exit $ac_status); } && |
| 14695 | { ac_try='test -s conftest.$ac_objext' |
| 14696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14697 | (eval $ac_try) 2>&5 |
| 14698 | ac_status=$? |
| 14699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14700 | (exit $ac_status); }; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14701 | |
| 14702 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14703 | #define SETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14704 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 14705 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14706 | |
| 14707 | else |
| 14708 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14709 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14710 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 14711 | fi |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14712 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14713 | |
| 14714 | fi |
| 14715 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 14716 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14717 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14718 | for ac_func in gettimeofday |
| 14719 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14720 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14721 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14722 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14723 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14724 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14725 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14726 | cat >conftest.$ac_ext <<_ACEOF |
| 14727 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14728 | /* confdefs.h. */ |
| 14729 | _ACEOF |
| 14730 | cat confdefs.h >>conftest.$ac_ext |
| 14731 | cat >>conftest.$ac_ext <<_ACEOF |
| 14732 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14733 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14734 | which can conflict with char $ac_func (); below. |
| 14735 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14736 | <limits.h> exists even on freestanding compilers. */ |
| 14737 | #ifdef __STDC__ |
| 14738 | # include <limits.h> |
| 14739 | #else |
| 14740 | # include <assert.h> |
| 14741 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14742 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14743 | #ifdef __cplusplus |
| 14744 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14745 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14746 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14747 | /* 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] | 14748 | builtin and then its argument prototype would still apply. */ |
| 14749 | char $ac_func (); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14750 | /* The GNU C library defines this for functions which it implements |
| 14751 | to always fail with ENOSYS. Some functions are actually named |
| 14752 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14753 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14754 | choke me |
| 14755 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14756 | char (*f) () = $ac_func; |
| 14757 | #endif |
| 14758 | #ifdef __cplusplus |
| 14759 | } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14760 | #endif |
| 14761 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14762 | int |
| 14763 | main () |
| 14764 | { |
| 14765 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14766 | ; |
| 14767 | return 0; |
| 14768 | } |
| 14769 | _ACEOF |
| 14770 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14771 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14772 | (eval $ac_link) 2>&5 |
| 14773 | ac_status=$? |
| 14774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14775 | (exit $ac_status); } && |
| 14776 | { ac_try='test -s conftest$ac_exeext' |
| 14777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14778 | (eval $ac_try) 2>&5 |
| 14779 | ac_status=$? |
| 14780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14781 | (exit $ac_status); }; }; then |
| 14782 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14783 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14784 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14785 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14786 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14787 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14788 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14789 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14790 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14791 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14792 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14793 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14794 | cat >>confdefs.h <<_ACEOF |
| 14795 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14796 | _ACEOF |
| 14797 | cat >conftest.$ac_ext <<_ACEOF |
| 14798 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14799 | /* confdefs.h. */ |
| 14800 | _ACEOF |
| 14801 | cat confdefs.h >>conftest.$ac_ext |
| 14802 | cat >>conftest.$ac_ext <<_ACEOF |
| 14803 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14804 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14805 | int |
| 14806 | main () |
| 14807 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14808 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14809 | ; |
| 14810 | return 0; |
| 14811 | } |
| 14812 | _ACEOF |
| 14813 | rm -f conftest.$ac_objext |
| 14814 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14815 | (eval $ac_compile) 2>&5 |
| 14816 | ac_status=$? |
| 14817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14818 | (exit $ac_status); } && |
| 14819 | { ac_try='test -s conftest.$ac_objext' |
| 14820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14821 | (eval $ac_try) 2>&5 |
| 14822 | ac_status=$? |
| 14823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14824 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14825 | : |
| 14826 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14827 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14828 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14829 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14830 | |
| 14831 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14832 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14833 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14834 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14835 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14836 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14837 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14838 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14839 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14840 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14841 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14842 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14843 | echo "$as_me:$LINENO: checking for major" >&5 |
| 14844 | echo $ECHO_N "checking for major... $ECHO_C" >&6 |
| 14845 | cat >conftest.$ac_ext <<_ACEOF |
| 14846 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14847 | /* confdefs.h. */ |
| 14848 | _ACEOF |
| 14849 | cat confdefs.h >>conftest.$ac_ext |
| 14850 | cat >>conftest.$ac_ext <<_ACEOF |
| 14851 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14852 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 14853 | #if defined(MAJOR_IN_MKDEV) |
| 14854 | #include <sys/mkdev.h> |
| 14855 | #elif defined(MAJOR_IN_SYSMACROS) |
| 14856 | #include <sys/sysmacros.h> |
| 14857 | #else |
| 14858 | #include <sys/types.h> |
| 14859 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14860 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14861 | int |
| 14862 | main () |
| 14863 | { |
| 14864 | |
| 14865 | makedev(major(0),minor(0)); |
| 14866 | |
| 14867 | ; |
| 14868 | return 0; |
| 14869 | } |
| 14870 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 14871 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14872 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14873 | (eval $ac_link) 2>&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14874 | ac_status=$? |
| 14875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14876 | (exit $ac_status); } && |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 14877 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14879 | (eval $ac_try) 2>&5 |
| 14880 | ac_status=$? |
| 14881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14882 | (exit $ac_status); }; }; then |
| 14883 | |
| 14884 | |
| 14885 | cat >>confdefs.h <<\_ACEOF |
| 14886 | #define HAVE_DEVICE_MACROS 1 |
| 14887 | _ACEOF |
| 14888 | |
| 14889 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14890 | echo "${ECHO_T}yes" >&6 |
| 14891 | |
| 14892 | else |
| 14893 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14894 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14895 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14896 | |
| 14897 | echo "$as_me:$LINENO: result: no" >&5 |
| 14898 | echo "${ECHO_T}no" >&6 |
| 14899 | |
| 14900 | fi |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 14901 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14902 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 14903 | # 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] | 14904 | # for [no]getaddrinfo in netdb.h. |
| 14905 | echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 14906 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6 |
| 14907 | cat >conftest.$ac_ext <<_ACEOF |
| 14908 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14909 | /* confdefs.h. */ |
| 14910 | _ACEOF |
| 14911 | cat confdefs.h >>conftest.$ac_ext |
| 14912 | cat >>conftest.$ac_ext <<_ACEOF |
| 14913 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 14914 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 14915 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 14916 | #include <sys/socket.h> |
| 14917 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 14918 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14919 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14920 | int |
| 14921 | main () |
| 14922 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14923 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 14924 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14925 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14926 | ; |
| 14927 | return 0; |
| 14928 | } |
| 14929 | _ACEOF |
| 14930 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14931 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14932 | (eval $ac_link) 2>&5 |
| 14933 | ac_status=$? |
| 14934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14935 | (exit $ac_status); } && |
| 14936 | { ac_try='test -s conftest$ac_exeext' |
| 14937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14938 | (eval $ac_try) 2>&5 |
| 14939 | ac_status=$? |
| 14940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14941 | (exit $ac_status); }; }; then |
| 14942 | |
| 14943 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14944 | echo "${ECHO_T}yes" >&6 |
| 14945 | echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| 14946 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14947 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14948 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 14949 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14950 | buggygetaddrinfo=yes |
| 14951 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14952 | cat >conftest.$ac_ext <<_ACEOF |
| 14953 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14954 | /* confdefs.h. */ |
| 14955 | _ACEOF |
| 14956 | cat confdefs.h >>conftest.$ac_ext |
| 14957 | cat >>conftest.$ac_ext <<_ACEOF |
| 14958 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14959 | |
| 14960 | #include <sys/types.h> |
| 14961 | #include <netdb.h> |
| 14962 | #include <string.h> |
| 14963 | #include <sys/socket.h> |
| 14964 | #include <netinet/in.h> |
| 14965 | |
| 14966 | main() |
| 14967 | { |
| 14968 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 14969 | struct addrinfo hints, *ai, *aitop; |
| 14970 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 14971 | |
| 14972 | for (passive = 0; passive <= 1; passive++) { |
| 14973 | memset(&hints, 0, sizeof(hints)); |
| 14974 | hints.ai_family = AF_UNSPEC; |
| 14975 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 14976 | hints.ai_socktype = SOCK_STREAM; |
| 14977 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 14978 | (void)gai_strerror(gaierr); |
| 14979 | goto bad; |
| 14980 | } |
| 14981 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 14982 | if (ai->ai_addr == NULL || |
| 14983 | ai->ai_addrlen == 0 || |
| 14984 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 14985 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 14986 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 14987 | goto bad; |
| 14988 | } |
| 14989 | switch (ai->ai_family) { |
| 14990 | case AF_INET: |
| 14991 | if (strcmp(strport, "54321") != 0) { |
| 14992 | goto bad; |
| 14993 | } |
| 14994 | if (passive) { |
| 14995 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 14996 | goto bad; |
| 14997 | } |
| 14998 | } else { |
| 14999 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 15000 | goto bad; |
| 15001 | } |
| 15002 | } |
| 15003 | inet4++; |
| 15004 | break; |
| 15005 | case AF_INET6: |
| 15006 | if (strcmp(strport, "54321") != 0) { |
| 15007 | goto bad; |
| 15008 | } |
| 15009 | if (passive) { |
| 15010 | if (strcmp(straddr, "::") != 0) { |
| 15011 | goto bad; |
| 15012 | } |
| 15013 | } else { |
| 15014 | if (strcmp(straddr, "::1") != 0) { |
| 15015 | goto bad; |
| 15016 | } |
| 15017 | } |
| 15018 | inet6++; |
| 15019 | break; |
| 15020 | case AF_UNSPEC: |
| 15021 | goto bad; |
| 15022 | break; |
| 15023 | default: |
| 15024 | /* another family support? */ |
| 15025 | break; |
| 15026 | } |
| 15027 | } |
| 15028 | } |
| 15029 | |
| 15030 | if (!(inet4 == 0 || inet4 == 2)) |
| 15031 | goto bad; |
| 15032 | if (!(inet6 == 0 || inet6 == 2)) |
| 15033 | goto bad; |
| 15034 | |
| 15035 | if (aitop) |
| 15036 | freeaddrinfo(aitop); |
| 15037 | exit(0); |
| 15038 | |
| 15039 | bad: |
| 15040 | if (aitop) |
| 15041 | freeaddrinfo(aitop); |
| 15042 | exit(1); |
| 15043 | } |
| 15044 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15045 | _ACEOF |
| 15046 | rm -f conftest$ac_exeext |
| 15047 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15048 | (eval $ac_link) 2>&5 |
| 15049 | ac_status=$? |
| 15050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15051 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15053 | (eval $ac_try) 2>&5 |
| 15054 | ac_status=$? |
| 15055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15056 | (exit $ac_status); }; }; then |
| 15057 | echo "$as_me:$LINENO: result: good" >&5 |
| 15058 | echo "${ECHO_T}good" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15059 | buggygetaddrinfo=no |
| 15060 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15061 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15062 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15063 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15064 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15065 | ( exit $ac_status ) |
| 15066 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 15067 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15068 | buggygetaddrinfo=yes |
| 15069 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15070 | 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] | 15071 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15072 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15073 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15074 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15075 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15076 | |
| 15077 | echo "$as_me:$LINENO: result: no" >&5 |
| 15078 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15079 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15080 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15081 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15082 | 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] | 15083 | |
| 15084 | if test "$buggygetaddrinfo" = "yes"; then |
| 15085 | if test "$ipv6" = "yes"; then |
| 15086 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 15087 | echo ' or you can specify "--disable-ipv6"'. |
| 15088 | exit 1 |
| 15089 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15090 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15091 | |
| 15092 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15093 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15094 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15095 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15096 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15097 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 15098 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15099 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15100 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15101 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15102 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15103 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15105 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15106 | cat >conftest.$ac_ext <<_ACEOF |
| 15107 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15108 | /* confdefs.h. */ |
| 15109 | _ACEOF |
| 15110 | cat confdefs.h >>conftest.$ac_ext |
| 15111 | cat >>conftest.$ac_ext <<_ACEOF |
| 15112 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15113 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15114 | which can conflict with char $ac_func (); below. |
| 15115 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 15116 | <limits.h> exists even on freestanding compilers. */ |
| 15117 | #ifdef __STDC__ |
| 15118 | # include <limits.h> |
| 15119 | #else |
| 15120 | # include <assert.h> |
| 15121 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15122 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15123 | #ifdef __cplusplus |
| 15124 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15125 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15126 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15127 | /* 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] | 15128 | builtin and then its argument prototype would still apply. */ |
| 15129 | char $ac_func (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15130 | /* The GNU C library defines this for functions which it implements |
| 15131 | to always fail with ENOSYS. Some functions are actually named |
| 15132 | something starting with __ and the normal name is an alias. */ |
| 15133 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15134 | choke me |
| 15135 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15136 | char (*f) () = $ac_func; |
| 15137 | #endif |
| 15138 | #ifdef __cplusplus |
| 15139 | } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15140 | #endif |
| 15141 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15142 | int |
| 15143 | main () |
| 15144 | { |
| 15145 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15146 | ; |
| 15147 | return 0; |
| 15148 | } |
| 15149 | _ACEOF |
| 15150 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15151 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15152 | (eval $ac_link) 2>&5 |
| 15153 | ac_status=$? |
| 15154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15155 | (exit $ac_status); } && |
| 15156 | { ac_try='test -s conftest$ac_exeext' |
| 15157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15158 | (eval $ac_try) 2>&5 |
| 15159 | ac_status=$? |
| 15160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15161 | (exit $ac_status); }; }; then |
| 15162 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15163 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15164 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15165 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15166 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15167 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15168 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15169 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15170 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15171 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15172 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15173 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15174 | cat >>confdefs.h <<_ACEOF |
| 15175 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15176 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15177 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15178 | fi |
| 15179 | done |
| 15180 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15181 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15182 | # checks for structures |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15183 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 15184 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 15185 | if test "${ac_cv_header_time+set}" = set; then |
| 15186 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15187 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15188 | cat >conftest.$ac_ext <<_ACEOF |
| 15189 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15190 | /* confdefs.h. */ |
| 15191 | _ACEOF |
| 15192 | cat confdefs.h >>conftest.$ac_ext |
| 15193 | cat >>conftest.$ac_ext <<_ACEOF |
| 15194 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15195 | #include <sys/types.h> |
| 15196 | #include <sys/time.h> |
| 15197 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15198 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15199 | int |
| 15200 | main () |
| 15201 | { |
| 15202 | if ((struct tm *) 0) |
| 15203 | return 0; |
| 15204 | ; |
| 15205 | return 0; |
| 15206 | } |
| 15207 | _ACEOF |
| 15208 | rm -f conftest.$ac_objext |
| 15209 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15210 | (eval $ac_compile) 2>&5 |
| 15211 | ac_status=$? |
| 15212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15213 | (exit $ac_status); } && |
| 15214 | { ac_try='test -s conftest.$ac_objext' |
| 15215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15216 | (eval $ac_try) 2>&5 |
| 15217 | ac_status=$? |
| 15218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15219 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15220 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15221 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15222 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15223 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15224 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15225 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15226 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15227 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15228 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15229 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 15230 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15231 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15232 | |
| 15233 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15234 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15235 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15236 | |
| 15237 | fi |
| 15238 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15239 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 15240 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 15241 | if test "${ac_cv_struct_tm+set}" = set; then |
| 15242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15243 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15244 | cat >conftest.$ac_ext <<_ACEOF |
| 15245 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15246 | /* confdefs.h. */ |
| 15247 | _ACEOF |
| 15248 | cat confdefs.h >>conftest.$ac_ext |
| 15249 | cat >>conftest.$ac_ext <<_ACEOF |
| 15250 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15251 | #include <sys/types.h> |
| 15252 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15253 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15254 | int |
| 15255 | main () |
| 15256 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15257 | struct tm *tp; tp->tm_sec; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15258 | ; |
| 15259 | return 0; |
| 15260 | } |
| 15261 | _ACEOF |
| 15262 | rm -f conftest.$ac_objext |
| 15263 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15264 | (eval $ac_compile) 2>&5 |
| 15265 | ac_status=$? |
| 15266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15267 | (exit $ac_status); } && |
| 15268 | { ac_try='test -s conftest.$ac_objext' |
| 15269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15270 | (eval $ac_try) 2>&5 |
| 15271 | ac_status=$? |
| 15272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15273 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15274 | ac_cv_struct_tm=time.h |
| 15275 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15276 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15277 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15278 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15279 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15280 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15281 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15282 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15283 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 15284 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15285 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15286 | |
| 15287 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15288 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15289 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15290 | |
| 15291 | fi |
| 15292 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15293 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 15294 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 15295 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 15296 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15297 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15298 | cat >conftest.$ac_ext <<_ACEOF |
| 15299 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15300 | /* confdefs.h. */ |
| 15301 | _ACEOF |
| 15302 | cat confdefs.h >>conftest.$ac_ext |
| 15303 | cat >>conftest.$ac_ext <<_ACEOF |
| 15304 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15305 | #include <sys/types.h> |
| 15306 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15307 | |
| 15308 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15309 | int |
| 15310 | main () |
| 15311 | { |
| 15312 | static struct tm ac_aggr; |
| 15313 | if (ac_aggr.tm_zone) |
| 15314 | return 0; |
| 15315 | ; |
| 15316 | return 0; |
| 15317 | } |
| 15318 | _ACEOF |
| 15319 | rm -f conftest.$ac_objext |
| 15320 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15321 | (eval $ac_compile) 2>&5 |
| 15322 | ac_status=$? |
| 15323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15324 | (exit $ac_status); } && |
| 15325 | { ac_try='test -s conftest.$ac_objext' |
| 15326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15327 | (eval $ac_try) 2>&5 |
| 15328 | ac_status=$? |
| 15329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15330 | (exit $ac_status); }; }; then |
| 15331 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15332 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15333 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15334 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15335 | |
| 15336 | cat >conftest.$ac_ext <<_ACEOF |
| 15337 | #line $LINENO "configure" |
| 15338 | /* confdefs.h. */ |
| 15339 | _ACEOF |
| 15340 | cat confdefs.h >>conftest.$ac_ext |
| 15341 | cat >>conftest.$ac_ext <<_ACEOF |
| 15342 | /* end confdefs.h. */ |
| 15343 | #include <sys/types.h> |
| 15344 | #include <$ac_cv_struct_tm> |
| 15345 | |
| 15346 | |
| 15347 | int |
| 15348 | main () |
| 15349 | { |
| 15350 | static struct tm ac_aggr; |
| 15351 | if (sizeof ac_aggr.tm_zone) |
| 15352 | return 0; |
| 15353 | ; |
| 15354 | return 0; |
| 15355 | } |
| 15356 | _ACEOF |
| 15357 | rm -f conftest.$ac_objext |
| 15358 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15359 | (eval $ac_compile) 2>&5 |
| 15360 | ac_status=$? |
| 15361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15362 | (exit $ac_status); } && |
| 15363 | { ac_try='test -s conftest.$ac_objext' |
| 15364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15365 | (eval $ac_try) 2>&5 |
| 15366 | ac_status=$? |
| 15367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15368 | (exit $ac_status); }; }; then |
| 15369 | ac_cv_member_struct_tm_tm_zone=yes |
| 15370 | else |
| 15371 | echo "$as_me: failed program was:" >&5 |
| 15372 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15373 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15374 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15375 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15376 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15377 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15378 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15379 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15380 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 15381 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 15382 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 15383 | |
| 15384 | cat >>confdefs.h <<_ACEOF |
| 15385 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 15386 | _ACEOF |
| 15387 | |
| 15388 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15389 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15390 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15391 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 15392 | |
| 15393 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15394 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15395 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15396 | |
| 15397 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15398 | echo "$as_me:$LINENO: checking for tzname" >&5 |
| 15399 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 15400 | if test "${ac_cv_var_tzname+set}" = set; then |
| 15401 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15402 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15403 | cat >conftest.$ac_ext <<_ACEOF |
| 15404 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15405 | /* confdefs.h. */ |
| 15406 | _ACEOF |
| 15407 | cat confdefs.h >>conftest.$ac_ext |
| 15408 | cat >>conftest.$ac_ext <<_ACEOF |
| 15409 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15410 | #include <time.h> |
| 15411 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15412 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15413 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15414 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15415 | int |
| 15416 | main () |
| 15417 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15418 | atoi(*tzname); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15419 | ; |
| 15420 | return 0; |
| 15421 | } |
| 15422 | _ACEOF |
| 15423 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15424 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15425 | (eval $ac_link) 2>&5 |
| 15426 | ac_status=$? |
| 15427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15428 | (exit $ac_status); } && |
| 15429 | { ac_try='test -s conftest$ac_exeext' |
| 15430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15431 | (eval $ac_try) 2>&5 |
| 15432 | ac_status=$? |
| 15433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15434 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15435 | ac_cv_var_tzname=yes |
| 15436 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15437 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15438 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15439 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15440 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15441 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15442 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15443 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15444 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 15445 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15446 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15447 | |
| 15448 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15449 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15450 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15451 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15452 | fi |
| 15453 | fi |
| 15454 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15455 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 15456 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 |
| 15457 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
| 15458 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15459 | else |
| 15460 | cat >conftest.$ac_ext <<_ACEOF |
| 15461 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15462 | /* confdefs.h. */ |
| 15463 | _ACEOF |
| 15464 | cat confdefs.h >>conftest.$ac_ext |
| 15465 | cat >>conftest.$ac_ext <<_ACEOF |
| 15466 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15467 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15468 | int |
| 15469 | main () |
| 15470 | { |
| 15471 | static struct stat ac_aggr; |
| 15472 | if (ac_aggr.st_rdev) |
| 15473 | return 0; |
| 15474 | ; |
| 15475 | return 0; |
| 15476 | } |
| 15477 | _ACEOF |
| 15478 | rm -f conftest.$ac_objext |
| 15479 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15480 | (eval $ac_compile) 2>&5 |
| 15481 | ac_status=$? |
| 15482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15483 | (exit $ac_status); } && |
| 15484 | { ac_try='test -s conftest.$ac_objext' |
| 15485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15486 | (eval $ac_try) 2>&5 |
| 15487 | ac_status=$? |
| 15488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15489 | (exit $ac_status); }; }; then |
| 15490 | ac_cv_member_struct_stat_st_rdev=yes |
| 15491 | else |
| 15492 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15493 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15494 | |
| 15495 | cat >conftest.$ac_ext <<_ACEOF |
| 15496 | #line $LINENO "configure" |
| 15497 | /* confdefs.h. */ |
| 15498 | _ACEOF |
| 15499 | cat confdefs.h >>conftest.$ac_ext |
| 15500 | cat >>conftest.$ac_ext <<_ACEOF |
| 15501 | /* end confdefs.h. */ |
| 15502 | $ac_includes_default |
| 15503 | int |
| 15504 | main () |
| 15505 | { |
| 15506 | static struct stat ac_aggr; |
| 15507 | if (sizeof ac_aggr.st_rdev) |
| 15508 | return 0; |
| 15509 | ; |
| 15510 | return 0; |
| 15511 | } |
| 15512 | _ACEOF |
| 15513 | rm -f conftest.$ac_objext |
| 15514 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15515 | (eval $ac_compile) 2>&5 |
| 15516 | ac_status=$? |
| 15517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15518 | (exit $ac_status); } && |
| 15519 | { ac_try='test -s conftest.$ac_objext' |
| 15520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15521 | (eval $ac_try) 2>&5 |
| 15522 | ac_status=$? |
| 15523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15524 | (exit $ac_status); }; }; then |
| 15525 | ac_cv_member_struct_stat_st_rdev=yes |
| 15526 | else |
| 15527 | echo "$as_me: failed program was:" >&5 |
| 15528 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15529 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15530 | ac_cv_member_struct_stat_st_rdev=no |
| 15531 | fi |
| 15532 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15533 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15534 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15535 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15536 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 15537 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 |
| 15538 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
| 15539 | |
| 15540 | cat >>confdefs.h <<_ACEOF |
| 15541 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 15542 | _ACEOF |
| 15543 | |
| 15544 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 15545 | fi |
| 15546 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15547 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 15548 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 |
| 15549 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
| 15550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 15551 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15552 | cat >conftest.$ac_ext <<_ACEOF |
| 15553 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15554 | /* confdefs.h. */ |
| 15555 | _ACEOF |
| 15556 | cat confdefs.h >>conftest.$ac_ext |
| 15557 | cat >>conftest.$ac_ext <<_ACEOF |
| 15558 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15559 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15560 | int |
| 15561 | main () |
| 15562 | { |
| 15563 | static struct stat ac_aggr; |
| 15564 | if (ac_aggr.st_blksize) |
| 15565 | return 0; |
| 15566 | ; |
| 15567 | return 0; |
| 15568 | } |
| 15569 | _ACEOF |
| 15570 | rm -f conftest.$ac_objext |
| 15571 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15572 | (eval $ac_compile) 2>&5 |
| 15573 | ac_status=$? |
| 15574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15575 | (exit $ac_status); } && |
| 15576 | { ac_try='test -s conftest.$ac_objext' |
| 15577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15578 | (eval $ac_try) 2>&5 |
| 15579 | ac_status=$? |
| 15580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15581 | (exit $ac_status); }; }; then |
| 15582 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15583 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15584 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15585 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15586 | |
| 15587 | cat >conftest.$ac_ext <<_ACEOF |
| 15588 | #line $LINENO "configure" |
| 15589 | /* confdefs.h. */ |
| 15590 | _ACEOF |
| 15591 | cat confdefs.h >>conftest.$ac_ext |
| 15592 | cat >>conftest.$ac_ext <<_ACEOF |
| 15593 | /* end confdefs.h. */ |
| 15594 | $ac_includes_default |
| 15595 | int |
| 15596 | main () |
| 15597 | { |
| 15598 | static struct stat ac_aggr; |
| 15599 | if (sizeof ac_aggr.st_blksize) |
| 15600 | return 0; |
| 15601 | ; |
| 15602 | return 0; |
| 15603 | } |
| 15604 | _ACEOF |
| 15605 | rm -f conftest.$ac_objext |
| 15606 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15607 | (eval $ac_compile) 2>&5 |
| 15608 | ac_status=$? |
| 15609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15610 | (exit $ac_status); } && |
| 15611 | { ac_try='test -s conftest.$ac_objext' |
| 15612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15613 | (eval $ac_try) 2>&5 |
| 15614 | ac_status=$? |
| 15615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15616 | (exit $ac_status); }; }; then |
| 15617 | ac_cv_member_struct_stat_st_blksize=yes |
| 15618 | else |
| 15619 | echo "$as_me: failed program was:" >&5 |
| 15620 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15621 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15622 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15623 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15624 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15625 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15626 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15627 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15628 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 15629 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 |
| 15630 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15631 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15632 | cat >>confdefs.h <<_ACEOF |
| 15633 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 15634 | _ACEOF |
| 15635 | |
| 15636 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 15637 | fi |
| 15638 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15639 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 15640 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 |
| 15641 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 15642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 15643 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15644 | cat >conftest.$ac_ext <<_ACEOF |
| 15645 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15646 | /* confdefs.h. */ |
| 15647 | _ACEOF |
| 15648 | cat confdefs.h >>conftest.$ac_ext |
| 15649 | cat >>conftest.$ac_ext <<_ACEOF |
| 15650 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15651 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15652 | int |
| 15653 | main () |
| 15654 | { |
| 15655 | static struct stat ac_aggr; |
| 15656 | if (ac_aggr.st_blocks) |
| 15657 | return 0; |
| 15658 | ; |
| 15659 | return 0; |
| 15660 | } |
| 15661 | _ACEOF |
| 15662 | rm -f conftest.$ac_objext |
| 15663 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15664 | (eval $ac_compile) 2>&5 |
| 15665 | ac_status=$? |
| 15666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15667 | (exit $ac_status); } && |
| 15668 | { ac_try='test -s conftest.$ac_objext' |
| 15669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15670 | (eval $ac_try) 2>&5 |
| 15671 | ac_status=$? |
| 15672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15673 | (exit $ac_status); }; }; then |
| 15674 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15675 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15676 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15677 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15678 | |
| 15679 | cat >conftest.$ac_ext <<_ACEOF |
| 15680 | #line $LINENO "configure" |
| 15681 | /* confdefs.h. */ |
| 15682 | _ACEOF |
| 15683 | cat confdefs.h >>conftest.$ac_ext |
| 15684 | cat >>conftest.$ac_ext <<_ACEOF |
| 15685 | /* end confdefs.h. */ |
| 15686 | $ac_includes_default |
| 15687 | int |
| 15688 | main () |
| 15689 | { |
| 15690 | static struct stat ac_aggr; |
| 15691 | if (sizeof ac_aggr.st_blocks) |
| 15692 | return 0; |
| 15693 | ; |
| 15694 | return 0; |
| 15695 | } |
| 15696 | _ACEOF |
| 15697 | rm -f conftest.$ac_objext |
| 15698 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15699 | (eval $ac_compile) 2>&5 |
| 15700 | ac_status=$? |
| 15701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15702 | (exit $ac_status); } && |
| 15703 | { ac_try='test -s conftest.$ac_objext' |
| 15704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15705 | (eval $ac_try) 2>&5 |
| 15706 | ac_status=$? |
| 15707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15708 | (exit $ac_status); }; }; then |
| 15709 | ac_cv_member_struct_stat_st_blocks=yes |
| 15710 | else |
| 15711 | echo "$as_me: failed program was:" >&5 |
| 15712 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15713 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15714 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15715 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15716 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15717 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15718 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15719 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15720 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 15721 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 |
| 15722 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15723 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15724 | cat >>confdefs.h <<_ACEOF |
| 15725 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 15726 | _ACEOF |
| 15727 | |
| 15728 | |
| 15729 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 15730 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15731 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 15732 | |
| 15733 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15734 | LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 15735 | fi |
| 15736 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15737 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15738 | |
| 15739 | echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 15740 | echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6 |
| 15741 | if test "${ac_cv_header_time_altzone+set}" = set; then |
| 15742 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15743 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15744 | cat >conftest.$ac_ext <<_ACEOF |
| 15745 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15746 | /* confdefs.h. */ |
| 15747 | _ACEOF |
| 15748 | cat confdefs.h >>conftest.$ac_ext |
| 15749 | cat >>conftest.$ac_ext <<_ACEOF |
| 15750 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15751 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15752 | int |
| 15753 | main () |
| 15754 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15755 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15756 | ; |
| 15757 | return 0; |
| 15758 | } |
| 15759 | _ACEOF |
| 15760 | rm -f conftest.$ac_objext |
| 15761 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15762 | (eval $ac_compile) 2>&5 |
| 15763 | ac_status=$? |
| 15764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15765 | (exit $ac_status); } && |
| 15766 | { ac_try='test -s conftest.$ac_objext' |
| 15767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15768 | (eval $ac_try) 2>&5 |
| 15769 | ac_status=$? |
| 15770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15771 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15772 | ac_cv_header_time_altzone=yes |
| 15773 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15774 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15775 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15776 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15777 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15778 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15779 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15780 | fi |
| 15781 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15782 | echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 15783 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15784 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15785 | |
| 15786 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15787 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15788 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15789 | |
| 15790 | fi |
| 15791 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15792 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15793 | echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 15794 | echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 15795 | cat >conftest.$ac_ext <<_ACEOF |
| 15796 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15797 | /* confdefs.h. */ |
| 15798 | _ACEOF |
| 15799 | cat confdefs.h >>conftest.$ac_ext |
| 15800 | cat >>conftest.$ac_ext <<_ACEOF |
| 15801 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15802 | |
| 15803 | #include <sys/types.h> |
| 15804 | #include <sys/select.h> |
| 15805 | #include <sys/time.h> |
| 15806 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15807 | int |
| 15808 | main () |
| 15809 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15810 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15811 | ; |
| 15812 | return 0; |
| 15813 | } |
| 15814 | _ACEOF |
| 15815 | rm -f conftest.$ac_objext |
| 15816 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15817 | (eval $ac_compile) 2>&5 |
| 15818 | ac_status=$? |
| 15819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15820 | (exit $ac_status); } && |
| 15821 | { ac_try='test -s conftest.$ac_objext' |
| 15822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15823 | (eval $ac_try) 2>&5 |
| 15824 | ac_status=$? |
| 15825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15826 | (exit $ac_status); }; }; then |
| 15827 | |
| 15828 | |
| 15829 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15830 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15831 | _ACEOF |
| 15832 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15833 | was_it_defined=yes |
| 15834 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15835 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15836 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15837 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15838 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15839 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15840 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15841 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 15842 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15843 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15844 | echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 15845 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6 |
| 15846 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
| 15847 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15848 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15849 | cat >conftest.$ac_ext <<_ACEOF |
| 15850 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15851 | /* confdefs.h. */ |
| 15852 | _ACEOF |
| 15853 | cat confdefs.h >>conftest.$ac_ext |
| 15854 | cat >>conftest.$ac_ext <<_ACEOF |
| 15855 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15856 | |
| 15857 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15858 | int |
| 15859 | main () |
| 15860 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15861 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15862 | ; |
| 15863 | return 0; |
| 15864 | } |
| 15865 | _ACEOF |
| 15866 | rm -f conftest.$ac_objext |
| 15867 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15868 | (eval $ac_compile) 2>&5 |
| 15869 | ac_status=$? |
| 15870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15871 | (exit $ac_status); } && |
| 15872 | { ac_try='test -s conftest.$ac_objext' |
| 15873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15874 | (eval $ac_try) 2>&5 |
| 15875 | ac_status=$? |
| 15876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15877 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15878 | ac_cv_struct_addrinfo=yes |
| 15879 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15880 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15881 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15882 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15883 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15884 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15885 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15886 | fi |
| 15887 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15888 | echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 15889 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15890 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15891 | |
| 15892 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15893 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15894 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15895 | |
| 15896 | fi |
| 15897 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15898 | echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 15899 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6 |
| 15900 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
| 15901 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15902 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15903 | cat >conftest.$ac_ext <<_ACEOF |
| 15904 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15905 | /* confdefs.h. */ |
| 15906 | _ACEOF |
| 15907 | cat confdefs.h >>conftest.$ac_ext |
| 15908 | cat >>conftest.$ac_ext <<_ACEOF |
| 15909 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15910 | |
| 15911 | # include <sys/types.h> |
| 15912 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15913 | int |
| 15914 | main () |
| 15915 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15916 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15917 | ; |
| 15918 | return 0; |
| 15919 | } |
| 15920 | _ACEOF |
| 15921 | rm -f conftest.$ac_objext |
| 15922 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15923 | (eval $ac_compile) 2>&5 |
| 15924 | ac_status=$? |
| 15925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15926 | (exit $ac_status); } && |
| 15927 | { ac_try='test -s conftest.$ac_objext' |
| 15928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15929 | (eval $ac_try) 2>&5 |
| 15930 | ac_status=$? |
| 15931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15932 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15933 | ac_cv_struct_sockaddr_storage=yes |
| 15934 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15935 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15936 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15937 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15938 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15939 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15940 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15941 | fi |
| 15942 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15943 | echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 15944 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15945 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15946 | |
| 15947 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15948 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15949 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15950 | |
| 15951 | fi |
| 15952 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15953 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15954 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15955 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15956 | echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 15957 | echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 |
| 15958 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
| 15959 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15960 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15961 | cat >conftest.$ac_ext <<_ACEOF |
| 15962 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15963 | /* confdefs.h. */ |
| 15964 | _ACEOF |
| 15965 | cat confdefs.h >>conftest.$ac_ext |
| 15966 | cat >>conftest.$ac_ext <<_ACEOF |
| 15967 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15968 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15969 | int |
| 15970 | main () |
| 15971 | { |
| 15972 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 15973 | test_array [0] = 0 |
| 15974 | |
| 15975 | ; |
| 15976 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15977 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15978 | _ACEOF |
| 15979 | rm -f conftest.$ac_objext |
| 15980 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15981 | (eval $ac_compile) 2>&5 |
| 15982 | ac_status=$? |
| 15983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15984 | (exit $ac_status); } && |
| 15985 | { ac_try='test -s conftest.$ac_objext' |
| 15986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15987 | (eval $ac_try) 2>&5 |
| 15988 | ac_status=$? |
| 15989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15990 | (exit $ac_status); }; }; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15991 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15992 | else |
| 15993 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15994 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15995 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15996 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15997 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15998 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15999 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16000 | echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 16001 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16002 | 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] | 16003 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16004 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16005 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16006 | |
| 16007 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16008 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16009 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 16010 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 16011 | if test "${ac_cv_c_const+set}" = set; then |
| 16012 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16013 | else |
| 16014 | cat >conftest.$ac_ext <<_ACEOF |
| 16015 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16016 | /* confdefs.h. */ |
| 16017 | _ACEOF |
| 16018 | cat confdefs.h >>conftest.$ac_ext |
| 16019 | cat >>conftest.$ac_ext <<_ACEOF |
| 16020 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16021 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16022 | int |
| 16023 | main () |
| 16024 | { |
| 16025 | /* FIXME: Include the comments suggested by Paul. */ |
| 16026 | #ifndef __cplusplus |
| 16027 | /* Ultrix mips cc rejects this. */ |
| 16028 | typedef int charset[2]; |
| 16029 | const charset x; |
| 16030 | /* SunOS 4.1.1 cc rejects this. */ |
| 16031 | char const *const *ccp; |
| 16032 | char **p; |
| 16033 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 16034 | struct point {int x, y;}; |
| 16035 | static struct point const zero = {0,0}; |
| 16036 | /* AIX XL C 1.02.0.0 rejects this. |
| 16037 | It does not let you subtract one const X* pointer from another in |
| 16038 | an arm of an if-expression whose if-part is not a constant |
| 16039 | expression */ |
| 16040 | const char *g = "string"; |
| 16041 | ccp = &g + (g ? g-g : 0); |
| 16042 | /* HPUX 7.0 cc rejects these. */ |
| 16043 | ++ccp; |
| 16044 | p = (char**) ccp; |
| 16045 | ccp = (char const *const *) p; |
| 16046 | { /* SCO 3.2v4 cc rejects this. */ |
| 16047 | char *t; |
| 16048 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16049 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16050 | *t++ = 0; |
| 16051 | } |
| 16052 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 16053 | int x[] = {25, 17}; |
| 16054 | const int *foo = &x[0]; |
| 16055 | ++foo; |
| 16056 | } |
| 16057 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 16058 | typedef const int *iptr; |
| 16059 | iptr p = 0; |
| 16060 | ++p; |
| 16061 | } |
| 16062 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 16063 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 16064 | struct s { int j; const int *ap[3]; }; |
| 16065 | struct s *b; b->j = 5; |
| 16066 | } |
| 16067 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 16068 | const int foo = 10; |
| 16069 | } |
| 16070 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16071 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16072 | ; |
| 16073 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16074 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16075 | _ACEOF |
| 16076 | rm -f conftest.$ac_objext |
| 16077 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16078 | (eval $ac_compile) 2>&5 |
| 16079 | ac_status=$? |
| 16080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16081 | (exit $ac_status); } && |
| 16082 | { ac_try='test -s conftest.$ac_objext' |
| 16083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16084 | (eval $ac_try) 2>&5 |
| 16085 | ac_status=$? |
| 16086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16087 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16088 | ac_cv_c_const=yes |
| 16089 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16090 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16091 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16092 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16093 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16094 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16095 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16096 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16097 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 16098 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16099 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16100 | |
| 16101 | cat >>confdefs.h <<\_ACEOF |
| 16102 | #define const |
| 16103 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16104 | |
| 16105 | fi |
| 16106 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16107 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16108 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16109 | echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 16110 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
| 16111 | cat >conftest.$ac_ext <<_ACEOF |
| 16112 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16113 | /* confdefs.h. */ |
| 16114 | _ACEOF |
| 16115 | cat confdefs.h >>conftest.$ac_ext |
| 16116 | cat >>conftest.$ac_ext <<_ACEOF |
| 16117 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16118 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16119 | int |
| 16120 | main () |
| 16121 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16122 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16123 | ; |
| 16124 | return 0; |
| 16125 | } |
| 16126 | _ACEOF |
| 16127 | rm -f conftest.$ac_objext |
| 16128 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16129 | (eval $ac_compile) 2>&5 |
| 16130 | ac_status=$? |
| 16131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16132 | (exit $ac_status); } && |
| 16133 | { ac_try='test -s conftest.$ac_objext' |
| 16134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16135 | (eval $ac_try) 2>&5 |
| 16136 | ac_status=$? |
| 16137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16138 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16139 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16140 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16141 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16142 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16143 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16144 | |
| 16145 | cat >>confdefs.h <<\_ACEOF |
| 16146 | #define volatile |
| 16147 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16148 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16149 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16150 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16151 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16152 | echo "$as_me:$LINENO: result: $works" >&5 |
| 16153 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16154 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16155 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16156 | echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 16157 | echo $ECHO_N "checking for working signed char... $ECHO_C" >&6 |
| 16158 | cat >conftest.$ac_ext <<_ACEOF |
| 16159 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16160 | /* confdefs.h. */ |
| 16161 | _ACEOF |
| 16162 | cat confdefs.h >>conftest.$ac_ext |
| 16163 | cat >>conftest.$ac_ext <<_ACEOF |
| 16164 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 16165 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16166 | int |
| 16167 | main () |
| 16168 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16169 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16170 | ; |
| 16171 | return 0; |
| 16172 | } |
| 16173 | _ACEOF |
| 16174 | rm -f conftest.$ac_objext |
| 16175 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16176 | (eval $ac_compile) 2>&5 |
| 16177 | ac_status=$? |
| 16178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16179 | (exit $ac_status); } && |
| 16180 | { ac_try='test -s conftest.$ac_objext' |
| 16181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16182 | (eval $ac_try) 2>&5 |
| 16183 | ac_status=$? |
| 16184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16185 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16186 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 16187 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16188 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16189 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16190 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16191 | |
| 16192 | cat >>confdefs.h <<\_ACEOF |
| 16193 | #define signed |
| 16194 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16195 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16196 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16197 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16198 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16199 | echo "$as_me:$LINENO: result: $works" >&5 |
| 16200 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16201 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16202 | have_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16203 | echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 16204 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6 |
| 16205 | cat >conftest.$ac_ext <<_ACEOF |
| 16206 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16207 | /* confdefs.h. */ |
| 16208 | _ACEOF |
| 16209 | cat confdefs.h >>conftest.$ac_ext |
| 16210 | cat >>conftest.$ac_ext <<_ACEOF |
| 16211 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16212 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16213 | int |
| 16214 | main () |
| 16215 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16216 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16217 | ; |
| 16218 | return 0; |
| 16219 | } |
| 16220 | _ACEOF |
| 16221 | rm -f conftest.$ac_objext |
| 16222 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16223 | (eval $ac_compile) 2>&5 |
| 16224 | ac_status=$? |
| 16225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16226 | (exit $ac_status); } && |
| 16227 | { ac_try='test -s conftest.$ac_objext' |
| 16228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16229 | (eval $ac_try) 2>&5 |
| 16230 | ac_status=$? |
| 16231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16232 | (exit $ac_status); }; }; then |
| 16233 | |
| 16234 | |
| 16235 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16236 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16237 | _ACEOF |
| 16238 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16239 | have_prototypes=yes |
| 16240 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 16241 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16242 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16243 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16244 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16245 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16246 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16247 | echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 16248 | echo "${ECHO_T}$have_prototypes" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16249 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16250 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16251 | echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 16252 | echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6 |
| 16253 | cat >conftest.$ac_ext <<_ACEOF |
| 16254 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16255 | /* confdefs.h. */ |
| 16256 | _ACEOF |
| 16257 | cat confdefs.h >>conftest.$ac_ext |
| 16258 | cat >>conftest.$ac_ext <<_ACEOF |
| 16259 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16260 | |
| 16261 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 16262 | int foo(int x, ...) { |
| 16263 | va_list va; |
| 16264 | va_start(va, x); |
| 16265 | va_arg(va, int); |
| 16266 | va_arg(va, char *); |
| 16267 | va_arg(va, double); |
| 16268 | return 0; |
| 16269 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16270 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16271 | int |
| 16272 | main () |
| 16273 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 16274 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16275 | ; |
| 16276 | return 0; |
| 16277 | } |
| 16278 | _ACEOF |
| 16279 | rm -f conftest.$ac_objext |
| 16280 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16281 | (eval $ac_compile) 2>&5 |
| 16282 | ac_status=$? |
| 16283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16284 | (exit $ac_status); } && |
| 16285 | { ac_try='test -s conftest.$ac_objext' |
| 16286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16287 | (eval $ac_try) 2>&5 |
| 16288 | ac_status=$? |
| 16289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16290 | (exit $ac_status); }; }; then |
| 16291 | |
| 16292 | |
| 16293 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16294 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16295 | _ACEOF |
| 16296 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16297 | works=yes |
| 16298 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 16299 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16300 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16301 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16302 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16303 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16304 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16305 | echo "$as_me:$LINENO: result: $works" >&5 |
| 16306 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16307 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16308 | if test "$have_prototypes" = yes; then |
| 16309 | bad_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16310 | echo "$as_me:$LINENO: checking for bad exec* prototypes" >&5 |
| 16311 | echo $ECHO_N "checking for bad exec* prototypes... $ECHO_C" >&6 |
| 16312 | cat >conftest.$ac_ext <<_ACEOF |
| 16313 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16314 | /* confdefs.h. */ |
| 16315 | _ACEOF |
| 16316 | cat confdefs.h >>conftest.$ac_ext |
| 16317 | cat >>conftest.$ac_ext <<_ACEOF |
| 16318 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16319 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16320 | int |
| 16321 | main () |
| 16322 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16323 | char **t;execve("@",t,t); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16324 | ; |
| 16325 | return 0; |
| 16326 | } |
| 16327 | _ACEOF |
| 16328 | rm -f conftest.$ac_objext |
| 16329 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16330 | (eval $ac_compile) 2>&5 |
| 16331 | ac_status=$? |
| 16332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16333 | (exit $ac_status); } && |
| 16334 | { ac_try='test -s conftest.$ac_objext' |
| 16335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16336 | (eval $ac_try) 2>&5 |
| 16337 | ac_status=$? |
| 16338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16339 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16340 | : |
| 16341 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16342 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16343 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16344 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16345 | |
| 16346 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16347 | #define BAD_EXEC_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16348 | _ACEOF |
| 16349 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16350 | bad_prototypes=yes |
| 16351 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16352 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16353 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16354 | echo "$as_me:$LINENO: result: $bad_prototypes" >&5 |
| 16355 | echo "${ECHO_T}$bad_prototypes" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16356 | fi |
| 16357 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16358 | # check if sockaddr has sa_len member |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16359 | echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 16360 | echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6 |
| 16361 | cat >conftest.$ac_ext <<_ACEOF |
| 16362 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16363 | /* confdefs.h. */ |
| 16364 | _ACEOF |
| 16365 | cat confdefs.h >>conftest.$ac_ext |
| 16366 | cat >>conftest.$ac_ext <<_ACEOF |
| 16367 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16368 | #include <sys/types.h> |
| 16369 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16370 | int |
| 16371 | main () |
| 16372 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16373 | struct sockaddr x; |
| 16374 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16375 | ; |
| 16376 | return 0; |
| 16377 | } |
| 16378 | _ACEOF |
| 16379 | rm -f conftest.$ac_objext |
| 16380 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16381 | (eval $ac_compile) 2>&5 |
| 16382 | ac_status=$? |
| 16383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16384 | (exit $ac_status); } && |
| 16385 | { ac_try='test -s conftest.$ac_objext' |
| 16386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16387 | (eval $ac_try) 2>&5 |
| 16388 | ac_status=$? |
| 16389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16390 | (exit $ac_status); }; }; then |
| 16391 | echo "$as_me:$LINENO: result: yes" >&5 |
| 16392 | echo "${ECHO_T}yes" >&6 |
| 16393 | |
| 16394 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16395 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16396 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16397 | |
| 16398 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16399 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16400 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16401 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16402 | echo "$as_me:$LINENO: result: no" >&5 |
| 16403 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16404 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16405 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16406 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16407 | va_list_is_array=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16408 | echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 16409 | echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6 |
| 16410 | cat >conftest.$ac_ext <<_ACEOF |
| 16411 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16412 | /* confdefs.h. */ |
| 16413 | _ACEOF |
| 16414 | cat confdefs.h >>conftest.$ac_ext |
| 16415 | cat >>conftest.$ac_ext <<_ACEOF |
| 16416 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16417 | |
| 16418 | #ifdef HAVE_STDARG_PROTOTYPES |
| 16419 | #include <stdarg.h> |
| 16420 | #else |
| 16421 | #include <varargs.h> |
| 16422 | #endif |
| 16423 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16424 | int |
| 16425 | main () |
| 16426 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16427 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16428 | ; |
| 16429 | return 0; |
| 16430 | } |
| 16431 | _ACEOF |
| 16432 | rm -f conftest.$ac_objext |
| 16433 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16434 | (eval $ac_compile) 2>&5 |
| 16435 | ac_status=$? |
| 16436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16437 | (exit $ac_status); } && |
| 16438 | { ac_try='test -s conftest.$ac_objext' |
| 16439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16440 | (eval $ac_try) 2>&5 |
| 16441 | ac_status=$? |
| 16442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16443 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16444 | : |
| 16445 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16446 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16447 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16448 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16449 | |
| 16450 | |
| 16451 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16452 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16453 | _ACEOF |
| 16454 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16455 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16456 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16457 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16458 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16459 | echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 16460 | echo "${ECHO_T}$va_list_is_array" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16461 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16462 | # 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] | 16463 | |
| 16464 | |
| 16465 | |
| 16466 | echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 16467 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6 |
| 16468 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
| 16469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16470 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16471 | cat >conftest.$ac_ext <<_ACEOF |
| 16472 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16473 | /* confdefs.h. */ |
| 16474 | _ACEOF |
| 16475 | cat confdefs.h >>conftest.$ac_ext |
| 16476 | cat >>conftest.$ac_ext <<_ACEOF |
| 16477 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16478 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16479 | which can conflict with char gethostbyname_r (); below. |
| 16480 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16481 | <limits.h> exists even on freestanding compilers. */ |
| 16482 | #ifdef __STDC__ |
| 16483 | # include <limits.h> |
| 16484 | #else |
| 16485 | # include <assert.h> |
| 16486 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16487 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16488 | #ifdef __cplusplus |
| 16489 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16490 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16491 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16492 | /* 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] | 16493 | builtin and then its argument prototype would still apply. */ |
| 16494 | char gethostbyname_r (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16495 | /* The GNU C library defines this for functions which it implements |
| 16496 | to always fail with ENOSYS. Some functions are actually named |
| 16497 | something starting with __ and the normal name is an alias. */ |
| 16498 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 16499 | choke me |
| 16500 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16501 | char (*f) () = gethostbyname_r; |
| 16502 | #endif |
| 16503 | #ifdef __cplusplus |
| 16504 | } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16505 | #endif |
| 16506 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16507 | int |
| 16508 | main () |
| 16509 | { |
| 16510 | return f != gethostbyname_r; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16511 | ; |
| 16512 | return 0; |
| 16513 | } |
| 16514 | _ACEOF |
| 16515 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16516 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16517 | (eval $ac_link) 2>&5 |
| 16518 | ac_status=$? |
| 16519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16520 | (exit $ac_status); } && |
| 16521 | { ac_try='test -s conftest$ac_exeext' |
| 16522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16523 | (eval $ac_try) 2>&5 |
| 16524 | ac_status=$? |
| 16525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16526 | (exit $ac_status); }; }; then |
| 16527 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16528 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16529 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16530 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16531 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16532 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16533 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16534 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16535 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16536 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 16537 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6 |
| 16538 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16539 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16540 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16541 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16542 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16543 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16544 | echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 16545 | 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] | 16546 | OLD_CFLAGS=$CFLAGS |
| 16547 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16548 | cat >conftest.$ac_ext <<_ACEOF |
| 16549 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16550 | /* confdefs.h. */ |
| 16551 | _ACEOF |
| 16552 | cat confdefs.h >>conftest.$ac_ext |
| 16553 | cat >>conftest.$ac_ext <<_ACEOF |
| 16554 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16555 | |
| 16556 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16557 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16558 | int |
| 16559 | main () |
| 16560 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16561 | |
| 16562 | char *name; |
| 16563 | struct hostent *he, *res; |
| 16564 | char buffer[2048]; |
| 16565 | int buflen = 2048; |
| 16566 | int h_errnop; |
| 16567 | |
| 16568 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16569 | |
| 16570 | ; |
| 16571 | return 0; |
| 16572 | } |
| 16573 | _ACEOF |
| 16574 | rm -f conftest.$ac_objext |
| 16575 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16576 | (eval $ac_compile) 2>&5 |
| 16577 | ac_status=$? |
| 16578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16579 | (exit $ac_status); } && |
| 16580 | { ac_try='test -s conftest.$ac_objext' |
| 16581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16582 | (eval $ac_try) 2>&5 |
| 16583 | ac_status=$? |
| 16584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16585 | (exit $ac_status); }; }; then |
| 16586 | |
| 16587 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 16588 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16589 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 16590 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16591 | |
| 16592 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16593 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16594 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16595 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16596 | echo "$as_me:$LINENO: result: yes" >&5 |
| 16597 | echo "${ECHO_T}yes" >&6 |
| 16598 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16599 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16600 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16601 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16602 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16603 | |
| 16604 | echo "$as_me:$LINENO: result: no" >&5 |
| 16605 | echo "${ECHO_T}no" >&6 |
| 16606 | echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 16607 | echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6 |
| 16608 | cat >conftest.$ac_ext <<_ACEOF |
| 16609 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16610 | /* confdefs.h. */ |
| 16611 | _ACEOF |
| 16612 | cat confdefs.h >>conftest.$ac_ext |
| 16613 | cat >>conftest.$ac_ext <<_ACEOF |
| 16614 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16615 | |
| 16616 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16617 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16618 | int |
| 16619 | main () |
| 16620 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16621 | |
| 16622 | char *name; |
| 16623 | struct hostent *he; |
| 16624 | char buffer[2048]; |
| 16625 | int buflen = 2048; |
| 16626 | int h_errnop; |
| 16627 | |
| 16628 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16629 | |
| 16630 | ; |
| 16631 | return 0; |
| 16632 | } |
| 16633 | _ACEOF |
| 16634 | rm -f conftest.$ac_objext |
| 16635 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16636 | (eval $ac_compile) 2>&5 |
| 16637 | ac_status=$? |
| 16638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16639 | (exit $ac_status); } && |
| 16640 | { ac_try='test -s conftest.$ac_objext' |
| 16641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16642 | (eval $ac_try) 2>&5 |
| 16643 | ac_status=$? |
| 16644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16645 | (exit $ac_status); }; }; then |
| 16646 | |
| 16647 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 16648 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16649 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 16650 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16651 | |
| 16652 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16653 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16654 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16655 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16656 | echo "$as_me:$LINENO: result: yes" >&5 |
| 16657 | echo "${ECHO_T}yes" >&6 |
| 16658 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16659 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16660 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16661 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16662 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16663 | |
| 16664 | echo "$as_me:$LINENO: result: no" >&5 |
| 16665 | echo "${ECHO_T}no" >&6 |
| 16666 | echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 16667 | echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6 |
| 16668 | cat >conftest.$ac_ext <<_ACEOF |
| 16669 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16670 | /* confdefs.h. */ |
| 16671 | _ACEOF |
| 16672 | cat confdefs.h >>conftest.$ac_ext |
| 16673 | cat >>conftest.$ac_ext <<_ACEOF |
| 16674 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16675 | |
| 16676 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16677 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16678 | int |
| 16679 | main () |
| 16680 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16681 | |
| 16682 | char *name; |
| 16683 | struct hostent *he; |
| 16684 | struct hostent_data data; |
| 16685 | |
| 16686 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16687 | |
| 16688 | ; |
| 16689 | return 0; |
| 16690 | } |
| 16691 | _ACEOF |
| 16692 | rm -f conftest.$ac_objext |
| 16693 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16694 | (eval $ac_compile) 2>&5 |
| 16695 | ac_status=$? |
| 16696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16697 | (exit $ac_status); } && |
| 16698 | { ac_try='test -s conftest.$ac_objext' |
| 16699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16700 | (eval $ac_try) 2>&5 |
| 16701 | ac_status=$? |
| 16702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16703 | (exit $ac_status); }; }; then |
| 16704 | |
| 16705 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 16706 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16707 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 16708 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16709 | |
| 16710 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16711 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16712 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16713 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16714 | echo "$as_me:$LINENO: result: yes" >&5 |
| 16715 | echo "${ECHO_T}yes" >&6 |
| 16716 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16717 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16718 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16719 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16720 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16721 | |
| 16722 | echo "$as_me:$LINENO: result: no" >&5 |
| 16723 | echo "${ECHO_T}no" >&6 |
| 16724 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16725 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16726 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16727 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16728 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16729 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16730 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16731 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16732 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16733 | CFLAGS=$OLD_CFLAGS |
| 16734 | |
| 16735 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16736 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16737 | |
| 16738 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 16739 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16740 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16741 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16742 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 16743 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 16744 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16745 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16746 | cat >conftest.$ac_ext <<_ACEOF |
| 16747 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16748 | /* confdefs.h. */ |
| 16749 | _ACEOF |
| 16750 | cat confdefs.h >>conftest.$ac_ext |
| 16751 | cat >>conftest.$ac_ext <<_ACEOF |
| 16752 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16753 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16754 | which can conflict with char $ac_func (); below. |
| 16755 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16756 | <limits.h> exists even on freestanding compilers. */ |
| 16757 | #ifdef __STDC__ |
| 16758 | # include <limits.h> |
| 16759 | #else |
| 16760 | # include <assert.h> |
| 16761 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16762 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16763 | #ifdef __cplusplus |
| 16764 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16765 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16766 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16767 | /* 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] | 16768 | builtin and then its argument prototype would still apply. */ |
| 16769 | char $ac_func (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16770 | /* The GNU C library defines this for functions which it implements |
| 16771 | to always fail with ENOSYS. Some functions are actually named |
| 16772 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 16773 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16774 | choke me |
| 16775 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16776 | char (*f) () = $ac_func; |
| 16777 | #endif |
| 16778 | #ifdef __cplusplus |
| 16779 | } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16780 | #endif |
| 16781 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16782 | int |
| 16783 | main () |
| 16784 | { |
| 16785 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16786 | ; |
| 16787 | return 0; |
| 16788 | } |
| 16789 | _ACEOF |
| 16790 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16791 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16792 | (eval $ac_link) 2>&5 |
| 16793 | ac_status=$? |
| 16794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16795 | (exit $ac_status); } && |
| 16796 | { ac_try='test -s conftest$ac_exeext' |
| 16797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16798 | (eval $ac_try) 2>&5 |
| 16799 | ac_status=$? |
| 16800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16801 | (exit $ac_status); }; }; then |
| 16802 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16803 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16804 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16805 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16806 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16807 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16808 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16809 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16810 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16811 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 16812 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 16813 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16814 | cat >>confdefs.h <<_ACEOF |
| 16815 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16816 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16817 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16818 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 16819 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16820 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16821 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16822 | fi |
| 16823 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16824 | |
| 16825 | |
| 16826 | |
| 16827 | |
| 16828 | |
| 16829 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16830 | # checks for system services |
| 16831 | # (none yet) |
| 16832 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16833 | # Linux requires this for correct f.p. operations |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16834 | echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 16835 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6 |
| 16836 | if test "${ac_cv_func___fpu_control+set}" = set; then |
| 16837 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16838 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16839 | cat >conftest.$ac_ext <<_ACEOF |
| 16840 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16841 | /* confdefs.h. */ |
| 16842 | _ACEOF |
| 16843 | cat confdefs.h >>conftest.$ac_ext |
| 16844 | cat >>conftest.$ac_ext <<_ACEOF |
| 16845 | /* end confdefs.h. */ |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16846 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16847 | which can conflict with char __fpu_control (); below. |
| 16848 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16849 | <limits.h> exists even on freestanding compilers. */ |
| 16850 | #ifdef __STDC__ |
| 16851 | # include <limits.h> |
| 16852 | #else |
| 16853 | # include <assert.h> |
| 16854 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16855 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16856 | #ifdef __cplusplus |
| 16857 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16858 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16859 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16860 | /* 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] | 16861 | builtin and then its argument prototype would still apply. */ |
| 16862 | char __fpu_control (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16863 | /* The GNU C library defines this for functions which it implements |
| 16864 | to always fail with ENOSYS. Some functions are actually named |
| 16865 | something starting with __ and the normal name is an alias. */ |
| 16866 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 16867 | choke me |
| 16868 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16869 | char (*f) () = __fpu_control; |
| 16870 | #endif |
| 16871 | #ifdef __cplusplus |
| 16872 | } |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16873 | #endif |
| 16874 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16875 | int |
| 16876 | main () |
| 16877 | { |
| 16878 | return f != __fpu_control; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16879 | ; |
| 16880 | return 0; |
| 16881 | } |
| 16882 | _ACEOF |
| 16883 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16884 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16885 | (eval $ac_link) 2>&5 |
| 16886 | ac_status=$? |
| 16887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16888 | (exit $ac_status); } && |
| 16889 | { ac_try='test -s conftest$ac_exeext' |
| 16890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16891 | (eval $ac_try) 2>&5 |
| 16892 | ac_status=$? |
| 16893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16894 | (exit $ac_status); }; }; then |
| 16895 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16896 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16897 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16898 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16899 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16900 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16901 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16902 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16903 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16904 | echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 16905 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6 |
| 16906 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16907 | : |
| 16908 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16909 | |
| 16910 | echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 16911 | echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6 |
| 16912 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
| 16913 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16914 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16915 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16916 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16917 | cat >conftest.$ac_ext <<_ACEOF |
| 16918 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16919 | /* confdefs.h. */ |
| 16920 | _ACEOF |
| 16921 | cat confdefs.h >>conftest.$ac_ext |
| 16922 | cat >>conftest.$ac_ext <<_ACEOF |
| 16923 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16924 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 16925 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16926 | #ifdef __cplusplus |
| 16927 | extern "C" |
| 16928 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 16929 | /* 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] | 16930 | builtin and then its argument prototype would still apply. */ |
| 16931 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16932 | int |
| 16933 | main () |
| 16934 | { |
| 16935 | __fpu_control (); |
| 16936 | ; |
| 16937 | return 0; |
| 16938 | } |
| 16939 | _ACEOF |
| 16940 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16941 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16942 | (eval $ac_link) 2>&5 |
| 16943 | ac_status=$? |
| 16944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16945 | (exit $ac_status); } && |
| 16946 | { ac_try='test -s conftest$ac_exeext' |
| 16947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16948 | (eval $ac_try) 2>&5 |
| 16949 | ac_status=$? |
| 16950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16951 | (exit $ac_status); }; }; then |
| 16952 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16953 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16954 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16955 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16956 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16957 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16958 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16959 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 16960 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16961 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16962 | echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 16963 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6 |
| 16964 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
| 16965 | cat >>confdefs.h <<_ACEOF |
| 16966 | #define HAVE_LIBIEEE 1 |
| 16967 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16968 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16969 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16970 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16971 | fi |
| 16972 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16973 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16974 | fi |
| 16975 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16976 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16977 | # Check for --with-fpectl |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16978 | echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 16979 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6 |
| 16980 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16981 | # Check whether --with-fpectl or --without-fpectl was given. |
| 16982 | if test "${with_fpectl+set}" = set; then |
| 16983 | withval="$with_fpectl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16984 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16985 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16986 | then |
| 16987 | |
| 16988 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16989 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16990 | _ACEOF |
| 16991 | |
| 16992 | echo "$as_me:$LINENO: result: yes" >&5 |
| 16993 | echo "${ECHO_T}yes" >&6 |
| 16994 | else echo "$as_me:$LINENO: result: no" >&5 |
| 16995 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16996 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16997 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16998 | echo "$as_me:$LINENO: result: no" >&5 |
| 16999 | echo "${ECHO_T}no" >&6 |
| 17000 | fi; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17001 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17002 | # check for --with-libm=... |
| 17003 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 17004 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 17005 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 17006 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 17007 | *) LIBM=-lm |
| 17008 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17009 | echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 17010 | echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6 |
| 17011 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17012 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 17013 | if test "${with_libm+set}" = set; then |
| 17014 | withval="$with_libm" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17015 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17016 | if test "$withval" = no |
| 17017 | then LIBM= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17018 | echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 17019 | echo "${ECHO_T}force LIBM empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17020 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17021 | then LIBM=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17022 | echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 17023 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6 |
| 17024 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 17025 | echo "$as_me: error: proper usage is --with-libm=STRING" >&2;} |
| 17026 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17027 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17028 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17029 | echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 17030 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6 |
| 17031 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17032 | |
| 17033 | # check for --with-libc=... |
| 17034 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17035 | echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 17036 | echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6 |
| 17037 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17038 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 17039 | if test "${with_libc+set}" = set; then |
| 17040 | withval="$with_libc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17041 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17042 | if test "$withval" = no |
| 17043 | then LIBC= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17044 | echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 17045 | echo "${ECHO_T}force LIBC empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17046 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17047 | then LIBC=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17048 | echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 17049 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6 |
| 17050 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 17051 | echo "$as_me: error: proper usage is --with-libc=STRING" >&2;} |
| 17052 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17053 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17054 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17055 | echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 17056 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6 |
| 17057 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17058 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 17059 | # check for hypot() in math library |
| 17060 | LIBS_SAVE=$LIBS |
| 17061 | LIBS="$LIBS $LIBM" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17062 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 17063 | for ac_func in hypot |
| 17064 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17065 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17066 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17067 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 17068 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 17069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 17070 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17071 | cat >conftest.$ac_ext <<_ACEOF |
| 17072 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17073 | /* confdefs.h. */ |
| 17074 | _ACEOF |
| 17075 | cat confdefs.h >>conftest.$ac_ext |
| 17076 | cat >>conftest.$ac_ext <<_ACEOF |
| 17077 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17078 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17079 | which can conflict with char $ac_func (); below. |
| 17080 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17081 | <limits.h> exists even on freestanding compilers. */ |
| 17082 | #ifdef __STDC__ |
| 17083 | # include <limits.h> |
| 17084 | #else |
| 17085 | # include <assert.h> |
| 17086 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17087 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17088 | #ifdef __cplusplus |
| 17089 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17090 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17091 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 17092 | /* 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] | 17093 | builtin and then its argument prototype would still apply. */ |
| 17094 | char $ac_func (); |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 17095 | /* The GNU C library defines this for functions which it implements |
| 17096 | to always fail with ENOSYS. Some functions are actually named |
| 17097 | something starting with __ and the normal name is an alias. */ |
| 17098 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 17099 | choke me |
| 17100 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17101 | char (*f) () = $ac_func; |
| 17102 | #endif |
| 17103 | #ifdef __cplusplus |
| 17104 | } |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 17105 | #endif |
| 17106 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17107 | int |
| 17108 | main () |
| 17109 | { |
| 17110 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17111 | ; |
| 17112 | return 0; |
| 17113 | } |
| 17114 | _ACEOF |
| 17115 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17116 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17117 | (eval $ac_link) 2>&5 |
| 17118 | ac_status=$? |
| 17119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17120 | (exit $ac_status); } && |
| 17121 | { ac_try='test -s conftest$ac_exeext' |
| 17122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17123 | (eval $ac_try) 2>&5 |
| 17124 | ac_status=$? |
| 17125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17126 | (exit $ac_status); }; }; then |
| 17127 | eval "$as_ac_var=yes" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 17128 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17129 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17130 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17131 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17132 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17133 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17134 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17135 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17136 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 17137 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 17138 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17139 | cat >>confdefs.h <<_ACEOF |
| 17140 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17141 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17142 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17143 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17144 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 17145 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 17146 | done |
| 17147 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17148 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 17149 | LIBS=$LIBS_SAVE |
| 17150 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17151 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17152 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 17153 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 17154 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 17155 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 17156 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17157 | fi |
| 17158 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 17159 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17160 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17161 | # Is the header compilable? |
| 17162 | echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 17163 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6 |
| 17164 | cat >conftest.$ac_ext <<_ACEOF |
| 17165 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17166 | /* confdefs.h. */ |
| 17167 | _ACEOF |
| 17168 | cat confdefs.h >>conftest.$ac_ext |
| 17169 | cat >>conftest.$ac_ext <<_ACEOF |
| 17170 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17171 | $ac_includes_default |
| 17172 | #include <wchar.h> |
| 17173 | _ACEOF |
| 17174 | rm -f conftest.$ac_objext |
| 17175 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17176 | (eval $ac_compile) 2>&5 |
| 17177 | ac_status=$? |
| 17178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17179 | (exit $ac_status); } && |
| 17180 | { ac_try='test -s conftest.$ac_objext' |
| 17181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17182 | (eval $ac_try) 2>&5 |
| 17183 | ac_status=$? |
| 17184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17185 | (exit $ac_status); }; }; then |
| 17186 | ac_header_compiler=yes |
| 17187 | else |
| 17188 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17189 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17190 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17191 | ac_header_compiler=no |
| 17192 | fi |
| 17193 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17194 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 17195 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 17196 | |
| 17197 | # Is the header present? |
| 17198 | echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 17199 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6 |
| 17200 | cat >conftest.$ac_ext <<_ACEOF |
| 17201 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17202 | /* confdefs.h. */ |
| 17203 | _ACEOF |
| 17204 | cat confdefs.h >>conftest.$ac_ext |
| 17205 | cat >>conftest.$ac_ext <<_ACEOF |
| 17206 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17207 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17208 | _ACEOF |
| 17209 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 17210 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 17211 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17212 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17213 | rm -f conftest.er1 |
| 17214 | cat conftest.err >&5 |
| 17215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17216 | (exit $ac_status); } >/dev/null; then |
| 17217 | if test -s conftest.err; then |
| 17218 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 17219 | else |
| 17220 | ac_cpp_err= |
| 17221 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17222 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17223 | ac_cpp_err=yes |
| 17224 | fi |
| 17225 | if test -z "$ac_cpp_err"; then |
| 17226 | ac_header_preproc=yes |
| 17227 | else |
| 17228 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17229 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17230 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17231 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17232 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17233 | rm -f conftest.err conftest.$ac_ext |
| 17234 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 17235 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 17236 | |
| 17237 | # So? What about this header? |
| 17238 | case $ac_header_compiler:$ac_header_preproc in |
| 17239 | yes:no ) |
| 17240 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 17241 | echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 17242 | { 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] | 17243 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;} |
| 17244 | ( |
| 17245 | cat <<\_ASBOX |
| 17246 | ## ------------------------------------ ## |
| 17247 | ## Report this to bug-autoconf@gnu.org. ## |
| 17248 | ## ------------------------------------ ## |
| 17249 | _ASBOX |
| 17250 | ) | |
| 17251 | sed "s/^/$as_me: WARNING: /" >&2 |
| 17252 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17253 | no:yes ) |
| 17254 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 17255 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
| 17256 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 17257 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 17258 | { 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] | 17259 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;} |
| 17260 | ( |
| 17261 | cat <<\_ASBOX |
| 17262 | ## ------------------------------------ ## |
| 17263 | ## Report this to bug-autoconf@gnu.org. ## |
| 17264 | ## ------------------------------------ ## |
| 17265 | _ASBOX |
| 17266 | ) | |
| 17267 | sed "s/^/$as_me: WARNING: /" >&2 |
| 17268 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17269 | esac |
| 17270 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 17271 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 17272 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 17273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17274 | else |
| 17275 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17276 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17277 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 17278 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
| 17279 | |
| 17280 | fi |
| 17281 | if test $ac_cv_header_wchar_h = yes; then |
| 17282 | |
| 17283 | |
| 17284 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17285 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17286 | _ACEOF |
| 17287 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 17288 | wchar_h="yes" |
| 17289 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17290 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17291 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17292 | |
| 17293 | fi |
| 17294 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17295 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17296 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17297 | # determine wchar_t size |
| 17298 | if test "$wchar_h" = yes |
| 17299 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17300 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 17301 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 |
| 17302 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 17303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17304 | else |
| 17305 | cat >conftest.$ac_ext <<_ACEOF |
| 17306 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17307 | /* confdefs.h. */ |
| 17308 | _ACEOF |
| 17309 | cat confdefs.h >>conftest.$ac_ext |
| 17310 | cat >>conftest.$ac_ext <<_ACEOF |
| 17311 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17312 | #include <wchar.h> |
| 17313 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17314 | int |
| 17315 | main () |
| 17316 | { |
| 17317 | if ((wchar_t *) 0) |
| 17318 | return 0; |
| 17319 | if (sizeof (wchar_t)) |
| 17320 | return 0; |
| 17321 | ; |
| 17322 | return 0; |
| 17323 | } |
| 17324 | _ACEOF |
| 17325 | rm -f conftest.$ac_objext |
| 17326 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17327 | (eval $ac_compile) 2>&5 |
| 17328 | ac_status=$? |
| 17329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17330 | (exit $ac_status); } && |
| 17331 | { ac_try='test -s conftest.$ac_objext' |
| 17332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17333 | (eval $ac_try) 2>&5 |
| 17334 | ac_status=$? |
| 17335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17336 | (exit $ac_status); }; }; then |
| 17337 | ac_cv_type_wchar_t=yes |
| 17338 | else |
| 17339 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17340 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17341 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17342 | ac_cv_type_wchar_t=no |
| 17343 | fi |
| 17344 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17345 | fi |
| 17346 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 17347 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 |
| 17348 | |
| 17349 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 17350 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 |
| 17351 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
| 17352 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17353 | else |
| 17354 | if test "$ac_cv_type_wchar_t" = yes; then |
| 17355 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 17356 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 17357 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 17358 | # This bug is HP SR number 8606223364. |
| 17359 | if test "$cross_compiling" = yes; then |
| 17360 | # Depending upon the size, compute the lo and hi bounds. |
| 17361 | cat >conftest.$ac_ext <<_ACEOF |
| 17362 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17363 | /* confdefs.h. */ |
| 17364 | _ACEOF |
| 17365 | cat confdefs.h >>conftest.$ac_ext |
| 17366 | cat >>conftest.$ac_ext <<_ACEOF |
| 17367 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17368 | #include <wchar.h> |
| 17369 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17370 | int |
| 17371 | main () |
| 17372 | { |
| 17373 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; |
| 17374 | test_array [0] = 0 |
| 17375 | |
| 17376 | ; |
| 17377 | return 0; |
| 17378 | } |
| 17379 | _ACEOF |
| 17380 | rm -f conftest.$ac_objext |
| 17381 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17382 | (eval $ac_compile) 2>&5 |
| 17383 | ac_status=$? |
| 17384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17385 | (exit $ac_status); } && |
| 17386 | { ac_try='test -s conftest.$ac_objext' |
| 17387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17388 | (eval $ac_try) 2>&5 |
| 17389 | ac_status=$? |
| 17390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17391 | (exit $ac_status); }; }; then |
| 17392 | ac_lo=0 ac_mid=0 |
| 17393 | while :; do |
| 17394 | cat >conftest.$ac_ext <<_ACEOF |
| 17395 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17396 | /* confdefs.h. */ |
| 17397 | _ACEOF |
| 17398 | cat confdefs.h >>conftest.$ac_ext |
| 17399 | cat >>conftest.$ac_ext <<_ACEOF |
| 17400 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17401 | #include <wchar.h> |
| 17402 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17403 | int |
| 17404 | main () |
| 17405 | { |
| 17406 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 17407 | test_array [0] = 0 |
| 17408 | |
| 17409 | ; |
| 17410 | return 0; |
| 17411 | } |
| 17412 | _ACEOF |
| 17413 | rm -f conftest.$ac_objext |
| 17414 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17415 | (eval $ac_compile) 2>&5 |
| 17416 | ac_status=$? |
| 17417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17418 | (exit $ac_status); } && |
| 17419 | { ac_try='test -s conftest.$ac_objext' |
| 17420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17421 | (eval $ac_try) 2>&5 |
| 17422 | ac_status=$? |
| 17423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17424 | (exit $ac_status); }; }; then |
| 17425 | ac_hi=$ac_mid; break |
| 17426 | else |
| 17427 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17428 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17429 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17430 | ac_lo=`expr $ac_mid + 1` |
| 17431 | if test $ac_lo -le $ac_mid; then |
| 17432 | ac_lo= ac_hi= |
| 17433 | break |
| 17434 | fi |
| 17435 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 17436 | fi |
| 17437 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17438 | done |
| 17439 | else |
| 17440 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17441 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17442 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17443 | cat >conftest.$ac_ext <<_ACEOF |
| 17444 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17445 | /* confdefs.h. */ |
| 17446 | _ACEOF |
| 17447 | cat confdefs.h >>conftest.$ac_ext |
| 17448 | cat >>conftest.$ac_ext <<_ACEOF |
| 17449 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17450 | #include <wchar.h> |
| 17451 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17452 | int |
| 17453 | main () |
| 17454 | { |
| 17455 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; |
| 17456 | test_array [0] = 0 |
| 17457 | |
| 17458 | ; |
| 17459 | return 0; |
| 17460 | } |
| 17461 | _ACEOF |
| 17462 | rm -f conftest.$ac_objext |
| 17463 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17464 | (eval $ac_compile) 2>&5 |
| 17465 | ac_status=$? |
| 17466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17467 | (exit $ac_status); } && |
| 17468 | { ac_try='test -s conftest.$ac_objext' |
| 17469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17470 | (eval $ac_try) 2>&5 |
| 17471 | ac_status=$? |
| 17472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17473 | (exit $ac_status); }; }; then |
| 17474 | ac_hi=-1 ac_mid=-1 |
| 17475 | while :; do |
| 17476 | cat >conftest.$ac_ext <<_ACEOF |
| 17477 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17478 | /* confdefs.h. */ |
| 17479 | _ACEOF |
| 17480 | cat confdefs.h >>conftest.$ac_ext |
| 17481 | cat >>conftest.$ac_ext <<_ACEOF |
| 17482 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17483 | #include <wchar.h> |
| 17484 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17485 | int |
| 17486 | main () |
| 17487 | { |
| 17488 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; |
| 17489 | test_array [0] = 0 |
| 17490 | |
| 17491 | ; |
| 17492 | return 0; |
| 17493 | } |
| 17494 | _ACEOF |
| 17495 | rm -f conftest.$ac_objext |
| 17496 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17497 | (eval $ac_compile) 2>&5 |
| 17498 | ac_status=$? |
| 17499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17500 | (exit $ac_status); } && |
| 17501 | { ac_try='test -s conftest.$ac_objext' |
| 17502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17503 | (eval $ac_try) 2>&5 |
| 17504 | ac_status=$? |
| 17505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17506 | (exit $ac_status); }; }; then |
| 17507 | ac_lo=$ac_mid; break |
| 17508 | else |
| 17509 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17510 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17511 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17512 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 17513 | if test $ac_mid -le $ac_hi; then |
| 17514 | ac_lo= ac_hi= |
| 17515 | break |
| 17516 | fi |
| 17517 | ac_mid=`expr 2 '*' $ac_mid` |
| 17518 | fi |
| 17519 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17520 | done |
| 17521 | else |
| 17522 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17523 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17524 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17525 | ac_lo= ac_hi= |
| 17526 | fi |
| 17527 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17528 | fi |
| 17529 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17530 | # Binary search between lo and hi bounds. |
| 17531 | while test "x$ac_lo" != "x$ac_hi"; do |
| 17532 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 17533 | cat >conftest.$ac_ext <<_ACEOF |
| 17534 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17535 | /* confdefs.h. */ |
| 17536 | _ACEOF |
| 17537 | cat confdefs.h >>conftest.$ac_ext |
| 17538 | cat >>conftest.$ac_ext <<_ACEOF |
| 17539 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17540 | #include <wchar.h> |
| 17541 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17542 | int |
| 17543 | main () |
| 17544 | { |
| 17545 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 17546 | test_array [0] = 0 |
| 17547 | |
| 17548 | ; |
| 17549 | return 0; |
| 17550 | } |
| 17551 | _ACEOF |
| 17552 | rm -f conftest.$ac_objext |
| 17553 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17554 | (eval $ac_compile) 2>&5 |
| 17555 | ac_status=$? |
| 17556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17557 | (exit $ac_status); } && |
| 17558 | { ac_try='test -s conftest.$ac_objext' |
| 17559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17560 | (eval $ac_try) 2>&5 |
| 17561 | ac_status=$? |
| 17562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17563 | (exit $ac_status); }; }; then |
| 17564 | ac_hi=$ac_mid |
| 17565 | else |
| 17566 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17567 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17568 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17569 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 17570 | fi |
| 17571 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17572 | done |
| 17573 | case $ac_lo in |
| 17574 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17575 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
| 17576 | See \`config.log' for more details." >&5 |
| 17577 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 |
| 17578 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17579 | { (exit 1); exit 1; }; } ;; |
| 17580 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17581 | else |
| 17582 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17583 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 17584 | See \`config.log' for more details." >&5 |
| 17585 | echo "$as_me: error: cannot run test program while cross compiling |
| 17586 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17587 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17588 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17589 | cat >conftest.$ac_ext <<_ACEOF |
| 17590 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17591 | /* confdefs.h. */ |
| 17592 | _ACEOF |
| 17593 | cat confdefs.h >>conftest.$ac_ext |
| 17594 | cat >>conftest.$ac_ext <<_ACEOF |
| 17595 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17596 | #include <wchar.h> |
| 17597 | |
| 17598 | long longval () { return (long) (sizeof (wchar_t)); } |
| 17599 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17600 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17601 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17602 | int |
| 17603 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17604 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17605 | |
| 17606 | FILE *f = fopen ("conftest.val", "w"); |
| 17607 | if (! f) |
| 17608 | exit (1); |
| 17609 | if (((long) (sizeof (wchar_t))) < 0) |
| 17610 | { |
| 17611 | long i = longval (); |
| 17612 | if (i != ((long) (sizeof (wchar_t)))) |
| 17613 | exit (1); |
| 17614 | fprintf (f, "%ld\n", i); |
| 17615 | } |
| 17616 | else |
| 17617 | { |
| 17618 | unsigned long i = ulongval (); |
| 17619 | if (i != ((long) (sizeof (wchar_t)))) |
| 17620 | exit (1); |
| 17621 | fprintf (f, "%lu\n", i); |
| 17622 | } |
| 17623 | exit (ferror (f) || fclose (f) != 0); |
| 17624 | |
| 17625 | ; |
| 17626 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17627 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17628 | _ACEOF |
| 17629 | rm -f conftest$ac_exeext |
| 17630 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17631 | (eval $ac_link) 2>&5 |
| 17632 | ac_status=$? |
| 17633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17634 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17636 | (eval $ac_try) 2>&5 |
| 17637 | ac_status=$? |
| 17638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17639 | (exit $ac_status); }; }; then |
| 17640 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17641 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17642 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17643 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17644 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17645 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17646 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17647 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
| 17648 | See \`config.log' for more details." >&5 |
| 17649 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 |
| 17650 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17651 | { (exit 1); exit 1; }; } |
| 17652 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17653 | 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] | 17654 | fi |
| 17655 | fi |
| 17656 | rm -f conftest.val |
| 17657 | else |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17658 | ac_cv_sizeof_wchar_t=0 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17659 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17660 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17661 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 17662 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 |
| 17663 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17664 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17665 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17666 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17667 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17668 | fi |
| 17669 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 17670 | echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5 |
| 17671 | echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6 |
| 17672 | have_ucs4_tcl=no |
| 17673 | cat >conftest.$ac_ext <<_ACEOF |
| 17674 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17675 | /* confdefs.h. */ |
| 17676 | _ACEOF |
| 17677 | cat confdefs.h >>conftest.$ac_ext |
| 17678 | cat >>conftest.$ac_ext <<_ACEOF |
| 17679 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 17680 | |
| 17681 | #include <tcl.h> |
| 17682 | #if TCL_UTF_MAX != 6 |
| 17683 | # error "NOT UCS4_TCL" |
| 17684 | #endif |
| 17685 | int |
| 17686 | main () |
| 17687 | { |
| 17688 | |
| 17689 | ; |
| 17690 | return 0; |
| 17691 | } |
| 17692 | _ACEOF |
| 17693 | rm -f conftest.$ac_objext |
| 17694 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17695 | (eval $ac_compile) 2>&5 |
| 17696 | ac_status=$? |
| 17697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17698 | (exit $ac_status); } && |
| 17699 | { ac_try='test -s conftest.$ac_objext' |
| 17700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17701 | (eval $ac_try) 2>&5 |
| 17702 | ac_status=$? |
| 17703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17704 | (exit $ac_status); }; }; then |
| 17705 | |
| 17706 | |
| 17707 | cat >>confdefs.h <<\_ACEOF |
| 17708 | #define HAVE_UCS4_TCL 1 |
| 17709 | _ACEOF |
| 17710 | |
| 17711 | have_ucs4_tcl=yes |
| 17712 | |
| 17713 | else |
| 17714 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17715 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17716 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 17717 | fi |
| 17718 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17719 | echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5 |
| 17720 | echo "${ECHO_T}$have_ucs4_tcl" >&6 |
| 17721 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17722 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 17723 | if test "$wchar_h" = yes |
| 17724 | then |
| 17725 | # check whether wchar_t is signed or not |
| 17726 | echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5 |
| 17727 | echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6 |
| 17728 | if test "${ac_cv_wchar_t_signed+set}" = set; then |
| 17729 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17730 | else |
| 17731 | |
| 17732 | if test "$cross_compiling" = yes; then |
| 17733 | ac_cv_wchar_t_signed=yes |
| 17734 | else |
| 17735 | cat >conftest.$ac_ext <<_ACEOF |
| 17736 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17737 | /* confdefs.h. */ |
| 17738 | _ACEOF |
| 17739 | cat confdefs.h >>conftest.$ac_ext |
| 17740 | cat >>conftest.$ac_ext <<_ACEOF |
| 17741 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 17742 | |
| 17743 | #include <wchar.h> |
| 17744 | int main() |
| 17745 | { |
| 17746 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 1 : 0); |
| 17747 | } |
| 17748 | |
| 17749 | _ACEOF |
| 17750 | rm -f conftest$ac_exeext |
| 17751 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17752 | (eval $ac_link) 2>&5 |
| 17753 | ac_status=$? |
| 17754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17755 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17757 | (eval $ac_try) 2>&5 |
| 17758 | ac_status=$? |
| 17759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17760 | (exit $ac_status); }; }; then |
| 17761 | ac_cv_wchar_t_signed=yes |
| 17762 | else |
| 17763 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17764 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17765 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17766 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 17767 | ( exit $ac_status ) |
| 17768 | ac_cv_wchar_t_signed=no |
| 17769 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17770 | 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] | 17771 | fi |
| 17772 | fi |
| 17773 | |
| 17774 | echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5 |
| 17775 | echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6 |
| 17776 | fi |
| 17777 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17778 | echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 17779 | 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] | 17780 | # Check whether --enable-unicode or --disable-unicode was given. |
| 17781 | if test "${enable_unicode+set}" = set; then |
| 17782 | enableval="$enable_unicode" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17783 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17784 | else |
| 17785 | enable_unicode=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17786 | fi; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17787 | |
| 17788 | if test $enable_unicode = yes |
| 17789 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 17790 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 17791 | case "$have_ucs4_tcl" in |
| 17792 | yes) enable_unicode="ucs4" |
| 17793 | ;; |
| 17794 | *) enable_unicode="ucs2" |
| 17795 | ;; |
| 17796 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17797 | fi |
| 17798 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 17799 | |
| 17800 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17801 | case "$enable_unicode" in |
| 17802 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17803 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17804 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17805 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17806 | |
| 17807 | ;; |
| 17808 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17809 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17810 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17811 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17812 | |
| 17813 | ;; |
| 17814 | esac |
| 17815 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17816 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17817 | |
| 17818 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 17819 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17820 | if test "$enable_unicode" = "no" |
| 17821 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 17822 | UNICODE_OBJS="" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17823 | echo "$as_me:$LINENO: result: not used" >&5 |
| 17824 | echo "${ECHO_T}not used" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17825 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 17826 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17827 | |
| 17828 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17829 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17830 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17831 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 17832 | |
| 17833 | # wchar_t is only usable if it maps to an unsigned type |
| 17834 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ |
| 17835 | -a "$ac_cv_wchar_t_signed" == "no" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17836 | then |
| 17837 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17838 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17839 | cat >>confdefs.h <<\_ACEOF |
| 17840 | #define HAVE_USABLE_WCHAR_T 1 |
| 17841 | _ACEOF |
| 17842 | |
| 17843 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17844 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17845 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17846 | |
| 17847 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 17848 | then |
| 17849 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17850 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17851 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17852 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17853 | |
| 17854 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 17855 | then |
| 17856 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17857 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17858 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17859 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17860 | |
| 17861 | else |
| 17862 | PY_UNICODE_TYPE="no type found" |
| 17863 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17864 | echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 17865 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17866 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17867 | |
| 17868 | # check for endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17869 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 17870 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 17871 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 17872 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17873 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17874 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 17875 | cat >conftest.$ac_ext <<_ACEOF |
| 17876 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17877 | /* confdefs.h. */ |
| 17878 | _ACEOF |
| 17879 | cat confdefs.h >>conftest.$ac_ext |
| 17880 | cat >>conftest.$ac_ext <<_ACEOF |
| 17881 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17882 | #include <sys/types.h> |
| 17883 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17884 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17885 | int |
| 17886 | main () |
| 17887 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17888 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 17889 | bogus endian macros |
| 17890 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17891 | |
| 17892 | ; |
| 17893 | return 0; |
| 17894 | } |
| 17895 | _ACEOF |
| 17896 | rm -f conftest.$ac_objext |
| 17897 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17898 | (eval $ac_compile) 2>&5 |
| 17899 | ac_status=$? |
| 17900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17901 | (exit $ac_status); } && |
| 17902 | { ac_try='test -s conftest.$ac_objext' |
| 17903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17904 | (eval $ac_try) 2>&5 |
| 17905 | ac_status=$? |
| 17906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17907 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17908 | # 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] | 17909 | cat >conftest.$ac_ext <<_ACEOF |
| 17910 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17911 | /* confdefs.h. */ |
| 17912 | _ACEOF |
| 17913 | cat confdefs.h >>conftest.$ac_ext |
| 17914 | cat >>conftest.$ac_ext <<_ACEOF |
| 17915 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17916 | #include <sys/types.h> |
| 17917 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17918 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17919 | int |
| 17920 | main () |
| 17921 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17922 | #if BYTE_ORDER != BIG_ENDIAN |
| 17923 | not big endian |
| 17924 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17925 | |
| 17926 | ; |
| 17927 | return 0; |
| 17928 | } |
| 17929 | _ACEOF |
| 17930 | rm -f conftest.$ac_objext |
| 17931 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17932 | (eval $ac_compile) 2>&5 |
| 17933 | ac_status=$? |
| 17934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17935 | (exit $ac_status); } && |
| 17936 | { ac_try='test -s conftest.$ac_objext' |
| 17937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17938 | (eval $ac_try) 2>&5 |
| 17939 | ac_status=$? |
| 17940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17941 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17942 | ac_cv_c_bigendian=yes |
| 17943 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17944 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17945 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17946 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17947 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17948 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17949 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17950 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17951 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17952 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17953 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17954 | # It does not; compile a test program. |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17955 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17956 | # 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] | 17957 | ac_cv_c_bigendian=unknown |
| 17958 | cat >conftest.$ac_ext <<_ACEOF |
| 17959 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17960 | /* confdefs.h. */ |
| 17961 | _ACEOF |
| 17962 | cat confdefs.h >>conftest.$ac_ext |
| 17963 | cat >>conftest.$ac_ext <<_ACEOF |
| 17964 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17965 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 17966 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 17967 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 17968 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 17969 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 17970 | 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] | 17971 | int |
| 17972 | main () |
| 17973 | { |
| 17974 | _ascii (); _ebcdic (); |
| 17975 | ; |
| 17976 | return 0; |
| 17977 | } |
| 17978 | _ACEOF |
| 17979 | rm -f conftest.$ac_objext |
| 17980 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17981 | (eval $ac_compile) 2>&5 |
| 17982 | ac_status=$? |
| 17983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17984 | (exit $ac_status); } && |
| 17985 | { ac_try='test -s conftest.$ac_objext' |
| 17986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17987 | (eval $ac_try) 2>&5 |
| 17988 | ac_status=$? |
| 17989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17990 | (exit $ac_status); }; }; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17991 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17992 | ac_cv_c_bigendian=yes |
| 17993 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17994 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17995 | if test "$ac_cv_c_bigendian" = unknown; then |
| 17996 | ac_cv_c_bigendian=no |
| 17997 | else |
| 17998 | # finding both strings is unlikely to happen, but who knows? |
| 17999 | ac_cv_c_bigendian=unknown |
| 18000 | fi |
| 18001 | fi |
| 18002 | else |
| 18003 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18004 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18005 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18006 | fi |
| 18007 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 18008 | else |
| 18009 | cat >conftest.$ac_ext <<_ACEOF |
| 18010 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18011 | /* confdefs.h. */ |
| 18012 | _ACEOF |
| 18013 | cat confdefs.h >>conftest.$ac_ext |
| 18014 | cat >>conftest.$ac_ext <<_ACEOF |
| 18015 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18016 | int |
| 18017 | main () |
| 18018 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18019 | /* Are we little or big endian? From Harbison&Steele. */ |
| 18020 | union |
| 18021 | { |
| 18022 | long l; |
| 18023 | char c[sizeof (long)]; |
| 18024 | } u; |
| 18025 | u.l = 1; |
| 18026 | exit (u.c[sizeof (long) - 1] == 1); |
| 18027 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18028 | _ACEOF |
| 18029 | rm -f conftest$ac_exeext |
| 18030 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18031 | (eval $ac_link) 2>&5 |
| 18032 | ac_status=$? |
| 18033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18034 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18036 | (eval $ac_try) 2>&5 |
| 18037 | ac_status=$? |
| 18038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18039 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18040 | ac_cv_c_bigendian=no |
| 18041 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18042 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18043 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18044 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18045 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18046 | ( exit $ac_status ) |
| 18047 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18048 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18049 | 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] | 18050 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18051 | fi |
| 18052 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 18053 | fi |
| 18054 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 18055 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 18056 | case $ac_cv_c_bigendian in |
| 18057 | yes) |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18058 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18059 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18060 | #define WORDS_BIGENDIAN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18061 | _ACEOF |
| 18062 | ;; |
| 18063 | no) |
| 18064 | ;; |
| 18065 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18066 | { { echo "$as_me:$LINENO: error: unknown endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18067 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18068 | echo "$as_me: error: unknown endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18069 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 18070 | { (exit 1); exit 1; }; } ;; |
| 18071 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18072 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18073 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 18074 | # Check whether right shifting a negative integer extends the sign bit |
| 18075 | # 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] | 18076 | echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 18077 | echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6 |
| 18078 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
| 18079 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 18080 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18081 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 18082 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 18083 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 18084 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18085 | cat >conftest.$ac_ext <<_ACEOF |
| 18086 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18087 | /* confdefs.h. */ |
| 18088 | _ACEOF |
| 18089 | cat confdefs.h >>conftest.$ac_ext |
| 18090 | cat >>conftest.$ac_ext <<_ACEOF |
| 18091 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 18092 | |
| 18093 | int main() |
| 18094 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 18095 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 18096 | } |
| 18097 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18098 | _ACEOF |
| 18099 | rm -f conftest$ac_exeext |
| 18100 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18101 | (eval $ac_link) 2>&5 |
| 18102 | ac_status=$? |
| 18103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18104 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18106 | (eval $ac_try) 2>&5 |
| 18107 | ac_status=$? |
| 18108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18109 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 18110 | ac_cv_rshift_extends_sign=yes |
| 18111 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18112 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18113 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18114 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18115 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18116 | ( exit $ac_status ) |
| 18117 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 18118 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18119 | 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] | 18120 | fi |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 18121 | fi |
| 18122 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18123 | echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 18124 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 18125 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 18126 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18127 | |
| 18128 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 18129 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18130 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 18131 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 18132 | fi |
| 18133 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 18134 | # check for getc_unlocked and related locking functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18135 | echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 18136 | echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6 |
| 18137 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
| 18138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 18139 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18140 | |
| 18141 | cat >conftest.$ac_ext <<_ACEOF |
| 18142 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18143 | /* confdefs.h. */ |
| 18144 | _ACEOF |
| 18145 | cat confdefs.h >>conftest.$ac_ext |
| 18146 | cat >>conftest.$ac_ext <<_ACEOF |
| 18147 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 18148 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18149 | int |
| 18150 | main () |
| 18151 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 18152 | |
| 18153 | FILE *f = fopen("/dev/null", "r"); |
| 18154 | flockfile(f); |
| 18155 | getc_unlocked(f); |
| 18156 | funlockfile(f); |
| 18157 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18158 | ; |
| 18159 | return 0; |
| 18160 | } |
| 18161 | _ACEOF |
| 18162 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18163 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18164 | (eval $ac_link) 2>&5 |
| 18165 | ac_status=$? |
| 18166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18167 | (exit $ac_status); } && |
| 18168 | { ac_try='test -s conftest$ac_exeext' |
| 18169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18170 | (eval $ac_try) 2>&5 |
| 18171 | ac_status=$? |
| 18172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18173 | (exit $ac_status); }; }; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 18174 | ac_cv_have_getc_unlocked=yes |
| 18175 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18176 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18177 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18178 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18179 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 18180 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18181 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 18182 | fi |
| 18183 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18184 | echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 18185 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 18186 | if test "$ac_cv_have_getc_unlocked" = yes |
| 18187 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18188 | |
| 18189 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 18190 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18191 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 18192 | |
| 18193 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 18194 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 18195 | # check for readline 2.2 |
| 18196 | cat >conftest.$ac_ext <<_ACEOF |
| 18197 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18198 | /* confdefs.h. */ |
| 18199 | _ACEOF |
| 18200 | cat confdefs.h >>conftest.$ac_ext |
| 18201 | cat >>conftest.$ac_ext <<_ACEOF |
| 18202 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 18203 | #include <readline/readline.h> |
| 18204 | _ACEOF |
| 18205 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 18206 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 18207 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18208 | grep -v '^ *+' conftest.er1 >conftest.err |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 18209 | rm -f conftest.er1 |
| 18210 | cat conftest.err >&5 |
| 18211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18212 | (exit $ac_status); } >/dev/null; then |
| 18213 | if test -s conftest.err; then |
| 18214 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 18215 | else |
| 18216 | ac_cpp_err= |
| 18217 | fi |
| 18218 | else |
| 18219 | ac_cpp_err=yes |
| 18220 | fi |
| 18221 | if test -z "$ac_cpp_err"; then |
| 18222 | have_readline=yes |
| 18223 | else |
| 18224 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18225 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18226 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 18227 | have_readline=no |
| 18228 | fi |
| 18229 | rm -f conftest.err conftest.$ac_ext |
| 18230 | if test $have_readline = yes |
| 18231 | then |
| 18232 | cat >conftest.$ac_ext <<_ACEOF |
| 18233 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18234 | /* confdefs.h. */ |
| 18235 | _ACEOF |
| 18236 | cat confdefs.h >>conftest.$ac_ext |
| 18237 | cat >>conftest.$ac_ext <<_ACEOF |
| 18238 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 18239 | #include <readline/readline.h> |
| 18240 | |
| 18241 | _ACEOF |
| 18242 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18243 | $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] | 18244 | |
| 18245 | cat >>confdefs.h <<\_ACEOF |
| 18246 | #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1 |
| 18247 | _ACEOF |
| 18248 | |
| 18249 | fi |
| 18250 | rm -f conftest* |
| 18251 | |
| 18252 | fi |
| 18253 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18254 | # check for readline 4.0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18255 | echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 18256 | echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6 |
| 18257 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
| 18258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 18259 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18260 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 18261 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18262 | cat >conftest.$ac_ext <<_ACEOF |
| 18263 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18264 | /* confdefs.h. */ |
| 18265 | _ACEOF |
| 18266 | cat confdefs.h >>conftest.$ac_ext |
| 18267 | cat >>conftest.$ac_ext <<_ACEOF |
| 18268 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18269 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 18270 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18271 | #ifdef __cplusplus |
| 18272 | extern "C" |
| 18273 | #endif |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 18274 | /* 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] | 18275 | builtin and then its argument prototype would still apply. */ |
| 18276 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18277 | int |
| 18278 | main () |
| 18279 | { |
| 18280 | rl_pre_input_hook (); |
| 18281 | ; |
| 18282 | return 0; |
| 18283 | } |
| 18284 | _ACEOF |
| 18285 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18286 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18287 | (eval $ac_link) 2>&5 |
| 18288 | ac_status=$? |
| 18289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18290 | (exit $ac_status); } && |
| 18291 | { ac_try='test -s conftest$ac_exeext' |
| 18292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18293 | (eval $ac_try) 2>&5 |
| 18294 | ac_status=$? |
| 18295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18296 | (exit $ac_status); }; }; then |
| 18297 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18298 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18299 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18300 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18301 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18302 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18303 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18304 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 18305 | LIBS=$ac_check_lib_save_LIBS |
| 18306 | fi |
| 18307 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 18308 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6 |
| 18309 | 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] | 18310 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18311 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18312 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18313 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18314 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18315 | fi |
| 18316 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18317 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18318 | # check for readline 4.2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18319 | echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 18320 | echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6 |
| 18321 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
| 18322 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18323 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18324 | ac_check_lib_save_LIBS=$LIBS |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18325 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18326 | cat >conftest.$ac_ext <<_ACEOF |
| 18327 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18328 | /* confdefs.h. */ |
| 18329 | _ACEOF |
| 18330 | cat confdefs.h >>conftest.$ac_ext |
| 18331 | cat >>conftest.$ac_ext <<_ACEOF |
| 18332 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18333 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18334 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18335 | #ifdef __cplusplus |
| 18336 | extern "C" |
| 18337 | #endif |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18338 | /* 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] | 18339 | builtin and then its argument prototype would still apply. */ |
| 18340 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18341 | int |
| 18342 | main () |
| 18343 | { |
| 18344 | rl_completion_matches (); |
| 18345 | ; |
| 18346 | return 0; |
| 18347 | } |
| 18348 | _ACEOF |
| 18349 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18350 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18351 | (eval $ac_link) 2>&5 |
| 18352 | ac_status=$? |
| 18353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18354 | (exit $ac_status); } && |
| 18355 | { ac_try='test -s conftest$ac_exeext' |
| 18356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18357 | (eval $ac_try) 2>&5 |
| 18358 | ac_status=$? |
| 18359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18360 | (exit $ac_status); }; }; then |
| 18361 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 18362 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18363 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18364 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18365 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18366 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 18367 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18368 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 18369 | LIBS=$ac_check_lib_save_LIBS |
| 18370 | fi |
| 18371 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 18372 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6 |
| 18373 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18374 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18375 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 18376 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18377 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 18378 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 18379 | fi |
| 18380 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18381 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18382 | echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 18383 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6 |
| 18384 | if test "${ac_cv_broken_nice+set}" = set; then |
| 18385 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18386 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18387 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18388 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 18389 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18390 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18391 | cat >conftest.$ac_ext <<_ACEOF |
| 18392 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18393 | /* confdefs.h. */ |
| 18394 | _ACEOF |
| 18395 | cat confdefs.h >>conftest.$ac_ext |
| 18396 | cat >>conftest.$ac_ext <<_ACEOF |
| 18397 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18398 | |
| 18399 | int main() |
| 18400 | { |
| 18401 | int val1 = nice(1); |
| 18402 | if (val1 != -1 && val1 == nice(2)) |
| 18403 | exit(0); |
| 18404 | exit(1); |
| 18405 | } |
| 18406 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18407 | _ACEOF |
| 18408 | rm -f conftest$ac_exeext |
| 18409 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18410 | (eval $ac_link) 2>&5 |
| 18411 | ac_status=$? |
| 18412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18413 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18415 | (eval $ac_try) 2>&5 |
| 18416 | ac_status=$? |
| 18417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18418 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18419 | ac_cv_broken_nice=yes |
| 18420 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18421 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18422 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18423 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18424 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18425 | ( exit $ac_status ) |
| 18426 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18427 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18428 | 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] | 18429 | fi |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18430 | fi |
| 18431 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18432 | echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 18433 | echo "${ECHO_T}$ac_cv_broken_nice" >&6 |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18434 | if test "$ac_cv_broken_nice" = yes |
| 18435 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18436 | |
| 18437 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18438 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18439 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18440 | |
| 18441 | fi |
| 18442 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18443 | # tzset(3) exists and works like we expect it to |
| 18444 | echo "$as_me:$LINENO: checking for working tzset()" >&5 |
| 18445 | echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6 |
| 18446 | if test "${ac_cv_working_tzset+set}" = set; then |
| 18447 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18448 | else |
| 18449 | |
| 18450 | if test "$cross_compiling" = yes; then |
| 18451 | ac_cv_working_tzset=no |
| 18452 | else |
| 18453 | cat >conftest.$ac_ext <<_ACEOF |
| 18454 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18455 | /* confdefs.h. */ |
| 18456 | _ACEOF |
| 18457 | cat confdefs.h >>conftest.$ac_ext |
| 18458 | cat >>conftest.$ac_ext <<_ACEOF |
| 18459 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18460 | |
| 18461 | #include <stdlib.h> |
| 18462 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 18463 | #include <string.h> |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18464 | int main() |
| 18465 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 18466 | /* Note that we need to ensure that not only does tzset(3) |
| 18467 | do 'something' with localtime, but it works as documented |
| 18468 | in the library reference and as expected by the test suite. |
| 18469 | |
| 18470 | Red Hat 6.2 doesn't understand the southern hemisphere |
| 18471 | after New Year's Day; it thinks swaps on that day. |
| 18472 | */ |
| 18473 | |
| 18474 | time_t groundhogday = 1044144000; /* GMT-based; well, it's a colony */ |
| 18475 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 18476 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 18477 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18478 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 18479 | if (localtime(&groundhogday)->tm_hour != 0) |
| 18480 | exit(1); |
| 18481 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 18482 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18483 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 18484 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18485 | exit(1); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 18486 | |
| 18487 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 18488 | tzset(); |
| 18489 | if (localtime(&groundhogday)->tm_hour != 11) |
| 18490 | exit(1); |
| 18491 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 18492 | exit(1); |
| 18493 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 18494 | exit(1); |
| 18495 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18496 | exit(0); |
| 18497 | } |
| 18498 | |
| 18499 | _ACEOF |
| 18500 | rm -f conftest$ac_exeext |
| 18501 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18502 | (eval $ac_link) 2>&5 |
| 18503 | ac_status=$? |
| 18504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18505 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18507 | (eval $ac_try) 2>&5 |
| 18508 | ac_status=$? |
| 18509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18510 | (exit $ac_status); }; }; then |
| 18511 | ac_cv_working_tzset=yes |
| 18512 | else |
| 18513 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18514 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18515 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18516 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18517 | ( exit $ac_status ) |
| 18518 | ac_cv_working_tzset=no |
| 18519 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18520 | 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] | 18521 | fi |
| 18522 | fi |
| 18523 | |
| 18524 | echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5 |
| 18525 | echo "${ECHO_T}$ac_cv_working_tzset" >&6 |
| 18526 | if test "$ac_cv_working_tzset" = yes |
| 18527 | then |
| 18528 | |
| 18529 | cat >>confdefs.h <<\_ACEOF |
| 18530 | #define HAVE_WORKING_TZSET 1 |
| 18531 | _ACEOF |
| 18532 | |
| 18533 | fi |
| 18534 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 18535 | # Look for subsecond timestamps in struct stat |
| 18536 | echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 18537 | echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6 |
| 18538 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
| 18539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18540 | else |
| 18541 | cat >conftest.$ac_ext <<_ACEOF |
| 18542 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18543 | /* confdefs.h. */ |
| 18544 | _ACEOF |
| 18545 | cat confdefs.h >>conftest.$ac_ext |
| 18546 | cat >>conftest.$ac_ext <<_ACEOF |
| 18547 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 18548 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 18549 | int |
| 18550 | main () |
| 18551 | { |
| 18552 | |
| 18553 | struct stat st; |
| 18554 | st.st_mtim.tv_nsec = 1; |
| 18555 | |
| 18556 | ; |
| 18557 | return 0; |
| 18558 | } |
| 18559 | _ACEOF |
| 18560 | rm -f conftest.$ac_objext |
| 18561 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18562 | (eval $ac_compile) 2>&5 |
| 18563 | ac_status=$? |
| 18564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18565 | (exit $ac_status); } && |
| 18566 | { ac_try='test -s conftest.$ac_objext' |
| 18567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18568 | (eval $ac_try) 2>&5 |
| 18569 | ac_status=$? |
| 18570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18571 | (exit $ac_status); }; }; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 18572 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 18573 | else |
| 18574 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18575 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18576 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 18577 | ac_cv_stat_tv_nsec=no |
| 18578 | fi |
| 18579 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 18580 | fi |
| 18581 | |
| 18582 | echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 18583 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6 |
| 18584 | if test "$ac_cv_stat_tv_nsec" = yes |
| 18585 | then |
| 18586 | |
| 18587 | cat >>confdefs.h <<\_ACEOF |
| 18588 | #define HAVE_STAT_TV_NSEC 1 |
| 18589 | _ACEOF |
| 18590 | |
| 18591 | fi |
| 18592 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18593 | # 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] | 18594 | echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 18595 | echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6 |
| 18596 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
| 18597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18598 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18599 | cat >conftest.$ac_ext <<_ACEOF |
| 18600 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18601 | /* confdefs.h. */ |
| 18602 | _ACEOF |
| 18603 | cat confdefs.h >>conftest.$ac_ext |
| 18604 | cat >>conftest.$ac_ext <<_ACEOF |
| 18605 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18606 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18607 | int |
| 18608 | main () |
| 18609 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18610 | |
| 18611 | int rtn; |
| 18612 | rtn = mvwdelch(0,0,0); |
| 18613 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18614 | ; |
| 18615 | return 0; |
| 18616 | } |
| 18617 | _ACEOF |
| 18618 | rm -f conftest.$ac_objext |
| 18619 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18620 | (eval $ac_compile) 2>&5 |
| 18621 | ac_status=$? |
| 18622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18623 | (exit $ac_status); } && |
| 18624 | { ac_try='test -s conftest.$ac_objext' |
| 18625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18626 | (eval $ac_try) 2>&5 |
| 18627 | ac_status=$? |
| 18628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18629 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18630 | ac_cv_mvwdelch_is_expression=yes |
| 18631 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18632 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18633 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18634 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18635 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18636 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18637 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18638 | fi |
| 18639 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18640 | echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 18641 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18642 | |
| 18643 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 18644 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18645 | |
| 18646 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18647 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18648 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18649 | |
| 18650 | fi |
| 18651 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18652 | echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 18653 | echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6 |
| 18654 | if test "${ac_cv_window_has_flags+set}" = set; then |
| 18655 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18656 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18657 | cat >conftest.$ac_ext <<_ACEOF |
| 18658 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18659 | /* confdefs.h. */ |
| 18660 | _ACEOF |
| 18661 | cat confdefs.h >>conftest.$ac_ext |
| 18662 | cat >>conftest.$ac_ext <<_ACEOF |
| 18663 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18664 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18665 | int |
| 18666 | main () |
| 18667 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18668 | |
| 18669 | WINDOW *w; |
| 18670 | w->_flags = 0; |
| 18671 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18672 | ; |
| 18673 | return 0; |
| 18674 | } |
| 18675 | _ACEOF |
| 18676 | rm -f conftest.$ac_objext |
| 18677 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18678 | (eval $ac_compile) 2>&5 |
| 18679 | ac_status=$? |
| 18680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18681 | (exit $ac_status); } && |
| 18682 | { ac_try='test -s conftest.$ac_objext' |
| 18683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18684 | (eval $ac_try) 2>&5 |
| 18685 | ac_status=$? |
| 18686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18687 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18688 | ac_cv_window_has_flags=yes |
| 18689 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18690 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18691 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18692 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18693 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18694 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18695 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18696 | fi |
| 18697 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18698 | echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 18699 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18700 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18701 | |
| 18702 | if test "$ac_cv_window_has_flags" = yes |
| 18703 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18704 | |
| 18705 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18706 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18707 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18708 | |
| 18709 | fi |
| 18710 | |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 18711 | echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
| 18712 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6 |
| 18713 | |
| 18714 | if test -e /dev/ptmx |
| 18715 | then |
| 18716 | echo "$as_me:$LINENO: result: yes" >&5 |
| 18717 | echo "${ECHO_T}yes" >&6 |
| 18718 | |
| 18719 | cat >>confdefs.h <<\_ACEOF |
| 18720 | #define HAVE_DEV_PTMX 1 |
| 18721 | _ACEOF |
| 18722 | |
| 18723 | else |
| 18724 | echo "$as_me:$LINENO: result: no" >&5 |
| 18725 | echo "${ECHO_T}no" >&6 |
| 18726 | fi |
| 18727 | |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 18728 | echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 18729 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6 |
| 18730 | |
| 18731 | if test -e /dev/ptc |
| 18732 | then |
| 18733 | echo "$as_me:$LINENO: result: yes" >&5 |
| 18734 | echo "${ECHO_T}yes" >&6 |
| 18735 | |
| 18736 | cat >>confdefs.h <<\_ACEOF |
| 18737 | #define HAVE_DEV_PTC 1 |
| 18738 | _ACEOF |
| 18739 | |
| 18740 | else |
| 18741 | echo "$as_me:$LINENO: result: no" >&5 |
| 18742 | echo "${ECHO_T}no" >&6 |
| 18743 | fi |
| 18744 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18745 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 18746 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
| 18747 | if test "${ac_cv_type_socklen_t+set}" = set; then |
| 18748 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 18749 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18750 | cat >conftest.$ac_ext <<_ACEOF |
| 18751 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18752 | /* confdefs.h. */ |
| 18753 | _ACEOF |
| 18754 | cat confdefs.h >>conftest.$ac_ext |
| 18755 | cat >>conftest.$ac_ext <<_ACEOF |
| 18756 | /* end confdefs.h. */ |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 18757 | |
| 18758 | #ifdef HAVE_SYS_TYPES_H |
| 18759 | #include <sys/types.h> |
| 18760 | #endif |
| 18761 | #ifdef HAVE_SYS_SOCKET_H |
| 18762 | #include <sys/socket.h> |
| 18763 | #endif |
| 18764 | |
| 18765 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18766 | int |
| 18767 | main () |
| 18768 | { |
| 18769 | if ((socklen_t *) 0) |
| 18770 | return 0; |
| 18771 | if (sizeof (socklen_t)) |
| 18772 | return 0; |
| 18773 | ; |
| 18774 | return 0; |
| 18775 | } |
| 18776 | _ACEOF |
| 18777 | rm -f conftest.$ac_objext |
| 18778 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18779 | (eval $ac_compile) 2>&5 |
| 18780 | ac_status=$? |
| 18781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18782 | (exit $ac_status); } && |
| 18783 | { ac_try='test -s conftest.$ac_objext' |
| 18784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18785 | (eval $ac_try) 2>&5 |
| 18786 | ac_status=$? |
| 18787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18788 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 18789 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 18790 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18791 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18792 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18793 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18794 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 18795 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18796 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 18797 | fi |
| 18798 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 18799 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 |
| 18800 | if test $ac_cv_type_socklen_t = yes; then |
| 18801 | : |
| 18802 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 18803 | |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 18804 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 18805 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18806 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 18807 | |
| 18808 | fi |
| 18809 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18810 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18811 | |
| 18812 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 18813 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 18814 | do |
| 18815 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 18816 | done |
| 18817 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18818 | |
Jack Jansen | 0b06be7 | 2002-06-21 14:48:38 +0000 | [diff] [blame] | 18819 | SRCDIRS="Parser Grammar Objects Python Modules Mac Mac/Python" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18820 | echo "$as_me:$LINENO: checking for build directories" >&5 |
| 18821 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 18822 | for dir in $SRCDIRS; do |
| 18823 | if test ! -d $dir; then |
| 18824 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 18825 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 18826 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18827 | echo "$as_me:$LINENO: result: done" >&5 |
| 18828 | echo "${ECHO_T}done" >&6 |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 18829 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18830 | # generate output files |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18831 | 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] | 18832 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18833 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18834 | # This file is a shell script that caches the results of configure |
| 18835 | # 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] | 18836 | # scripts and configure runs, see configure's option --config-cache. |
| 18837 | # It is not useful on other systems. If it contains results you don't |
| 18838 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18839 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18840 | # config.status only pays attention to the cache file if you give it |
| 18841 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18842 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18843 | # `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] | 18844 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 18845 | # following values. |
| 18846 | |
| 18847 | _ACEOF |
| 18848 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 18849 | # The following way of writing the cache mishandles newlines in values, |
| 18850 | # but we know of no workaround that is simple, portable, and efficient. |
| 18851 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18852 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 18853 | # 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] | 18854 | { |
| 18855 | (set) 2>&1 | |
| 18856 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 18857 | *ac_space=\ *) |
| 18858 | # `set' does not quote correctly, so add quotes (double-quote |
| 18859 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 18860 | sed -n \ |
| 18861 | "s/'/'\\\\''/g; |
| 18862 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 18863 | ;; |
| 18864 | *) |
| 18865 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 18866 | sed -n \ |
| 18867 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 18868 | ;; |
| 18869 | esac; |
| 18870 | } | |
| 18871 | sed ' |
| 18872 | t clear |
| 18873 | : clear |
| 18874 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 18875 | t end |
| 18876 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 18877 | : end' >>confcache |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18878 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18879 | if test -w $cache_file; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18880 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 18881 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18882 | else |
| 18883 | echo "not updating unwritable cache $cache_file" |
| 18884 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18885 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18886 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 18887 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18888 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 18889 | # Let make expand exec_prefix. |
| 18890 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 18891 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18892 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 18893 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 18894 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 18895 | # (actually we leave an empty line to preserve line numbers). |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18896 | if test "x$srcdir" = x.; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18897 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 18898 | s/:*\$(srcdir):*/:/; |
| 18899 | s/:*\${srcdir}:*/:/; |
| 18900 | s/:*@srcdir@:*/:/; |
| 18901 | s/^\([^=]*=[ ]*\):*/\1/; |
| 18902 | s/:*$//; |
| 18903 | s/^[^=]*=[ ]*$//; |
| 18904 | }' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18905 | fi |
| 18906 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18907 | DEFS=-DHAVE_CONFIG_H |
| 18908 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18909 | ac_libobjs= |
| 18910 | ac_ltlibobjs= |
| 18911 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 18912 | # 1. Remove the extension, and $U if already installed. |
| 18913 | ac_i=`echo "$ac_i" | |
| 18914 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 18915 | # 2. Add them. |
| 18916 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 18917 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 18918 | done |
| 18919 | LIBOBJS=$ac_libobjs |
| 18920 | |
| 18921 | LTLIBOBJS=$ac_ltlibobjs |
| 18922 | |
| 18923 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18924 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18925 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18926 | ac_clean_files_save=$ac_clean_files |
| 18927 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 18928 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 18929 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 18930 | cat >$CONFIG_STATUS <<_ACEOF |
| 18931 | #! $SHELL |
| 18932 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18933 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18934 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18935 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18936 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18937 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18938 | ac_cs_recheck=false |
| 18939 | ac_cs_silent=false |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18940 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 18941 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18942 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18943 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18944 | ## --------------------- ## |
| 18945 | ## M4sh Initialization. ## |
| 18946 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18947 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18948 | # Be Bourne compatible |
| 18949 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 18950 | emulate sh |
| 18951 | NULLCMD=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18952 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 18953 | # is contrary to our usage. Disable this feature. |
| 18954 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18955 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 18956 | set -o posix |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18957 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18958 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18959 | # Support unset when possible. |
| 18960 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 18961 | as_unset=unset |
| 18962 | else |
| 18963 | as_unset=false |
| 18964 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18965 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18966 | |
| 18967 | # Work around bugs in pre-3.0 UWIN ksh. |
| 18968 | $as_unset ENV MAIL MAILPATH |
| 18969 | PS1='$ ' |
| 18970 | PS2='> ' |
| 18971 | PS4='+ ' |
| 18972 | |
| 18973 | # NLS nuisances. |
| 18974 | for as_var in \ |
| 18975 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 18976 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 18977 | LC_TELEPHONE LC_TIME |
| 18978 | do |
| 18979 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 18980 | eval $as_var=C; export $as_var |
| 18981 | else |
| 18982 | $as_unset $as_var |
| 18983 | fi |
| 18984 | done |
| 18985 | |
| 18986 | # Required to use basename. |
| 18987 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 18988 | as_expr=expr |
| 18989 | else |
| 18990 | as_expr=false |
| 18991 | fi |
| 18992 | |
| 18993 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 18994 | as_basename=basename |
| 18995 | else |
| 18996 | as_basename=false |
| 18997 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18998 | |
| 18999 | |
| 19000 | # Name of the executable. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19001 | as_me=`$as_basename "$0" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19002 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 19003 | X"$0" : 'X\(//\)$' \| \ |
| 19004 | X"$0" : 'X\(/\)$' \| \ |
| 19005 | . : '\(.\)' 2>/dev/null || |
| 19006 | echo X/"$0" | |
| 19007 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 19008 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 19009 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 19010 | s/.*/./; q'` |
| 19011 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19012 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19013 | # PATH needs CR, and LINENO needs CR and PATH. |
| 19014 | # Avoid depending upon Character Ranges. |
| 19015 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 19016 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 19017 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 19018 | as_cr_digits='0123456789' |
| 19019 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 19020 | |
| 19021 | # The user is always right. |
| 19022 | if test "${PATH_SEPARATOR+set}" != set; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19023 | echo "#! /bin/sh" >conf$$.sh |
| 19024 | echo "exit 0" >>conf$$.sh |
| 19025 | chmod +x conf$$.sh |
| 19026 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19027 | PATH_SEPARATOR=';' |
| 19028 | else |
| 19029 | PATH_SEPARATOR=: |
| 19030 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19031 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19032 | fi |
| 19033 | |
| 19034 | |
| 19035 | as_lineno_1=$LINENO |
| 19036 | as_lineno_2=$LINENO |
| 19037 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 19038 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 19039 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 19040 | # Find who we are. Look in the path if we contain no path at all |
| 19041 | # relative or not. |
| 19042 | case $0 in |
| 19043 | *[\\/]* ) as_myself=$0 ;; |
| 19044 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19045 | for as_dir in $PATH |
| 19046 | do |
| 19047 | IFS=$as_save_IFS |
| 19048 | test -z "$as_dir" && as_dir=. |
| 19049 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 19050 | done |
| 19051 | |
| 19052 | ;; |
| 19053 | esac |
| 19054 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 19055 | # in which case we are not to be found in the path. |
| 19056 | if test "x$as_myself" = x; then |
| 19057 | as_myself=$0 |
| 19058 | fi |
| 19059 | if test ! -f "$as_myself"; then |
| 19060 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 19061 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 19062 | { (exit 1); exit 1; }; } |
| 19063 | fi |
| 19064 | case $CONFIG_SHELL in |
| 19065 | '') |
| 19066 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19067 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 19068 | do |
| 19069 | IFS=$as_save_IFS |
| 19070 | test -z "$as_dir" && as_dir=. |
| 19071 | for as_base in sh bash ksh sh5; do |
| 19072 | case $as_dir in |
| 19073 | /*) |
| 19074 | if ("$as_dir/$as_base" -c ' |
| 19075 | as_lineno_1=$LINENO |
| 19076 | as_lineno_2=$LINENO |
| 19077 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 19078 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 19079 | 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] | 19080 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 19081 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19082 | CONFIG_SHELL=$as_dir/$as_base |
| 19083 | export CONFIG_SHELL |
| 19084 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 19085 | fi;; |
| 19086 | esac |
| 19087 | done |
| 19088 | done |
| 19089 | ;; |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19090 | esac |
| 19091 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19092 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 19093 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 19094 | # line-number line before each line; the second 'sed' does the real |
| 19095 | # work. The second script uses 'N' to pair each line-number line |
| 19096 | # with the numbered line, and appends trailing '-' during |
| 19097 | # substitution so that $LINENO is not a special case at line end. |
| 19098 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 19099 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 19100 | sed '=' <$as_myself | |
| 19101 | sed ' |
| 19102 | N |
| 19103 | s,$,-, |
| 19104 | : loop |
| 19105 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 19106 | t loop |
| 19107 | s,-$,, |
| 19108 | s,^['$as_cr_digits']*\n,, |
| 19109 | ' >$as_me.lineno && |
| 19110 | chmod +x $as_me.lineno || |
| 19111 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 19112 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 19113 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19114 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19115 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 19116 | # (the dirname of $[0] is not the place where we might find the |
| 19117 | # original and so on. Autoconf is especially sensible to this). |
| 19118 | . ./$as_me.lineno |
| 19119 | # Exit status is that of the last command. |
| 19120 | exit |
| 19121 | } |
| 19122 | |
| 19123 | |
| 19124 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 19125 | *c*,-n*) ECHO_N= ECHO_C=' |
| 19126 | ' ECHO_T=' ' ;; |
| 19127 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 19128 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 19129 | esac |
| 19130 | |
| 19131 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 19132 | as_expr=expr |
| 19133 | else |
| 19134 | as_expr=false |
| 19135 | fi |
| 19136 | |
| 19137 | rm -f conf$$ conf$$.exe conf$$.file |
| 19138 | echo >conf$$.file |
| 19139 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 19140 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 19141 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 19142 | if test -f conf$$.exe; then |
| 19143 | # Don't use ln at all; we don't have any links |
| 19144 | as_ln_s='cp -p' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19145 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19146 | as_ln_s='ln -s' |
| 19147 | fi |
| 19148 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 19149 | as_ln_s=ln |
| 19150 | else |
| 19151 | as_ln_s='cp -p' |
| 19152 | fi |
| 19153 | rm -f conf$$ conf$$.exe conf$$.file |
| 19154 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19155 | if mkdir -p . 2>/dev/null; then |
| 19156 | as_mkdir_p=: |
| 19157 | else |
| 19158 | as_mkdir_p=false |
| 19159 | fi |
| 19160 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19161 | as_executable_p="test -f" |
| 19162 | |
| 19163 | # Sed expression to map a string onto a valid CPP name. |
| 19164 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 19165 | |
| 19166 | # Sed expression to map a string onto a valid variable name. |
| 19167 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 19168 | |
| 19169 | |
| 19170 | # IFS |
| 19171 | # We need space, tab and new line, in precisely that order. |
| 19172 | as_nl=' |
| 19173 | ' |
| 19174 | IFS=" $as_nl" |
| 19175 | |
| 19176 | # CDPATH. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19177 | $as_unset CDPATH |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19178 | |
| 19179 | exec 6>&1 |
| 19180 | |
| 19181 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 19182 | # report actual input values of CONFIG_FILES etc. instead of their |
| 19183 | # values after options handling. Logging --version etc. is OK. |
| 19184 | exec 5>>config.log |
| 19185 | { |
| 19186 | echo |
| 19187 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 19188 | ## Running $as_me. ## |
| 19189 | _ASBOX |
| 19190 | } >&5 |
| 19191 | cat >&5 <<_CSEOF |
| 19192 | |
Fred Drake | 9bd4462 | 2003-07-30 17:39:48 +0000 | [diff] [blame] | 19193 | This file was extended by python $as_me 2.4, which was |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19194 | generated by GNU Autoconf 2.57. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19195 | |
| 19196 | CONFIG_FILES = $CONFIG_FILES |
| 19197 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 19198 | CONFIG_LINKS = $CONFIG_LINKS |
| 19199 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 19200 | $ $0 $@ |
| 19201 | |
| 19202 | _CSEOF |
| 19203 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 19204 | echo >&5 |
| 19205 | _ACEOF |
| 19206 | |
| 19207 | # Files that config.status was made for. |
| 19208 | if test -n "$ac_config_files"; then |
| 19209 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 19210 | fi |
| 19211 | |
| 19212 | if test -n "$ac_config_headers"; then |
| 19213 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 19214 | fi |
| 19215 | |
| 19216 | if test -n "$ac_config_links"; then |
| 19217 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 19218 | fi |
| 19219 | |
| 19220 | if test -n "$ac_config_commands"; then |
| 19221 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 19222 | fi |
| 19223 | |
| 19224 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 19225 | |
| 19226 | ac_cs_usage="\ |
| 19227 | \`$as_me' instantiates files from templates according to the |
| 19228 | current configuration. |
| 19229 | |
| 19230 | Usage: $0 [OPTIONS] [FILE]... |
| 19231 | |
| 19232 | -h, --help print this help, then exit |
| 19233 | -V, --version print version number, then exit |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19234 | -q, --quiet do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19235 | -d, --debug don't remove temporary files |
| 19236 | --recheck update $as_me by reconfiguring in the same conditions |
| 19237 | --file=FILE[:TEMPLATE] |
| 19238 | instantiate the configuration file FILE |
| 19239 | --header=FILE[:TEMPLATE] |
| 19240 | instantiate the configuration header FILE |
| 19241 | |
| 19242 | Configuration files: |
| 19243 | $config_files |
| 19244 | |
| 19245 | Configuration headers: |
| 19246 | $config_headers |
| 19247 | |
| 19248 | Report bugs to <bug-autoconf@gnu.org>." |
| 19249 | _ACEOF |
| 19250 | |
| 19251 | cat >>$CONFIG_STATUS <<_ACEOF |
| 19252 | ac_cs_version="\\ |
Fred Drake | 9bd4462 | 2003-07-30 17:39:48 +0000 | [diff] [blame] | 19253 | python config.status 2.4 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19254 | configured by $0, generated by GNU Autoconf 2.57, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19255 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 19256 | |
| 19257 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 19258 | Free Software Foundation, Inc. |
| 19259 | This config.status script is free software; the Free Software Foundation |
| 19260 | gives unlimited permission to copy, distribute and modify it." |
| 19261 | srcdir=$srcdir |
| 19262 | INSTALL="$INSTALL" |
| 19263 | _ACEOF |
| 19264 | |
| 19265 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 19266 | # If no file are specified by the user, then we need to provide default |
| 19267 | # value. By we need to know if files were specified by the user. |
| 19268 | ac_need_defaults=: |
| 19269 | while test $# != 0 |
| 19270 | do |
| 19271 | case $1 in |
| 19272 | --*=*) |
| 19273 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 19274 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19275 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19276 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19277 | -*) |
| 19278 | ac_option=$1 |
| 19279 | ac_optarg=$2 |
| 19280 | ac_shift=shift |
| 19281 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19282 | *) # This is not an option, so the user has probably given explicit |
| 19283 | # arguments. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19284 | ac_option=$1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19285 | ac_need_defaults=false;; |
| 19286 | esac |
| 19287 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19288 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19289 | # Handling of the options. |
| 19290 | _ACEOF |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 19291 | cat >>$CONFIG_STATUS <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19292 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 19293 | ac_cs_recheck=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19294 | --version | --vers* | -V ) |
| 19295 | echo "$ac_cs_version"; exit 0 ;; |
| 19296 | --he | --h) |
| 19297 | # Conflict between --help and --header |
| 19298 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 19299 | Try \`$0 --help' for more information." >&5 |
| 19300 | echo "$as_me: error: ambiguous option: $1 |
| 19301 | Try \`$0 --help' for more information." >&2;} |
| 19302 | { (exit 1); exit 1; }; };; |
| 19303 | --help | --hel | -h ) |
| 19304 | echo "$ac_cs_usage"; exit 0 ;; |
| 19305 | --debug | --d* | -d ) |
| 19306 | debug=: ;; |
| 19307 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19308 | $ac_shift |
| 19309 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19310 | ac_need_defaults=false;; |
| 19311 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19312 | $ac_shift |
| 19313 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19314 | ac_need_defaults=false;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19315 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 19316 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 19317 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19318 | |
| 19319 | # This is an error. |
| 19320 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 19321 | Try \`$0 --help' for more information." >&5 |
| 19322 | echo "$as_me: error: unrecognized option: $1 |
| 19323 | Try \`$0 --help' for more information." >&2;} |
| 19324 | { (exit 1); exit 1; }; } ;; |
| 19325 | |
| 19326 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 19327 | |
| 19328 | esac |
| 19329 | shift |
| 19330 | done |
| 19331 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19332 | ac_configure_extra_args= |
| 19333 | |
| 19334 | if $ac_cs_silent; then |
| 19335 | exec 6>/dev/null |
| 19336 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 19337 | fi |
| 19338 | |
| 19339 | _ACEOF |
| 19340 | cat >>$CONFIG_STATUS <<_ACEOF |
| 19341 | if \$ac_cs_recheck; then |
| 19342 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 19343 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 19344 | fi |
| 19345 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19346 | _ACEOF |
| 19347 | |
| 19348 | |
| 19349 | |
| 19350 | |
| 19351 | |
| 19352 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 19353 | for ac_config_target in $ac_config_targets |
| 19354 | do |
| 19355 | case "$ac_config_target" in |
| 19356 | # Handling of arguments. |
| 19357 | "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 19358 | "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
| 19359 | "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 19360 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 19361 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 19362 | { (exit 1); exit 1; }; };; |
| 19363 | esac |
| 19364 | done |
| 19365 | |
| 19366 | # If the user did not use the arguments to specify the items to instantiate, |
| 19367 | # then the envvar interface is used. Set only those that are not. |
| 19368 | # We use the long form for the default assignment because of an extremely |
| 19369 | # bizarre bug on SunOS 4.1.3. |
| 19370 | if $ac_need_defaults; then |
| 19371 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 19372 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 19373 | fi |
| 19374 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19375 | # Have a temporary directory for convenience. Make it in the build tree |
| 19376 | # simply because there is no reason to put it here, and in addition, |
| 19377 | # creating and moving files from /tmp can sometimes cause problems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19378 | # Create a temporary directory, and hook for its removal unless debugging. |
| 19379 | $debug || |
| 19380 | { |
| 19381 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 19382 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 19383 | } |
| 19384 | |
| 19385 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19386 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19387 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19388 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19389 | test -n "$tmp" && test -d "$tmp" |
| 19390 | } || |
| 19391 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19392 | tmp=./confstat$$-$RANDOM |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19393 | (umask 077 && mkdir $tmp) |
| 19394 | } || |
| 19395 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19396 | echo "$me: cannot create a temporary directory in ." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19397 | { (exit 1); exit 1; } |
| 19398 | } |
| 19399 | |
| 19400 | _ACEOF |
| 19401 | |
| 19402 | cat >>$CONFIG_STATUS <<_ACEOF |
| 19403 | |
| 19404 | # |
| 19405 | # CONFIG_FILES section. |
| 19406 | # |
| 19407 | |
| 19408 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 19409 | # This happens for instance when ./config.status config.h |
| 19410 | if test -n "\$CONFIG_FILES"; then |
| 19411 | # Protect against being on the right side of a sed subst in config.status. |
| 19412 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 19413 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 19414 | s,@SHELL@,$SHELL,;t t |
| 19415 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 19416 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 19417 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 19418 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 19419 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 19420 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 19421 | s,@exec_prefix@,$exec_prefix,;t t |
| 19422 | s,@prefix@,$prefix,;t t |
| 19423 | s,@program_transform_name@,$program_transform_name,;t t |
| 19424 | s,@bindir@,$bindir,;t t |
| 19425 | s,@sbindir@,$sbindir,;t t |
| 19426 | s,@libexecdir@,$libexecdir,;t t |
| 19427 | s,@datadir@,$datadir,;t t |
| 19428 | s,@sysconfdir@,$sysconfdir,;t t |
| 19429 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 19430 | s,@localstatedir@,$localstatedir,;t t |
| 19431 | s,@libdir@,$libdir,;t t |
| 19432 | s,@includedir@,$includedir,;t t |
| 19433 | s,@oldincludedir@,$oldincludedir,;t t |
| 19434 | s,@infodir@,$infodir,;t t |
| 19435 | s,@mandir@,$mandir,;t t |
| 19436 | s,@build_alias@,$build_alias,;t t |
| 19437 | s,@host_alias@,$host_alias,;t t |
| 19438 | s,@target_alias@,$target_alias,;t t |
| 19439 | s,@DEFS@,$DEFS,;t t |
| 19440 | s,@ECHO_C@,$ECHO_C,;t t |
| 19441 | s,@ECHO_N@,$ECHO_N,;t t |
| 19442 | s,@ECHO_T@,$ECHO_T,;t t |
| 19443 | s,@LIBS@,$LIBS,;t t |
| 19444 | s,@VERSION@,$VERSION,;t t |
| 19445 | s,@SOVERSION@,$SOVERSION,;t t |
| 19446 | s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t |
| 19447 | s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t |
| 19448 | s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t |
| 19449 | s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t |
| 19450 | s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t |
| 19451 | s,@MACHDEP@,$MACHDEP,;t t |
| 19452 | s,@SGI_ABI@,$SGI_ABI,;t t |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 19453 | s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 19454 | s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19455 | s,@CXX@,$CXX,;t t |
| 19456 | s,@MAINOBJ@,$MAINOBJ,;t t |
| 19457 | s,@EXEEXT@,$EXEEXT,;t t |
| 19458 | s,@CC@,$CC,;t t |
| 19459 | s,@CFLAGS@,$CFLAGS,;t t |
| 19460 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 19461 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 19462 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 19463 | s,@OBJEXT@,$OBJEXT,;t t |
| 19464 | s,@CPP@,$CPP,;t t |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19465 | s,@EGREP@,$EGREP,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19466 | s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t |
| 19467 | s,@LIBRARY@,$LIBRARY,;t t |
| 19468 | s,@LDLIBRARY@,$LDLIBRARY,;t t |
| 19469 | s,@DLLLIBRARY@,$DLLLIBRARY,;t t |
| 19470 | s,@BLDLIBRARY@,$BLDLIBRARY,;t t |
| 19471 | s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t |
| 19472 | s,@INSTSONAME@,$INSTSONAME,;t t |
| 19473 | s,@RUNSHARED@,$RUNSHARED,;t t |
| 19474 | s,@LINKCC@,$LINKCC,;t t |
| 19475 | s,@RANLIB@,$RANLIB,;t t |
| 19476 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 19477 | s,@AR@,$AR,;t t |
| 19478 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 19479 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 19480 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 19481 | s,@LN@,$LN,;t t |
| 19482 | s,@OPT@,$OPT,;t t |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 19483 | s,@BASECFLAGS@,$BASECFLAGS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19484 | s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t |
| 19485 | s,@SO@,$SO,;t t |
| 19486 | s,@LDSHARED@,$LDSHARED,;t t |
| 19487 | s,@BLDSHARED@,$BLDSHARED,;t t |
| 19488 | s,@CCSHARED@,$CCSHARED,;t t |
| 19489 | s,@LINKFORSHARED@,$LINKFORSHARED,;t t |
| 19490 | s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 19491 | s,@SHLIBS@,$SHLIBS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19492 | s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t |
| 19493 | s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t |
| 19494 | s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t |
| 19495 | s,@LDLAST@,$LDLAST,;t t |
| 19496 | s,@THREADOBJ@,$THREADOBJ,;t t |
| 19497 | s,@DLINCLDIR@,$DLINCLDIR,;t t |
| 19498 | s,@DYNLOADFILE@,$DYNLOADFILE,;t t |
| 19499 | s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 19500 | s,@TRUE@,$TRUE,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19501 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 19502 | s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t |
| 19503 | s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t |
| 19504 | s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t |
| 19505 | s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t |
| 19506 | s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t |
| 19507 | s,@LIBM@,$LIBM,;t t |
| 19508 | s,@LIBC@,$LIBC,;t t |
| 19509 | s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t |
| 19510 | s,@THREADHEADERS@,$THREADHEADERS,;t t |
| 19511 | s,@SRCDIRS@,$SRCDIRS,;t t |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19512 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19513 | CEOF |
| 19514 | |
| 19515 | _ACEOF |
| 19516 | |
| 19517 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 19518 | # Split the substitutions into bite-sized pieces for seds with |
| 19519 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 19520 | ac_max_sed_lines=48 |
| 19521 | ac_sed_frag=1 # Number of current file. |
| 19522 | ac_beg=1 # First line for current file. |
| 19523 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 19524 | ac_more_lines=: |
| 19525 | ac_sed_cmds= |
| 19526 | while $ac_more_lines; do |
| 19527 | if test $ac_beg -gt 1; then |
| 19528 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 19529 | else |
| 19530 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 19531 | fi |
| 19532 | if test ! -s $tmp/subs.frag; then |
| 19533 | ac_more_lines=false |
| 19534 | else |
| 19535 | # The purpose of the label and of the branching condition is to |
| 19536 | # speed up the sed processing (if there are no `@' at all, there |
| 19537 | # is no need to browse any of the substitutions). |
| 19538 | # These are the two extra sed commands mentioned above. |
| 19539 | (echo ':t |
| 19540 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 19541 | if test -z "$ac_sed_cmds"; then |
| 19542 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 19543 | else |
| 19544 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 19545 | fi |
| 19546 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 19547 | ac_beg=$ac_end |
| 19548 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 19549 | fi |
| 19550 | done |
| 19551 | if test -z "$ac_sed_cmds"; then |
| 19552 | ac_sed_cmds=cat |
| 19553 | fi |
| 19554 | fi # test -n "$CONFIG_FILES" |
| 19555 | |
| 19556 | _ACEOF |
| 19557 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 19558 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 19559 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 19560 | case $ac_file in |
| 19561 | - | *:- | *:-:* ) # input from stdin |
| 19562 | cat >$tmp/stdin |
| 19563 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 19564 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 19565 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 19566 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 19567 | * ) ac_file_in=$ac_file.in ;; |
| 19568 | esac |
| 19569 | |
| 19570 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 19571 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 19572 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 19573 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 19574 | X"$ac_file" : 'X\(//\)$' \| \ |
| 19575 | X"$ac_file" : 'X\(/\)' \| \ |
| 19576 | . : '\(.\)' 2>/dev/null || |
| 19577 | echo X"$ac_file" | |
| 19578 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 19579 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 19580 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 19581 | /^X\(\/\).*/{ s//\1/; q; } |
| 19582 | s/.*/./; q'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19583 | { if $as_mkdir_p; then |
| 19584 | mkdir -p "$ac_dir" |
| 19585 | else |
| 19586 | as_dir="$ac_dir" |
| 19587 | as_dirs= |
| 19588 | while test ! -d "$as_dir"; do |
| 19589 | as_dirs="$as_dir $as_dirs" |
| 19590 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 19591 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 19592 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 19593 | X"$as_dir" : 'X\(//\)$' \| \ |
| 19594 | X"$as_dir" : 'X\(/\)' \| \ |
| 19595 | . : '\(.\)' 2>/dev/null || |
| 19596 | echo X"$as_dir" | |
| 19597 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 19598 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 19599 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 19600 | /^X\(\/\).*/{ s//\1/; q; } |
| 19601 | s/.*/./; q'` |
| 19602 | done |
| 19603 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 19604 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 19605 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 19606 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19607 | |
| 19608 | ac_builddir=. |
| 19609 | |
| 19610 | if test "$ac_dir" != .; then |
| 19611 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 19612 | # A "../" for each directory in $ac_dir_suffix. |
| 19613 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 19614 | else |
| 19615 | ac_dir_suffix= ac_top_builddir= |
| 19616 | fi |
| 19617 | |
| 19618 | case $srcdir in |
| 19619 | .) # No --srcdir option. We are building in place. |
| 19620 | ac_srcdir=. |
| 19621 | if test -z "$ac_top_builddir"; then |
| 19622 | ac_top_srcdir=. |
| 19623 | else |
| 19624 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 19625 | fi ;; |
| 19626 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 19627 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 19628 | ac_top_srcdir=$srcdir ;; |
| 19629 | *) # Relative path. |
| 19630 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 19631 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 19632 | esac |
| 19633 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 19634 | # absolute. |
| 19635 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 19636 | 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] | 19637 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 19638 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 19639 | |
| 19640 | |
| 19641 | case $INSTALL in |
| 19642 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 19643 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 19644 | esac |
| 19645 | |
| 19646 | if test x"$ac_file" != x-; then |
| 19647 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 19648 | echo "$as_me: creating $ac_file" >&6;} |
| 19649 | rm -f "$ac_file" |
| 19650 | fi |
| 19651 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 19652 | # use $as_me), people would be surprised to read: |
| 19653 | # /* config.h. Generated by config.status. */ |
| 19654 | if test x"$ac_file" = x-; then |
| 19655 | configure_input= |
| 19656 | else |
| 19657 | configure_input="$ac_file. " |
| 19658 | fi |
| 19659 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 19660 | sed 's,.*/,,'` by configure." |
| 19661 | |
| 19662 | # First look for the input files in the build tree, otherwise in the |
| 19663 | # src tree. |
| 19664 | ac_file_inputs=`IFS=: |
| 19665 | for f in $ac_file_in; do |
| 19666 | case $f in |
| 19667 | -) echo $tmp/stdin ;; |
| 19668 | [\\/$]*) |
| 19669 | # Absolute (can't be DOS-style, as IFS=:) |
| 19670 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 19671 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 19672 | { (exit 1); exit 1; }; } |
| 19673 | echo $f;; |
| 19674 | *) # Relative |
| 19675 | if test -f "$f"; then |
| 19676 | # Build tree |
| 19677 | echo $f |
| 19678 | elif test -f "$srcdir/$f"; then |
| 19679 | # Source tree |
| 19680 | echo $srcdir/$f |
| 19681 | else |
| 19682 | # /dev/null tree |
| 19683 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 19684 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 19685 | { (exit 1); exit 1; }; } |
| 19686 | fi;; |
| 19687 | esac |
| 19688 | done` || { (exit 1); exit 1; } |
| 19689 | _ACEOF |
| 19690 | cat >>$CONFIG_STATUS <<_ACEOF |
| 19691 | sed "$ac_vpsub |
| 19692 | $extrasub |
| 19693 | _ACEOF |
| 19694 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 19695 | :t |
| 19696 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 19697 | s,@configure_input@,$configure_input,;t t |
| 19698 | s,@srcdir@,$ac_srcdir,;t t |
| 19699 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 19700 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 19701 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 19702 | s,@builddir@,$ac_builddir,;t t |
| 19703 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 19704 | s,@top_builddir@,$ac_top_builddir,;t t |
| 19705 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 19706 | s,@INSTALL@,$ac_INSTALL,;t t |
| 19707 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 19708 | rm -f $tmp/stdin |
| 19709 | if test x"$ac_file" != x-; then |
| 19710 | mv $tmp/out $ac_file |
| 19711 | else |
| 19712 | cat $tmp/out |
| 19713 | rm -f $tmp/out |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19714 | fi |
| 19715 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19716 | done |
| 19717 | _ACEOF |
| 19718 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19719 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19720 | # |
| 19721 | # CONFIG_HEADER section. |
| 19722 | # |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19723 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19724 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 19725 | # 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] | 19726 | # |
| 19727 | # ac_d sets the value in "#define NAME VALUE" lines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19728 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 19729 | ac_dB='[ ].*$,\1#\2' |
| 19730 | ac_dC=' ' |
| 19731 | ac_dD=',;t' |
| 19732 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 19733 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 19734 | ac_uB='$,\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19735 | ac_uC=' ' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19736 | ac_uD=',;t' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19737 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19738 | 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] | 19739 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19740 | case $ac_file in |
| 19741 | - | *:- | *:-:* ) # input from stdin |
| 19742 | cat >$tmp/stdin |
| 19743 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 19744 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 19745 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 19746 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 19747 | * ) ac_file_in=$ac_file.in ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19748 | esac |
| 19749 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19750 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 19751 | echo "$as_me: creating $ac_file" >&6;} |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19752 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19753 | # First look for the input files in the build tree, otherwise in the |
| 19754 | # src tree. |
| 19755 | ac_file_inputs=`IFS=: |
| 19756 | for f in $ac_file_in; do |
| 19757 | case $f in |
| 19758 | -) echo $tmp/stdin ;; |
| 19759 | [\\/$]*) |
| 19760 | # Absolute (can't be DOS-style, as IFS=:) |
| 19761 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 19762 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 19763 | { (exit 1); exit 1; }; } |
| 19764 | echo $f;; |
| 19765 | *) # Relative |
| 19766 | if test -f "$f"; then |
| 19767 | # Build tree |
| 19768 | echo $f |
| 19769 | elif test -f "$srcdir/$f"; then |
| 19770 | # Source tree |
| 19771 | echo $srcdir/$f |
| 19772 | else |
| 19773 | # /dev/null tree |
| 19774 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 19775 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 19776 | { (exit 1); exit 1; }; } |
| 19777 | fi;; |
| 19778 | esac |
| 19779 | done` || { (exit 1); exit 1; } |
| 19780 | # Remove the trailing spaces. |
| 19781 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19782 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19783 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19784 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19785 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 19786 | # `conftest.undefs', that substitutes the proper values into |
| 19787 | # config.h.in to produce config.h. The first handles `#define' |
| 19788 | # templates, and the second `#undef' templates. |
| 19789 | # And first: Protect against being on the right side of a sed subst in |
| 19790 | # config.status. Protect against being in an unquoted here document |
| 19791 | # in config.status. |
| 19792 | rm -f conftest.defines conftest.undefs |
| 19793 | # Using a here document instead of a string reduces the quoting nightmare. |
| 19794 | # Putting comments in sed scripts is not portable. |
| 19795 | # |
| 19796 | # `end' is used to avoid that the second main sed command (meant for |
| 19797 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 19798 | # See the Autoconf documentation for `clear'. |
| 19799 | cat >confdef2sed.sed <<\_ACEOF |
| 19800 | s/[\\&,]/\\&/g |
| 19801 | s,[\\$`],\\&,g |
| 19802 | t clear |
| 19803 | : clear |
| 19804 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 19805 | t end |
| 19806 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 19807 | : end |
| 19808 | _ACEOF |
| 19809 | # If some macros were called several times there might be several times |
| 19810 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 19811 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 19812 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 19813 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 19814 | rm -f confdef2sed.sed |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19815 | |
| 19816 | # This sed command replaces #undef with comments. This is necessary, for |
| 19817 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 19818 | # 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] | 19819 | cat >>conftest.undefs <<\_ACEOF |
| 19820 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 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 | # Break up conftest.defines because some shells have a limit on the size |
| 19824 | # of here documents, and old seds have small limits too (100 cmds). |
| 19825 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19826 | 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] | 19827 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 19828 | echo ' :' >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19829 | rm -f conftest.tail |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19830 | while grep . conftest.defines >/dev/null |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19831 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19832 | # Write a limited-size here document to $tmp/defines.sed. |
| 19833 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 19834 | # Speed up: don't consider the non `#define' lines. |
| 19835 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 19836 | # Work around the forget-to-reset-the-flag bug. |
| 19837 | echo 't clr' >>$CONFIG_STATUS |
| 19838 | echo ': clr' >>$CONFIG_STATUS |
| 19839 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19840 | echo 'CEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19841 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 19842 | rm -f $tmp/in |
| 19843 | mv $tmp/out $tmp/in |
| 19844 | ' >>$CONFIG_STATUS |
| 19845 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 19846 | rm -f conftest.defines |
| 19847 | mv conftest.tail conftest.defines |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19848 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19849 | rm -f conftest.defines |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19850 | echo ' fi # grep' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19851 | echo >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19852 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19853 | # Break up conftest.undefs because some shells have a limit on the size |
| 19854 | # of here documents, and old seds have small limits too (100 cmds). |
| 19855 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 19856 | rm -f conftest.tail |
| 19857 | while grep . conftest.undefs >/dev/null |
| 19858 | do |
| 19859 | # Write a limited-size here document to $tmp/undefs.sed. |
| 19860 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 19861 | # Speed up: don't consider the non `#undef' |
| 19862 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 19863 | # Work around the forget-to-reset-the-flag bug. |
| 19864 | echo 't clr' >>$CONFIG_STATUS |
| 19865 | echo ': clr' >>$CONFIG_STATUS |
| 19866 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 19867 | echo 'CEOF |
| 19868 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 19869 | rm -f $tmp/in |
| 19870 | mv $tmp/out $tmp/in |
| 19871 | ' >>$CONFIG_STATUS |
| 19872 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 19873 | rm -f conftest.undefs |
| 19874 | mv conftest.tail conftest.undefs |
| 19875 | done |
| 19876 | rm -f conftest.undefs |
| 19877 | |
| 19878 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 19879 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 19880 | # use $as_me), people would be surprised to read: |
| 19881 | # /* config.h. Generated by config.status. */ |
| 19882 | if test x"$ac_file" = x-; then |
| 19883 | echo "/* Generated by configure. */" >$tmp/config.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19884 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19885 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19886 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19887 | cat $tmp/in >>$tmp/config.h |
| 19888 | rm -f $tmp/in |
| 19889 | if test x"$ac_file" != x-; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19890 | 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] | 19891 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 19892 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 19893 | else |
| 19894 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 19895 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 19896 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 19897 | X"$ac_file" : 'X\(//\)$' \| \ |
| 19898 | X"$ac_file" : 'X\(/\)' \| \ |
| 19899 | . : '\(.\)' 2>/dev/null || |
| 19900 | echo X"$ac_file" | |
| 19901 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 19902 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 19903 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 19904 | /^X\(\/\).*/{ s//\1/; q; } |
| 19905 | s/.*/./; q'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19906 | { if $as_mkdir_p; then |
| 19907 | mkdir -p "$ac_dir" |
| 19908 | else |
| 19909 | as_dir="$ac_dir" |
| 19910 | as_dirs= |
| 19911 | while test ! -d "$as_dir"; do |
| 19912 | as_dirs="$as_dir $as_dirs" |
| 19913 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 19914 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 19915 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 19916 | X"$as_dir" : 'X\(//\)$' \| \ |
| 19917 | X"$as_dir" : 'X\(/\)' \| \ |
| 19918 | . : '\(.\)' 2>/dev/null || |
| 19919 | echo X"$as_dir" | |
| 19920 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 19921 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 19922 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 19923 | /^X\(\/\).*/{ s//\1/; q; } |
| 19924 | s/.*/./; q'` |
| 19925 | done |
| 19926 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 19927 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 19928 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 19929 | { (exit 1); exit 1; }; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19930 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19931 | rm -f $ac_file |
| 19932 | mv $tmp/config.h $ac_file |
| 19933 | fi |
| 19934 | else |
| 19935 | cat $tmp/config.h |
| 19936 | rm -f $tmp/config.h |
| 19937 | fi |
| 19938 | done |
| 19939 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19940 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19941 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19942 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19943 | { (exit 0); exit 0; } |
| 19944 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19945 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19946 | ac_clean_files=$ac_clean_files_save |
| 19947 | |
| 19948 | |
| 19949 | # configure is writing to config.log, and then calls config.status. |
| 19950 | # config.status does its own redirection, appending to config.log. |
| 19951 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 19952 | # by configure, so config.status won't be able to write to it; its |
| 19953 | # output is simply discarded. So we exec the FD to /dev/null, |
| 19954 | # effectively closing config.log, so it can be properly (re)opened and |
| 19955 | # appended to by config.status. When coming back to configure, we |
| 19956 | # need to make the FD available again. |
| 19957 | if test "$no_create" != yes; then |
| 19958 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19959 | ac_config_status_args= |
| 19960 | test "$silent" = yes && |
| 19961 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19962 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19963 | $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] | 19964 | exec 5>>config.log |
| 19965 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 19966 | # would make configure fail if this is the last instruction. |
| 19967 | $ac_cs_success || { (exit 1); exit 1; } |
| 19968 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19969 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 19970 | |
| 19971 | echo "creating Setup" |
| 19972 | if test ! -f Modules/Setup |
| 19973 | then |
| 19974 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 19975 | fi |
| 19976 | |
| 19977 | echo "creating Setup.local" |
| 19978 | if test ! -f Modules/Setup.local |
| 19979 | then |
| 19980 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 19981 | fi |
| 19982 | |
| 19983 | echo "creating Makefile" |
| 19984 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 19985 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 19986 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 19987 | mv config.c Modules |