Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2 | # From configure.in Revision: 1.383 . |
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 | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.54 for python 2.3. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
| 7 | # Free Software Foundation, Inc. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8 | # This configure script is free software; the Free Software Foundation |
| 9 | # gives unlimited permission to copy, distribute and modify it. |
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 | decc6a4 | 2003-01-01 20:07:49 +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 | decc6a4 | 2003-01-01 20:07:49 +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 LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME |
| 41 | do |
| 42 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 43 | eval $as_var=C; export $as_var |
| 44 | else |
| 45 | $as_unset $as_var |
| 46 | fi |
| 47 | done |
| 48 | |
| 49 | # Required to use basename. |
| 50 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 51 | as_expr=expr |
| 52 | else |
| 53 | as_expr=false |
| 54 | fi |
| 55 | |
| 56 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 57 | as_basename=basename |
| 58 | else |
| 59 | as_basename=false |
| 60 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 61 | |
| 62 | |
| 63 | # Name of the executable. |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 64 | as_me=`$as_basename "$0" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 65 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 66 | X"$0" : 'X\(//\)$' \| \ |
| 67 | X"$0" : 'X\(/\)$' \| \ |
| 68 | . : '\(.\)' 2>/dev/null || |
| 69 | echo X/"$0" | |
| 70 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 71 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 72 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 73 | s/.*/./; q'` |
| 74 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 75 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 76 | # PATH needs CR, and LINENO needs CR and PATH. |
| 77 | # Avoid depending upon Character Ranges. |
| 78 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 79 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 80 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 81 | as_cr_digits='0123456789' |
| 82 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 83 | |
| 84 | # The user is always right. |
| 85 | if test "${PATH_SEPARATOR+set}" != set; then |
| 86 | echo "#! /bin/sh" >conftest.sh |
| 87 | echo "exit 0" >>conftest.sh |
| 88 | chmod +x conftest.sh |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 89 | if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 90 | PATH_SEPARATOR=';' |
| 91 | else |
| 92 | PATH_SEPARATOR=: |
| 93 | fi |
| 94 | rm -f conftest.sh |
| 95 | fi |
| 96 | |
| 97 | |
| 98 | as_lineno_1=$LINENO |
| 99 | as_lineno_2=$LINENO |
| 100 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 101 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 102 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 103 | # Find who we are. Look in the path if we contain no path at all |
| 104 | # relative or not. |
| 105 | case $0 in |
| 106 | *[\\/]* ) as_myself=$0 ;; |
| 107 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 108 | for as_dir in $PATH |
| 109 | do |
| 110 | IFS=$as_save_IFS |
| 111 | test -z "$as_dir" && as_dir=. |
| 112 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 113 | done |
| 114 | |
| 115 | ;; |
| 116 | esac |
| 117 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 118 | # in which case we are not to be found in the path. |
| 119 | if test "x$as_myself" = x; then |
| 120 | as_myself=$0 |
| 121 | fi |
| 122 | if test ! -f "$as_myself"; then |
| 123 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 124 | { (exit 1); exit 1; }; } |
| 125 | fi |
| 126 | case $CONFIG_SHELL in |
| 127 | '') |
| 128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 129 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 130 | do |
| 131 | IFS=$as_save_IFS |
| 132 | test -z "$as_dir" && as_dir=. |
| 133 | for as_base in sh bash ksh sh5; do |
| 134 | case $as_dir in |
| 135 | /*) |
| 136 | if ("$as_dir/$as_base" -c ' |
| 137 | as_lineno_1=$LINENO |
| 138 | as_lineno_2=$LINENO |
| 139 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 140 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 141 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 142 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 143 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 144 | CONFIG_SHELL=$as_dir/$as_base |
| 145 | export CONFIG_SHELL |
| 146 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 147 | fi;; |
| 148 | esac |
| 149 | done |
| 150 | done |
| 151 | ;; |
| 152 | esac |
| 153 | |
| 154 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 155 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 156 | # line-number line before each line; the second 'sed' does the real |
| 157 | # work. The second script uses 'N' to pair each line-number line |
| 158 | # with the numbered line, and appends trailing '-' during |
| 159 | # substitution so that $LINENO is not a special case at line end. |
| 160 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 161 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 162 | sed '=' <$as_myself | |
| 163 | sed ' |
| 164 | N |
| 165 | s,$,-, |
| 166 | : loop |
| 167 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 168 | t loop |
| 169 | s,-$,, |
| 170 | s,^['$as_cr_digits']*\n,, |
| 171 | ' >$as_me.lineno && |
| 172 | chmod +x $as_me.lineno || |
| 173 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 174 | { (exit 1); exit 1; }; } |
| 175 | |
| 176 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 177 | # (the dirname of $[0] is not the place where we might find the |
| 178 | # original and so on. Autoconf is especially sensible to this). |
| 179 | . ./$as_me.lineno |
| 180 | # Exit status is that of the last command. |
| 181 | exit |
| 182 | } |
| 183 | |
| 184 | |
| 185 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 186 | *c*,-n*) ECHO_N= ECHO_C=' |
| 187 | ' ECHO_T=' ' ;; |
| 188 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 189 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 190 | esac |
| 191 | |
| 192 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 193 | as_expr=expr |
| 194 | else |
| 195 | as_expr=false |
| 196 | fi |
| 197 | |
| 198 | rm -f conf$$ conf$$.exe conf$$.file |
| 199 | echo >conf$$.file |
| 200 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 201 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 202 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 203 | if test -f conf$$.exe; then |
| 204 | # Don't use ln at all; we don't have any links |
| 205 | as_ln_s='cp -p' |
| 206 | else |
| 207 | as_ln_s='ln -s' |
| 208 | fi |
| 209 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 210 | as_ln_s=ln |
| 211 | else |
| 212 | as_ln_s='cp -p' |
| 213 | fi |
| 214 | rm -f conf$$ conf$$.exe conf$$.file |
| 215 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 216 | if mkdir -p . 2>/dev/null; then |
| 217 | as_mkdir_p=: |
| 218 | else |
| 219 | as_mkdir_p=false |
| 220 | fi |
| 221 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 222 | as_executable_p="test -f" |
| 223 | |
| 224 | # Sed expression to map a string onto a valid CPP name. |
| 225 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 226 | |
| 227 | # Sed expression to map a string onto a valid variable name. |
| 228 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 229 | |
| 230 | |
| 231 | # IFS |
| 232 | # We need space, tab and new line, in precisely that order. |
| 233 | as_nl=' |
| 234 | ' |
| 235 | IFS=" $as_nl" |
| 236 | |
| 237 | # CDPATH. |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 238 | $as_unset CDPATH |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 239 | |
| 240 | |
| 241 | # Name of the host. |
| 242 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 243 | # so uname gets run too. |
| 244 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 245 | |
| 246 | exec 6>&1 |
| 247 | |
| 248 | # |
| 249 | # Initializations. |
| 250 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 251 | ac_default_prefix=/usr/local |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 252 | ac_config_libobj_dir=. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 253 | cross_compiling=no |
| 254 | subdirs= |
| 255 | MFLAGS= |
| 256 | MAKEFLAGS= |
| 257 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 258 | |
| 259 | # Maximum number of lines to put in a shell here document. |
| 260 | # This variable seems obsolete. It should probably be removed, and |
| 261 | # only ac_max_sed_lines should be used. |
| 262 | : ${ac_max_here_lines=38} |
| 263 | |
| 264 | # Identity of this package. |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 265 | PACKAGE_NAME='python' |
| 266 | PACKAGE_TARNAME='python' |
| 267 | PACKAGE_VERSION='2.3' |
| 268 | PACKAGE_STRING='python 2.3' |
| 269 | PACKAGE_BUGREPORT='' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 270 | |
| 271 | ac_unique_file="Include/object.h" |
| 272 | # Factoring default headers for most tests. |
| 273 | ac_includes_default="\ |
| 274 | #include <stdio.h> |
| 275 | #if HAVE_SYS_TYPES_H |
| 276 | # include <sys/types.h> |
| 277 | #endif |
| 278 | #if HAVE_SYS_STAT_H |
| 279 | # include <sys/stat.h> |
| 280 | #endif |
| 281 | #if STDC_HEADERS |
| 282 | # include <stdlib.h> |
| 283 | # include <stddef.h> |
| 284 | #else |
| 285 | # if HAVE_STDLIB_H |
| 286 | # include <stdlib.h> |
| 287 | # endif |
| 288 | #endif |
| 289 | #if HAVE_STRING_H |
| 290 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 291 | # include <memory.h> |
| 292 | # endif |
| 293 | # include <string.h> |
| 294 | #endif |
| 295 | #if HAVE_STRINGS_H |
| 296 | # include <strings.h> |
| 297 | #endif |
| 298 | #if HAVE_INTTYPES_H |
| 299 | # include <inttypes.h> |
| 300 | #else |
| 301 | # if HAVE_STDINT_H |
| 302 | # include <stdint.h> |
| 303 | # endif |
| 304 | #endif |
| 305 | #if HAVE_UNISTD_H |
| 306 | # include <unistd.h> |
| 307 | #endif" |
| 308 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 309 | 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 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 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' |
| 310 | ac_subst_files='' |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 311 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 312 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 313 | ac_init_help= |
| 314 | ac_init_version=false |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 315 | # The variables have the same names as the options, with |
| 316 | # dashes changed to underlines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 317 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 318 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 319 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 320 | no_recursion= |
| 321 | prefix=NONE |
| 322 | program_prefix=NONE |
| 323 | program_suffix=NONE |
| 324 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 325 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 326 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 327 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 328 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 329 | x_includes=NONE |
| 330 | x_libraries=NONE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 331 | |
| 332 | # Installation directory options. |
| 333 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 334 | # and all the variables that are supposed to be based on exec_prefix |
| 335 | # by default will actually change. |
| 336 | # 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] | 337 | bindir='${exec_prefix}/bin' |
| 338 | sbindir='${exec_prefix}/sbin' |
| 339 | libexecdir='${exec_prefix}/libexec' |
| 340 | datadir='${prefix}/share' |
| 341 | sysconfdir='${prefix}/etc' |
| 342 | sharedstatedir='${prefix}/com' |
| 343 | localstatedir='${prefix}/var' |
| 344 | libdir='${exec_prefix}/lib' |
| 345 | includedir='${prefix}/include' |
| 346 | oldincludedir='/usr/include' |
| 347 | infodir='${prefix}/info' |
| 348 | mandir='${prefix}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 349 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 350 | ac_prev= |
| 351 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 352 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 353 | # If the previous option needs an argument, assign it. |
| 354 | if test -n "$ac_prev"; then |
| 355 | eval "$ac_prev=\$ac_option" |
| 356 | ac_prev= |
| 357 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 358 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 359 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 360 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 361 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 362 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 363 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 364 | case $ac_option in |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 365 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 366 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 367 | ac_prev=bindir ;; |
| 368 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 369 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 370 | |
| 371 | -build | --build | --buil | --bui | --bu) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 372 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 373 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 374 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 375 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 376 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 377 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 378 | ac_prev=cache_file ;; |
| 379 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 380 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 381 | cache_file=$ac_optarg ;; |
| 382 | |
| 383 | --config-cache | -C) |
| 384 | cache_file=config.cache ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 385 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 386 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 387 | ac_prev=datadir ;; |
| 388 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 389 | | --da=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 390 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 391 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 392 | -disable-* | --disable-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 393 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 394 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 395 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 396 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 397 | { (exit 1); exit 1; }; } |
| 398 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 399 | eval "enable_$ac_feature=no" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 400 | |
| 401 | -enable-* | --enable-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 402 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 403 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 404 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 405 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 406 | { (exit 1); exit 1; }; } |
| 407 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 408 | case $ac_option in |
| 409 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 410 | *) ac_optarg=yes ;; |
| 411 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 412 | eval "enable_$ac_feature='$ac_optarg'" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 413 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 414 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 415 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 416 | | --exec | --exe | --ex) |
| 417 | ac_prev=exec_prefix ;; |
| 418 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 419 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 420 | | --exec=* | --exe=* | --ex=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 421 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 422 | |
| 423 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 424 | # Obsolete; use --with-gas. |
| 425 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 426 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 427 | -help | --help | --hel | --he | -h) |
| 428 | ac_init_help=long ;; |
| 429 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 430 | ac_init_help=recursive ;; |
| 431 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 432 | ac_init_help=short ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 433 | |
| 434 | -host | --host | --hos | --ho) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 435 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 436 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 437 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 438 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 439 | -includedir | --includedir | --includedi | --included | --include \ |
| 440 | | --includ | --inclu | --incl | --inc) |
| 441 | ac_prev=includedir ;; |
| 442 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 443 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 444 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 445 | |
| 446 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 447 | ac_prev=infodir ;; |
| 448 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 449 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 450 | |
| 451 | -libdir | --libdir | --libdi | --libd) |
| 452 | ac_prev=libdir ;; |
| 453 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 454 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 455 | |
| 456 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 457 | | --libexe | --libex | --libe) |
| 458 | ac_prev=libexecdir ;; |
| 459 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 460 | | --libexe=* | --libex=* | --libe=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 461 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 462 | |
| 463 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 464 | | --localstate | --localstat | --localsta | --localst \ |
| 465 | | --locals | --local | --loca | --loc | --lo) |
| 466 | ac_prev=localstatedir ;; |
| 467 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 468 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 469 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 470 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 471 | |
| 472 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 473 | ac_prev=mandir ;; |
| 474 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 475 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 476 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 477 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 478 | # Obsolete; use --without-fp. |
| 479 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 480 | |
| 481 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 482 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 483 | no_create=yes ;; |
| 484 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 485 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 486 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 487 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 488 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 489 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 490 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 491 | | --oldin | --oldi | --old | --ol | --o) |
| 492 | ac_prev=oldincludedir ;; |
| 493 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 494 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 495 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 496 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 497 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 498 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 499 | ac_prev=prefix ;; |
| 500 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 501 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 502 | |
| 503 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 504 | | --program-pre | --program-pr | --program-p) |
| 505 | ac_prev=program_prefix ;; |
| 506 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 507 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 508 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 509 | |
| 510 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 511 | | --program-suf | --program-su | --program-s) |
| 512 | ac_prev=program_suffix ;; |
| 513 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 514 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 515 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 516 | |
| 517 | -program-transform-name | --program-transform-name \ |
| 518 | | --program-transform-nam | --program-transform-na \ |
| 519 | | --program-transform-n | --program-transform- \ |
| 520 | | --program-transform | --program-transfor \ |
| 521 | | --program-transfo | --program-transf \ |
| 522 | | --program-trans | --program-tran \ |
| 523 | | --progr-tra | --program-tr | --program-t) |
| 524 | ac_prev=program_transform_name ;; |
| 525 | -program-transform-name=* | --program-transform-name=* \ |
| 526 | | --program-transform-nam=* | --program-transform-na=* \ |
| 527 | | --program-transform-n=* | --program-transform-=* \ |
| 528 | | --program-transform=* | --program-transfor=* \ |
| 529 | | --program-transfo=* | --program-transf=* \ |
| 530 | | --program-trans=* | --program-tran=* \ |
| 531 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 532 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 533 | |
| 534 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 535 | | -silent | --silent | --silen | --sile | --sil) |
| 536 | silent=yes ;; |
| 537 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 538 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 539 | ac_prev=sbindir ;; |
| 540 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 541 | | --sbi=* | --sb=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 542 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 543 | |
| 544 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 545 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 546 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 547 | | --sha | --sh) |
| 548 | ac_prev=sharedstatedir ;; |
| 549 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 550 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 551 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 552 | | --sha=* | --sh=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 553 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 554 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 555 | -site | --site | --sit) |
| 556 | ac_prev=site ;; |
| 557 | -site=* | --site=* | --sit=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 558 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 559 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 560 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 561 | ac_prev=srcdir ;; |
| 562 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 563 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 564 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 565 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 566 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 567 | ac_prev=sysconfdir ;; |
| 568 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 569 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 570 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 571 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 572 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 573 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 574 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 575 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 576 | |
| 577 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 578 | verbose=yes ;; |
| 579 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 580 | -version | --version | --versio | --versi | --vers | -V) |
| 581 | ac_init_version=: ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 582 | |
| 583 | -with-* | --with-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 584 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 585 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 586 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 587 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 588 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 589 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 590 | case $ac_option in |
| 591 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 592 | *) ac_optarg=yes ;; |
| 593 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 594 | eval "with_$ac_package='$ac_optarg'" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 595 | |
| 596 | -without-* | --without-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 597 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 598 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 599 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 600 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 601 | { (exit 1); exit 1; }; } |
| 602 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 603 | eval "with_$ac_package=no" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 604 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 605 | --x) |
| 606 | # Obsolete; use --with-x. |
| 607 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 608 | |
| 609 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 610 | | --x-incl | --x-inc | --x-in | --x-i) |
| 611 | ac_prev=x_includes ;; |
| 612 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 613 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 614 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 615 | |
| 616 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 617 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 618 | ac_prev=x_libraries ;; |
| 619 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 620 | | --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] | 621 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 622 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 623 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 624 | Try \`$0 --help' for more information." >&2 |
| 625 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 626 | ;; |
| 627 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 628 | *=*) |
| 629 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 630 | # Reject names that are not valid shell variable names. |
| 631 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 632 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 633 | { (exit 1); exit 1; }; } |
| 634 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 635 | eval "$ac_envvar='$ac_optarg'" |
| 636 | export $ac_envvar ;; |
| 637 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 638 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 639 | # FIXME: should be removed in autoconf 3.0. |
| 640 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 641 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 642 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 643 | : ${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] | 644 | ;; |
| 645 | |
| 646 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 647 | done |
| 648 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 649 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 650 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 651 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 652 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 653 | fi |
| 654 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 655 | # Be sure to have absolute paths. |
| 656 | for ac_var in exec_prefix prefix |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 657 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 658 | eval ac_val=$`echo $ac_var` |
| 659 | case $ac_val in |
| 660 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 661 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 662 | { (exit 1); exit 1; }; };; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 663 | esac |
| 664 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 665 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 666 | # Be sure to have absolute paths. |
| 667 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 668 | localstatedir libdir includedir oldincludedir infodir mandir |
| 669 | do |
| 670 | eval ac_val=$`echo $ac_var` |
| 671 | case $ac_val in |
| 672 | [\\/$]* | ?:[\\/]* ) ;; |
| 673 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 674 | { (exit 1); exit 1; }; };; |
| 675 | esac |
| 676 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 677 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 678 | # There might be people who depend on the old broken behavior: `$host' |
| 679 | # used to hold the argument of --host etc. |
| 680 | # FIXME: To remove some day. |
| 681 | build=$build_alias |
| 682 | host=$host_alias |
| 683 | target=$target_alias |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 684 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 685 | # FIXME: To remove some day. |
| 686 | if test "x$host_alias" != x; then |
| 687 | if test "x$build_alias" = x; then |
| 688 | cross_compiling=maybe |
| 689 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 690 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 691 | elif test "x$build_alias" != "x$host_alias"; then |
| 692 | cross_compiling=yes |
| 693 | fi |
| 694 | fi |
| 695 | |
| 696 | ac_tool_prefix= |
| 697 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 698 | |
| 699 | test "$silent" = yes && exec 6>/dev/null |
| 700 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 701 | |
| 702 | # Find the source files, if location was not specified. |
| 703 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 704 | ac_srcdir_defaulted=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 705 | # Try the directory containing this script, then its parent. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 706 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 707 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 708 | X"$0" : 'X\(//\)[^/]' \| \ |
| 709 | X"$0" : 'X\(//\)$' \| \ |
| 710 | X"$0" : 'X\(/\)' \| \ |
| 711 | . : '\(.\)' 2>/dev/null || |
| 712 | echo X"$0" | |
| 713 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 714 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 715 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 716 | /^X\(\/\).*/{ s//\1/; q; } |
| 717 | s/.*/./; q'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 718 | srcdir=$ac_confdir |
| 719 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 720 | srcdir=.. |
| 721 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 722 | else |
| 723 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 724 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 725 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 726 | if test "$ac_srcdir_defaulted" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 727 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 728 | { (exit 1); exit 1; }; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 729 | else |
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 $srcdir" >&2 |
| 731 | { (exit 1); exit 1; }; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 732 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 733 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 734 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 735 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 736 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 737 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 738 | ac_env_build_alias_set=${build_alias+set} |
| 739 | ac_env_build_alias_value=$build_alias |
| 740 | ac_cv_env_build_alias_set=${build_alias+set} |
| 741 | ac_cv_env_build_alias_value=$build_alias |
| 742 | ac_env_host_alias_set=${host_alias+set} |
| 743 | ac_env_host_alias_value=$host_alias |
| 744 | ac_cv_env_host_alias_set=${host_alias+set} |
| 745 | ac_cv_env_host_alias_value=$host_alias |
| 746 | ac_env_target_alias_set=${target_alias+set} |
| 747 | ac_env_target_alias_value=$target_alias |
| 748 | ac_cv_env_target_alias_set=${target_alias+set} |
| 749 | ac_cv_env_target_alias_value=$target_alias |
| 750 | ac_env_CC_set=${CC+set} |
| 751 | ac_env_CC_value=$CC |
| 752 | ac_cv_env_CC_set=${CC+set} |
| 753 | ac_cv_env_CC_value=$CC |
| 754 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 755 | ac_env_CFLAGS_value=$CFLAGS |
| 756 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 757 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 758 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 759 | ac_env_LDFLAGS_value=$LDFLAGS |
| 760 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 761 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 762 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 763 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 764 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 765 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 766 | ac_env_CPP_set=${CPP+set} |
| 767 | ac_env_CPP_value=$CPP |
| 768 | ac_cv_env_CPP_set=${CPP+set} |
| 769 | ac_cv_env_CPP_value=$CPP |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 770 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 771 | # |
| 772 | # Report the --help message. |
| 773 | # |
| 774 | if test "$ac_init_help" = "long"; then |
| 775 | # Omit some internal or obsolete options to make the list less imposing. |
| 776 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 777 | cat <<_ACEOF |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 778 | \`configure' configures python 2.3 to adapt to many kinds of systems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 779 | |
| 780 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 781 | |
| 782 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 783 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 784 | |
| 785 | Defaults for the options are specified in brackets. |
| 786 | |
| 787 | Configuration: |
| 788 | -h, --help display this help and exit |
| 789 | --help=short display options specific to this package |
| 790 | --help=recursive display the short help of all the included packages |
| 791 | -V, --version display version information and exit |
| 792 | -q, --quiet, --silent do not print \`checking...' messages |
| 793 | --cache-file=FILE cache test results in FILE [disabled] |
| 794 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 795 | -n, --no-create do not create output files |
| 796 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 797 | |
| 798 | _ACEOF |
| 799 | |
| 800 | cat <<_ACEOF |
| 801 | Installation directories: |
| 802 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 803 | [$ac_default_prefix] |
| 804 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 805 | [PREFIX] |
| 806 | |
| 807 | By default, \`make install' will install all the files in |
| 808 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 809 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 810 | for instance \`--prefix=\$HOME'. |
| 811 | |
| 812 | For better control, use the options below. |
| 813 | |
| 814 | Fine tuning of the installation directories: |
| 815 | --bindir=DIR user executables [EPREFIX/bin] |
| 816 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 817 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 818 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 819 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 820 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 821 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 822 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 823 | --includedir=DIR C header files [PREFIX/include] |
| 824 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 825 | --infodir=DIR info documentation [PREFIX/info] |
| 826 | --mandir=DIR man documentation [PREFIX/man] |
| 827 | _ACEOF |
| 828 | |
| 829 | cat <<\_ACEOF |
| 830 | _ACEOF |
| 831 | fi |
| 832 | |
| 833 | if test -n "$ac_init_help"; then |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 834 | case $ac_init_help in |
| 835 | short | recursive ) echo "Configuration of python 2.3:";; |
| 836 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 837 | cat <<\_ACEOF |
| 838 | |
| 839 | Optional Features: |
| 840 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 841 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 842 | --enable-framework[=INSTALLDIR] |
| 843 | Build (MacOSX|Darwin) framework |
| 844 | --enable-shared disable/enable building shared python library |
| 845 | --enable-toolbox-glue disable/enable MacOSX glue code for extensions |
| 846 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 847 | --disable-ipv6 Disable ipv6 support |
| 848 | --enable-unicode[=ucs[24]] |
| 849 | Enable Unicode strings (default is yes) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 850 | |
| 851 | Optional Packages: |
| 852 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 853 | --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] | 854 | --without-gcc never use gcc |
| 855 | --with-cxx=<compiler> enable C++ support |
| 856 | --with-suffix=.exe set executable suffix |
| 857 | --with-pydebug build with Py_DEBUG defined |
| 858 | --with-libs='lib1 ...' link against additional libs |
| 859 | --with-signal-module disable/enable signal module |
| 860 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries |
| 861 | --with(out)-threads[=DIRECTORY] |
| 862 | disable/enable thread support |
| 863 | --with(out)-thread[=DIRECTORY] |
| 864 | deprecated; use --with(out)-threads |
| 865 | --with-pth use GNU pth threading libraries |
| 866 | --with(out)-universal-newlines |
| 867 | disable/enable foreign newlines |
| 868 | --with(out)-doc-strings disable/enable documentation strings |
| 869 | --with(out)-pymalloc disable/enable specialized mallocs |
| 870 | --with-wctype-functions use wctype.h functions |
| 871 | --with-sgi-dl=DIRECTORY IRIX 4 dynamic linking |
| 872 | --with-dl-dld=DL_DIR GNU dynamic linking |
| 873 | --with-fpectl enable SIGFPE catching |
| 874 | --with-libm=STRING math library |
| 875 | --with-libc=STRING C library |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 876 | |
| 877 | Some influential environment variables: |
| 878 | CC C compiler command |
| 879 | CFLAGS C compiler flags |
| 880 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 881 | nonstandard directory <lib dir> |
| 882 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 883 | headers in a nonstandard directory <include dir> |
| 884 | CPP C preprocessor |
| 885 | |
| 886 | Use these variables to override the choices made by `configure' or to help |
| 887 | it to find libraries and programs with nonstandard names/locations. |
| 888 | |
| 889 | _ACEOF |
| 890 | fi |
| 891 | |
| 892 | if test "$ac_init_help" = "recursive"; then |
| 893 | # If there are subdirs, report their specific --help. |
| 894 | ac_popdir=`pwd` |
| 895 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 896 | test -d $ac_dir || continue |
| 897 | ac_builddir=. |
| 898 | |
| 899 | if test "$ac_dir" != .; then |
| 900 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 901 | # A "../" for each directory in $ac_dir_suffix. |
| 902 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 903 | else |
| 904 | ac_dir_suffix= ac_top_builddir= |
| 905 | fi |
| 906 | |
| 907 | case $srcdir in |
| 908 | .) # No --srcdir option. We are building in place. |
| 909 | ac_srcdir=. |
| 910 | if test -z "$ac_top_builddir"; then |
| 911 | ac_top_srcdir=. |
| 912 | else |
| 913 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 914 | fi ;; |
| 915 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 916 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 917 | ac_top_srcdir=$srcdir ;; |
| 918 | *) # Relative path. |
| 919 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 920 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 921 | esac |
| 922 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 923 | # absolute. |
| 924 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 925 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 926 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 927 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 928 | |
| 929 | cd $ac_dir |
| 930 | # Check for guested configure; otherwise get Cygnus style configure. |
| 931 | if test -f $ac_srcdir/configure.gnu; then |
| 932 | echo |
| 933 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 934 | elif test -f $ac_srcdir/configure; then |
| 935 | echo |
| 936 | $SHELL $ac_srcdir/configure --help=recursive |
| 937 | elif test -f $ac_srcdir/configure.ac || |
| 938 | test -f $ac_srcdir/configure.in; then |
| 939 | echo |
| 940 | $ac_configure --help |
| 941 | else |
| 942 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 943 | fi |
| 944 | cd $ac_popdir |
| 945 | done |
| 946 | fi |
| 947 | |
| 948 | test -n "$ac_init_help" && exit 0 |
| 949 | if $ac_init_version; then |
| 950 | cat <<\_ACEOF |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 951 | python configure 2.3 |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 952 | generated by GNU Autoconf 2.54 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 953 | |
| 954 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
| 955 | Free Software Foundation, Inc. |
| 956 | This configure script is free software; the Free Software Foundation |
| 957 | gives unlimited permission to copy, distribute and modify it. |
| 958 | _ACEOF |
| 959 | exit 0 |
| 960 | fi |
| 961 | exec 5>config.log |
| 962 | cat >&5 <<_ACEOF |
| 963 | This file contains any messages produced by compilers while |
| 964 | running configure, to aid debugging if configure makes a mistake. |
| 965 | |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 966 | It was created by python $as_me 2.3, which was |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 967 | generated by GNU Autoconf 2.54. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 968 | |
| 969 | $ $0 $@ |
| 970 | |
| 971 | _ACEOF |
| 972 | { |
| 973 | cat <<_ASUNAME |
| 974 | ## --------- ## |
| 975 | ## Platform. ## |
| 976 | ## --------- ## |
| 977 | |
| 978 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 979 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 980 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 981 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 982 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 983 | |
| 984 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 985 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 986 | |
| 987 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 988 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 989 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 990 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 991 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 992 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 993 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 994 | |
| 995 | _ASUNAME |
| 996 | |
| 997 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 998 | for as_dir in $PATH |
| 999 | do |
| 1000 | IFS=$as_save_IFS |
| 1001 | test -z "$as_dir" && as_dir=. |
| 1002 | echo "PATH: $as_dir" |
| 1003 | done |
| 1004 | |
| 1005 | } >&5 |
| 1006 | |
| 1007 | cat >&5 <<_ACEOF |
| 1008 | |
| 1009 | |
| 1010 | ## ----------- ## |
| 1011 | ## Core tests. ## |
| 1012 | ## ----------- ## |
| 1013 | |
| 1014 | _ACEOF |
| 1015 | |
| 1016 | |
| 1017 | # Keep a trace of the command line. |
| 1018 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1019 | # Also quote any args containing shell meta-characters. |
| 1020 | ac_configure_args= |
| 1021 | ac_sep= |
| 1022 | for ac_arg |
| 1023 | do |
| 1024 | case $ac_arg in |
| 1025 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1026 | | --no-cr | --no-c | -n ) continue ;; |
| 1027 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1028 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1029 | continue ;; |
| 1030 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1031 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1032 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1033 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1034 | # Get rid of the leading space. |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1035 | ac_sep=" " |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1036 | done |
| 1037 | |
| 1038 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1039 | # config.log. We remove comments because anyway the quotes in there |
| 1040 | # would cause problems or look ugly. |
| 1041 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1042 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1043 | trap 'exit_status=$? |
| 1044 | # Save into config.log some information that might help in debugging. |
| 1045 | { |
| 1046 | echo |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1047 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1048 | cat <<\_ASBOX |
| 1049 | ## ---------------- ## |
| 1050 | ## Cache variables. ## |
| 1051 | ## ---------------- ## |
| 1052 | _ASBOX |
| 1053 | echo |
| 1054 | # The following way of writing the cache mishandles newlines in values, |
| 1055 | { |
| 1056 | (set) 2>&1 | |
| 1057 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1058 | *ac_space=\ *) |
| 1059 | sed -n \ |
| 1060 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1061 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1062 | ;; |
| 1063 | *) |
| 1064 | sed -n \ |
| 1065 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1066 | ;; |
| 1067 | esac; |
| 1068 | } |
| 1069 | echo |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1070 | |
| 1071 | cat <<\_ASBOX |
| 1072 | ## ----------------- ## |
| 1073 | ## Output variables. ## |
| 1074 | ## ----------------- ## |
| 1075 | _ASBOX |
| 1076 | echo |
| 1077 | for ac_var in $ac_subst_vars |
| 1078 | do |
| 1079 | eval ac_val=$`echo $ac_var` |
| 1080 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1081 | done | sort |
| 1082 | echo |
| 1083 | |
| 1084 | if test -n "$ac_subst_files"; then |
| 1085 | cat <<\_ASBOX |
| 1086 | ## ------------- ## |
| 1087 | ## Output files. ## |
| 1088 | ## ------------- ## |
| 1089 | _ASBOX |
| 1090 | echo |
| 1091 | for ac_var in $ac_subst_files |
| 1092 | do |
| 1093 | eval ac_val=$`echo $ac_var` |
| 1094 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1095 | done | sort |
| 1096 | echo |
| 1097 | fi |
| 1098 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1099 | if test -s confdefs.h; then |
| 1100 | cat <<\_ASBOX |
| 1101 | ## ----------- ## |
| 1102 | ## confdefs.h. ## |
| 1103 | ## ----------- ## |
| 1104 | _ASBOX |
| 1105 | echo |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1106 | sed "/^$/d" confdefs.h | sort |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1107 | echo |
| 1108 | fi |
| 1109 | test "$ac_signal" != 0 && |
| 1110 | echo "$as_me: caught signal $ac_signal" |
| 1111 | echo "$as_me: exit $exit_status" |
| 1112 | } >&5 |
| 1113 | rm -f core core.* *.core && |
| 1114 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1115 | exit $exit_status |
| 1116 | ' 0 |
| 1117 | for ac_signal in 1 2 13 15; do |
| 1118 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1119 | done |
| 1120 | ac_signal=0 |
| 1121 | |
| 1122 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1123 | rm -rf conftest* confdefs.h |
| 1124 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1125 | echo >confdefs.h |
| 1126 | |
| 1127 | # Predefined preprocessor variables. |
| 1128 | |
| 1129 | cat >>confdefs.h <<_ACEOF |
| 1130 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1131 | _ACEOF |
| 1132 | |
| 1133 | |
| 1134 | cat >>confdefs.h <<_ACEOF |
| 1135 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1136 | _ACEOF |
| 1137 | |
| 1138 | |
| 1139 | cat >>confdefs.h <<_ACEOF |
| 1140 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1141 | _ACEOF |
| 1142 | |
| 1143 | |
| 1144 | cat >>confdefs.h <<_ACEOF |
| 1145 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1146 | _ACEOF |
| 1147 | |
| 1148 | |
| 1149 | cat >>confdefs.h <<_ACEOF |
| 1150 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1151 | _ACEOF |
| 1152 | |
| 1153 | |
| 1154 | # 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] | 1155 | # Prefer explicitly selected file to automatically selected ones. |
| 1156 | if test -z "$CONFIG_SITE"; then |
| 1157 | if test "x$prefix" != xNONE; then |
| 1158 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1159 | else |
| 1160 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1161 | fi |
| 1162 | fi |
| 1163 | for ac_site_file in $CONFIG_SITE; do |
| 1164 | if test -r "$ac_site_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1165 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1166 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1167 | sed 's/^/| /' "$ac_site_file" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1168 | . "$ac_site_file" |
| 1169 | fi |
| 1170 | done |
| 1171 | |
| 1172 | if test -r "$cache_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1173 | # Some versions of bash will fail to source /dev/null (special |
| 1174 | # files actually), so we avoid doing that. |
| 1175 | if test -f "$cache_file"; then |
| 1176 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1177 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1178 | case $cache_file in |
| 1179 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1180 | *) . ./$cache_file;; |
| 1181 | esac |
| 1182 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1183 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1184 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1185 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1186 | >$cache_file |
| 1187 | fi |
| 1188 | |
| 1189 | # Check that the precious variables saved in the cache have kept the same |
| 1190 | # value. |
| 1191 | ac_cache_corrupted=false |
| 1192 | for ac_var in `(set) 2>&1 | |
| 1193 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1194 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1195 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1196 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1197 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1198 | case $ac_old_set,$ac_new_set in |
| 1199 | set,) |
| 1200 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1201 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1202 | ac_cache_corrupted=: ;; |
| 1203 | ,set) |
| 1204 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1205 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1206 | ac_cache_corrupted=: ;; |
| 1207 | ,);; |
| 1208 | *) |
| 1209 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1210 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1211 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1212 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1213 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1214 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1215 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1216 | ac_cache_corrupted=: |
| 1217 | fi;; |
| 1218 | esac |
| 1219 | # Pass precious variables to config.status. |
| 1220 | if test "$ac_new_set" = set; then |
| 1221 | case $ac_new_val in |
| 1222 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1223 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1224 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1225 | esac |
| 1226 | case " $ac_configure_args " in |
| 1227 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1228 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1229 | esac |
| 1230 | fi |
| 1231 | done |
| 1232 | if $ac_cache_corrupted; then |
| 1233 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1234 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1235 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1236 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1237 | { (exit 1); exit 1; }; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1238 | fi |
| 1239 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1240 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1241 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1242 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1243 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1244 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1245 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1246 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1247 | |
| 1248 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1249 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1250 | |
| 1251 | |
| 1252 | |
| 1253 | |
| 1254 | |
| 1255 | |
| 1256 | |
| 1257 | |
| 1258 | |
| 1259 | |
| 1260 | |
| 1261 | |
| 1262 | |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1263 | |
| 1264 | |
| 1265 | |
| 1266 | |
| 1267 | |
| 1268 | |
| 1269 | |
| 1270 | |
| 1271 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1272 | |
| 1273 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1274 | |
| 1275 | |
| 1276 | # This is for stuff that absolutely must end up in pyconfig.h. |
| 1277 | # Please use pyport.h instead, if possible. |
| 1278 | |
| 1279 | |
| 1280 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1281 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1282 | |
| 1283 | |
Andrew M. Kuchling | f2f219d | 2002-02-11 16:31:10 +0000 | [diff] [blame] | 1284 | VERSION=2.3 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1285 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 1286 | |
| 1287 | SOVERSION=1.0 |
| 1288 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1289 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 1290 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 1291 | |
| 1292 | cat >>confdefs.h <<\_ACEOF |
| 1293 | #define _GNU_SOURCE 1 |
| 1294 | _ACEOF |
| 1295 | |
| 1296 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1297 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1298 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 1299 | # Arguments passed to configure. |
| 1300 | |
| 1301 | CONFIG_ARGS="$ac_configure_args" |
| 1302 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1303 | # Check whether --enable-framework or --disable-framework was given. |
| 1304 | if test "${enable_framework+set}" = set; then |
| 1305 | enableval="$enable_framework" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1306 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1307 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1308 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1309 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1310 | esac |
| 1311 | case $enableval in |
| 1312 | no) |
| 1313 | PYTHONFRAMEWORK= |
| 1314 | PYTHONFRAMEWORKDIR=no-framework |
| 1315 | PYTHONFRAMEWORKPREFIX= |
| 1316 | PYTHONFRAMEWORKINSTALLDIR= |
| 1317 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1318 | ;; |
| 1319 | *) |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1320 | PYTHONFRAMEWORK=Python |
| 1321 | PYTHONFRAMEWORKDIR=Python.framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1322 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1323 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
| 1324 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1325 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1326 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1327 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1328 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1329 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1330 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1331 | PYTHONFRAMEWORKPREFIX= |
| 1332 | PYTHONFRAMEWORKINSTALLDIR= |
| 1333 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1334 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1335 | fi; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1336 | |
| 1337 | |
| 1338 | |
| 1339 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1340 | |
| 1341 | ##AC_ARG_WITH(dyld, |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1342 | ## AC_HELP_STRING(--with-dyld, |
| 1343 | ## Use (OpenStep|Rhapsody) dynamic linker)) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1344 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1345 | # Set name for machine-dependent library files |
| 1346 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1347 | echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 1348 | echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1349 | if test -z "$MACHDEP" |
| 1350 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1351 | ac_sys_system=`uname -s` |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 1352 | if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \ |
| 1353 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1354 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1355 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1356 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1357 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1358 | ac_md_system=`echo $ac_sys_system | |
| 1359 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 1360 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 1361 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1362 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1363 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 1364 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 1365 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 1366 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 1367 | atheos*) MACHDEP="atheos";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1368 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1369 | esac |
| 1370 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1371 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1372 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 1373 | # disable features if it is defined, without any means to access these |
| 1374 | # features as extensions. For these systems, we skip the definition of |
| 1375 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 1376 | # some feature, make sure there is no alternative way to access this |
| 1377 | # feature. Also, when using wildcards, make sure you have verified the |
| 1378 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 1379 | # wildcard, and that the wildcard does not include future systems |
| 1380 | # (which may remove their limitations). |
| 1381 | case $ac_sys_system/$ac_sys_release in |
| 1382 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 1383 | # even though select is a POSIX function. Reported by J. Ribbens. |
| 1384 | OpenBSD/2.* | OpenBSD/3.[012]) |
| 1385 | define_xopen_source=no;; |
| 1386 | esac |
| 1387 | |
| 1388 | if test $define_xopen_source = yes |
| 1389 | then |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1390 | |
| 1391 | cat >>confdefs.h <<\_ACEOF |
| 1392 | #define _XOPEN_SOURCE 600 |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1393 | _ACEOF |
| 1394 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1395 | |
| 1396 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 1397 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 1398 | # several APIs are not declared. Since this is also needed in some |
| 1399 | # cases for HP-UX, we define it globally. |
| 1400 | |
| 1401 | |
| 1402 | cat >>confdefs.h <<\_ACEOF |
| 1403 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 1404 | _ACEOF |
| 1405 | |
| 1406 | |
| 1407 | cat >>confdefs.h <<\_ACEOF |
| 1408 | #define _POSIX_C_SOURCE 200112L |
| 1409 | _ACEOF |
| 1410 | |
| 1411 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1412 | fi |
| 1413 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1414 | # |
| 1415 | # SGI compilers allow the specification of the both the ABI and the |
| 1416 | # ISA on the command line. Depending on the values of these switches, |
| 1417 | # different and often incompatable code will be generated. |
| 1418 | # |
| 1419 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 1420 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 1421 | # variable is also adjusted. |
| 1422 | # |
| 1423 | |
| 1424 | if test ! -z "$SGI_ABI" |
| 1425 | then |
| 1426 | CC="cc $SGI_ABI" |
| 1427 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 1428 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 1429 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1430 | echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 1431 | echo "${ECHO_T}$MACHDEP" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1432 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1433 | # And add extra plat-mac for darwin |
| 1434 | |
| 1435 | echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5 |
| 1436 | echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6 |
| 1437 | if test -z "$EXTRAPLATDIR" |
| 1438 | then |
| 1439 | case $MACHDEP in |
| 1440 | darwin) EXTRAPLATDIR="\$(PLATMACDIRS)";; |
| 1441 | *) EXTRAPLATDIR="";; |
| 1442 | esac |
| 1443 | fi |
| 1444 | echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5 |
| 1445 | echo "${ECHO_T}$EXTRAPLATDIR" >&6 |
| 1446 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1447 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1448 | |
| 1449 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 1450 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 1451 | # just to get things to compile and link. Users are free to override OPT |
| 1452 | # when running configure or make. The build should not break if they do. |
| 1453 | # BASECFLAGS should generally not be messed with, however. |
| 1454 | |
| 1455 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 1456 | # on that fiddles with OPT and BASECFLAGS? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1457 | echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 1458 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6 |
| 1459 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1460 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1461 | if test "${with_gcc+set}" = set; then |
| 1462 | withval="$with_gcc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1463 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1464 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1465 | no) CC=cc |
| 1466 | without_gcc=yes;; |
| 1467 | yes) CC=gcc |
| 1468 | without_gcc=no;; |
| 1469 | *) CC=$withval |
| 1470 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1471 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1472 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1473 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1474 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1475 | AIX*) CC=cc_r |
| 1476 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1477 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1478 | case $BE_HOST_CPU in |
| 1479 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1480 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1481 | without_gcc=yes |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1482 | BASECFLAGS="$BASECFLAGS -export pragma" |
| 1483 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1484 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1485 | ;; |
| 1486 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1487 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1488 | without_gcc=no |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1489 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1490 | ;; |
| 1491 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1492 | { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| 1493 | echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;} |
| 1494 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1495 | ;; |
| 1496 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1497 | AR="\$(srcdir)/Modules/ar_beos" |
| 1498 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1499 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1500 | Monterey*) |
| 1501 | RANLIB=: |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1502 | without_gcc=;; |
| 1503 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1504 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1505 | fi; |
| 1506 | echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 1507 | echo "${ECHO_T}$without_gcc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1508 | |
| 1509 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1510 | |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1511 | MAINOBJ=python.o |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1512 | echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5 |
| 1513 | echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6 |
| 1514 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1515 | # Check whether --with-cxx or --without-cxx was given. |
| 1516 | if test "${with_cxx+set}" = set; then |
| 1517 | withval="$with_cxx" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1518 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1519 | check_cxx=no |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1520 | case $withval in |
| 1521 | no) CXX= |
| 1522 | with_cxx=no;; |
| 1523 | *) CXX=$withval |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1524 | MAINOBJ=ccpython.o |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1525 | with_cxx=$withval;; |
| 1526 | esac |
| 1527 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1528 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1529 | with_cxx=no |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1530 | check_cxx=yes |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1531 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1532 | fi; |
| 1533 | echo "$as_me:$LINENO: result: $with_cxx" >&5 |
| 1534 | echo "${ECHO_T}$with_cxx" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1535 | |
| 1536 | if test "$with_cxx" = "yes" |
| 1537 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1538 | { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5 |
| 1539 | echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;} |
| 1540 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1541 | fi |
| 1542 | |
| 1543 | |
| 1544 | |
| 1545 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1546 | if test "$check_cxx" = "yes" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1547 | then |
| 1548 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 1549 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1550 | # 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] | 1551 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1552 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1553 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1554 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 1555 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1556 | else |
| 1557 | if test -n "$CXX"; then |
| 1558 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 1559 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1560 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1561 | for as_dir in $PATH |
| 1562 | do |
| 1563 | IFS=$as_save_IFS |
| 1564 | test -z "$as_dir" && as_dir=. |
| 1565 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1566 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1567 | ac_cv_prog_CXX="$ac_prog" |
| 1568 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1569 | break 2 |
| 1570 | fi |
| 1571 | done |
| 1572 | done |
| 1573 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1574 | fi |
| 1575 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1576 | CXX=$ac_cv_prog_CXX |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1577 | if test -n "$CXX"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1578 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 1579 | echo "${ECHO_T}$CXX" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1580 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1581 | echo "$as_me:$LINENO: result: no" >&5 |
| 1582 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1583 | fi |
| 1584 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1585 | test -n "$CXX" && break |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1586 | done |
| 1587 | test -n "$CXX" || CXX="notfound" |
| 1588 | |
| 1589 | if test "$CXX" = "notfound" |
| 1590 | then |
| 1591 | CXX= |
| 1592 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1593 | ac_ext=cc |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1594 | ac_cpp='$CXXCPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1595 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1596 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1597 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 1598 | cat >conftest.$ac_ext <<_ACEOF |
| 1599 | #line $LINENO "configure" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1600 | #include "confdefs.h" |
| 1601 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1602 | int |
| 1603 | main () |
| 1604 | { |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1605 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1606 | ; |
| 1607 | return 0; |
| 1608 | } |
| 1609 | _ACEOF |
| 1610 | ac_clean_files_save=$ac_clean_files |
| 1611 | ac_clean_files="$ac_clean_files a.out a.exe" |
| 1612 | # Try to create an executable without -o first, disregard a.out. |
| 1613 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1614 | # of exeext. |
| 1615 | echo "$as_me:$LINENO: checking for C++ compiler default output" >&5 |
| 1616 | echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6 |
| 1617 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1618 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1619 | (eval $ac_link_default) 2>&5 |
| 1620 | ac_status=$? |
| 1621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1622 | (exit $ac_status); }; then |
| 1623 | # Find the output, starting from the most likely. This scheme is |
| 1624 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1625 | # resort. |
| 1626 | |
| 1627 | # Be careful to initialize this variable, since it used to be cached. |
| 1628 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1629 | ac_cv_exeext= |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1630 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do |
| 1631 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1632 | case $ac_file in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1633 | *.$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] | 1634 | a.out ) # We found the default executable, but exeext='' is most |
| 1635 | # certainly right. |
| 1636 | break;; |
| 1637 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1638 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| 1639 | export ac_cv_exeext |
| 1640 | break;; |
| 1641 | * ) break;; |
| 1642 | esac |
| 1643 | done |
| 1644 | else |
| 1645 | echo "$as_me: failed program was:" >&5 |
| 1646 | cat conftest.$ac_ext >&5 |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1647 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
| 1648 | check \`config.log' for details." >&5 |
| 1649 | echo "$as_me: error: C++ compiler cannot create executables |
| 1650 | check \`config.log' for details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1651 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1652 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1653 | |
| 1654 | ac_exeext=$ac_cv_exeext |
| 1655 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1656 | echo "${ECHO_T}$ac_file" >&6 |
| 1657 | |
| 1658 | # Check the compiler produces executables we can run. If not, either |
| 1659 | # the compiler is broken, or we cross compile. |
| 1660 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
| 1661 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
| 1662 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1663 | # If not cross compiling, check that we can run a simple program. |
| 1664 | if test "$cross_compiling" != yes; then |
| 1665 | if { ac_try='./$ac_file' |
| 1666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1667 | (eval $ac_try) 2>&5 |
| 1668 | ac_status=$? |
| 1669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1670 | (exit $ac_status); }; }; then |
| 1671 | cross_compiling=no |
| 1672 | else |
| 1673 | if test "$cross_compiling" = maybe; then |
| 1674 | cross_compiling=yes |
| 1675 | else |
| 1676 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
| 1677 | If you meant to cross compile, use \`--host'." >&5 |
| 1678 | echo "$as_me: error: cannot run C++ compiled programs. |
| 1679 | If you meant to cross compile, use \`--host'." >&2;} |
| 1680 | { (exit 1); exit 1; }; } |
| 1681 | fi |
| 1682 | fi |
| 1683 | fi |
| 1684 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1685 | echo "${ECHO_T}yes" >&6 |
| 1686 | |
| 1687 | rm -f a.out a.exe conftest$ac_cv_exeext |
| 1688 | ac_clean_files=$ac_clean_files_save |
| 1689 | # Check the compiler produces executables we can run. If not, either |
| 1690 | # the compiler is broken, or we cross compile. |
| 1691 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1692 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1693 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1694 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1695 | |
| 1696 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1697 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1698 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1699 | (eval $ac_link) 2>&5 |
| 1700 | ac_status=$? |
| 1701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1702 | (exit $ac_status); }; then |
| 1703 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1704 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1705 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1706 | # `rm'. |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1707 | for ac_file in conftest.exe conftest conftest.*; do |
| 1708 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1709 | case $ac_file in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1710 | *.$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] | 1711 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1712 | export ac_cv_exeext |
| 1713 | break;; |
| 1714 | * ) break;; |
| 1715 | esac |
| 1716 | done |
| 1717 | else |
| 1718 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
| 1719 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} |
| 1720 | { (exit 1); exit 1; }; } |
| 1721 | fi |
| 1722 | |
| 1723 | rm -f conftest$ac_cv_exeext |
| 1724 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1725 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1726 | |
| 1727 | rm -f conftest.$ac_ext |
| 1728 | EXEEXT=$ac_cv_exeext |
| 1729 | ac_exeext=$EXEEXT |
| 1730 | |
| 1731 | ac_ext=c |
| 1732 | ac_cpp='$CPP $CPPFLAGS' |
| 1733 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1734 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1735 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1736 | |
| 1737 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1738 | |
| 1739 | fi |
| 1740 | fi |
| 1741 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1742 | # If the user switches compilers, we can't believe the cache |
| 1743 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 1744 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1745 | { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file |
| 1746 | (it is also a good idea to do 'make clean' before compiling)" >&5 |
| 1747 | echo "$as_me: error: cached CC is different -- throw away $cache_file |
| 1748 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 1749 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1750 | fi |
| 1751 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1752 | ac_ext=c |
| 1753 | ac_cpp='$CPP $CPPFLAGS' |
| 1754 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1755 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1756 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1757 | if test -n "$ac_tool_prefix"; then |
| 1758 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1759 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1760 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1761 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1762 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1764 | else |
| 1765 | if test -n "$CC"; then |
| 1766 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1767 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1768 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1769 | for as_dir in $PATH |
| 1770 | do |
| 1771 | IFS=$as_save_IFS |
| 1772 | test -z "$as_dir" && as_dir=. |
| 1773 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1774 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1775 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1776 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1777 | break 2 |
| 1778 | fi |
| 1779 | done |
| 1780 | done |
| 1781 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1782 | fi |
| 1783 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1784 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1785 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1786 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1787 | echo "${ECHO_T}$CC" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1788 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1789 | echo "$as_me:$LINENO: result: no" >&5 |
| 1790 | echo "${ECHO_T}no" >&6 |
| 1791 | fi |
| 1792 | |
| 1793 | fi |
| 1794 | if test -z "$ac_cv_prog_CC"; then |
| 1795 | ac_ct_CC=$CC |
| 1796 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1797 | set dummy gcc; ac_word=$2 |
| 1798 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1799 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1800 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1802 | else |
| 1803 | if test -n "$ac_ct_CC"; then |
| 1804 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1805 | else |
| 1806 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1807 | for as_dir in $PATH |
| 1808 | do |
| 1809 | IFS=$as_save_IFS |
| 1810 | test -z "$as_dir" && as_dir=. |
| 1811 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1812 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1813 | ac_cv_prog_ac_ct_CC="gcc" |
| 1814 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1815 | break 2 |
| 1816 | fi |
| 1817 | done |
| 1818 | done |
| 1819 | |
| 1820 | fi |
| 1821 | fi |
| 1822 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1823 | if test -n "$ac_ct_CC"; then |
| 1824 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1825 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1826 | else |
| 1827 | echo "$as_me:$LINENO: result: no" >&5 |
| 1828 | echo "${ECHO_T}no" >&6 |
| 1829 | fi |
| 1830 | |
| 1831 | CC=$ac_ct_CC |
| 1832 | else |
| 1833 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1834 | fi |
| 1835 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1836 | if test -z "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1837 | if test -n "$ac_tool_prefix"; then |
| 1838 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1839 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1840 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1841 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1842 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1843 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1844 | else |
| 1845 | if test -n "$CC"; then |
| 1846 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1847 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1849 | for as_dir in $PATH |
| 1850 | do |
| 1851 | IFS=$as_save_IFS |
| 1852 | test -z "$as_dir" && as_dir=. |
| 1853 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1854 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1855 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1856 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1857 | break 2 |
| 1858 | fi |
| 1859 | done |
| 1860 | done |
| 1861 | |
| 1862 | fi |
| 1863 | fi |
| 1864 | CC=$ac_cv_prog_CC |
| 1865 | if test -n "$CC"; then |
| 1866 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1867 | echo "${ECHO_T}$CC" >&6 |
| 1868 | else |
| 1869 | echo "$as_me:$LINENO: result: no" >&5 |
| 1870 | echo "${ECHO_T}no" >&6 |
| 1871 | fi |
| 1872 | |
| 1873 | fi |
| 1874 | if test -z "$ac_cv_prog_CC"; then |
| 1875 | ac_ct_CC=$CC |
| 1876 | # Extract the first word of "cc", so it can be a program name with args. |
| 1877 | set dummy cc; ac_word=$2 |
| 1878 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1879 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1880 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1881 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1882 | else |
| 1883 | if test -n "$ac_ct_CC"; then |
| 1884 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1885 | else |
| 1886 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1887 | for as_dir in $PATH |
| 1888 | do |
| 1889 | IFS=$as_save_IFS |
| 1890 | test -z "$as_dir" && as_dir=. |
| 1891 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1892 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1893 | ac_cv_prog_ac_ct_CC="cc" |
| 1894 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1895 | break 2 |
| 1896 | fi |
| 1897 | done |
| 1898 | done |
| 1899 | |
| 1900 | fi |
| 1901 | fi |
| 1902 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1903 | if test -n "$ac_ct_CC"; then |
| 1904 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1905 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1906 | else |
| 1907 | echo "$as_me:$LINENO: result: no" >&5 |
| 1908 | echo "${ECHO_T}no" >&6 |
| 1909 | fi |
| 1910 | |
| 1911 | CC=$ac_ct_CC |
| 1912 | else |
| 1913 | CC="$ac_cv_prog_CC" |
| 1914 | fi |
| 1915 | |
| 1916 | fi |
| 1917 | if test -z "$CC"; then |
| 1918 | # Extract the first word of "cc", so it can be a program name with args. |
| 1919 | set dummy cc; ac_word=$2 |
| 1920 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1921 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1922 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1924 | else |
| 1925 | if test -n "$CC"; then |
| 1926 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1927 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1928 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1929 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1930 | for as_dir in $PATH |
| 1931 | do |
| 1932 | IFS=$as_save_IFS |
| 1933 | test -z "$as_dir" && as_dir=. |
| 1934 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1935 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1936 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1937 | ac_prog_rejected=yes |
| 1938 | continue |
| 1939 | fi |
| 1940 | ac_cv_prog_CC="cc" |
| 1941 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1942 | break 2 |
| 1943 | fi |
| 1944 | done |
| 1945 | done |
| 1946 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1947 | if test $ac_prog_rejected = yes; then |
| 1948 | # We found a bogon in the path, so make sure we never use it. |
| 1949 | set dummy $ac_cv_prog_CC |
| 1950 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1951 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1952 | # We chose a different compiler from the bogus one. |
| 1953 | # However, it has the same basename, so the bogon will be chosen |
| 1954 | # first if we set CC to just the basename; use the full file name. |
| 1955 | shift |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1956 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1957 | fi |
| 1958 | fi |
| 1959 | fi |
| 1960 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1961 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1962 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1963 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1964 | echo "${ECHO_T}$CC" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1965 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1966 | echo "$as_me:$LINENO: result: no" >&5 |
| 1967 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1968 | fi |
| 1969 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1970 | fi |
| 1971 | if test -z "$CC"; then |
| 1972 | if test -n "$ac_tool_prefix"; then |
| 1973 | for ac_prog in cl |
| 1974 | do |
| 1975 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1976 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1977 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1978 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1979 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1981 | else |
| 1982 | if test -n "$CC"; then |
| 1983 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1984 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1985 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1986 | for as_dir in $PATH |
| 1987 | do |
| 1988 | IFS=$as_save_IFS |
| 1989 | test -z "$as_dir" && as_dir=. |
| 1990 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1991 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1992 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1993 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1994 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1995 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1996 | done |
| 1997 | done |
| 1998 | |
| 1999 | fi |
| 2000 | fi |
| 2001 | CC=$ac_cv_prog_CC |
| 2002 | if test -n "$CC"; then |
| 2003 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2004 | echo "${ECHO_T}$CC" >&6 |
| 2005 | else |
| 2006 | echo "$as_me:$LINENO: result: no" >&5 |
| 2007 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2008 | fi |
| 2009 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2010 | test -n "$CC" && break |
| 2011 | done |
| 2012 | fi |
| 2013 | if test -z "$CC"; then |
| 2014 | ac_ct_CC=$CC |
| 2015 | for ac_prog in cl |
| 2016 | do |
| 2017 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2018 | set dummy $ac_prog; ac_word=$2 |
| 2019 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2020 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2021 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2023 | else |
| 2024 | if test -n "$ac_ct_CC"; then |
| 2025 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2026 | else |
| 2027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2028 | for as_dir in $PATH |
| 2029 | do |
| 2030 | IFS=$as_save_IFS |
| 2031 | test -z "$as_dir" && as_dir=. |
| 2032 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2033 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2034 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2035 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2036 | break 2 |
| 2037 | fi |
| 2038 | done |
| 2039 | done |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2040 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2041 | fi |
| 2042 | fi |
| 2043 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2044 | if test -n "$ac_ct_CC"; then |
| 2045 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2046 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2047 | else |
| 2048 | echo "$as_me:$LINENO: result: no" >&5 |
| 2049 | echo "${ECHO_T}no" >&6 |
| 2050 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2051 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2052 | test -n "$ac_ct_CC" && break |
| 2053 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2054 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2055 | CC=$ac_ct_CC |
| 2056 | fi |
| 2057 | |
| 2058 | fi |
| 2059 | |
| 2060 | |
| 2061 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 |
| 2062 | echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} |
| 2063 | { (exit 1); exit 1; }; } |
| 2064 | |
| 2065 | # Provide some information about the compiler. |
| 2066 | echo "$as_me:$LINENO:" \ |
| 2067 | "checking for C compiler version" >&5 |
| 2068 | ac_compiler=`set X $ac_compile; echo $2` |
| 2069 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2070 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2071 | ac_status=$? |
| 2072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2073 | (exit $ac_status); } |
| 2074 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2075 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2076 | ac_status=$? |
| 2077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2078 | (exit $ac_status); } |
| 2079 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2080 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2081 | ac_status=$? |
| 2082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2083 | (exit $ac_status); } |
| 2084 | |
| 2085 | cat >conftest.$ac_ext <<_ACEOF |
| 2086 | #line $LINENO "configure" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2087 | #include "confdefs.h" |
| 2088 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2089 | int |
| 2090 | main () |
| 2091 | { |
| 2092 | |
| 2093 | ; |
| 2094 | return 0; |
| 2095 | } |
| 2096 | _ACEOF |
| 2097 | ac_clean_files_save=$ac_clean_files |
| 2098 | ac_clean_files="$ac_clean_files a.out a.exe" |
| 2099 | # Try to create an executable without -o first, disregard a.out. |
| 2100 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2101 | # of exeext. |
| 2102 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
| 2103 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 2104 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2105 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2106 | (eval $ac_link_default) 2>&5 |
| 2107 | ac_status=$? |
| 2108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2109 | (exit $ac_status); }; then |
| 2110 | # Find the output, starting from the most likely. This scheme is |
| 2111 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2112 | # resort. |
| 2113 | |
| 2114 | # Be careful to initialize this variable, since it used to be cached. |
| 2115 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2116 | ac_cv_exeext= |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2117 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do |
| 2118 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2119 | case $ac_file in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2120 | *.$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] | 2121 | a.out ) # We found the default executable, but exeext='' is most |
| 2122 | # certainly right. |
| 2123 | break;; |
| 2124 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2125 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| 2126 | export ac_cv_exeext |
| 2127 | break;; |
| 2128 | * ) break;; |
| 2129 | esac |
| 2130 | done |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2131 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2132 | echo "$as_me: failed program was:" >&5 |
| 2133 | cat conftest.$ac_ext >&5 |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2134 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2135 | check \`config.log' for details." >&5 |
| 2136 | echo "$as_me: error: C compiler cannot create executables |
| 2137 | check \`config.log' for details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2138 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2139 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2140 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2141 | ac_exeext=$ac_cv_exeext |
| 2142 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2143 | echo "${ECHO_T}$ac_file" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2144 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2145 | # Check the compiler produces executables we can run. If not, either |
| 2146 | # the compiler is broken, or we cross compile. |
| 2147 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2148 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2149 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2150 | # If not cross compiling, check that we can run a simple program. |
| 2151 | if test "$cross_compiling" != yes; then |
| 2152 | if { ac_try='./$ac_file' |
| 2153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2154 | (eval $ac_try) 2>&5 |
| 2155 | ac_status=$? |
| 2156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2157 | (exit $ac_status); }; }; then |
| 2158 | cross_compiling=no |
| 2159 | else |
| 2160 | if test "$cross_compiling" = maybe; then |
| 2161 | cross_compiling=yes |
| 2162 | else |
| 2163 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2164 | If you meant to cross compile, use \`--host'." >&5 |
| 2165 | echo "$as_me: error: cannot run C compiled programs. |
| 2166 | If you meant to cross compile, use \`--host'." >&2;} |
| 2167 | { (exit 1); exit 1; }; } |
| 2168 | fi |
| 2169 | fi |
| 2170 | fi |
| 2171 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2172 | echo "${ECHO_T}yes" >&6 |
| 2173 | |
| 2174 | rm -f a.out a.exe conftest$ac_cv_exeext |
| 2175 | ac_clean_files=$ac_clean_files_save |
| 2176 | # Check the compiler produces executables we can run. If not, either |
| 2177 | # the compiler is broken, or we cross compile. |
| 2178 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2179 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2180 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2181 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2182 | |
| 2183 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2184 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2185 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2186 | (eval $ac_link) 2>&5 |
| 2187 | ac_status=$? |
| 2188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2189 | (exit $ac_status); }; then |
| 2190 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2191 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2192 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2193 | # `rm'. |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2194 | for ac_file in conftest.exe conftest conftest.*; do |
| 2195 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2196 | case $ac_file in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2197 | *.$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] | 2198 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2199 | export ac_cv_exeext |
| 2200 | break;; |
| 2201 | * ) break;; |
| 2202 | esac |
| 2203 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2204 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2205 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
| 2206 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} |
| 2207 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2208 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2209 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2210 | rm -f conftest$ac_cv_exeext |
| 2211 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2212 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2213 | |
| 2214 | rm -f conftest.$ac_ext |
| 2215 | EXEEXT=$ac_cv_exeext |
| 2216 | ac_exeext=$EXEEXT |
| 2217 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2218 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2219 | if test "${ac_cv_objext+set}" = set; then |
| 2220 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2221 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2222 | cat >conftest.$ac_ext <<_ACEOF |
| 2223 | #line $LINENO "configure" |
| 2224 | #include "confdefs.h" |
| 2225 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2226 | int |
| 2227 | main () |
| 2228 | { |
| 2229 | |
| 2230 | ; |
| 2231 | return 0; |
| 2232 | } |
| 2233 | _ACEOF |
| 2234 | rm -f conftest.o conftest.obj |
| 2235 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2236 | (eval $ac_compile) 2>&5 |
| 2237 | ac_status=$? |
| 2238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2239 | (exit $ac_status); }; then |
| 2240 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2241 | case $ac_file in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2242 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2243 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2244 | break;; |
| 2245 | esac |
| 2246 | done |
| 2247 | else |
| 2248 | echo "$as_me: failed program was:" >&5 |
| 2249 | cat conftest.$ac_ext >&5 |
| 2250 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 |
| 2251 | echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} |
| 2252 | { (exit 1); exit 1; }; } |
| 2253 | fi |
| 2254 | |
| 2255 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2256 | fi |
| 2257 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2258 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2259 | OBJEXT=$ac_cv_objext |
| 2260 | ac_objext=$OBJEXT |
| 2261 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2262 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2263 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2264 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2265 | else |
| 2266 | cat >conftest.$ac_ext <<_ACEOF |
| 2267 | #line $LINENO "configure" |
| 2268 | #include "confdefs.h" |
| 2269 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2270 | int |
| 2271 | main () |
| 2272 | { |
| 2273 | #ifndef __GNUC__ |
| 2274 | choke me |
| 2275 | #endif |
| 2276 | |
| 2277 | ; |
| 2278 | return 0; |
| 2279 | } |
| 2280 | _ACEOF |
| 2281 | rm -f conftest.$ac_objext |
| 2282 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2283 | (eval $ac_compile) 2>&5 |
| 2284 | ac_status=$? |
| 2285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2286 | (exit $ac_status); } && |
| 2287 | { ac_try='test -s conftest.$ac_objext' |
| 2288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2289 | (eval $ac_try) 2>&5 |
| 2290 | ac_status=$? |
| 2291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2292 | (exit $ac_status); }; }; then |
| 2293 | ac_compiler_gnu=yes |
| 2294 | else |
| 2295 | echo "$as_me: failed program was:" >&5 |
| 2296 | cat conftest.$ac_ext >&5 |
| 2297 | ac_compiler_gnu=no |
| 2298 | fi |
| 2299 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2300 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2301 | |
| 2302 | fi |
| 2303 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2304 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2305 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2306 | ac_test_CFLAGS=${CFLAGS+set} |
| 2307 | ac_save_CFLAGS=$CFLAGS |
| 2308 | CFLAGS="-g" |
| 2309 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2310 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2311 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2312 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2313 | else |
| 2314 | cat >conftest.$ac_ext <<_ACEOF |
| 2315 | #line $LINENO "configure" |
| 2316 | #include "confdefs.h" |
| 2317 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2318 | int |
| 2319 | main () |
| 2320 | { |
| 2321 | |
| 2322 | ; |
| 2323 | return 0; |
| 2324 | } |
| 2325 | _ACEOF |
| 2326 | rm -f conftest.$ac_objext |
| 2327 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2328 | (eval $ac_compile) 2>&5 |
| 2329 | ac_status=$? |
| 2330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2331 | (exit $ac_status); } && |
| 2332 | { ac_try='test -s conftest.$ac_objext' |
| 2333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2334 | (eval $ac_try) 2>&5 |
| 2335 | ac_status=$? |
| 2336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2337 | (exit $ac_status); }; }; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2338 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2339 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2340 | echo "$as_me: failed program was:" >&5 |
| 2341 | cat conftest.$ac_ext >&5 |
| 2342 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2343 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2344 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2345 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2346 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2347 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2348 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2349 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2350 | elif test $ac_cv_prog_cc_g = yes; then |
| 2351 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2352 | CFLAGS="-g -O2" |
| 2353 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2354 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2355 | fi |
| 2356 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2357 | if test "$GCC" = yes; then |
| 2358 | CFLAGS="-O2" |
| 2359 | else |
| 2360 | CFLAGS= |
| 2361 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2362 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2363 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2364 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2365 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2366 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2367 | else |
| 2368 | ac_cv_prog_cc_stdc=no |
| 2369 | ac_save_CC=$CC |
| 2370 | cat >conftest.$ac_ext <<_ACEOF |
| 2371 | #line $LINENO "configure" |
| 2372 | #include "confdefs.h" |
| 2373 | #include <stdarg.h> |
| 2374 | #include <stdio.h> |
| 2375 | #include <sys/types.h> |
| 2376 | #include <sys/stat.h> |
| 2377 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2378 | struct buf { int x; }; |
| 2379 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2380 | static char *e (p, i) |
| 2381 | char **p; |
| 2382 | int i; |
| 2383 | { |
| 2384 | return p[i]; |
| 2385 | } |
| 2386 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2387 | { |
| 2388 | char *s; |
| 2389 | va_list v; |
| 2390 | va_start (v,p); |
| 2391 | s = g (p, va_arg (v,int)); |
| 2392 | va_end (v); |
| 2393 | return s; |
| 2394 | } |
| 2395 | int test (int i, double x); |
| 2396 | struct s1 {int (*f) (int a);}; |
| 2397 | struct s2 {int (*f) (double a);}; |
| 2398 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2399 | int argc; |
| 2400 | char **argv; |
| 2401 | int |
| 2402 | main () |
| 2403 | { |
| 2404 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2405 | ; |
| 2406 | return 0; |
| 2407 | } |
| 2408 | _ACEOF |
| 2409 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2410 | # breaks some systems' header files. |
| 2411 | # AIX -qlanglvl=ansi |
| 2412 | # Ultrix and OSF/1 -std1 |
| 2413 | # HP-UX 10.20 and later -Ae |
| 2414 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2415 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2416 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2417 | do |
| 2418 | CC="$ac_save_CC $ac_arg" |
| 2419 | rm -f conftest.$ac_objext |
| 2420 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2421 | (eval $ac_compile) 2>&5 |
| 2422 | ac_status=$? |
| 2423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2424 | (exit $ac_status); } && |
| 2425 | { ac_try='test -s conftest.$ac_objext' |
| 2426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2427 | (eval $ac_try) 2>&5 |
| 2428 | ac_status=$? |
| 2429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2430 | (exit $ac_status); }; }; then |
| 2431 | ac_cv_prog_cc_stdc=$ac_arg |
| 2432 | break |
| 2433 | else |
| 2434 | echo "$as_me: failed program was:" >&5 |
| 2435 | cat conftest.$ac_ext >&5 |
| 2436 | fi |
| 2437 | rm -f conftest.$ac_objext |
| 2438 | done |
| 2439 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2440 | CC=$ac_save_CC |
| 2441 | |
| 2442 | fi |
| 2443 | |
| 2444 | case "x$ac_cv_prog_cc_stdc" in |
| 2445 | x|xno) |
| 2446 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2447 | echo "${ECHO_T}none needed" >&6 ;; |
| 2448 | *) |
| 2449 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2450 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2451 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2452 | esac |
| 2453 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2454 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2455 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2456 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2457 | # the declaration of exit, since it's the most demanding environment. |
| 2458 | cat >conftest.$ac_ext <<_ACEOF |
| 2459 | #ifndef __cplusplus |
| 2460 | choke me |
| 2461 | #endif |
| 2462 | _ACEOF |
| 2463 | rm -f conftest.$ac_objext |
| 2464 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2465 | (eval $ac_compile) 2>&5 |
| 2466 | ac_status=$? |
| 2467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2468 | (exit $ac_status); } && |
| 2469 | { ac_try='test -s conftest.$ac_objext' |
| 2470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2471 | (eval $ac_try) 2>&5 |
| 2472 | ac_status=$? |
| 2473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2474 | (exit $ac_status); }; }; then |
| 2475 | for ac_declaration in \ |
| 2476 | ''\ |
| 2477 | '#include <stdlib.h>' \ |
| 2478 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2479 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2480 | 'extern "C" void exit (int) throw ();' \ |
| 2481 | 'extern "C" void exit (int);' \ |
| 2482 | 'void exit (int);' |
| 2483 | do |
| 2484 | cat >conftest.$ac_ext <<_ACEOF |
| 2485 | #line $LINENO "configure" |
| 2486 | #include "confdefs.h" |
| 2487 | #include <stdlib.h> |
| 2488 | $ac_declaration |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2489 | int |
| 2490 | main () |
| 2491 | { |
| 2492 | exit (42); |
| 2493 | ; |
| 2494 | return 0; |
| 2495 | } |
| 2496 | _ACEOF |
| 2497 | rm -f conftest.$ac_objext |
| 2498 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2499 | (eval $ac_compile) 2>&5 |
| 2500 | ac_status=$? |
| 2501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2502 | (exit $ac_status); } && |
| 2503 | { ac_try='test -s conftest.$ac_objext' |
| 2504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2505 | (eval $ac_try) 2>&5 |
| 2506 | ac_status=$? |
| 2507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2508 | (exit $ac_status); }; }; then |
| 2509 | : |
| 2510 | else |
| 2511 | echo "$as_me: failed program was:" >&5 |
| 2512 | cat conftest.$ac_ext >&5 |
| 2513 | continue |
| 2514 | fi |
| 2515 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2516 | cat >conftest.$ac_ext <<_ACEOF |
| 2517 | #line $LINENO "configure" |
| 2518 | #include "confdefs.h" |
| 2519 | $ac_declaration |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2520 | int |
| 2521 | main () |
| 2522 | { |
| 2523 | exit (42); |
| 2524 | ; |
| 2525 | return 0; |
| 2526 | } |
| 2527 | _ACEOF |
| 2528 | rm -f conftest.$ac_objext |
| 2529 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2530 | (eval $ac_compile) 2>&5 |
| 2531 | ac_status=$? |
| 2532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2533 | (exit $ac_status); } && |
| 2534 | { ac_try='test -s conftest.$ac_objext' |
| 2535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2536 | (eval $ac_try) 2>&5 |
| 2537 | ac_status=$? |
| 2538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2539 | (exit $ac_status); }; }; then |
| 2540 | break |
| 2541 | else |
| 2542 | echo "$as_me: failed program was:" >&5 |
| 2543 | cat conftest.$ac_ext >&5 |
| 2544 | fi |
| 2545 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2546 | done |
| 2547 | rm -f conftest* |
| 2548 | if test -n "$ac_declaration"; then |
| 2549 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2550 | echo $ac_declaration >>confdefs.h |
| 2551 | echo '#endif' >>confdefs.h |
| 2552 | fi |
| 2553 | |
| 2554 | else |
| 2555 | echo "$as_me: failed program was:" >&5 |
| 2556 | cat conftest.$ac_ext >&5 |
| 2557 | fi |
| 2558 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2559 | ac_ext=c |
| 2560 | ac_cpp='$CPP $CPPFLAGS' |
| 2561 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2562 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2563 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2564 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2565 | |
| 2566 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2567 | |
| 2568 | ac_ext=c |
| 2569 | ac_cpp='$CPP $CPPFLAGS' |
| 2570 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2571 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2572 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2573 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2574 | 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] | 2575 | # On Suns, sometimes $CPP names a directory. |
| 2576 | if test -n "$CPP" && test -d "$CPP"; then |
| 2577 | CPP= |
| 2578 | fi |
| 2579 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2580 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2581 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2582 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2583 | # Double quotes because CPP needs to be expanded |
| 2584 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2585 | do |
| 2586 | ac_preproc_ok=false |
| 2587 | for ac_c_preproc_warn_flag in '' yes |
| 2588 | do |
| 2589 | # Use a header file that comes with gcc, so configuring glibc |
| 2590 | # with a fresh cross-compiler works. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2591 | # 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] | 2592 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2593 | cat >conftest.$ac_ext <<_ACEOF |
| 2594 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2595 | #include "confdefs.h" |
| 2596 | #include <assert.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2597 | Syntax error |
| 2598 | _ACEOF |
| 2599 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2600 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2601 | ac_status=$? |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2602 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2603 | rm -f conftest.er1 |
| 2604 | cat conftest.err >&5 |
| 2605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2606 | (exit $ac_status); } >/dev/null; then |
| 2607 | if test -s conftest.err; then |
| 2608 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2609 | else |
| 2610 | ac_cpp_err= |
| 2611 | fi |
| 2612 | else |
| 2613 | ac_cpp_err=yes |
| 2614 | fi |
| 2615 | if test -z "$ac_cpp_err"; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2616 | : |
| 2617 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2618 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2619 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2620 | # Broken: fails on valid input. |
| 2621 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2622 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2623 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2624 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2625 | # OK, works on sane cases. Now check whether non-existent headers |
| 2626 | # can be detected and how. |
| 2627 | cat >conftest.$ac_ext <<_ACEOF |
| 2628 | #line $LINENO "configure" |
| 2629 | #include "confdefs.h" |
| 2630 | #include <ac_nonexistent.h> |
| 2631 | _ACEOF |
| 2632 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2633 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2634 | ac_status=$? |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2635 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2636 | rm -f conftest.er1 |
| 2637 | cat conftest.err >&5 |
| 2638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2639 | (exit $ac_status); } >/dev/null; then |
| 2640 | if test -s conftest.err; then |
| 2641 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2642 | else |
| 2643 | ac_cpp_err= |
| 2644 | fi |
| 2645 | else |
| 2646 | ac_cpp_err=yes |
| 2647 | fi |
| 2648 | if test -z "$ac_cpp_err"; then |
| 2649 | # Broken: success on invalid input. |
| 2650 | continue |
| 2651 | else |
| 2652 | echo "$as_me: failed program was:" >&5 |
| 2653 | cat conftest.$ac_ext >&5 |
| 2654 | # Passes both tests. |
| 2655 | ac_preproc_ok=: |
| 2656 | break |
| 2657 | fi |
| 2658 | rm -f conftest.err conftest.$ac_ext |
| 2659 | |
| 2660 | done |
| 2661 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2662 | rm -f conftest.err conftest.$ac_ext |
| 2663 | if $ac_preproc_ok; then |
| 2664 | break |
| 2665 | fi |
| 2666 | |
| 2667 | done |
| 2668 | ac_cv_prog_CPP=$CPP |
| 2669 | |
| 2670 | fi |
| 2671 | CPP=$ac_cv_prog_CPP |
| 2672 | else |
| 2673 | ac_cv_prog_CPP=$CPP |
| 2674 | fi |
| 2675 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2676 | echo "${ECHO_T}$CPP" >&6 |
| 2677 | ac_preproc_ok=false |
| 2678 | for ac_c_preproc_warn_flag in '' yes |
| 2679 | do |
| 2680 | # Use a header file that comes with gcc, so configuring glibc |
| 2681 | # with a fresh cross-compiler works. |
| 2682 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2683 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2684 | cat >conftest.$ac_ext <<_ACEOF |
| 2685 | #line $LINENO "configure" |
| 2686 | #include "confdefs.h" |
| 2687 | #include <assert.h> |
| 2688 | Syntax error |
| 2689 | _ACEOF |
| 2690 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2691 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2692 | ac_status=$? |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2693 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2694 | rm -f conftest.er1 |
| 2695 | cat conftest.err >&5 |
| 2696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2697 | (exit $ac_status); } >/dev/null; then |
| 2698 | if test -s conftest.err; then |
| 2699 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2700 | else |
| 2701 | ac_cpp_err= |
| 2702 | fi |
| 2703 | else |
| 2704 | ac_cpp_err=yes |
| 2705 | fi |
| 2706 | if test -z "$ac_cpp_err"; then |
| 2707 | : |
| 2708 | else |
| 2709 | echo "$as_me: failed program was:" >&5 |
| 2710 | cat conftest.$ac_ext >&5 |
| 2711 | # Broken: fails on valid input. |
| 2712 | continue |
| 2713 | fi |
| 2714 | rm -f conftest.err conftest.$ac_ext |
| 2715 | |
| 2716 | # OK, works on sane cases. Now check whether non-existent headers |
| 2717 | # can be detected and how. |
| 2718 | cat >conftest.$ac_ext <<_ACEOF |
| 2719 | #line $LINENO "configure" |
| 2720 | #include "confdefs.h" |
| 2721 | #include <ac_nonexistent.h> |
| 2722 | _ACEOF |
| 2723 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2724 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2725 | ac_status=$? |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2726 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2727 | rm -f conftest.er1 |
| 2728 | cat conftest.err >&5 |
| 2729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2730 | (exit $ac_status); } >/dev/null; then |
| 2731 | if test -s conftest.err; then |
| 2732 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2733 | else |
| 2734 | ac_cpp_err= |
| 2735 | fi |
| 2736 | else |
| 2737 | ac_cpp_err=yes |
| 2738 | fi |
| 2739 | if test -z "$ac_cpp_err"; then |
| 2740 | # Broken: success on invalid input. |
| 2741 | continue |
| 2742 | else |
| 2743 | echo "$as_me: failed program was:" >&5 |
| 2744 | cat conftest.$ac_ext >&5 |
| 2745 | # Passes both tests. |
| 2746 | ac_preproc_ok=: |
| 2747 | break |
| 2748 | fi |
| 2749 | rm -f conftest.err conftest.$ac_ext |
| 2750 | |
| 2751 | done |
| 2752 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2753 | rm -f conftest.err conftest.$ac_ext |
| 2754 | if $ac_preproc_ok; then |
| 2755 | : |
| 2756 | else |
| 2757 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
| 2758 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
| 2759 | { (exit 1); exit 1; }; } |
| 2760 | fi |
| 2761 | |
| 2762 | ac_ext=c |
| 2763 | ac_cpp='$CPP $CPPFLAGS' |
| 2764 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2765 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2766 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2767 | |
| 2768 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2769 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 2770 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 2771 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 2772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2773 | else |
| 2774 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 2775 | then ac_cv_prog_egrep='grep -E' |
| 2776 | else ac_cv_prog_egrep='egrep' |
| 2777 | fi |
| 2778 | fi |
| 2779 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 2780 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 2781 | EGREP=$ac_cv_prog_egrep |
| 2782 | |
| 2783 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2784 | |
| 2785 | echo "$as_me:$LINENO: checking for AIX" >&5 |
| 2786 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
| 2787 | cat >conftest.$ac_ext <<_ACEOF |
| 2788 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2789 | #include "confdefs.h" |
| 2790 | #ifdef _AIX |
| 2791 | yes |
| 2792 | #endif |
| 2793 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2794 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2795 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2796 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2797 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2798 | echo "${ECHO_T}yes" >&6 |
| 2799 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2800 | #define _ALL_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2801 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2802 | |
| 2803 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2804 | echo "$as_me:$LINENO: result: no" >&5 |
| 2805 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2806 | fi |
| 2807 | rm -f conftest* |
| 2808 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2809 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2810 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 2811 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 2812 | if test "${ac_cv_header_stdc+set}" = set; then |
| 2813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2814 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2815 | cat >conftest.$ac_ext <<_ACEOF |
| 2816 | #line $LINENO "configure" |
| 2817 | #include "confdefs.h" |
| 2818 | #include <stdlib.h> |
| 2819 | #include <stdarg.h> |
| 2820 | #include <string.h> |
| 2821 | #include <float.h> |
| 2822 | |
| 2823 | _ACEOF |
| 2824 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2825 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2826 | ac_status=$? |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2827 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2828 | rm -f conftest.er1 |
| 2829 | cat conftest.err >&5 |
| 2830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2831 | (exit $ac_status); } >/dev/null; then |
| 2832 | if test -s conftest.err; then |
| 2833 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2834 | else |
| 2835 | ac_cpp_err= |
| 2836 | fi |
| 2837 | else |
| 2838 | ac_cpp_err=yes |
| 2839 | fi |
| 2840 | if test -z "$ac_cpp_err"; then |
| 2841 | ac_cv_header_stdc=yes |
| 2842 | else |
| 2843 | echo "$as_me: failed program was:" >&5 |
| 2844 | cat conftest.$ac_ext >&5 |
| 2845 | ac_cv_header_stdc=no |
| 2846 | fi |
| 2847 | rm -f conftest.err conftest.$ac_ext |
| 2848 | |
| 2849 | if test $ac_cv_header_stdc = yes; then |
| 2850 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 2851 | cat >conftest.$ac_ext <<_ACEOF |
| 2852 | #line $LINENO "configure" |
| 2853 | #include "confdefs.h" |
| 2854 | #include <string.h> |
| 2855 | |
| 2856 | _ACEOF |
| 2857 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2858 | $EGREP "memchr" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2859 | : |
| 2860 | else |
| 2861 | ac_cv_header_stdc=no |
| 2862 | fi |
| 2863 | rm -f conftest* |
| 2864 | |
| 2865 | fi |
| 2866 | |
| 2867 | if test $ac_cv_header_stdc = yes; then |
| 2868 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 2869 | cat >conftest.$ac_ext <<_ACEOF |
| 2870 | #line $LINENO "configure" |
| 2871 | #include "confdefs.h" |
| 2872 | #include <stdlib.h> |
| 2873 | |
| 2874 | _ACEOF |
| 2875 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2876 | $EGREP "free" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2877 | : |
| 2878 | else |
| 2879 | ac_cv_header_stdc=no |
| 2880 | fi |
| 2881 | rm -f conftest* |
| 2882 | |
| 2883 | fi |
| 2884 | |
| 2885 | if test $ac_cv_header_stdc = yes; then |
| 2886 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 2887 | if test "$cross_compiling" = yes; then |
| 2888 | : |
| 2889 | else |
| 2890 | cat >conftest.$ac_ext <<_ACEOF |
| 2891 | #line $LINENO "configure" |
| 2892 | #include "confdefs.h" |
| 2893 | #include <ctype.h> |
| 2894 | #if ((' ' & 0x0FF) == 0x020) |
| 2895 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 2896 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 2897 | #else |
| 2898 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 2899 | || ('j' <= (c) && (c) <= 'r') \ |
| 2900 | || ('s' <= (c) && (c) <= 'z')) |
| 2901 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 2902 | #endif |
| 2903 | |
| 2904 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 2905 | int |
| 2906 | main () |
| 2907 | { |
| 2908 | int i; |
| 2909 | for (i = 0; i < 256; i++) |
| 2910 | if (XOR (islower (i), ISLOWER (i)) |
| 2911 | || toupper (i) != TOUPPER (i)) |
| 2912 | exit(2); |
| 2913 | exit (0); |
| 2914 | } |
| 2915 | _ACEOF |
| 2916 | rm -f conftest$ac_exeext |
| 2917 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2918 | (eval $ac_link) 2>&5 |
| 2919 | ac_status=$? |
| 2920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2921 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 2922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2923 | (eval $ac_try) 2>&5 |
| 2924 | ac_status=$? |
| 2925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2926 | (exit $ac_status); }; }; then |
| 2927 | : |
| 2928 | else |
| 2929 | echo "$as_me: program exited with status $ac_status" >&5 |
| 2930 | echo "$as_me: failed program was:" >&5 |
| 2931 | cat conftest.$ac_ext >&5 |
| 2932 | ( exit $ac_status ) |
| 2933 | ac_cv_header_stdc=no |
| 2934 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2935 | 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] | 2936 | fi |
| 2937 | fi |
| 2938 | fi |
| 2939 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 2940 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 2941 | if test $ac_cv_header_stdc = yes; then |
| 2942 | |
| 2943 | cat >>confdefs.h <<\_ACEOF |
| 2944 | #define STDC_HEADERS 1 |
| 2945 | _ACEOF |
| 2946 | |
| 2947 | fi |
| 2948 | |
| 2949 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 2950 | |
| 2951 | |
| 2952 | |
| 2953 | |
| 2954 | |
| 2955 | |
| 2956 | |
| 2957 | |
| 2958 | |
| 2959 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 2960 | inttypes.h stdint.h unistd.h |
| 2961 | do |
| 2962 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 2963 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 2964 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 2965 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 2966 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2967 | else |
| 2968 | cat >conftest.$ac_ext <<_ACEOF |
| 2969 | #line $LINENO "configure" |
| 2970 | #include "confdefs.h" |
| 2971 | $ac_includes_default |
| 2972 | |
| 2973 | #include <$ac_header> |
| 2974 | _ACEOF |
| 2975 | rm -f conftest.$ac_objext |
| 2976 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2977 | (eval $ac_compile) 2>&5 |
| 2978 | ac_status=$? |
| 2979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2980 | (exit $ac_status); } && |
| 2981 | { ac_try='test -s conftest.$ac_objext' |
| 2982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2983 | (eval $ac_try) 2>&5 |
| 2984 | ac_status=$? |
| 2985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2986 | (exit $ac_status); }; }; then |
| 2987 | eval "$as_ac_Header=yes" |
| 2988 | else |
| 2989 | echo "$as_me: failed program was:" >&5 |
| 2990 | cat conftest.$ac_ext >&5 |
| 2991 | eval "$as_ac_Header=no" |
| 2992 | fi |
| 2993 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2994 | fi |
| 2995 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 2996 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 2997 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 2998 | cat >>confdefs.h <<_ACEOF |
| 2999 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3000 | _ACEOF |
| 3001 | |
| 3002 | fi |
| 3003 | |
| 3004 | done |
| 3005 | |
| 3006 | |
| 3007 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 3008 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 3009 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 3010 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 3011 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3012 | fi |
| 3013 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 3014 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 3015 | else |
| 3016 | # Is the header compilable? |
| 3017 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5 |
| 3018 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 |
| 3019 | cat >conftest.$ac_ext <<_ACEOF |
| 3020 | #line $LINENO "configure" |
| 3021 | #include "confdefs.h" |
| 3022 | $ac_includes_default |
| 3023 | #include <minix/config.h> |
| 3024 | _ACEOF |
| 3025 | rm -f conftest.$ac_objext |
| 3026 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3027 | (eval $ac_compile) 2>&5 |
| 3028 | ac_status=$? |
| 3029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3030 | (exit $ac_status); } && |
| 3031 | { ac_try='test -s conftest.$ac_objext' |
| 3032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3033 | (eval $ac_try) 2>&5 |
| 3034 | ac_status=$? |
| 3035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3036 | (exit $ac_status); }; }; then |
| 3037 | ac_header_compiler=yes |
| 3038 | else |
| 3039 | echo "$as_me: failed program was:" >&5 |
| 3040 | cat conftest.$ac_ext >&5 |
| 3041 | ac_header_compiler=no |
| 3042 | fi |
| 3043 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3044 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3045 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3046 | |
| 3047 | # Is the header present? |
| 3048 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5 |
| 3049 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 |
| 3050 | cat >conftest.$ac_ext <<_ACEOF |
| 3051 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3052 | #include "confdefs.h" |
| 3053 | #include <minix/config.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3054 | _ACEOF |
| 3055 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3056 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3057 | ac_status=$? |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3058 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3059 | rm -f conftest.er1 |
| 3060 | cat conftest.err >&5 |
| 3061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3062 | (exit $ac_status); } >/dev/null; then |
| 3063 | if test -s conftest.err; then |
| 3064 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3065 | else |
| 3066 | ac_cpp_err= |
| 3067 | fi |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3068 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3069 | ac_cpp_err=yes |
| 3070 | fi |
| 3071 | if test -z "$ac_cpp_err"; then |
| 3072 | ac_header_preproc=yes |
| 3073 | else |
| 3074 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3075 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3076 | ac_header_preproc=no |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3077 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3078 | rm -f conftest.err conftest.$ac_ext |
| 3079 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3080 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3081 | |
| 3082 | # So? What about this header? |
| 3083 | case $ac_header_compiler:$ac_header_preproc in |
| 3084 | yes:no ) |
| 3085 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3086 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3087 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
| 3088 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};; |
| 3089 | no:yes ) |
| 3090 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 |
| 3091 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} |
| 3092 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 |
| 3093 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} |
| 3094 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
| 3095 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};; |
| 3096 | esac |
| 3097 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 3098 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 3099 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 3100 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3101 | else |
| 3102 | ac_cv_header_minix_config_h=$ac_header_preproc |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3103 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3104 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 3105 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 3106 | |
| 3107 | fi |
| 3108 | if test $ac_cv_header_minix_config_h = yes; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3109 | MINIX=yes |
| 3110 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3111 | MINIX= |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3112 | fi |
| 3113 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3114 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3115 | if test "$MINIX" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3116 | |
| 3117 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3118 | #define _POSIX_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3119 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3120 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3121 | |
| 3122 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3123 | #define _POSIX_1_SOURCE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3124 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3125 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3126 | |
| 3127 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3128 | #define _MINIX 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3129 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3130 | |
| 3131 | fi |
| 3132 | |
| 3133 | |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 3134 | # Check for unsupported systems |
| 3135 | case $ac_sys_system/$ac_sys_release in |
| 3136 | SunOS/4*|DYNIX/*|dgux*/*|IRIX/4*|Linux*/1*) |
| 3137 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 3138 | echo See README for details. |
| 3139 | exit 1;; |
| 3140 | esac |
| 3141 | |
| 3142 | if test "$MINIX" = yes; then |
| 3143 | echo This system \(MINIX\) is no longer supported. |
| 3144 | echo Read README for details. |
| 3145 | exit 1 |
| 3146 | fi |
| 3147 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3148 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3149 | echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 3150 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3151 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3152 | # Check whether --with-suffix or --without-suffix was given. |
| 3153 | if test "${with_suffix+set}" = set; then |
| 3154 | withval="$with_suffix" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3155 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3156 | case $withval in |
| 3157 | no) EXEEXT=;; |
| 3158 | yes) EXEEXT=.exe;; |
| 3159 | *) EXEEXT=$withval;; |
| 3160 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3161 | fi; |
| 3162 | echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 3163 | echo "${ECHO_T}$EXEEXT" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3164 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3165 | # Test whether we're running on a non-case-sensitive system, in which |
| 3166 | # case we give a warning if no ext is given |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3167 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3168 | echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 3169 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6 |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3170 | if test ! -d CaseSensitiveTestDir; then |
| 3171 | mkdir CaseSensitiveTestDir |
| 3172 | fi |
| 3173 | |
| 3174 | if test -d casesensitivetestdir |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3175 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3176 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3177 | echo "${ECHO_T}yes" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3178 | BUILDEXEEXT=.exe |
| 3179 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3180 | echo "$as_me:$LINENO: result: no" >&5 |
| 3181 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3182 | BUILDEXEEXT=$EXEEXT |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3183 | fi |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3184 | rmdir CaseSensitiveTestDir |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 3185 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 3186 | case $MACHDEP in |
| 3187 | bsdos*) |
| 3188 | case $CC in |
| 3189 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 3190 | esac;; |
| 3191 | esac |
| 3192 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3193 | case $ac_sys_system in |
| 3194 | hp*|HP*) |
| 3195 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 3196 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3197 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3198 | Monterey*) |
| 3199 | case $CC in |
| 3200 | cc) CC="$CC -Wl,-Bexport";; |
| 3201 | esac;; |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3202 | SunOS*) |
| 3203 | # 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] | 3204 | |
| 3205 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3206 | #define __EXTENSIONS__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3207 | _ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3208 | |
| 3209 | ;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3210 | esac |
| 3211 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3212 | |
| 3213 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3214 | echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 3215 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3216 | if test -z "$LIBRARY" |
| 3217 | then |
| 3218 | LIBRARY='libpython$(VERSION).a' |
| 3219 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3220 | echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 3221 | echo "${ECHO_T}$LIBRARY" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3222 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3223 | # 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] | 3224 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3225 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3226 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3227 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3228 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3229 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3230 | # DLLLIBRARY is the shared (i.e., DLL) library. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3231 | # |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3232 | # RUNSHARED is used to run shared python without installed libraries |
| 3233 | # |
| 3234 | # INSTSONAME is the name of the shared library that will be use to install |
| 3235 | # on the system - some systems like version suffix, others don't |
| 3236 | |
| 3237 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3238 | |
| 3239 | |
| 3240 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3241 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3242 | LDLIBRARY="$LIBRARY" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3243 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 09bdf72 | 2002-05-08 08:51:29 +0000 | [diff] [blame] | 3244 | INSTSONAME='$(LDLIBRARY)' |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 3245 | DLLLIBRARY='' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3246 | LDLIBRARYDIR='' |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3247 | RUNSHARED='' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3248 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3249 | # 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] | 3250 | # If CXX is set, and if it is needed to link a main function that was |
| 3251 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 3252 | # python might then depend on the C++ runtime |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3253 | # 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] | 3254 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3255 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3256 | echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 3257 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3258 | if test -z "$LINKCC" |
| 3259 | then |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 3260 | if test -z "$CXX"; then |
| 3261 | LINKCC="\$(PURIFY) \$(CC)" |
| 3262 | else |
Martin v. Löwis | 1931ca7 | 2002-06-01 21:39:58 +0000 | [diff] [blame] | 3263 | 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] | 3264 | $CXX -c conftest.$ac_ext 2>&5 |
| 3265 | if $CC -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 3266 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 3267 | then |
| 3268 | LINKCC="\$(PURIFY) \$(CC)" |
| 3269 | else |
| 3270 | LINKCC="\$(PURIFY) \$(CXX)" |
| 3271 | fi |
| 3272 | rm -fr conftest* |
| 3273 | fi |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3274 | case $ac_sys_system in |
| 3275 | AIX*) |
Jack Jansen | 524a098 | 2002-03-12 15:25:52 +0000 | [diff] [blame] | 3276 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp \"\" \$(LIBRARY); $LINKCC";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 3277 | dgux*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3278 | LINKCC="LD_RUN_PATH=$libdir $LINKCC";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3279 | Monterey64*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3280 | LINKCC="$LINKCC -L/usr/lib/ia64l64";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3281 | esac |
| 3282 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3283 | echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 3284 | echo "${ECHO_T}$LINKCC" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3285 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3286 | echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 3287 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3288 | # Check whether --enable-shared or --disable-shared was given. |
| 3289 | if test "${enable_shared+set}" = set; then |
| 3290 | enableval="$enable_shared" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3291 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3292 | fi; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3293 | |
| 3294 | if test -z "$enable_shared" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3295 | then |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3296 | case $ac_sys_system in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3297 | CYGWIN* | atheos*) |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3298 | enable_shared="yes";; |
| 3299 | *) |
| 3300 | enable_shared="no";; |
| 3301 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3302 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3303 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 3304 | echo "${ECHO_T}$enable_shared" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3305 | |
| 3306 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3307 | echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 3308 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3309 | |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 3310 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 3311 | # library that we build, but we do not want to link against it (we |
| 3312 | # will find it with a -framework option). For this reason there is an |
| 3313 | # extra variable BLDLIBRARY against which Python and the extension |
| 3314 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 3315 | # LDLIBRARY, but empty for MacOSX framework builds. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3316 | if test "$enable_framework" |
| 3317 | then |
| 3318 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 3319 | LDLIBRARYDIR='$(PYTHONFRAMEWORKDIR)' |
| 3320 | BLDLIBRARY='' |
| 3321 | else |
| 3322 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3323 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3324 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3325 | # Other platforms follow |
| 3326 | if test $enable_shared = "yes"; then |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 3327 | |
| 3328 | cat >>confdefs.h <<\_ACEOF |
| 3329 | #define Py_ENABLE_SHARED 1 |
| 3330 | _ACEOF |
| 3331 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3332 | case $ac_sys_system in |
| 3333 | BeOS*) |
| 3334 | LDLIBRARY='libpython$(VERSION).so' |
| 3335 | ;; |
| 3336 | CYGWIN*) |
| 3337 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3338 | DLLLIBRARY='libpython$(VERSION).dll' |
| 3339 | ;; |
| 3340 | SunOS*) |
| 3341 | LDLIBRARY='libpython$(VERSION).so' |
| 3342 | BLDLIBRARY='-Wl,-rpath,$(LIBDIR) -L. -lpython$(VERSION)' |
| 3343 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3344 | ;; |
Martin v. Löwis | 1bc894b | 2002-07-30 20:19:58 +0000 | [diff] [blame] | 3345 | Linux*|GNU*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3346 | LDLIBRARY='libpython$(VERSION).so' |
| 3347 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3348 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3349 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 3350 | ;; |
| 3351 | hp*|HP*) |
| 3352 | LDLIBRARY='libpython$(VERSION).sl' |
| 3353 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
| 3354 | RUNSHARED=SHLIB_PATH=`pwd`:$SHLIB_PATH |
| 3355 | ;; |
| 3356 | OSF*) |
| 3357 | LDLIBRARY='libpython$(VERSION).so' |
| 3358 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
| 3359 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3360 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3361 | atheos*) |
| 3362 | LDLIBRARY='libpython$(VERSION).so' |
| 3363 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3364 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 3365 | ;; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3366 | esac |
| 3367 | # DG/UX requires some fancy ld contortions to produce a .so from an .a |
| 3368 | case $MACHDEP in |
| 3369 | dguxR4) |
| 3370 | LDLIBRARY='libpython$(VERSION).so' |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3371 | BASECFLAGS="$BASECFLAGS -pic" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3372 | ;; |
| 3373 | esac |
| 3374 | fi |
| 3375 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3376 | echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 3377 | echo "${ECHO_T}$LDLIBRARY" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3378 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3379 | if test -n "$ac_tool_prefix"; then |
| 3380 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3381 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3382 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3383 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3384 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3385 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3386 | else |
| 3387 | if test -n "$RANLIB"; then |
| 3388 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3389 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3390 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3391 | for as_dir in $PATH |
| 3392 | do |
| 3393 | IFS=$as_save_IFS |
| 3394 | test -z "$as_dir" && as_dir=. |
| 3395 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3396 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3397 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3398 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3399 | break 2 |
| 3400 | fi |
| 3401 | done |
| 3402 | done |
| 3403 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3404 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3405 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3406 | RANLIB=$ac_cv_prog_RANLIB |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3407 | if test -n "$RANLIB"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3408 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3409 | echo "${ECHO_T}$RANLIB" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3410 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3411 | echo "$as_me:$LINENO: result: no" >&5 |
| 3412 | echo "${ECHO_T}no" >&6 |
| 3413 | fi |
| 3414 | |
| 3415 | fi |
| 3416 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3417 | ac_ct_RANLIB=$RANLIB |
| 3418 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3419 | set dummy ranlib; ac_word=$2 |
| 3420 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3421 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3422 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3423 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3424 | else |
| 3425 | if test -n "$ac_ct_RANLIB"; then |
| 3426 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3427 | else |
| 3428 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3429 | for as_dir in $PATH |
| 3430 | do |
| 3431 | IFS=$as_save_IFS |
| 3432 | test -z "$as_dir" && as_dir=. |
| 3433 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3434 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3435 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3436 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3437 | break 2 |
| 3438 | fi |
| 3439 | done |
| 3440 | done |
| 3441 | |
| 3442 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3443 | fi |
| 3444 | fi |
| 3445 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3446 | if test -n "$ac_ct_RANLIB"; then |
| 3447 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3448 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3449 | else |
| 3450 | echo "$as_me:$LINENO: result: no" >&5 |
| 3451 | echo "${ECHO_T}no" >&6 |
| 3452 | fi |
| 3453 | |
| 3454 | RANLIB=$ac_ct_RANLIB |
| 3455 | else |
| 3456 | RANLIB="$ac_cv_prog_RANLIB" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3457 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3458 | |
| 3459 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3460 | for ac_prog in ar aal |
| 3461 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3462 | # 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] | 3463 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3464 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3465 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3466 | if test "${ac_cv_prog_AR+set}" = set; then |
| 3467 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3468 | else |
| 3469 | if test -n "$AR"; then |
| 3470 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 3471 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3473 | for as_dir in $PATH |
| 3474 | do |
| 3475 | IFS=$as_save_IFS |
| 3476 | test -z "$as_dir" && as_dir=. |
| 3477 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3478 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3479 | ac_cv_prog_AR="$ac_prog" |
| 3480 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3481 | break 2 |
| 3482 | fi |
| 3483 | done |
| 3484 | done |
| 3485 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3486 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3487 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3488 | AR=$ac_cv_prog_AR |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3489 | if test -n "$AR"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3490 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 3491 | echo "${ECHO_T}$AR" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3492 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3493 | echo "$as_me:$LINENO: result: no" >&5 |
| 3494 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3495 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3496 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3497 | test -n "$AR" && break |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3498 | done |
| 3499 | test -n "$AR" || AR="ar" |
| 3500 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3501 | |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3502 | case $MACHDEP in |
Neil Schemenauer | af5567f | 2001-10-21 22:32:04 +0000 | [diff] [blame] | 3503 | bsdos*|hp*|HP*) |
| 3504 | # install -d does not work on BSDI or HP-UX |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3505 | if test -z "$INSTALL" |
| 3506 | then |
| 3507 | INSTALL="${srcdir}/install-sh -c" |
| 3508 | fi |
| 3509 | esac |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3510 | ac_aux_dir= |
| 3511 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 3512 | if test -f $ac_dir/install-sh; then |
| 3513 | ac_aux_dir=$ac_dir |
| 3514 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3515 | break |
| 3516 | elif test -f $ac_dir/install.sh; then |
| 3517 | ac_aux_dir=$ac_dir |
| 3518 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3519 | break |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3520 | elif test -f $ac_dir/shtool; then |
| 3521 | ac_aux_dir=$ac_dir |
| 3522 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3523 | break |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3524 | fi |
| 3525 | done |
| 3526 | if test -z "$ac_aux_dir"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3527 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 3528 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 3529 | { (exit 1); exit 1; }; } |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3530 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3531 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 3532 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 3533 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3534 | |
| 3535 | # Find a good install program. We prefer a C program (faster), |
| 3536 | # so one script is as good as another. But avoid the broken or |
| 3537 | # incompatible versions: |
| 3538 | # SysV /etc/install, /usr/sbin/install |
| 3539 | # SunOS /usr/etc/install |
| 3540 | # IRIX /sbin/install |
| 3541 | # AIX /bin/install |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3542 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3543 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3544 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3545 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3546 | # ./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] | 3547 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 3548 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3549 | if test -z "$INSTALL"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3550 | if test "${ac_cv_path_install+set}" = set; then |
| 3551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3552 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3554 | for as_dir in $PATH |
| 3555 | do |
| 3556 | IFS=$as_save_IFS |
| 3557 | test -z "$as_dir" && as_dir=. |
| 3558 | # Account for people who put trailing slashes in PATH elements. |
| 3559 | case $as_dir/ in |
| 3560 | ./ | .// | /cC/* | \ |
| 3561 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3562 | /usr/ucb/* ) ;; |
| 3563 | *) |
| 3564 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3565 | # Don't use installbsd from OSF since it installs stuff as root |
| 3566 | # by default. |
| 3567 | for ac_prog in ginstall scoinst install; do |
| 3568 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3569 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3570 | if test $ac_prog = install && |
| 3571 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3572 | # AIX install. It has an incompatible calling convention. |
| 3573 | : |
| 3574 | elif test $ac_prog = install && |
| 3575 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3576 | # program-specific install script used by HP pwplus--don't use. |
| 3577 | : |
| 3578 | else |
| 3579 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3580 | break 3 |
| 3581 | fi |
| 3582 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3583 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3584 | done |
| 3585 | ;; |
| 3586 | esac |
| 3587 | done |
| 3588 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3589 | |
| 3590 | fi |
| 3591 | if test "${ac_cv_path_install+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3592 | INSTALL=$ac_cv_path_install |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3593 | else |
| 3594 | # As a last resort, use the slow shell script. We don't cache a |
| 3595 | # path for INSTALL within a source directory, because that will |
| 3596 | # break other packages using the cache if that directory is |
| 3597 | # removed, or if the path is relative. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3598 | INSTALL=$ac_install_sh |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3599 | fi |
| 3600 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3601 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 3602 | echo "${ECHO_T}$INSTALL" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3603 | |
| 3604 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3605 | # It thinks the first close brace ends the variable substitution. |
| 3606 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3607 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3608 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3609 | |
| 3610 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3611 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3612 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3613 | # Not every filesystem supports hard links |
| 3614 | |
| 3615 | if test -z "$LN" ; then |
| 3616 | case $ac_sys_system in |
| 3617 | BeOS*) LN="ln -s";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3618 | CYGWIN*) LN="ln -s";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3619 | atheos*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3620 | *) LN=ln;; |
| 3621 | esac |
| 3622 | fi |
| 3623 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3624 | # Check for --with-pydebug |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3625 | echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 3626 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6 |
| 3627 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3628 | # Check whether --with-pydebug or --without-pydebug was given. |
| 3629 | if test "${with_pydebug+set}" = set; then |
| 3630 | withval="$with_pydebug" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3631 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3632 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3633 | then |
| 3634 | |
| 3635 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3636 | #define Py_DEBUG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3637 | _ACEOF |
| 3638 | |
| 3639 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3640 | echo "${ECHO_T}yes" >&6; |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 3641 | Py_DEBUG='true' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3642 | else echo "$as_me:$LINENO: result: no" >&5 |
| 3643 | echo "${ECHO_T}no" >&6; Py_DEBUG='false' |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3644 | fi |
| 3645 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3646 | echo "$as_me:$LINENO: result: no" >&5 |
| 3647 | echo "${ECHO_T}no" >&6 |
| 3648 | fi; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3649 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3650 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 3651 | # merged with this chunk of code? |
| 3652 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3653 | # Optimizer/debugger flags |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3654 | # ------------------------ |
| 3655 | # (The following bit of code is complicated enough - please keep things |
| 3656 | # indented properly. Just pretend you're editing Python code. ;-) |
| 3657 | |
| 3658 | # There are two parallel sets of case statements below, one that checks to |
| 3659 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 3660 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 3661 | # user set OPT. |
| 3662 | |
| 3663 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 3664 | # it on the command line |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3665 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3666 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3667 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3668 | case $GCC in |
| 3669 | yes) |
| 3670 | case $ac_cv_prog_cc_g in |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3671 | yes) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3672 | if test "$Py_DEBUG" = 'true' ; then |
| 3673 | # Optimization messes up debuggers, so turn it off for |
| 3674 | # debug builds. |
| 3675 | OPT="-g -Wall -Wstrict-prototypes" |
| 3676 | else |
| 3677 | OPT="-g -O3 -Wall -Wstrict-prototypes" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3678 | fi |
| 3679 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3680 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3681 | OPT="-O3 -Wall -Wstrict-prototypes" |
| 3682 | ;; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3683 | esac |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3684 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3685 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 3686 | ;; |
| 3687 | esac |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3688 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3689 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3690 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3691 | OPT="-O" |
| 3692 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3693 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3694 | |
| 3695 | # The current (beta) Monterey compiler dies with optimizations |
| 3696 | # 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] | 3697 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3698 | Monterey*) |
| 3699 | OPT="" |
| 3700 | ;; |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3701 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3702 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3703 | fi |
| 3704 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3705 | |
| 3706 | # tweak BASECFLAGS based on compiler and platform |
| 3707 | case $GCC in |
| 3708 | yes) |
| 3709 | case $ac_sys_system in |
| 3710 | SCO_SV*) |
| 3711 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 3712 | ;; |
| 3713 | # is there any other compiler on Darwin besides gcc? |
| 3714 | Darwin*) |
| 3715 | BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp" |
| 3716 | ;; |
| 3717 | esac |
| 3718 | ;; |
| 3719 | |
| 3720 | *) |
| 3721 | case $ac_sys_system in |
| 3722 | OpenUNIX*|UnixWare*) |
| 3723 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 3724 | ;; |
| 3725 | SCO_SV*) |
| 3726 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 3727 | ;; |
| 3728 | esac |
| 3729 | ;; |
| 3730 | esac |
| 3731 | |
Fred Drake | e1ceaa0 | 2001-12-04 20:55:47 +0000 | [diff] [blame] | 3732 | if test "$Py_DEBUG" = 'true'; then |
| 3733 | : |
| 3734 | else |
| 3735 | OPT="-DNDEBUG $OPT" |
| 3736 | fi |
| 3737 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3738 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3739 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3740 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3741 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3742 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3743 | echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 3744 | echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6 |
| 3745 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
| 3746 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3747 | else |
| 3748 | ac_save_cc="$CC" |
| 3749 | CC="$CC -OPT:Olimit=0" |
| 3750 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3751 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3752 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3753 | cat >conftest.$ac_ext <<_ACEOF |
| 3754 | #line $LINENO "configure" |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3755 | #include "confdefs.h" |
| 3756 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3757 | _ACEOF |
| 3758 | rm -f conftest$ac_exeext |
| 3759 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3760 | (eval $ac_link) 2>&5 |
| 3761 | ac_status=$? |
| 3762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3763 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3765 | (eval $ac_try) 2>&5 |
| 3766 | ac_status=$? |
| 3767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3768 | (exit $ac_status); }; }; then |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3769 | ac_cv_opt_olimit_ok=yes |
| 3770 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3771 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3772 | echo "$as_me: failed program was:" >&5 |
| 3773 | cat conftest.$ac_ext >&5 |
| 3774 | ( exit $ac_status ) |
| 3775 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3776 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3777 | 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] | 3778 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3779 | CC="$ac_save_cc" |
| 3780 | fi |
| 3781 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3782 | echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 3783 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 3784 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3785 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3786 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 3787 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 3788 | # environment? |
| 3789 | Darwin*) |
| 3790 | ;; |
| 3791 | *) |
| 3792 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 3793 | ;; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3794 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3795 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3796 | echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 3797 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6 |
| 3798 | if test "${ac_cv_olimit_ok+set}" = set; then |
| 3799 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3800 | else |
| 3801 | ac_save_cc="$CC" |
| 3802 | CC="$CC -Olimit 1500" |
| 3803 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3804 | ac_cv_olimit_ok=no |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3805 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3806 | cat >conftest.$ac_ext <<_ACEOF |
| 3807 | #line $LINENO "configure" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3808 | #include "confdefs.h" |
| 3809 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3810 | _ACEOF |
| 3811 | rm -f conftest$ac_exeext |
| 3812 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3813 | (eval $ac_link) 2>&5 |
| 3814 | ac_status=$? |
| 3815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3816 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3818 | (eval $ac_try) 2>&5 |
| 3819 | ac_status=$? |
| 3820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3821 | (exit $ac_status); }; }; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3822 | ac_cv_olimit_ok=yes |
| 3823 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3824 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3825 | echo "$as_me: failed program was:" >&5 |
| 3826 | cat conftest.$ac_ext >&5 |
| 3827 | ( exit $ac_status ) |
| 3828 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 3829 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3830 | 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] | 3831 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3832 | CC="$ac_save_cc" |
| 3833 | fi |
| 3834 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3835 | echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 3836 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3837 | if test $ac_cv_olimit_ok = yes; then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3838 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3839 | fi |
| 3840 | fi |
| 3841 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3842 | # On some compilers, pthreads are available without further options |
| 3843 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 3844 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 3845 | # So we have to see first whether pthreads are available without |
| 3846 | # options before we can check whether -Kpthread improves anything. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3847 | echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 3848 | echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6 |
| 3849 | if test "${ac_cv_pthread_is_default+set}" = set; then |
| 3850 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3851 | else |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3852 | if test "$cross_compiling" = yes; then |
| 3853 | ac_cv_pthread_is_default=no |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3854 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3855 | cat >conftest.$ac_ext <<_ACEOF |
| 3856 | #line $LINENO "configure" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3857 | #include "confdefs.h" |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3858 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3859 | #include <pthread.h> |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3860 | |
| 3861 | void* routine(void* p){return NULL;} |
| 3862 | |
| 3863 | int main(){ |
| 3864 | pthread_t p; |
| 3865 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3866 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3867 | (void)pthread_detach(p); |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3868 | return 0; |
| 3869 | } |
| 3870 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3871 | _ACEOF |
| 3872 | rm -f conftest$ac_exeext |
| 3873 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3874 | (eval $ac_link) 2>&5 |
| 3875 | ac_status=$? |
| 3876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3877 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3879 | (eval $ac_try) 2>&5 |
| 3880 | ac_status=$? |
| 3881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3882 | (exit $ac_status); }; }; then |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3883 | ac_cv_pthread_is_default=yes |
| 3884 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3885 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3886 | echo "$as_me: failed program was:" >&5 |
| 3887 | cat conftest.$ac_ext >&5 |
| 3888 | ( exit $ac_status ) |
| 3889 | ac_cv_pthread_is_default=no |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3890 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3891 | 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] | 3892 | fi |
| 3893 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3894 | fi |
| 3895 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3896 | echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 3897 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3898 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3899 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3900 | if test $ac_cv_pthread_is_default = yes |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3901 | then |
| 3902 | ac_cv_kpthread=no |
| 3903 | else |
| 3904 | # -Kpthread, if available, provides the right #defines |
| 3905 | # and linker options to make pthread_create available |
| 3906 | # Some compilers won't report that they do not support -Kpthread, |
| 3907 | # so we need to run a program to see whether it really made the |
| 3908 | # function available. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3909 | echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 3910 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6 |
| 3911 | if test "${ac_cv_kpthread+set}" = set; then |
| 3912 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3913 | else |
| 3914 | ac_save_cc="$CC" |
| 3915 | CC="$CC -Kpthread" |
| 3916 | if test "$cross_compiling" = yes; then |
| 3917 | ac_cv_kpthread=no |
| 3918 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3919 | cat >conftest.$ac_ext <<_ACEOF |
| 3920 | #line $LINENO "configure" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3921 | #include "confdefs.h" |
| 3922 | |
| 3923 | #include <pthread.h> |
| 3924 | |
| 3925 | void* routine(void* p){return NULL;} |
| 3926 | |
| 3927 | int main(){ |
| 3928 | pthread_t p; |
| 3929 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3930 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3931 | (void)pthread_detach(p); |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3932 | return 0; |
| 3933 | } |
| 3934 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3935 | _ACEOF |
| 3936 | rm -f conftest$ac_exeext |
| 3937 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3938 | (eval $ac_link) 2>&5 |
| 3939 | ac_status=$? |
| 3940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3941 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3943 | (eval $ac_try) 2>&5 |
| 3944 | ac_status=$? |
| 3945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3946 | (exit $ac_status); }; }; then |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3947 | ac_cv_kpthread=yes |
| 3948 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3949 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3950 | echo "$as_me: failed program was:" >&5 |
| 3951 | cat conftest.$ac_ext >&5 |
| 3952 | ( exit $ac_status ) |
| 3953 | ac_cv_kpthread=no |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3954 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3955 | 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] | 3956 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3957 | CC="$ac_save_cc" |
| 3958 | fi |
| 3959 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3960 | echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 3961 | echo "${ECHO_T}$ac_cv_kpthread" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3962 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3963 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3964 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3965 | # checks for header files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3966 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3967 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 3968 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3969 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3970 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3971 | cat >conftest.$ac_ext <<_ACEOF |
| 3972 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3973 | #include "confdefs.h" |
| 3974 | #include <stdlib.h> |
| 3975 | #include <stdarg.h> |
| 3976 | #include <string.h> |
| 3977 | #include <float.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3978 | |
| 3979 | _ACEOF |
| 3980 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3981 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3982 | ac_status=$? |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3983 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3984 | rm -f conftest.er1 |
| 3985 | cat conftest.err >&5 |
| 3986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3987 | (exit $ac_status); } >/dev/null; then |
| 3988 | if test -s conftest.err; then |
| 3989 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3990 | else |
| 3991 | ac_cpp_err= |
| 3992 | fi |
| 3993 | else |
| 3994 | ac_cpp_err=yes |
| 3995 | fi |
| 3996 | if test -z "$ac_cpp_err"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3997 | ac_cv_header_stdc=yes |
| 3998 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3999 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4000 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4001 | ac_cv_header_stdc=no |
| 4002 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4003 | rm -f conftest.err conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4004 | |
| 4005 | if test $ac_cv_header_stdc = yes; then |
| 4006 | # 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] | 4007 | cat >conftest.$ac_ext <<_ACEOF |
| 4008 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4009 | #include "confdefs.h" |
| 4010 | #include <string.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4011 | |
| 4012 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4013 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4014 | $EGREP "memchr" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4015 | : |
| 4016 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4017 | ac_cv_header_stdc=no |
| 4018 | fi |
| 4019 | rm -f conftest* |
| 4020 | |
| 4021 | fi |
| 4022 | |
| 4023 | if test $ac_cv_header_stdc = yes; then |
| 4024 | # 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] | 4025 | cat >conftest.$ac_ext <<_ACEOF |
| 4026 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4027 | #include "confdefs.h" |
| 4028 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4029 | |
| 4030 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4031 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4032 | $EGREP "free" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4033 | : |
| 4034 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4035 | ac_cv_header_stdc=no |
| 4036 | fi |
| 4037 | rm -f conftest* |
| 4038 | |
| 4039 | fi |
| 4040 | |
| 4041 | if test $ac_cv_header_stdc = yes; then |
| 4042 | # /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] | 4043 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4044 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4045 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4046 | cat >conftest.$ac_ext <<_ACEOF |
| 4047 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4048 | #include "confdefs.h" |
| 4049 | #include <ctype.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4050 | #if ((' ' & 0x0FF) == 0x020) |
| 4051 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4052 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4053 | #else |
| 4054 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 4055 | || ('j' <= (c) && (c) <= 'r') \ |
| 4056 | || ('s' <= (c) && (c) <= 'z')) |
| 4057 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4058 | #endif |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4059 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4060 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4061 | int |
| 4062 | main () |
| 4063 | { |
| 4064 | int i; |
| 4065 | for (i = 0; i < 256; i++) |
| 4066 | if (XOR (islower (i), ISLOWER (i)) |
| 4067 | || toupper (i) != TOUPPER (i)) |
| 4068 | exit(2); |
| 4069 | exit (0); |
| 4070 | } |
| 4071 | _ACEOF |
| 4072 | rm -f conftest$ac_exeext |
| 4073 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4074 | (eval $ac_link) 2>&5 |
| 4075 | ac_status=$? |
| 4076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4077 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4079 | (eval $ac_try) 2>&5 |
| 4080 | ac_status=$? |
| 4081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4082 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4083 | : |
| 4084 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4085 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4086 | echo "$as_me: failed program was:" >&5 |
| 4087 | cat conftest.$ac_ext >&5 |
| 4088 | ( exit $ac_status ) |
| 4089 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4090 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4091 | 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] | 4092 | fi |
| 4093 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4094 | fi |
| 4095 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4096 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4097 | if test $ac_cv_header_stdc = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4098 | |
| 4099 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4100 | #define STDC_HEADERS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4101 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4102 | |
| 4103 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4104 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4105 | |
| 4106 | |
| 4107 | |
| 4108 | |
| 4109 | |
| 4110 | |
| 4111 | |
| 4112 | |
| 4113 | |
| 4114 | |
| 4115 | |
| 4116 | |
| 4117 | |
| 4118 | |
| 4119 | |
| 4120 | |
| 4121 | |
| 4122 | |
| 4123 | |
| 4124 | |
| 4125 | |
| 4126 | |
| 4127 | |
| 4128 | |
| 4129 | |
| 4130 | |
| 4131 | |
| 4132 | |
| 4133 | |
| 4134 | |
| 4135 | |
| 4136 | |
| 4137 | |
| 4138 | |
| 4139 | |
| 4140 | |
| 4141 | |
Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 4142 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4143 | 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] | 4144 | libintl.h locale.h ncurses.h poll.h pthread.h \ |
Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 4145 | signal.h stdarg.h stddef.h stdlib.h stropts.h termios.h thread.h \ |
| 4146 | unistd.h utime.h \ |
Skip Montanaro | 57454e5 | 2002-06-14 20:30:31 +0000 | [diff] [blame] | 4147 | sys/audioio.h sys/file.h sys/lock.h sys/mkdev.h sys/modem.h \ |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4148 | 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] | 4149 | sys/un.h sys/utsname.h sys/wait.h pty.h term.h libutil.h \ |
Skip Montanaro | 8345f71 | 2002-06-25 05:53:48 +0000 | [diff] [blame] | 4150 | sys/resource.h netpacket/packet.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4151 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4152 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4153 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4154 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4155 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4156 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4157 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4158 | fi |
| 4159 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4160 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4161 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4162 | # Is the header compilable? |
| 4163 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 4164 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 4165 | cat >conftest.$ac_ext <<_ACEOF |
| 4166 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4167 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4168 | $ac_includes_default |
| 4169 | #include <$ac_header> |
| 4170 | _ACEOF |
| 4171 | rm -f conftest.$ac_objext |
| 4172 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4173 | (eval $ac_compile) 2>&5 |
| 4174 | ac_status=$? |
| 4175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4176 | (exit $ac_status); } && |
| 4177 | { ac_try='test -s conftest.$ac_objext' |
| 4178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4179 | (eval $ac_try) 2>&5 |
| 4180 | ac_status=$? |
| 4181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4182 | (exit $ac_status); }; }; then |
| 4183 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4184 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4185 | echo "$as_me: failed program was:" >&5 |
| 4186 | cat conftest.$ac_ext >&5 |
| 4187 | ac_header_compiler=no |
| 4188 | fi |
| 4189 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4190 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4191 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4192 | |
| 4193 | # Is the header present? |
| 4194 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4195 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4196 | cat >conftest.$ac_ext <<_ACEOF |
| 4197 | #line $LINENO "configure" |
| 4198 | #include "confdefs.h" |
| 4199 | #include <$ac_header> |
| 4200 | _ACEOF |
| 4201 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4202 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4203 | ac_status=$? |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4204 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4205 | rm -f conftest.er1 |
| 4206 | cat conftest.err >&5 |
| 4207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4208 | (exit $ac_status); } >/dev/null; then |
| 4209 | if test -s conftest.err; then |
| 4210 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4211 | else |
| 4212 | ac_cpp_err= |
| 4213 | fi |
| 4214 | else |
| 4215 | ac_cpp_err=yes |
| 4216 | fi |
| 4217 | if test -z "$ac_cpp_err"; then |
| 4218 | ac_header_preproc=yes |
| 4219 | else |
| 4220 | echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4221 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4222 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4223 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4224 | rm -f conftest.err conftest.$ac_ext |
| 4225 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4226 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4227 | |
| 4228 | # So? What about this header? |
| 4229 | case $ac_header_compiler:$ac_header_preproc in |
| 4230 | yes:no ) |
| 4231 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4232 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4233 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4234 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 4235 | no:yes ) |
| 4236 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4237 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 4238 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4239 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4240 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4241 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 4242 | esac |
| 4243 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4244 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4245 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4247 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4248 | eval "$as_ac_Header=$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4249 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4250 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4251 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4252 | |
| 4253 | fi |
| 4254 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4255 | cat >>confdefs.h <<_ACEOF |
| 4256 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4257 | _ACEOF |
| 4258 | |
| 4259 | fi |
| 4260 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4261 | done |
| 4262 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4263 | |
| 4264 | |
| 4265 | |
| 4266 | |
| 4267 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4268 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4269 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 4270 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 4271 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 4272 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 4273 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4274 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4275 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4276 | cat >conftest.$ac_ext <<_ACEOF |
| 4277 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4278 | #include "confdefs.h" |
| 4279 | #include <sys/types.h> |
| 4280 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4281 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4282 | int |
| 4283 | main () |
| 4284 | { |
| 4285 | if ((DIR *) 0) |
| 4286 | return 0; |
| 4287 | ; |
| 4288 | return 0; |
| 4289 | } |
| 4290 | _ACEOF |
| 4291 | rm -f conftest.$ac_objext |
| 4292 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4293 | (eval $ac_compile) 2>&5 |
| 4294 | ac_status=$? |
| 4295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4296 | (exit $ac_status); } && |
| 4297 | { ac_try='test -s conftest.$ac_objext' |
| 4298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4299 | (eval $ac_try) 2>&5 |
| 4300 | ac_status=$? |
| 4301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4302 | (exit $ac_status); }; }; then |
| 4303 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4304 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4305 | echo "$as_me: failed program was:" >&5 |
| 4306 | cat conftest.$ac_ext >&5 |
| 4307 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4308 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4309 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4310 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4311 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4312 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4313 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4314 | cat >>confdefs.h <<_ACEOF |
| 4315 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 4316 | _ACEOF |
| 4317 | |
| 4318 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4319 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4320 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4321 | done |
| 4322 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 4323 | if test $ac_header_dirent = dirent.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4324 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4325 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4326 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4328 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4329 | ac_func_search_save_LIBS=$LIBS |
| 4330 | ac_cv_search_opendir=no |
| 4331 | cat >conftest.$ac_ext <<_ACEOF |
| 4332 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4333 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4334 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4335 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4336 | #ifdef __cplusplus |
| 4337 | extern "C" |
| 4338 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4339 | /* 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] | 4340 | builtin and then its argument prototype would still apply. */ |
| 4341 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4342 | int |
| 4343 | main () |
| 4344 | { |
| 4345 | opendir (); |
| 4346 | ; |
| 4347 | return 0; |
| 4348 | } |
| 4349 | _ACEOF |
| 4350 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4351 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4352 | (eval $ac_link) 2>&5 |
| 4353 | ac_status=$? |
| 4354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4355 | (exit $ac_status); } && |
| 4356 | { ac_try='test -s conftest$ac_exeext' |
| 4357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4358 | (eval $ac_try) 2>&5 |
| 4359 | ac_status=$? |
| 4360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4361 | (exit $ac_status); }; }; then |
| 4362 | ac_cv_search_opendir="none required" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4363 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4364 | echo "$as_me: failed program was:" >&5 |
| 4365 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4366 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4367 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4368 | if test "$ac_cv_search_opendir" = no; then |
| 4369 | for ac_lib in dir; do |
| 4370 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4371 | cat >conftest.$ac_ext <<_ACEOF |
| 4372 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4373 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4374 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4375 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4376 | #ifdef __cplusplus |
| 4377 | extern "C" |
| 4378 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4379 | /* 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] | 4380 | builtin and then its argument prototype would still apply. */ |
| 4381 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4382 | int |
| 4383 | main () |
| 4384 | { |
| 4385 | opendir (); |
| 4386 | ; |
| 4387 | return 0; |
| 4388 | } |
| 4389 | _ACEOF |
| 4390 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4391 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4392 | (eval $ac_link) 2>&5 |
| 4393 | ac_status=$? |
| 4394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4395 | (exit $ac_status); } && |
| 4396 | { ac_try='test -s conftest$ac_exeext' |
| 4397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4398 | (eval $ac_try) 2>&5 |
| 4399 | ac_status=$? |
| 4400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4401 | (exit $ac_status); }; }; then |
| 4402 | ac_cv_search_opendir="-l$ac_lib" |
| 4403 | break |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4404 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4405 | echo "$as_me: failed program was:" >&5 |
| 4406 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4407 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4408 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4409 | done |
| 4410 | fi |
| 4411 | LIBS=$ac_func_search_save_LIBS |
| 4412 | fi |
| 4413 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4414 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4415 | if test "$ac_cv_search_opendir" != no; then |
| 4416 | 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] | 4417 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4418 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4419 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4420 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4421 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4422 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4423 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4424 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4425 | else |
| 4426 | ac_func_search_save_LIBS=$LIBS |
| 4427 | ac_cv_search_opendir=no |
| 4428 | cat >conftest.$ac_ext <<_ACEOF |
| 4429 | #line $LINENO "configure" |
| 4430 | #include "confdefs.h" |
| 4431 | |
| 4432 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4433 | #ifdef __cplusplus |
| 4434 | extern "C" |
| 4435 | #endif |
| 4436 | /* We use char because int might match the return type of a gcc2 |
| 4437 | builtin and then its argument prototype would still apply. */ |
| 4438 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4439 | int |
| 4440 | main () |
| 4441 | { |
| 4442 | opendir (); |
| 4443 | ; |
| 4444 | return 0; |
| 4445 | } |
| 4446 | _ACEOF |
| 4447 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4448 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4449 | (eval $ac_link) 2>&5 |
| 4450 | ac_status=$? |
| 4451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4452 | (exit $ac_status); } && |
| 4453 | { ac_try='test -s conftest$ac_exeext' |
| 4454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4455 | (eval $ac_try) 2>&5 |
| 4456 | ac_status=$? |
| 4457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4458 | (exit $ac_status); }; }; then |
| 4459 | ac_cv_search_opendir="none required" |
| 4460 | else |
| 4461 | echo "$as_me: failed program was:" >&5 |
| 4462 | cat conftest.$ac_ext >&5 |
| 4463 | fi |
| 4464 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4465 | if test "$ac_cv_search_opendir" = no; then |
| 4466 | for ac_lib in x; do |
| 4467 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4468 | cat >conftest.$ac_ext <<_ACEOF |
| 4469 | #line $LINENO "configure" |
| 4470 | #include "confdefs.h" |
| 4471 | |
| 4472 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4473 | #ifdef __cplusplus |
| 4474 | extern "C" |
| 4475 | #endif |
| 4476 | /* We use char because int might match the return type of a gcc2 |
| 4477 | builtin and then its argument prototype would still apply. */ |
| 4478 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4479 | int |
| 4480 | main () |
| 4481 | { |
| 4482 | opendir (); |
| 4483 | ; |
| 4484 | return 0; |
| 4485 | } |
| 4486 | _ACEOF |
| 4487 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4488 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4489 | (eval $ac_link) 2>&5 |
| 4490 | ac_status=$? |
| 4491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4492 | (exit $ac_status); } && |
| 4493 | { ac_try='test -s conftest$ac_exeext' |
| 4494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4495 | (eval $ac_try) 2>&5 |
| 4496 | ac_status=$? |
| 4497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4498 | (exit $ac_status); }; }; then |
| 4499 | ac_cv_search_opendir="-l$ac_lib" |
| 4500 | break |
| 4501 | else |
| 4502 | echo "$as_me: failed program was:" >&5 |
| 4503 | cat conftest.$ac_ext >&5 |
| 4504 | fi |
| 4505 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4506 | done |
| 4507 | fi |
| 4508 | LIBS=$ac_func_search_save_LIBS |
| 4509 | fi |
| 4510 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4511 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4512 | if test "$ac_cv_search_opendir" != no; then |
| 4513 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 4514 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4515 | fi |
| 4516 | |
| 4517 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4518 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 4519 | echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 4520 | echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6 |
| 4521 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
| 4522 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4523 | else |
| 4524 | cat >conftest.$ac_ext <<_ACEOF |
| 4525 | #line $LINENO "configure" |
| 4526 | #include "confdefs.h" |
| 4527 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 4528 | int |
| 4529 | main () |
| 4530 | { |
| 4531 | return makedev(0, 0); |
| 4532 | ; |
| 4533 | return 0; |
| 4534 | } |
| 4535 | _ACEOF |
| 4536 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4537 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4538 | (eval $ac_link) 2>&5 |
| 4539 | ac_status=$? |
| 4540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4541 | (exit $ac_status); } && |
| 4542 | { ac_try='test -s conftest$ac_exeext' |
| 4543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4544 | (eval $ac_try) 2>&5 |
| 4545 | ac_status=$? |
| 4546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4547 | (exit $ac_status); }; }; then |
| 4548 | ac_cv_header_sys_types_h_makedev=yes |
| 4549 | else |
| 4550 | echo "$as_me: failed program was:" >&5 |
| 4551 | cat conftest.$ac_ext >&5 |
| 4552 | ac_cv_header_sys_types_h_makedev=no |
| 4553 | fi |
| 4554 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4555 | |
| 4556 | fi |
| 4557 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 4558 | echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6 |
| 4559 | |
| 4560 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 4561 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 4562 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 4563 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 4564 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 4565 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4566 | fi |
| 4567 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 4568 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 4569 | else |
| 4570 | # Is the header compilable? |
| 4571 | echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 4572 | echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6 |
| 4573 | cat >conftest.$ac_ext <<_ACEOF |
| 4574 | #line $LINENO "configure" |
| 4575 | #include "confdefs.h" |
| 4576 | $ac_includes_default |
| 4577 | #include <sys/mkdev.h> |
| 4578 | _ACEOF |
| 4579 | rm -f conftest.$ac_objext |
| 4580 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4581 | (eval $ac_compile) 2>&5 |
| 4582 | ac_status=$? |
| 4583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4584 | (exit $ac_status); } && |
| 4585 | { ac_try='test -s conftest.$ac_objext' |
| 4586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4587 | (eval $ac_try) 2>&5 |
| 4588 | ac_status=$? |
| 4589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4590 | (exit $ac_status); }; }; then |
| 4591 | ac_header_compiler=yes |
| 4592 | else |
| 4593 | echo "$as_me: failed program was:" >&5 |
| 4594 | cat conftest.$ac_ext >&5 |
| 4595 | ac_header_compiler=no |
| 4596 | fi |
| 4597 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4598 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4599 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4600 | |
| 4601 | # Is the header present? |
| 4602 | echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 4603 | echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6 |
| 4604 | cat >conftest.$ac_ext <<_ACEOF |
| 4605 | #line $LINENO "configure" |
| 4606 | #include "confdefs.h" |
| 4607 | #include <sys/mkdev.h> |
| 4608 | _ACEOF |
| 4609 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4610 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4611 | ac_status=$? |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4612 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 4613 | rm -f conftest.er1 |
| 4614 | cat conftest.err >&5 |
| 4615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4616 | (exit $ac_status); } >/dev/null; then |
| 4617 | if test -s conftest.err; then |
| 4618 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4619 | else |
| 4620 | ac_cpp_err= |
| 4621 | fi |
| 4622 | else |
| 4623 | ac_cpp_err=yes |
| 4624 | fi |
| 4625 | if test -z "$ac_cpp_err"; then |
| 4626 | ac_header_preproc=yes |
| 4627 | else |
| 4628 | echo "$as_me: failed program was:" >&5 |
| 4629 | cat conftest.$ac_ext >&5 |
| 4630 | ac_header_preproc=no |
| 4631 | fi |
| 4632 | rm -f conftest.err conftest.$ac_ext |
| 4633 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4634 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4635 | |
| 4636 | # So? What about this header? |
| 4637 | case $ac_header_compiler:$ac_header_preproc in |
| 4638 | yes:no ) |
| 4639 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4640 | echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4641 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 4642 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};; |
| 4643 | no:yes ) |
| 4644 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 4645 | echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} |
| 4646 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 4647 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 4648 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 4649 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};; |
| 4650 | esac |
| 4651 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 4652 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 4653 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 4654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4655 | else |
| 4656 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 4657 | fi |
| 4658 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 4659 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 4660 | |
| 4661 | fi |
| 4662 | if test $ac_cv_header_sys_mkdev_h = yes; then |
| 4663 | |
| 4664 | cat >>confdefs.h <<\_ACEOF |
| 4665 | #define MAJOR_IN_MKDEV 1 |
| 4666 | _ACEOF |
| 4667 | |
| 4668 | fi |
| 4669 | |
| 4670 | |
| 4671 | |
| 4672 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 4673 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 4674 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 4675 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 4676 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 4677 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4678 | fi |
| 4679 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 4680 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 4681 | else |
| 4682 | # Is the header compilable? |
| 4683 | echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 4684 | echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6 |
| 4685 | cat >conftest.$ac_ext <<_ACEOF |
| 4686 | #line $LINENO "configure" |
| 4687 | #include "confdefs.h" |
| 4688 | $ac_includes_default |
| 4689 | #include <sys/sysmacros.h> |
| 4690 | _ACEOF |
| 4691 | rm -f conftest.$ac_objext |
| 4692 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4693 | (eval $ac_compile) 2>&5 |
| 4694 | ac_status=$? |
| 4695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4696 | (exit $ac_status); } && |
| 4697 | { ac_try='test -s conftest.$ac_objext' |
| 4698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4699 | (eval $ac_try) 2>&5 |
| 4700 | ac_status=$? |
| 4701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4702 | (exit $ac_status); }; }; then |
| 4703 | ac_header_compiler=yes |
| 4704 | else |
| 4705 | echo "$as_me: failed program was:" >&5 |
| 4706 | cat conftest.$ac_ext >&5 |
| 4707 | ac_header_compiler=no |
| 4708 | fi |
| 4709 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4710 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4711 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4712 | |
| 4713 | # Is the header present? |
| 4714 | echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 4715 | echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6 |
| 4716 | cat >conftest.$ac_ext <<_ACEOF |
| 4717 | #line $LINENO "configure" |
| 4718 | #include "confdefs.h" |
| 4719 | #include <sys/sysmacros.h> |
| 4720 | _ACEOF |
| 4721 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4722 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4723 | ac_status=$? |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4724 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 4725 | rm -f conftest.er1 |
| 4726 | cat conftest.err >&5 |
| 4727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4728 | (exit $ac_status); } >/dev/null; then |
| 4729 | if test -s conftest.err; then |
| 4730 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4731 | else |
| 4732 | ac_cpp_err= |
| 4733 | fi |
| 4734 | else |
| 4735 | ac_cpp_err=yes |
| 4736 | fi |
| 4737 | if test -z "$ac_cpp_err"; then |
| 4738 | ac_header_preproc=yes |
| 4739 | else |
| 4740 | echo "$as_me: failed program was:" >&5 |
| 4741 | cat conftest.$ac_ext >&5 |
| 4742 | ac_header_preproc=no |
| 4743 | fi |
| 4744 | rm -f conftest.err conftest.$ac_ext |
| 4745 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4746 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4747 | |
| 4748 | # So? What about this header? |
| 4749 | case $ac_header_compiler:$ac_header_preproc in |
| 4750 | yes:no ) |
| 4751 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4752 | echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4753 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 4754 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};; |
| 4755 | no:yes ) |
| 4756 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 4757 | echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} |
| 4758 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 4759 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 4760 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 4761 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};; |
| 4762 | esac |
| 4763 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 4764 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 4765 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 4766 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4767 | else |
| 4768 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 4769 | fi |
| 4770 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 4771 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 4772 | |
| 4773 | fi |
| 4774 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
| 4775 | |
| 4776 | cat >>confdefs.h <<\_ACEOF |
| 4777 | #define MAJOR_IN_SYSMACROS 1 |
| 4778 | _ACEOF |
| 4779 | |
| 4780 | fi |
| 4781 | |
| 4782 | |
| 4783 | fi |
| 4784 | fi |
| 4785 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4786 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4787 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4788 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4789 | echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 4790 | echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6 |
| 4791 | cat >conftest.$ac_ext <<_ACEOF |
| 4792 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4793 | #include "confdefs.h" |
| 4794 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4795 | |
| 4796 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4797 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4798 | $EGREP "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4799 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4800 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4801 | |
| 4802 | |
| 4803 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4804 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4805 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4806 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 4807 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4808 | fi |
| 4809 | rm -f conftest* |
| 4810 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4811 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 4812 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4813 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 4814 | # Check whether using makedev requires defining _OSF_SOURCE |
| 4815 | echo "$as_me:$LINENO: checking for makedev" >&5 |
| 4816 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6 |
| 4817 | cat >conftest.$ac_ext <<_ACEOF |
| 4818 | #line $LINENO "configure" |
| 4819 | #include "confdefs.h" |
| 4820 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 4821 | int |
| 4822 | main () |
| 4823 | { |
| 4824 | makedev(0, 0) |
| 4825 | ; |
| 4826 | return 0; |
| 4827 | } |
| 4828 | _ACEOF |
| 4829 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4830 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4831 | (eval $ac_link) 2>&5 |
| 4832 | ac_status=$? |
| 4833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4834 | (exit $ac_status); } && |
| 4835 | { ac_try='test -s conftest$ac_exeext' |
| 4836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4837 | (eval $ac_try) 2>&5 |
| 4838 | ac_status=$? |
| 4839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4840 | (exit $ac_status); }; }; then |
| 4841 | ac_cv_has_makedev=yes |
| 4842 | else |
| 4843 | echo "$as_me: failed program was:" >&5 |
| 4844 | cat conftest.$ac_ext >&5 |
| 4845 | ac_cv_has_makedev=no |
| 4846 | fi |
| 4847 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4848 | if test "$ac_cv_has_makedev" = "no"; then |
| 4849 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 4850 | cat >conftest.$ac_ext <<_ACEOF |
| 4851 | #line $LINENO "configure" |
| 4852 | #include "confdefs.h" |
| 4853 | |
| 4854 | #define _OSF_SOURCE 1 |
| 4855 | #include <sys/types.h> |
| 4856 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 4857 | int |
| 4858 | main () |
| 4859 | { |
| 4860 | makedev(0, 0) |
| 4861 | ; |
| 4862 | return 0; |
| 4863 | } |
| 4864 | _ACEOF |
| 4865 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4866 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4867 | (eval $ac_link) 2>&5 |
| 4868 | ac_status=$? |
| 4869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4870 | (exit $ac_status); } && |
| 4871 | { ac_try='test -s conftest$ac_exeext' |
| 4872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4873 | (eval $ac_try) 2>&5 |
| 4874 | ac_status=$? |
| 4875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4876 | (exit $ac_status); }; }; then |
| 4877 | ac_cv_has_makedev=yes |
| 4878 | else |
| 4879 | echo "$as_me: failed program was:" >&5 |
| 4880 | cat conftest.$ac_ext >&5 |
| 4881 | ac_cv_has_makedev=no |
| 4882 | fi |
| 4883 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4884 | if test "$ac_cv_has_makedev" = "yes"; then |
| 4885 | |
| 4886 | cat >>confdefs.h <<\_ACEOF |
| 4887 | #define _OSF_SOURCE 1 |
| 4888 | _ACEOF |
| 4889 | |
| 4890 | fi |
| 4891 | fi |
| 4892 | echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 4893 | echo "${ECHO_T}$ac_cv_has_makedev" >&6 |
| 4894 | if test "$ac_cv_has_makedev" = "yes"; then |
| 4895 | |
| 4896 | cat >>confdefs.h <<\_ACEOF |
| 4897 | #define HAVE_MAKEDEV 1 |
| 4898 | _ACEOF |
| 4899 | |
| 4900 | fi |
| 4901 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 4902 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 4903 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 4904 | # defined, but the compiler does not support pragma redefine_extname, |
| 4905 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 4906 | # structures (such as rlimit64) without declaring them. As a |
| 4907 | # work-around, disable LFS on such configurations |
| 4908 | |
| 4909 | use_lfs=yes |
| 4910 | echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 4911 | echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6 |
| 4912 | cat >conftest.$ac_ext <<_ACEOF |
| 4913 | #line $LINENO "configure" |
| 4914 | #include "confdefs.h" |
| 4915 | |
| 4916 | #define _LARGEFILE_SOURCE 1 |
| 4917 | #define _FILE_OFFSET_BITS 64 |
| 4918 | #include <sys/resource.h> |
| 4919 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 4920 | int |
| 4921 | main () |
| 4922 | { |
| 4923 | struct rlimit foo; |
| 4924 | ; |
| 4925 | return 0; |
| 4926 | } |
| 4927 | _ACEOF |
| 4928 | rm -f conftest.$ac_objext |
| 4929 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4930 | (eval $ac_compile) 2>&5 |
| 4931 | ac_status=$? |
| 4932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4933 | (exit $ac_status); } && |
| 4934 | { ac_try='test -s conftest.$ac_objext' |
| 4935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4936 | (eval $ac_try) 2>&5 |
| 4937 | ac_status=$? |
| 4938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4939 | (exit $ac_status); }; }; then |
| 4940 | sol_lfs_bug=no |
| 4941 | else |
| 4942 | echo "$as_me: failed program was:" >&5 |
| 4943 | cat conftest.$ac_ext >&5 |
| 4944 | sol_lfs_bug=yes |
| 4945 | fi |
| 4946 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4947 | echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 4948 | echo "${ECHO_T}$sol_lfs_bug" >&6 |
| 4949 | if test "$sol_lfs_bug" = "yes"; then |
| 4950 | use_lfs=no |
| 4951 | fi |
| 4952 | |
| 4953 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4954 | # Two defines needed to enable largefile support on various platforms |
| 4955 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4956 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4957 | cat >>confdefs.h <<\_ACEOF |
| 4958 | #define _LARGEFILE_SOURCE 1 |
| 4959 | _ACEOF |
| 4960 | |
| 4961 | |
| 4962 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4963 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4964 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4965 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 4966 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4967 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 4968 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 4969 | cat >> confdefs.h <<\EOF |
| 4970 | #if defined(SCO_DS) |
| 4971 | #undef _OFF_T |
| 4972 | #endif |
| 4973 | EOF |
| 4974 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4975 | # Type availability checks |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4976 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 4977 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 4978 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 4979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4980 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4981 | cat >conftest.$ac_ext <<_ACEOF |
| 4982 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4983 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4984 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4985 | int |
| 4986 | main () |
| 4987 | { |
| 4988 | if ((mode_t *) 0) |
| 4989 | return 0; |
| 4990 | if (sizeof (mode_t)) |
| 4991 | return 0; |
| 4992 | ; |
| 4993 | return 0; |
| 4994 | } |
| 4995 | _ACEOF |
| 4996 | rm -f conftest.$ac_objext |
| 4997 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4998 | (eval $ac_compile) 2>&5 |
| 4999 | ac_status=$? |
| 5000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5001 | (exit $ac_status); } && |
| 5002 | { ac_try='test -s conftest.$ac_objext' |
| 5003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5004 | (eval $ac_try) 2>&5 |
| 5005 | ac_status=$? |
| 5006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5007 | (exit $ac_status); }; }; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5008 | ac_cv_type_mode_t=yes |
| 5009 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5010 | echo "$as_me: failed program was:" >&5 |
| 5011 | cat conftest.$ac_ext >&5 |
| 5012 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5013 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5014 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5015 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5016 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 5017 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 5018 | if test $ac_cv_type_mode_t = yes; then |
| 5019 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5020 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5021 | |
| 5022 | cat >>confdefs.h <<_ACEOF |
| 5023 | #define mode_t int |
| 5024 | _ACEOF |
| 5025 | |
| 5026 | fi |
| 5027 | |
| 5028 | echo "$as_me:$LINENO: checking for off_t" >&5 |
| 5029 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 5030 | if test "${ac_cv_type_off_t+set}" = set; then |
| 5031 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5032 | else |
| 5033 | cat >conftest.$ac_ext <<_ACEOF |
| 5034 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5035 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5036 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5037 | int |
| 5038 | main () |
| 5039 | { |
| 5040 | if ((off_t *) 0) |
| 5041 | return 0; |
| 5042 | if (sizeof (off_t)) |
| 5043 | return 0; |
| 5044 | ; |
| 5045 | return 0; |
| 5046 | } |
| 5047 | _ACEOF |
| 5048 | rm -f conftest.$ac_objext |
| 5049 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5050 | (eval $ac_compile) 2>&5 |
| 5051 | ac_status=$? |
| 5052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5053 | (exit $ac_status); } && |
| 5054 | { ac_try='test -s conftest.$ac_objext' |
| 5055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5056 | (eval $ac_try) 2>&5 |
| 5057 | ac_status=$? |
| 5058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5059 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5060 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5061 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5062 | echo "$as_me: failed program was:" >&5 |
| 5063 | cat conftest.$ac_ext >&5 |
| 5064 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5065 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5066 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5067 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5068 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 5069 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 5070 | if test $ac_cv_type_off_t = yes; then |
| 5071 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5072 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5073 | |
| 5074 | cat >>confdefs.h <<_ACEOF |
| 5075 | #define off_t long |
| 5076 | _ACEOF |
| 5077 | |
| 5078 | fi |
| 5079 | |
| 5080 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 5081 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 5082 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 5083 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5084 | else |
| 5085 | cat >conftest.$ac_ext <<_ACEOF |
| 5086 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5087 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5088 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5089 | int |
| 5090 | main () |
| 5091 | { |
| 5092 | if ((pid_t *) 0) |
| 5093 | return 0; |
| 5094 | if (sizeof (pid_t)) |
| 5095 | return 0; |
| 5096 | ; |
| 5097 | return 0; |
| 5098 | } |
| 5099 | _ACEOF |
| 5100 | rm -f conftest.$ac_objext |
| 5101 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5102 | (eval $ac_compile) 2>&5 |
| 5103 | ac_status=$? |
| 5104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5105 | (exit $ac_status); } && |
| 5106 | { ac_try='test -s conftest.$ac_objext' |
| 5107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5108 | (eval $ac_try) 2>&5 |
| 5109 | ac_status=$? |
| 5110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5111 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5112 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5113 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5114 | echo "$as_me: failed program was:" >&5 |
| 5115 | cat conftest.$ac_ext >&5 |
| 5116 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5117 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5118 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5119 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5120 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 5121 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 5122 | if test $ac_cv_type_pid_t = yes; then |
| 5123 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5124 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5125 | |
| 5126 | cat >>confdefs.h <<_ACEOF |
| 5127 | #define pid_t int |
| 5128 | _ACEOF |
| 5129 | |
| 5130 | fi |
| 5131 | |
| 5132 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 5133 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 5134 | if test "${ac_cv_type_signal+set}" = set; then |
| 5135 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5136 | else |
| 5137 | cat >conftest.$ac_ext <<_ACEOF |
| 5138 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5139 | #include "confdefs.h" |
| 5140 | #include <sys/types.h> |
| 5141 | #include <signal.h> |
| 5142 | #ifdef signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5143 | # undef signal |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5144 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5145 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5146 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 5147 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5148 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5149 | #endif |
| 5150 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5151 | int |
| 5152 | main () |
| 5153 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5154 | int i; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5155 | ; |
| 5156 | return 0; |
| 5157 | } |
| 5158 | _ACEOF |
| 5159 | rm -f conftest.$ac_objext |
| 5160 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5161 | (eval $ac_compile) 2>&5 |
| 5162 | ac_status=$? |
| 5163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5164 | (exit $ac_status); } && |
| 5165 | { ac_try='test -s conftest.$ac_objext' |
| 5166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5167 | (eval $ac_try) 2>&5 |
| 5168 | ac_status=$? |
| 5169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5170 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5171 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5172 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5173 | echo "$as_me: failed program was:" >&5 |
| 5174 | cat conftest.$ac_ext >&5 |
| 5175 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5176 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5177 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5178 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5179 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 5180 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5181 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5182 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5183 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5184 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5185 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5186 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5187 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 5188 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 5189 | if test "${ac_cv_type_size_t+set}" = set; then |
| 5190 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5191 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5192 | cat >conftest.$ac_ext <<_ACEOF |
| 5193 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5194 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5195 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5196 | int |
| 5197 | main () |
| 5198 | { |
| 5199 | if ((size_t *) 0) |
| 5200 | return 0; |
| 5201 | if (sizeof (size_t)) |
| 5202 | return 0; |
| 5203 | ; |
| 5204 | return 0; |
| 5205 | } |
| 5206 | _ACEOF |
| 5207 | rm -f conftest.$ac_objext |
| 5208 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5209 | (eval $ac_compile) 2>&5 |
| 5210 | ac_status=$? |
| 5211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5212 | (exit $ac_status); } && |
| 5213 | { ac_try='test -s conftest.$ac_objext' |
| 5214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5215 | (eval $ac_try) 2>&5 |
| 5216 | ac_status=$? |
| 5217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5218 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5219 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5220 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5221 | echo "$as_me: failed program was:" >&5 |
| 5222 | cat conftest.$ac_ext >&5 |
| 5223 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5224 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5225 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5226 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5227 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 5228 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 5229 | if test $ac_cv_type_size_t = yes; then |
| 5230 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5231 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5232 | |
| 5233 | cat >>confdefs.h <<_ACEOF |
| 5234 | #define size_t unsigned |
| 5235 | _ACEOF |
| 5236 | |
| 5237 | fi |
| 5238 | |
| 5239 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 5240 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
| 5241 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 5242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5243 | else |
| 5244 | cat >conftest.$ac_ext <<_ACEOF |
| 5245 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5246 | #include "confdefs.h" |
| 5247 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5248 | |
| 5249 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5250 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 5251 | $EGREP "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5252 | ac_cv_type_uid_t=yes |
| 5253 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5254 | ac_cv_type_uid_t=no |
| 5255 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5256 | rm -f conftest* |
| 5257 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5258 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5259 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 5260 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5261 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5262 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5263 | cat >>confdefs.h <<\_ACEOF |
| 5264 | #define uid_t int |
| 5265 | _ACEOF |
| 5266 | |
| 5267 | |
| 5268 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5269 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5270 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5271 | |
| 5272 | fi |
| 5273 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5274 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5275 | # Sizes of various common basic types |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5276 | echo "$as_me:$LINENO: checking for int" >&5 |
| 5277 | echo $ECHO_N "checking for int... $ECHO_C" >&6 |
| 5278 | if test "${ac_cv_type_int+set}" = set; then |
| 5279 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5280 | else |
| 5281 | cat >conftest.$ac_ext <<_ACEOF |
| 5282 | #line $LINENO "configure" |
| 5283 | #include "confdefs.h" |
| 5284 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5285 | int |
| 5286 | main () |
| 5287 | { |
| 5288 | if ((int *) 0) |
| 5289 | return 0; |
| 5290 | if (sizeof (int)) |
| 5291 | return 0; |
| 5292 | ; |
| 5293 | return 0; |
| 5294 | } |
| 5295 | _ACEOF |
| 5296 | rm -f conftest.$ac_objext |
| 5297 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5298 | (eval $ac_compile) 2>&5 |
| 5299 | ac_status=$? |
| 5300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5301 | (exit $ac_status); } && |
| 5302 | { ac_try='test -s conftest.$ac_objext' |
| 5303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5304 | (eval $ac_try) 2>&5 |
| 5305 | ac_status=$? |
| 5306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5307 | (exit $ac_status); }; }; then |
| 5308 | ac_cv_type_int=yes |
| 5309 | else |
| 5310 | echo "$as_me: failed program was:" >&5 |
| 5311 | cat conftest.$ac_ext >&5 |
| 5312 | ac_cv_type_int=no |
| 5313 | fi |
| 5314 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5315 | fi |
| 5316 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 5317 | echo "${ECHO_T}$ac_cv_type_int" >&6 |
| 5318 | |
| 5319 | echo "$as_me:$LINENO: checking size of int" >&5 |
| 5320 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| 5321 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 5322 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5323 | else |
| 5324 | if test "$ac_cv_type_int" = yes; then |
| 5325 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5326 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5327 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5328 | # This bug is HP SR number 8606223364. |
| 5329 | if test "$cross_compiling" = yes; then |
| 5330 | # Depending upon the size, compute the lo and hi bounds. |
| 5331 | cat >conftest.$ac_ext <<_ACEOF |
| 5332 | #line $LINENO "configure" |
| 5333 | #include "confdefs.h" |
| 5334 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5335 | int |
| 5336 | main () |
| 5337 | { |
| 5338 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
| 5339 | test_array [0] = 0 |
| 5340 | |
| 5341 | ; |
| 5342 | return 0; |
| 5343 | } |
| 5344 | _ACEOF |
| 5345 | rm -f conftest.$ac_objext |
| 5346 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5347 | (eval $ac_compile) 2>&5 |
| 5348 | ac_status=$? |
| 5349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5350 | (exit $ac_status); } && |
| 5351 | { ac_try='test -s conftest.$ac_objext' |
| 5352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5353 | (eval $ac_try) 2>&5 |
| 5354 | ac_status=$? |
| 5355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5356 | (exit $ac_status); }; }; then |
| 5357 | ac_lo=0 ac_mid=0 |
| 5358 | while :; do |
| 5359 | cat >conftest.$ac_ext <<_ACEOF |
| 5360 | #line $LINENO "configure" |
| 5361 | #include "confdefs.h" |
| 5362 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5363 | int |
| 5364 | main () |
| 5365 | { |
| 5366 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 5367 | test_array [0] = 0 |
| 5368 | |
| 5369 | ; |
| 5370 | return 0; |
| 5371 | } |
| 5372 | _ACEOF |
| 5373 | rm -f conftest.$ac_objext |
| 5374 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5375 | (eval $ac_compile) 2>&5 |
| 5376 | ac_status=$? |
| 5377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5378 | (exit $ac_status); } && |
| 5379 | { ac_try='test -s conftest.$ac_objext' |
| 5380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5381 | (eval $ac_try) 2>&5 |
| 5382 | ac_status=$? |
| 5383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5384 | (exit $ac_status); }; }; then |
| 5385 | ac_hi=$ac_mid; break |
| 5386 | else |
| 5387 | echo "$as_me: failed program was:" >&5 |
| 5388 | cat conftest.$ac_ext >&5 |
| 5389 | ac_lo=`expr $ac_mid + 1` |
| 5390 | if test $ac_lo -le $ac_mid; then |
| 5391 | ac_lo= ac_hi= |
| 5392 | break |
| 5393 | fi |
| 5394 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5395 | fi |
| 5396 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5397 | done |
| 5398 | else |
| 5399 | echo "$as_me: failed program was:" >&5 |
| 5400 | cat conftest.$ac_ext >&5 |
| 5401 | cat >conftest.$ac_ext <<_ACEOF |
| 5402 | #line $LINENO "configure" |
| 5403 | #include "confdefs.h" |
| 5404 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5405 | int |
| 5406 | main () |
| 5407 | { |
| 5408 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
| 5409 | test_array [0] = 0 |
| 5410 | |
| 5411 | ; |
| 5412 | return 0; |
| 5413 | } |
| 5414 | _ACEOF |
| 5415 | rm -f conftest.$ac_objext |
| 5416 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5417 | (eval $ac_compile) 2>&5 |
| 5418 | ac_status=$? |
| 5419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5420 | (exit $ac_status); } && |
| 5421 | { ac_try='test -s conftest.$ac_objext' |
| 5422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5423 | (eval $ac_try) 2>&5 |
| 5424 | ac_status=$? |
| 5425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5426 | (exit $ac_status); }; }; then |
| 5427 | ac_hi=-1 ac_mid=-1 |
| 5428 | while :; do |
| 5429 | cat >conftest.$ac_ext <<_ACEOF |
| 5430 | #line $LINENO "configure" |
| 5431 | #include "confdefs.h" |
| 5432 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5433 | int |
| 5434 | main () |
| 5435 | { |
| 5436 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
| 5437 | test_array [0] = 0 |
| 5438 | |
| 5439 | ; |
| 5440 | return 0; |
| 5441 | } |
| 5442 | _ACEOF |
| 5443 | rm -f conftest.$ac_objext |
| 5444 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5445 | (eval $ac_compile) 2>&5 |
| 5446 | ac_status=$? |
| 5447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5448 | (exit $ac_status); } && |
| 5449 | { ac_try='test -s conftest.$ac_objext' |
| 5450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5451 | (eval $ac_try) 2>&5 |
| 5452 | ac_status=$? |
| 5453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5454 | (exit $ac_status); }; }; then |
| 5455 | ac_lo=$ac_mid; break |
| 5456 | else |
| 5457 | echo "$as_me: failed program was:" >&5 |
| 5458 | cat conftest.$ac_ext >&5 |
| 5459 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5460 | if test $ac_mid -le $ac_hi; then |
| 5461 | ac_lo= ac_hi= |
| 5462 | break |
| 5463 | fi |
| 5464 | ac_mid=`expr 2 '*' $ac_mid` |
| 5465 | fi |
| 5466 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5467 | done |
| 5468 | else |
| 5469 | echo "$as_me: failed program was:" >&5 |
| 5470 | cat conftest.$ac_ext >&5 |
| 5471 | ac_lo= ac_hi= |
| 5472 | fi |
| 5473 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5474 | fi |
| 5475 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5476 | # Binary search between lo and hi bounds. |
| 5477 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5478 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5479 | cat >conftest.$ac_ext <<_ACEOF |
| 5480 | #line $LINENO "configure" |
| 5481 | #include "confdefs.h" |
| 5482 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5483 | int |
| 5484 | main () |
| 5485 | { |
| 5486 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 5487 | test_array [0] = 0 |
| 5488 | |
| 5489 | ; |
| 5490 | return 0; |
| 5491 | } |
| 5492 | _ACEOF |
| 5493 | rm -f conftest.$ac_objext |
| 5494 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5495 | (eval $ac_compile) 2>&5 |
| 5496 | ac_status=$? |
| 5497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5498 | (exit $ac_status); } && |
| 5499 | { ac_try='test -s conftest.$ac_objext' |
| 5500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5501 | (eval $ac_try) 2>&5 |
| 5502 | ac_status=$? |
| 5503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5504 | (exit $ac_status); }; }; then |
| 5505 | ac_hi=$ac_mid |
| 5506 | else |
| 5507 | echo "$as_me: failed program was:" >&5 |
| 5508 | cat conftest.$ac_ext >&5 |
| 5509 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 5510 | fi |
| 5511 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5512 | done |
| 5513 | case $ac_lo in |
| 5514 | ?*) ac_cv_sizeof_int=$ac_lo;; |
| 5515 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 |
| 5516 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} |
| 5517 | { (exit 1); exit 1; }; } ;; |
| 5518 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5519 | else |
| 5520 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5521 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 5522 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 5523 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5524 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5525 | cat >conftest.$ac_ext <<_ACEOF |
| 5526 | #line $LINENO "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5527 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5528 | $ac_includes_default |
| 5529 | long longval () { return (long) (sizeof (int)); } |
| 5530 | unsigned long ulongval () { return (long) (sizeof (int)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5531 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5532 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5533 | int |
| 5534 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5535 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5536 | |
| 5537 | FILE *f = fopen ("conftest.val", "w"); |
| 5538 | if (! f) |
| 5539 | exit (1); |
| 5540 | if (((long) (sizeof (int))) < 0) |
| 5541 | { |
| 5542 | long i = longval (); |
| 5543 | if (i != ((long) (sizeof (int)))) |
| 5544 | exit (1); |
| 5545 | fprintf (f, "%ld\n", i); |
| 5546 | } |
| 5547 | else |
| 5548 | { |
| 5549 | unsigned long i = ulongval (); |
| 5550 | if (i != ((long) (sizeof (int)))) |
| 5551 | exit (1); |
| 5552 | fprintf (f, "%lu\n", i); |
| 5553 | } |
| 5554 | exit (ferror (f) || fclose (f) != 0); |
| 5555 | |
| 5556 | ; |
| 5557 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5558 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5559 | _ACEOF |
| 5560 | rm -f conftest$ac_exeext |
| 5561 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5562 | (eval $ac_link) 2>&5 |
| 5563 | ac_status=$? |
| 5564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5565 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5567 | (eval $ac_try) 2>&5 |
| 5568 | ac_status=$? |
| 5569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5570 | (exit $ac_status); }; }; then |
| 5571 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5572 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5573 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5574 | echo "$as_me: failed program was:" >&5 |
| 5575 | cat conftest.$ac_ext >&5 |
| 5576 | ( exit $ac_status ) |
| 5577 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 |
| 5578 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} |
| 5579 | { (exit 1); exit 1; }; } |
| 5580 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 5581 | 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] | 5582 | fi |
| 5583 | fi |
| 5584 | rm -f conftest.val |
| 5585 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5586 | ac_cv_sizeof_int=0 |
| 5587 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5588 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5589 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 5590 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| 5591 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5592 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5593 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5594 | |
| 5595 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5596 | echo "$as_me:$LINENO: checking for long" >&5 |
| 5597 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
| 5598 | if test "${ac_cv_type_long+set}" = set; then |
| 5599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5600 | else |
| 5601 | cat >conftest.$ac_ext <<_ACEOF |
| 5602 | #line $LINENO "configure" |
| 5603 | #include "confdefs.h" |
| 5604 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5605 | int |
| 5606 | main () |
| 5607 | { |
| 5608 | if ((long *) 0) |
| 5609 | return 0; |
| 5610 | if (sizeof (long)) |
| 5611 | return 0; |
| 5612 | ; |
| 5613 | return 0; |
| 5614 | } |
| 5615 | _ACEOF |
| 5616 | rm -f conftest.$ac_objext |
| 5617 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5618 | (eval $ac_compile) 2>&5 |
| 5619 | ac_status=$? |
| 5620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5621 | (exit $ac_status); } && |
| 5622 | { ac_try='test -s conftest.$ac_objext' |
| 5623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5624 | (eval $ac_try) 2>&5 |
| 5625 | ac_status=$? |
| 5626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5627 | (exit $ac_status); }; }; then |
| 5628 | ac_cv_type_long=yes |
| 5629 | else |
| 5630 | echo "$as_me: failed program was:" >&5 |
| 5631 | cat conftest.$ac_ext >&5 |
| 5632 | ac_cv_type_long=no |
| 5633 | fi |
| 5634 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5635 | fi |
| 5636 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 5637 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
| 5638 | |
| 5639 | echo "$as_me:$LINENO: checking size of long" >&5 |
| 5640 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
| 5641 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 5642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5643 | else |
| 5644 | if test "$ac_cv_type_long" = yes; then |
| 5645 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5646 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5647 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5648 | # This bug is HP SR number 8606223364. |
| 5649 | if test "$cross_compiling" = yes; then |
| 5650 | # Depending upon the size, compute the lo and hi bounds. |
| 5651 | cat >conftest.$ac_ext <<_ACEOF |
| 5652 | #line $LINENO "configure" |
| 5653 | #include "confdefs.h" |
| 5654 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5655 | int |
| 5656 | main () |
| 5657 | { |
| 5658 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
| 5659 | test_array [0] = 0 |
| 5660 | |
| 5661 | ; |
| 5662 | return 0; |
| 5663 | } |
| 5664 | _ACEOF |
| 5665 | rm -f conftest.$ac_objext |
| 5666 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5667 | (eval $ac_compile) 2>&5 |
| 5668 | ac_status=$? |
| 5669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5670 | (exit $ac_status); } && |
| 5671 | { ac_try='test -s conftest.$ac_objext' |
| 5672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5673 | (eval $ac_try) 2>&5 |
| 5674 | ac_status=$? |
| 5675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5676 | (exit $ac_status); }; }; then |
| 5677 | ac_lo=0 ac_mid=0 |
| 5678 | while :; do |
| 5679 | cat >conftest.$ac_ext <<_ACEOF |
| 5680 | #line $LINENO "configure" |
| 5681 | #include "confdefs.h" |
| 5682 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5683 | int |
| 5684 | main () |
| 5685 | { |
| 5686 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 5687 | test_array [0] = 0 |
| 5688 | |
| 5689 | ; |
| 5690 | return 0; |
| 5691 | } |
| 5692 | _ACEOF |
| 5693 | rm -f conftest.$ac_objext |
| 5694 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5695 | (eval $ac_compile) 2>&5 |
| 5696 | ac_status=$? |
| 5697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5698 | (exit $ac_status); } && |
| 5699 | { ac_try='test -s conftest.$ac_objext' |
| 5700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5701 | (eval $ac_try) 2>&5 |
| 5702 | ac_status=$? |
| 5703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5704 | (exit $ac_status); }; }; then |
| 5705 | ac_hi=$ac_mid; break |
| 5706 | else |
| 5707 | echo "$as_me: failed program was:" >&5 |
| 5708 | cat conftest.$ac_ext >&5 |
| 5709 | ac_lo=`expr $ac_mid + 1` |
| 5710 | if test $ac_lo -le $ac_mid; then |
| 5711 | ac_lo= ac_hi= |
| 5712 | break |
| 5713 | fi |
| 5714 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5715 | fi |
| 5716 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5717 | done |
| 5718 | else |
| 5719 | echo "$as_me: failed program was:" >&5 |
| 5720 | cat conftest.$ac_ext >&5 |
| 5721 | cat >conftest.$ac_ext <<_ACEOF |
| 5722 | #line $LINENO "configure" |
| 5723 | #include "confdefs.h" |
| 5724 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5725 | int |
| 5726 | main () |
| 5727 | { |
| 5728 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
| 5729 | test_array [0] = 0 |
| 5730 | |
| 5731 | ; |
| 5732 | return 0; |
| 5733 | } |
| 5734 | _ACEOF |
| 5735 | rm -f conftest.$ac_objext |
| 5736 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5737 | (eval $ac_compile) 2>&5 |
| 5738 | ac_status=$? |
| 5739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5740 | (exit $ac_status); } && |
| 5741 | { ac_try='test -s conftest.$ac_objext' |
| 5742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5743 | (eval $ac_try) 2>&5 |
| 5744 | ac_status=$? |
| 5745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5746 | (exit $ac_status); }; }; then |
| 5747 | ac_hi=-1 ac_mid=-1 |
| 5748 | while :; do |
| 5749 | cat >conftest.$ac_ext <<_ACEOF |
| 5750 | #line $LINENO "configure" |
| 5751 | #include "confdefs.h" |
| 5752 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5753 | int |
| 5754 | main () |
| 5755 | { |
| 5756 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
| 5757 | test_array [0] = 0 |
| 5758 | |
| 5759 | ; |
| 5760 | return 0; |
| 5761 | } |
| 5762 | _ACEOF |
| 5763 | rm -f conftest.$ac_objext |
| 5764 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5765 | (eval $ac_compile) 2>&5 |
| 5766 | ac_status=$? |
| 5767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5768 | (exit $ac_status); } && |
| 5769 | { ac_try='test -s conftest.$ac_objext' |
| 5770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5771 | (eval $ac_try) 2>&5 |
| 5772 | ac_status=$? |
| 5773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5774 | (exit $ac_status); }; }; then |
| 5775 | ac_lo=$ac_mid; break |
| 5776 | else |
| 5777 | echo "$as_me: failed program was:" >&5 |
| 5778 | cat conftest.$ac_ext >&5 |
| 5779 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5780 | if test $ac_mid -le $ac_hi; then |
| 5781 | ac_lo= ac_hi= |
| 5782 | break |
| 5783 | fi |
| 5784 | ac_mid=`expr 2 '*' $ac_mid` |
| 5785 | fi |
| 5786 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5787 | done |
| 5788 | else |
| 5789 | echo "$as_me: failed program was:" >&5 |
| 5790 | cat conftest.$ac_ext >&5 |
| 5791 | ac_lo= ac_hi= |
| 5792 | fi |
| 5793 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5794 | fi |
| 5795 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5796 | # Binary search between lo and hi bounds. |
| 5797 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5798 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5799 | cat >conftest.$ac_ext <<_ACEOF |
| 5800 | #line $LINENO "configure" |
| 5801 | #include "confdefs.h" |
| 5802 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5803 | int |
| 5804 | main () |
| 5805 | { |
| 5806 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 5807 | test_array [0] = 0 |
| 5808 | |
| 5809 | ; |
| 5810 | return 0; |
| 5811 | } |
| 5812 | _ACEOF |
| 5813 | rm -f conftest.$ac_objext |
| 5814 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5815 | (eval $ac_compile) 2>&5 |
| 5816 | ac_status=$? |
| 5817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5818 | (exit $ac_status); } && |
| 5819 | { ac_try='test -s conftest.$ac_objext' |
| 5820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5821 | (eval $ac_try) 2>&5 |
| 5822 | ac_status=$? |
| 5823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5824 | (exit $ac_status); }; }; then |
| 5825 | ac_hi=$ac_mid |
| 5826 | else |
| 5827 | echo "$as_me: failed program was:" >&5 |
| 5828 | cat conftest.$ac_ext >&5 |
| 5829 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 5830 | fi |
| 5831 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5832 | done |
| 5833 | case $ac_lo in |
| 5834 | ?*) ac_cv_sizeof_long=$ac_lo;; |
| 5835 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5 |
| 5836 | echo "$as_me: error: cannot compute sizeof (long), 77" >&2;} |
| 5837 | { (exit 1); exit 1; }; } ;; |
| 5838 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5839 | else |
| 5840 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5841 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 5842 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 5843 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5844 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5845 | cat >conftest.$ac_ext <<_ACEOF |
| 5846 | #line $LINENO "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5847 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5848 | $ac_includes_default |
| 5849 | long longval () { return (long) (sizeof (long)); } |
| 5850 | unsigned long ulongval () { return (long) (sizeof (long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5851 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5852 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5853 | int |
| 5854 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5855 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5856 | |
| 5857 | FILE *f = fopen ("conftest.val", "w"); |
| 5858 | if (! f) |
| 5859 | exit (1); |
| 5860 | if (((long) (sizeof (long))) < 0) |
| 5861 | { |
| 5862 | long i = longval (); |
| 5863 | if (i != ((long) (sizeof (long)))) |
| 5864 | exit (1); |
| 5865 | fprintf (f, "%ld\n", i); |
| 5866 | } |
| 5867 | else |
| 5868 | { |
| 5869 | unsigned long i = ulongval (); |
| 5870 | if (i != ((long) (sizeof (long)))) |
| 5871 | exit (1); |
| 5872 | fprintf (f, "%lu\n", i); |
| 5873 | } |
| 5874 | exit (ferror (f) || fclose (f) != 0); |
| 5875 | |
| 5876 | ; |
| 5877 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5878 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5879 | _ACEOF |
| 5880 | rm -f conftest$ac_exeext |
| 5881 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5882 | (eval $ac_link) 2>&5 |
| 5883 | ac_status=$? |
| 5884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5885 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5887 | (eval $ac_try) 2>&5 |
| 5888 | ac_status=$? |
| 5889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5890 | (exit $ac_status); }; }; then |
| 5891 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5892 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5893 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5894 | echo "$as_me: failed program was:" >&5 |
| 5895 | cat conftest.$ac_ext >&5 |
| 5896 | ( exit $ac_status ) |
| 5897 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5 |
| 5898 | echo "$as_me: error: cannot compute sizeof (long), 77" >&2;} |
| 5899 | { (exit 1); exit 1; }; } |
| 5900 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 5901 | 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] | 5902 | fi |
| 5903 | fi |
| 5904 | rm -f conftest.val |
| 5905 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5906 | ac_cv_sizeof_long=0 |
| 5907 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5908 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5909 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 5910 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
| 5911 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5912 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5913 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5914 | |
| 5915 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5916 | echo "$as_me:$LINENO: checking for void *" >&5 |
| 5917 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 |
| 5918 | if test "${ac_cv_type_void_p+set}" = set; then |
| 5919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5920 | else |
| 5921 | cat >conftest.$ac_ext <<_ACEOF |
| 5922 | #line $LINENO "configure" |
| 5923 | #include "confdefs.h" |
| 5924 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5925 | int |
| 5926 | main () |
| 5927 | { |
| 5928 | if ((void * *) 0) |
| 5929 | return 0; |
| 5930 | if (sizeof (void *)) |
| 5931 | return 0; |
| 5932 | ; |
| 5933 | return 0; |
| 5934 | } |
| 5935 | _ACEOF |
| 5936 | rm -f conftest.$ac_objext |
| 5937 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5938 | (eval $ac_compile) 2>&5 |
| 5939 | ac_status=$? |
| 5940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5941 | (exit $ac_status); } && |
| 5942 | { ac_try='test -s conftest.$ac_objext' |
| 5943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5944 | (eval $ac_try) 2>&5 |
| 5945 | ac_status=$? |
| 5946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5947 | (exit $ac_status); }; }; then |
| 5948 | ac_cv_type_void_p=yes |
| 5949 | else |
| 5950 | echo "$as_me: failed program was:" >&5 |
| 5951 | cat conftest.$ac_ext >&5 |
| 5952 | ac_cv_type_void_p=no |
| 5953 | fi |
| 5954 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5955 | fi |
| 5956 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 5957 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 |
| 5958 | |
| 5959 | echo "$as_me:$LINENO: checking size of void *" >&5 |
| 5960 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 |
| 5961 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
| 5962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5963 | else |
| 5964 | if test "$ac_cv_type_void_p" = yes; then |
| 5965 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5966 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5967 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5968 | # This bug is HP SR number 8606223364. |
| 5969 | if test "$cross_compiling" = yes; then |
| 5970 | # Depending upon the size, compute the lo and hi bounds. |
| 5971 | cat >conftest.$ac_ext <<_ACEOF |
| 5972 | #line $LINENO "configure" |
| 5973 | #include "confdefs.h" |
| 5974 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5975 | int |
| 5976 | main () |
| 5977 | { |
| 5978 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
| 5979 | test_array [0] = 0 |
| 5980 | |
| 5981 | ; |
| 5982 | return 0; |
| 5983 | } |
| 5984 | _ACEOF |
| 5985 | rm -f conftest.$ac_objext |
| 5986 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5987 | (eval $ac_compile) 2>&5 |
| 5988 | ac_status=$? |
| 5989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5990 | (exit $ac_status); } && |
| 5991 | { ac_try='test -s conftest.$ac_objext' |
| 5992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5993 | (eval $ac_try) 2>&5 |
| 5994 | ac_status=$? |
| 5995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5996 | (exit $ac_status); }; }; then |
| 5997 | ac_lo=0 ac_mid=0 |
| 5998 | while :; do |
| 5999 | cat >conftest.$ac_ext <<_ACEOF |
| 6000 | #line $LINENO "configure" |
| 6001 | #include "confdefs.h" |
| 6002 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6003 | int |
| 6004 | main () |
| 6005 | { |
| 6006 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 6007 | test_array [0] = 0 |
| 6008 | |
| 6009 | ; |
| 6010 | return 0; |
| 6011 | } |
| 6012 | _ACEOF |
| 6013 | rm -f conftest.$ac_objext |
| 6014 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6015 | (eval $ac_compile) 2>&5 |
| 6016 | ac_status=$? |
| 6017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6018 | (exit $ac_status); } && |
| 6019 | { ac_try='test -s conftest.$ac_objext' |
| 6020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6021 | (eval $ac_try) 2>&5 |
| 6022 | ac_status=$? |
| 6023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6024 | (exit $ac_status); }; }; then |
| 6025 | ac_hi=$ac_mid; break |
| 6026 | else |
| 6027 | echo "$as_me: failed program was:" >&5 |
| 6028 | cat conftest.$ac_ext >&5 |
| 6029 | ac_lo=`expr $ac_mid + 1` |
| 6030 | if test $ac_lo -le $ac_mid; then |
| 6031 | ac_lo= ac_hi= |
| 6032 | break |
| 6033 | fi |
| 6034 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6035 | fi |
| 6036 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6037 | done |
| 6038 | else |
| 6039 | echo "$as_me: failed program was:" >&5 |
| 6040 | cat conftest.$ac_ext >&5 |
| 6041 | cat >conftest.$ac_ext <<_ACEOF |
| 6042 | #line $LINENO "configure" |
| 6043 | #include "confdefs.h" |
| 6044 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6045 | int |
| 6046 | main () |
| 6047 | { |
| 6048 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
| 6049 | test_array [0] = 0 |
| 6050 | |
| 6051 | ; |
| 6052 | return 0; |
| 6053 | } |
| 6054 | _ACEOF |
| 6055 | rm -f conftest.$ac_objext |
| 6056 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6057 | (eval $ac_compile) 2>&5 |
| 6058 | ac_status=$? |
| 6059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6060 | (exit $ac_status); } && |
| 6061 | { ac_try='test -s conftest.$ac_objext' |
| 6062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6063 | (eval $ac_try) 2>&5 |
| 6064 | ac_status=$? |
| 6065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6066 | (exit $ac_status); }; }; then |
| 6067 | ac_hi=-1 ac_mid=-1 |
| 6068 | while :; do |
| 6069 | cat >conftest.$ac_ext <<_ACEOF |
| 6070 | #line $LINENO "configure" |
| 6071 | #include "confdefs.h" |
| 6072 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6073 | int |
| 6074 | main () |
| 6075 | { |
| 6076 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
| 6077 | test_array [0] = 0 |
| 6078 | |
| 6079 | ; |
| 6080 | return 0; |
| 6081 | } |
| 6082 | _ACEOF |
| 6083 | rm -f conftest.$ac_objext |
| 6084 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6085 | (eval $ac_compile) 2>&5 |
| 6086 | ac_status=$? |
| 6087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6088 | (exit $ac_status); } && |
| 6089 | { ac_try='test -s conftest.$ac_objext' |
| 6090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6091 | (eval $ac_try) 2>&5 |
| 6092 | ac_status=$? |
| 6093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6094 | (exit $ac_status); }; }; then |
| 6095 | ac_lo=$ac_mid; break |
| 6096 | else |
| 6097 | echo "$as_me: failed program was:" >&5 |
| 6098 | cat conftest.$ac_ext >&5 |
| 6099 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6100 | if test $ac_mid -le $ac_hi; then |
| 6101 | ac_lo= ac_hi= |
| 6102 | break |
| 6103 | fi |
| 6104 | ac_mid=`expr 2 '*' $ac_mid` |
| 6105 | fi |
| 6106 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6107 | done |
| 6108 | else |
| 6109 | echo "$as_me: failed program was:" >&5 |
| 6110 | cat conftest.$ac_ext >&5 |
| 6111 | ac_lo= ac_hi= |
| 6112 | fi |
| 6113 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6114 | fi |
| 6115 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6116 | # Binary search between lo and hi bounds. |
| 6117 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6118 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6119 | cat >conftest.$ac_ext <<_ACEOF |
| 6120 | #line $LINENO "configure" |
| 6121 | #include "confdefs.h" |
| 6122 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6123 | int |
| 6124 | main () |
| 6125 | { |
| 6126 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 6127 | test_array [0] = 0 |
| 6128 | |
| 6129 | ; |
| 6130 | return 0; |
| 6131 | } |
| 6132 | _ACEOF |
| 6133 | rm -f conftest.$ac_objext |
| 6134 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6135 | (eval $ac_compile) 2>&5 |
| 6136 | ac_status=$? |
| 6137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6138 | (exit $ac_status); } && |
| 6139 | { ac_try='test -s conftest.$ac_objext' |
| 6140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6141 | (eval $ac_try) 2>&5 |
| 6142 | ac_status=$? |
| 6143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6144 | (exit $ac_status); }; }; then |
| 6145 | ac_hi=$ac_mid |
| 6146 | else |
| 6147 | echo "$as_me: failed program was:" >&5 |
| 6148 | cat conftest.$ac_ext >&5 |
| 6149 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6150 | fi |
| 6151 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6152 | done |
| 6153 | case $ac_lo in |
| 6154 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
| 6155 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5 |
| 6156 | echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;} |
| 6157 | { (exit 1); exit 1; }; } ;; |
| 6158 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6159 | else |
| 6160 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6161 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6162 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6163 | { (exit 1); exit 1; }; } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6164 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6165 | cat >conftest.$ac_ext <<_ACEOF |
| 6166 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6167 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6168 | $ac_includes_default |
| 6169 | long longval () { return (long) (sizeof (void *)); } |
| 6170 | unsigned long ulongval () { return (long) (sizeof (void *)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6171 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6172 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6173 | int |
| 6174 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6175 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6176 | |
| 6177 | FILE *f = fopen ("conftest.val", "w"); |
| 6178 | if (! f) |
| 6179 | exit (1); |
| 6180 | if (((long) (sizeof (void *))) < 0) |
| 6181 | { |
| 6182 | long i = longval (); |
| 6183 | if (i != ((long) (sizeof (void *)))) |
| 6184 | exit (1); |
| 6185 | fprintf (f, "%ld\n", i); |
| 6186 | } |
| 6187 | else |
| 6188 | { |
| 6189 | unsigned long i = ulongval (); |
| 6190 | if (i != ((long) (sizeof (void *)))) |
| 6191 | exit (1); |
| 6192 | fprintf (f, "%lu\n", i); |
| 6193 | } |
| 6194 | exit (ferror (f) || fclose (f) != 0); |
| 6195 | |
| 6196 | ; |
| 6197 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6198 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6199 | _ACEOF |
| 6200 | rm -f conftest$ac_exeext |
| 6201 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6202 | (eval $ac_link) 2>&5 |
| 6203 | ac_status=$? |
| 6204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6205 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6207 | (eval $ac_try) 2>&5 |
| 6208 | ac_status=$? |
| 6209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6210 | (exit $ac_status); }; }; then |
| 6211 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6212 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6213 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6214 | echo "$as_me: failed program was:" >&5 |
| 6215 | cat conftest.$ac_ext >&5 |
| 6216 | ( exit $ac_status ) |
| 6217 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5 |
| 6218 | echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;} |
| 6219 | { (exit 1); exit 1; }; } |
| 6220 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 6221 | 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] | 6222 | fi |
| 6223 | fi |
| 6224 | rm -f conftest.val |
| 6225 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6226 | ac_cv_sizeof_void_p=0 |
| 6227 | fi |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6228 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6229 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 6230 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 |
| 6231 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6232 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6233 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6234 | |
| 6235 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6236 | echo "$as_me:$LINENO: checking for char" >&5 |
| 6237 | echo $ECHO_N "checking for char... $ECHO_C" >&6 |
| 6238 | if test "${ac_cv_type_char+set}" = set; then |
| 6239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6240 | else |
| 6241 | cat >conftest.$ac_ext <<_ACEOF |
| 6242 | #line $LINENO "configure" |
| 6243 | #include "confdefs.h" |
| 6244 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6245 | int |
| 6246 | main () |
| 6247 | { |
| 6248 | if ((char *) 0) |
| 6249 | return 0; |
| 6250 | if (sizeof (char)) |
| 6251 | return 0; |
| 6252 | ; |
| 6253 | return 0; |
| 6254 | } |
| 6255 | _ACEOF |
| 6256 | rm -f conftest.$ac_objext |
| 6257 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6258 | (eval $ac_compile) 2>&5 |
| 6259 | ac_status=$? |
| 6260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6261 | (exit $ac_status); } && |
| 6262 | { ac_try='test -s conftest.$ac_objext' |
| 6263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6264 | (eval $ac_try) 2>&5 |
| 6265 | ac_status=$? |
| 6266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6267 | (exit $ac_status); }; }; then |
| 6268 | ac_cv_type_char=yes |
| 6269 | else |
| 6270 | echo "$as_me: failed program was:" >&5 |
| 6271 | cat conftest.$ac_ext >&5 |
| 6272 | ac_cv_type_char=no |
| 6273 | fi |
| 6274 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6275 | fi |
| 6276 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 |
| 6277 | echo "${ECHO_T}$ac_cv_type_char" >&6 |
| 6278 | |
| 6279 | echo "$as_me:$LINENO: checking size of char" >&5 |
| 6280 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 |
| 6281 | if test "${ac_cv_sizeof_char+set}" = set; then |
| 6282 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6283 | else |
| 6284 | if test "$ac_cv_type_char" = yes; then |
| 6285 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6286 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6287 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6288 | # This bug is HP SR number 8606223364. |
| 6289 | if test "$cross_compiling" = yes; then |
| 6290 | # Depending upon the size, compute the lo and hi bounds. |
| 6291 | cat >conftest.$ac_ext <<_ACEOF |
| 6292 | #line $LINENO "configure" |
| 6293 | #include "confdefs.h" |
| 6294 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6295 | int |
| 6296 | main () |
| 6297 | { |
| 6298 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; |
| 6299 | test_array [0] = 0 |
| 6300 | |
| 6301 | ; |
| 6302 | return 0; |
| 6303 | } |
| 6304 | _ACEOF |
| 6305 | rm -f conftest.$ac_objext |
| 6306 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6307 | (eval $ac_compile) 2>&5 |
| 6308 | ac_status=$? |
| 6309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6310 | (exit $ac_status); } && |
| 6311 | { ac_try='test -s conftest.$ac_objext' |
| 6312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6313 | (eval $ac_try) 2>&5 |
| 6314 | ac_status=$? |
| 6315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6316 | (exit $ac_status); }; }; then |
| 6317 | ac_lo=0 ac_mid=0 |
| 6318 | while :; do |
| 6319 | cat >conftest.$ac_ext <<_ACEOF |
| 6320 | #line $LINENO "configure" |
| 6321 | #include "confdefs.h" |
| 6322 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6323 | int |
| 6324 | main () |
| 6325 | { |
| 6326 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 6327 | test_array [0] = 0 |
| 6328 | |
| 6329 | ; |
| 6330 | return 0; |
| 6331 | } |
| 6332 | _ACEOF |
| 6333 | rm -f conftest.$ac_objext |
| 6334 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6335 | (eval $ac_compile) 2>&5 |
| 6336 | ac_status=$? |
| 6337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6338 | (exit $ac_status); } && |
| 6339 | { ac_try='test -s conftest.$ac_objext' |
| 6340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6341 | (eval $ac_try) 2>&5 |
| 6342 | ac_status=$? |
| 6343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6344 | (exit $ac_status); }; }; then |
| 6345 | ac_hi=$ac_mid; break |
| 6346 | else |
| 6347 | echo "$as_me: failed program was:" >&5 |
| 6348 | cat conftest.$ac_ext >&5 |
| 6349 | ac_lo=`expr $ac_mid + 1` |
| 6350 | if test $ac_lo -le $ac_mid; then |
| 6351 | ac_lo= ac_hi= |
| 6352 | break |
| 6353 | fi |
| 6354 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6355 | fi |
| 6356 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6357 | done |
| 6358 | else |
| 6359 | echo "$as_me: failed program was:" >&5 |
| 6360 | cat conftest.$ac_ext >&5 |
| 6361 | cat >conftest.$ac_ext <<_ACEOF |
| 6362 | #line $LINENO "configure" |
| 6363 | #include "confdefs.h" |
| 6364 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6365 | int |
| 6366 | main () |
| 6367 | { |
| 6368 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; |
| 6369 | test_array [0] = 0 |
| 6370 | |
| 6371 | ; |
| 6372 | return 0; |
| 6373 | } |
| 6374 | _ACEOF |
| 6375 | rm -f conftest.$ac_objext |
| 6376 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6377 | (eval $ac_compile) 2>&5 |
| 6378 | ac_status=$? |
| 6379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6380 | (exit $ac_status); } && |
| 6381 | { ac_try='test -s conftest.$ac_objext' |
| 6382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6383 | (eval $ac_try) 2>&5 |
| 6384 | ac_status=$? |
| 6385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6386 | (exit $ac_status); }; }; then |
| 6387 | ac_hi=-1 ac_mid=-1 |
| 6388 | while :; do |
| 6389 | cat >conftest.$ac_ext <<_ACEOF |
| 6390 | #line $LINENO "configure" |
| 6391 | #include "confdefs.h" |
| 6392 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6393 | int |
| 6394 | main () |
| 6395 | { |
| 6396 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; |
| 6397 | test_array [0] = 0 |
| 6398 | |
| 6399 | ; |
| 6400 | return 0; |
| 6401 | } |
| 6402 | _ACEOF |
| 6403 | rm -f conftest.$ac_objext |
| 6404 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6405 | (eval $ac_compile) 2>&5 |
| 6406 | ac_status=$? |
| 6407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6408 | (exit $ac_status); } && |
| 6409 | { ac_try='test -s conftest.$ac_objext' |
| 6410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6411 | (eval $ac_try) 2>&5 |
| 6412 | ac_status=$? |
| 6413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6414 | (exit $ac_status); }; }; then |
| 6415 | ac_lo=$ac_mid; break |
| 6416 | else |
| 6417 | echo "$as_me: failed program was:" >&5 |
| 6418 | cat conftest.$ac_ext >&5 |
| 6419 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6420 | if test $ac_mid -le $ac_hi; then |
| 6421 | ac_lo= ac_hi= |
| 6422 | break |
| 6423 | fi |
| 6424 | ac_mid=`expr 2 '*' $ac_mid` |
| 6425 | fi |
| 6426 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6427 | done |
| 6428 | else |
| 6429 | echo "$as_me: failed program was:" >&5 |
| 6430 | cat conftest.$ac_ext >&5 |
| 6431 | ac_lo= ac_hi= |
| 6432 | fi |
| 6433 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6434 | fi |
| 6435 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6436 | # Binary search between lo and hi bounds. |
| 6437 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6438 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6439 | cat >conftest.$ac_ext <<_ACEOF |
| 6440 | #line $LINENO "configure" |
| 6441 | #include "confdefs.h" |
| 6442 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6443 | int |
| 6444 | main () |
| 6445 | { |
| 6446 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 6447 | test_array [0] = 0 |
| 6448 | |
| 6449 | ; |
| 6450 | return 0; |
| 6451 | } |
| 6452 | _ACEOF |
| 6453 | rm -f conftest.$ac_objext |
| 6454 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6455 | (eval $ac_compile) 2>&5 |
| 6456 | ac_status=$? |
| 6457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6458 | (exit $ac_status); } && |
| 6459 | { ac_try='test -s conftest.$ac_objext' |
| 6460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6461 | (eval $ac_try) 2>&5 |
| 6462 | ac_status=$? |
| 6463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6464 | (exit $ac_status); }; }; then |
| 6465 | ac_hi=$ac_mid |
| 6466 | else |
| 6467 | echo "$as_me: failed program was:" >&5 |
| 6468 | cat conftest.$ac_ext >&5 |
| 6469 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6470 | fi |
| 6471 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6472 | done |
| 6473 | case $ac_lo in |
| 6474 | ?*) ac_cv_sizeof_char=$ac_lo;; |
| 6475 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 |
| 6476 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} |
| 6477 | { (exit 1); exit 1; }; } ;; |
| 6478 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6479 | else |
| 6480 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6481 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6482 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6483 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6484 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6485 | cat >conftest.$ac_ext <<_ACEOF |
| 6486 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6487 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6488 | $ac_includes_default |
| 6489 | long longval () { return (long) (sizeof (char)); } |
| 6490 | unsigned long ulongval () { return (long) (sizeof (char)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6491 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6492 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6493 | int |
| 6494 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6495 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6496 | |
| 6497 | FILE *f = fopen ("conftest.val", "w"); |
| 6498 | if (! f) |
| 6499 | exit (1); |
| 6500 | if (((long) (sizeof (char))) < 0) |
| 6501 | { |
| 6502 | long i = longval (); |
| 6503 | if (i != ((long) (sizeof (char)))) |
| 6504 | exit (1); |
| 6505 | fprintf (f, "%ld\n", i); |
| 6506 | } |
| 6507 | else |
| 6508 | { |
| 6509 | unsigned long i = ulongval (); |
| 6510 | if (i != ((long) (sizeof (char)))) |
| 6511 | exit (1); |
| 6512 | fprintf (f, "%lu\n", i); |
| 6513 | } |
| 6514 | exit (ferror (f) || fclose (f) != 0); |
| 6515 | |
| 6516 | ; |
| 6517 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6518 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6519 | _ACEOF |
| 6520 | rm -f conftest$ac_exeext |
| 6521 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6522 | (eval $ac_link) 2>&5 |
| 6523 | ac_status=$? |
| 6524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6525 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6527 | (eval $ac_try) 2>&5 |
| 6528 | ac_status=$? |
| 6529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6530 | (exit $ac_status); }; }; then |
| 6531 | ac_cv_sizeof_char=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6532 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6533 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6534 | echo "$as_me: failed program was:" >&5 |
| 6535 | cat conftest.$ac_ext >&5 |
| 6536 | ( exit $ac_status ) |
| 6537 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 |
| 6538 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} |
| 6539 | { (exit 1); exit 1; }; } |
| 6540 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 6541 | 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] | 6542 | fi |
| 6543 | fi |
| 6544 | rm -f conftest.val |
| 6545 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6546 | ac_cv_sizeof_char=0 |
| 6547 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6548 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6549 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
| 6550 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 |
| 6551 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6552 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6553 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6554 | |
| 6555 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6556 | echo "$as_me:$LINENO: checking for short" >&5 |
| 6557 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
| 6558 | if test "${ac_cv_type_short+set}" = set; then |
| 6559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6560 | else |
| 6561 | cat >conftest.$ac_ext <<_ACEOF |
| 6562 | #line $LINENO "configure" |
| 6563 | #include "confdefs.h" |
| 6564 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6565 | int |
| 6566 | main () |
| 6567 | { |
| 6568 | if ((short *) 0) |
| 6569 | return 0; |
| 6570 | if (sizeof (short)) |
| 6571 | return 0; |
| 6572 | ; |
| 6573 | return 0; |
| 6574 | } |
| 6575 | _ACEOF |
| 6576 | rm -f conftest.$ac_objext |
| 6577 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6578 | (eval $ac_compile) 2>&5 |
| 6579 | ac_status=$? |
| 6580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6581 | (exit $ac_status); } && |
| 6582 | { ac_try='test -s conftest.$ac_objext' |
| 6583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6584 | (eval $ac_try) 2>&5 |
| 6585 | ac_status=$? |
| 6586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6587 | (exit $ac_status); }; }; then |
| 6588 | ac_cv_type_short=yes |
| 6589 | else |
| 6590 | echo "$as_me: failed program was:" >&5 |
| 6591 | cat conftest.$ac_ext >&5 |
| 6592 | ac_cv_type_short=no |
| 6593 | fi |
| 6594 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6595 | fi |
| 6596 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 6597 | echo "${ECHO_T}$ac_cv_type_short" >&6 |
| 6598 | |
| 6599 | echo "$as_me:$LINENO: checking size of short" >&5 |
| 6600 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 |
| 6601 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 6602 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6603 | else |
| 6604 | if test "$ac_cv_type_short" = yes; then |
| 6605 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6606 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6607 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6608 | # This bug is HP SR number 8606223364. |
| 6609 | if test "$cross_compiling" = yes; then |
| 6610 | # Depending upon the size, compute the lo and hi bounds. |
| 6611 | cat >conftest.$ac_ext <<_ACEOF |
| 6612 | #line $LINENO "configure" |
| 6613 | #include "confdefs.h" |
| 6614 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6615 | int |
| 6616 | main () |
| 6617 | { |
| 6618 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
| 6619 | test_array [0] = 0 |
| 6620 | |
| 6621 | ; |
| 6622 | return 0; |
| 6623 | } |
| 6624 | _ACEOF |
| 6625 | rm -f conftest.$ac_objext |
| 6626 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6627 | (eval $ac_compile) 2>&5 |
| 6628 | ac_status=$? |
| 6629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6630 | (exit $ac_status); } && |
| 6631 | { ac_try='test -s conftest.$ac_objext' |
| 6632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6633 | (eval $ac_try) 2>&5 |
| 6634 | ac_status=$? |
| 6635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6636 | (exit $ac_status); }; }; then |
| 6637 | ac_lo=0 ac_mid=0 |
| 6638 | while :; do |
| 6639 | cat >conftest.$ac_ext <<_ACEOF |
| 6640 | #line $LINENO "configure" |
| 6641 | #include "confdefs.h" |
| 6642 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6643 | int |
| 6644 | main () |
| 6645 | { |
| 6646 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 6647 | test_array [0] = 0 |
| 6648 | |
| 6649 | ; |
| 6650 | return 0; |
| 6651 | } |
| 6652 | _ACEOF |
| 6653 | rm -f conftest.$ac_objext |
| 6654 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6655 | (eval $ac_compile) 2>&5 |
| 6656 | ac_status=$? |
| 6657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6658 | (exit $ac_status); } && |
| 6659 | { ac_try='test -s conftest.$ac_objext' |
| 6660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6661 | (eval $ac_try) 2>&5 |
| 6662 | ac_status=$? |
| 6663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6664 | (exit $ac_status); }; }; then |
| 6665 | ac_hi=$ac_mid; break |
| 6666 | else |
| 6667 | echo "$as_me: failed program was:" >&5 |
| 6668 | cat conftest.$ac_ext >&5 |
| 6669 | ac_lo=`expr $ac_mid + 1` |
| 6670 | if test $ac_lo -le $ac_mid; then |
| 6671 | ac_lo= ac_hi= |
| 6672 | break |
| 6673 | fi |
| 6674 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6675 | fi |
| 6676 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6677 | done |
| 6678 | else |
| 6679 | echo "$as_me: failed program was:" >&5 |
| 6680 | cat conftest.$ac_ext >&5 |
| 6681 | cat >conftest.$ac_ext <<_ACEOF |
| 6682 | #line $LINENO "configure" |
| 6683 | #include "confdefs.h" |
| 6684 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6685 | int |
| 6686 | main () |
| 6687 | { |
| 6688 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
| 6689 | test_array [0] = 0 |
| 6690 | |
| 6691 | ; |
| 6692 | return 0; |
| 6693 | } |
| 6694 | _ACEOF |
| 6695 | rm -f conftest.$ac_objext |
| 6696 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6697 | (eval $ac_compile) 2>&5 |
| 6698 | ac_status=$? |
| 6699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6700 | (exit $ac_status); } && |
| 6701 | { ac_try='test -s conftest.$ac_objext' |
| 6702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6703 | (eval $ac_try) 2>&5 |
| 6704 | ac_status=$? |
| 6705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6706 | (exit $ac_status); }; }; then |
| 6707 | ac_hi=-1 ac_mid=-1 |
| 6708 | while :; do |
| 6709 | cat >conftest.$ac_ext <<_ACEOF |
| 6710 | #line $LINENO "configure" |
| 6711 | #include "confdefs.h" |
| 6712 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6713 | int |
| 6714 | main () |
| 6715 | { |
| 6716 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
| 6717 | test_array [0] = 0 |
| 6718 | |
| 6719 | ; |
| 6720 | return 0; |
| 6721 | } |
| 6722 | _ACEOF |
| 6723 | rm -f conftest.$ac_objext |
| 6724 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6725 | (eval $ac_compile) 2>&5 |
| 6726 | ac_status=$? |
| 6727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6728 | (exit $ac_status); } && |
| 6729 | { ac_try='test -s conftest.$ac_objext' |
| 6730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6731 | (eval $ac_try) 2>&5 |
| 6732 | ac_status=$? |
| 6733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6734 | (exit $ac_status); }; }; then |
| 6735 | ac_lo=$ac_mid; break |
| 6736 | else |
| 6737 | echo "$as_me: failed program was:" >&5 |
| 6738 | cat conftest.$ac_ext >&5 |
| 6739 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6740 | if test $ac_mid -le $ac_hi; then |
| 6741 | ac_lo= ac_hi= |
| 6742 | break |
| 6743 | fi |
| 6744 | ac_mid=`expr 2 '*' $ac_mid` |
| 6745 | fi |
| 6746 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6747 | done |
| 6748 | else |
| 6749 | echo "$as_me: failed program was:" >&5 |
| 6750 | cat conftest.$ac_ext >&5 |
| 6751 | ac_lo= ac_hi= |
| 6752 | fi |
| 6753 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6754 | fi |
| 6755 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6756 | # Binary search between lo and hi bounds. |
| 6757 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6758 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6759 | cat >conftest.$ac_ext <<_ACEOF |
| 6760 | #line $LINENO "configure" |
| 6761 | #include "confdefs.h" |
| 6762 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6763 | int |
| 6764 | main () |
| 6765 | { |
| 6766 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 6767 | test_array [0] = 0 |
| 6768 | |
| 6769 | ; |
| 6770 | return 0; |
| 6771 | } |
| 6772 | _ACEOF |
| 6773 | rm -f conftest.$ac_objext |
| 6774 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6775 | (eval $ac_compile) 2>&5 |
| 6776 | ac_status=$? |
| 6777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6778 | (exit $ac_status); } && |
| 6779 | { ac_try='test -s conftest.$ac_objext' |
| 6780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6781 | (eval $ac_try) 2>&5 |
| 6782 | ac_status=$? |
| 6783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6784 | (exit $ac_status); }; }; then |
| 6785 | ac_hi=$ac_mid |
| 6786 | else |
| 6787 | echo "$as_me: failed program was:" >&5 |
| 6788 | cat conftest.$ac_ext >&5 |
| 6789 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6790 | fi |
| 6791 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6792 | done |
| 6793 | case $ac_lo in |
| 6794 | ?*) ac_cv_sizeof_short=$ac_lo;; |
| 6795 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5 |
| 6796 | echo "$as_me: error: cannot compute sizeof (short), 77" >&2;} |
| 6797 | { (exit 1); exit 1; }; } ;; |
| 6798 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6799 | else |
| 6800 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6801 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6802 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6803 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6804 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6805 | cat >conftest.$ac_ext <<_ACEOF |
| 6806 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6807 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6808 | $ac_includes_default |
| 6809 | long longval () { return (long) (sizeof (short)); } |
| 6810 | unsigned long ulongval () { return (long) (sizeof (short)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6811 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6812 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6813 | int |
| 6814 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6815 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6816 | |
| 6817 | FILE *f = fopen ("conftest.val", "w"); |
| 6818 | if (! f) |
| 6819 | exit (1); |
| 6820 | if (((long) (sizeof (short))) < 0) |
| 6821 | { |
| 6822 | long i = longval (); |
| 6823 | if (i != ((long) (sizeof (short)))) |
| 6824 | exit (1); |
| 6825 | fprintf (f, "%ld\n", i); |
| 6826 | } |
| 6827 | else |
| 6828 | { |
| 6829 | unsigned long i = ulongval (); |
| 6830 | if (i != ((long) (sizeof (short)))) |
| 6831 | exit (1); |
| 6832 | fprintf (f, "%lu\n", i); |
| 6833 | } |
| 6834 | exit (ferror (f) || fclose (f) != 0); |
| 6835 | |
| 6836 | ; |
| 6837 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6838 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6839 | _ACEOF |
| 6840 | rm -f conftest$ac_exeext |
| 6841 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6842 | (eval $ac_link) 2>&5 |
| 6843 | ac_status=$? |
| 6844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6845 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6847 | (eval $ac_try) 2>&5 |
| 6848 | ac_status=$? |
| 6849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6850 | (exit $ac_status); }; }; then |
| 6851 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6852 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6853 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6854 | echo "$as_me: failed program was:" >&5 |
| 6855 | cat conftest.$ac_ext >&5 |
| 6856 | ( exit $ac_status ) |
| 6857 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5 |
| 6858 | echo "$as_me: error: cannot compute sizeof (short), 77" >&2;} |
| 6859 | { (exit 1); exit 1; }; } |
| 6860 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 6861 | 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] | 6862 | fi |
| 6863 | fi |
| 6864 | rm -f conftest.val |
| 6865 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6866 | ac_cv_sizeof_short=0 |
| 6867 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6868 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6869 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 6870 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 |
| 6871 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6872 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6873 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6874 | |
| 6875 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6876 | echo "$as_me:$LINENO: checking for float" >&5 |
| 6877 | echo $ECHO_N "checking for float... $ECHO_C" >&6 |
| 6878 | if test "${ac_cv_type_float+set}" = set; then |
| 6879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6880 | else |
| 6881 | cat >conftest.$ac_ext <<_ACEOF |
| 6882 | #line $LINENO "configure" |
| 6883 | #include "confdefs.h" |
| 6884 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6885 | int |
| 6886 | main () |
| 6887 | { |
| 6888 | if ((float *) 0) |
| 6889 | return 0; |
| 6890 | if (sizeof (float)) |
| 6891 | return 0; |
| 6892 | ; |
| 6893 | return 0; |
| 6894 | } |
| 6895 | _ACEOF |
| 6896 | rm -f conftest.$ac_objext |
| 6897 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6898 | (eval $ac_compile) 2>&5 |
| 6899 | ac_status=$? |
| 6900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6901 | (exit $ac_status); } && |
| 6902 | { ac_try='test -s conftest.$ac_objext' |
| 6903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6904 | (eval $ac_try) 2>&5 |
| 6905 | ac_status=$? |
| 6906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6907 | (exit $ac_status); }; }; then |
| 6908 | ac_cv_type_float=yes |
| 6909 | else |
| 6910 | echo "$as_me: failed program was:" >&5 |
| 6911 | cat conftest.$ac_ext >&5 |
| 6912 | ac_cv_type_float=no |
| 6913 | fi |
| 6914 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6915 | fi |
| 6916 | echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 6917 | echo "${ECHO_T}$ac_cv_type_float" >&6 |
| 6918 | |
| 6919 | echo "$as_me:$LINENO: checking size of float" >&5 |
| 6920 | echo $ECHO_N "checking size of float... $ECHO_C" >&6 |
| 6921 | if test "${ac_cv_sizeof_float+set}" = set; then |
| 6922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6923 | else |
| 6924 | if test "$ac_cv_type_float" = yes; then |
| 6925 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6926 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6927 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6928 | # This bug is HP SR number 8606223364. |
| 6929 | if test "$cross_compiling" = yes; then |
| 6930 | # Depending upon the size, compute the lo and hi bounds. |
| 6931 | cat >conftest.$ac_ext <<_ACEOF |
| 6932 | #line $LINENO "configure" |
| 6933 | #include "confdefs.h" |
| 6934 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6935 | int |
| 6936 | main () |
| 6937 | { |
| 6938 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)]; |
| 6939 | test_array [0] = 0 |
| 6940 | |
| 6941 | ; |
| 6942 | return 0; |
| 6943 | } |
| 6944 | _ACEOF |
| 6945 | rm -f conftest.$ac_objext |
| 6946 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6947 | (eval $ac_compile) 2>&5 |
| 6948 | ac_status=$? |
| 6949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6950 | (exit $ac_status); } && |
| 6951 | { ac_try='test -s conftest.$ac_objext' |
| 6952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6953 | (eval $ac_try) 2>&5 |
| 6954 | ac_status=$? |
| 6955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6956 | (exit $ac_status); }; }; then |
| 6957 | ac_lo=0 ac_mid=0 |
| 6958 | while :; do |
| 6959 | cat >conftest.$ac_ext <<_ACEOF |
| 6960 | #line $LINENO "configure" |
| 6961 | #include "confdefs.h" |
| 6962 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6963 | int |
| 6964 | main () |
| 6965 | { |
| 6966 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 6967 | test_array [0] = 0 |
| 6968 | |
| 6969 | ; |
| 6970 | return 0; |
| 6971 | } |
| 6972 | _ACEOF |
| 6973 | rm -f conftest.$ac_objext |
| 6974 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6975 | (eval $ac_compile) 2>&5 |
| 6976 | ac_status=$? |
| 6977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6978 | (exit $ac_status); } && |
| 6979 | { ac_try='test -s conftest.$ac_objext' |
| 6980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6981 | (eval $ac_try) 2>&5 |
| 6982 | ac_status=$? |
| 6983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6984 | (exit $ac_status); }; }; then |
| 6985 | ac_hi=$ac_mid; break |
| 6986 | else |
| 6987 | echo "$as_me: failed program was:" >&5 |
| 6988 | cat conftest.$ac_ext >&5 |
| 6989 | ac_lo=`expr $ac_mid + 1` |
| 6990 | if test $ac_lo -le $ac_mid; then |
| 6991 | ac_lo= ac_hi= |
| 6992 | break |
| 6993 | fi |
| 6994 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6995 | fi |
| 6996 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6997 | done |
| 6998 | else |
| 6999 | echo "$as_me: failed program was:" >&5 |
| 7000 | cat conftest.$ac_ext >&5 |
| 7001 | cat >conftest.$ac_ext <<_ACEOF |
| 7002 | #line $LINENO "configure" |
| 7003 | #include "confdefs.h" |
| 7004 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7005 | int |
| 7006 | main () |
| 7007 | { |
| 7008 | static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)]; |
| 7009 | test_array [0] = 0 |
| 7010 | |
| 7011 | ; |
| 7012 | return 0; |
| 7013 | } |
| 7014 | _ACEOF |
| 7015 | rm -f conftest.$ac_objext |
| 7016 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7017 | (eval $ac_compile) 2>&5 |
| 7018 | ac_status=$? |
| 7019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7020 | (exit $ac_status); } && |
| 7021 | { ac_try='test -s conftest.$ac_objext' |
| 7022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7023 | (eval $ac_try) 2>&5 |
| 7024 | ac_status=$? |
| 7025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7026 | (exit $ac_status); }; }; then |
| 7027 | ac_hi=-1 ac_mid=-1 |
| 7028 | while :; do |
| 7029 | cat >conftest.$ac_ext <<_ACEOF |
| 7030 | #line $LINENO "configure" |
| 7031 | #include "confdefs.h" |
| 7032 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7033 | int |
| 7034 | main () |
| 7035 | { |
| 7036 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)]; |
| 7037 | test_array [0] = 0 |
| 7038 | |
| 7039 | ; |
| 7040 | return 0; |
| 7041 | } |
| 7042 | _ACEOF |
| 7043 | rm -f conftest.$ac_objext |
| 7044 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7045 | (eval $ac_compile) 2>&5 |
| 7046 | ac_status=$? |
| 7047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7048 | (exit $ac_status); } && |
| 7049 | { ac_try='test -s conftest.$ac_objext' |
| 7050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7051 | (eval $ac_try) 2>&5 |
| 7052 | ac_status=$? |
| 7053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7054 | (exit $ac_status); }; }; then |
| 7055 | ac_lo=$ac_mid; break |
| 7056 | else |
| 7057 | echo "$as_me: failed program was:" >&5 |
| 7058 | cat conftest.$ac_ext >&5 |
| 7059 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7060 | if test $ac_mid -le $ac_hi; then |
| 7061 | ac_lo= ac_hi= |
| 7062 | break |
| 7063 | fi |
| 7064 | ac_mid=`expr 2 '*' $ac_mid` |
| 7065 | fi |
| 7066 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7067 | done |
| 7068 | else |
| 7069 | echo "$as_me: failed program was:" >&5 |
| 7070 | cat conftest.$ac_ext >&5 |
| 7071 | ac_lo= ac_hi= |
| 7072 | fi |
| 7073 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7074 | fi |
| 7075 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7076 | # Binary search between lo and hi bounds. |
| 7077 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7078 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7079 | cat >conftest.$ac_ext <<_ACEOF |
| 7080 | #line $LINENO "configure" |
| 7081 | #include "confdefs.h" |
| 7082 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7083 | int |
| 7084 | main () |
| 7085 | { |
| 7086 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 7087 | test_array [0] = 0 |
| 7088 | |
| 7089 | ; |
| 7090 | return 0; |
| 7091 | } |
| 7092 | _ACEOF |
| 7093 | rm -f conftest.$ac_objext |
| 7094 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7095 | (eval $ac_compile) 2>&5 |
| 7096 | ac_status=$? |
| 7097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7098 | (exit $ac_status); } && |
| 7099 | { ac_try='test -s conftest.$ac_objext' |
| 7100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7101 | (eval $ac_try) 2>&5 |
| 7102 | ac_status=$? |
| 7103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7104 | (exit $ac_status); }; }; then |
| 7105 | ac_hi=$ac_mid |
| 7106 | else |
| 7107 | echo "$as_me: failed program was:" >&5 |
| 7108 | cat conftest.$ac_ext >&5 |
| 7109 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7110 | fi |
| 7111 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7112 | done |
| 7113 | case $ac_lo in |
| 7114 | ?*) ac_cv_sizeof_float=$ac_lo;; |
| 7115 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5 |
| 7116 | echo "$as_me: error: cannot compute sizeof (float), 77" >&2;} |
| 7117 | { (exit 1); exit 1; }; } ;; |
| 7118 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7119 | else |
| 7120 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7121 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7122 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7123 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7124 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7125 | cat >conftest.$ac_ext <<_ACEOF |
| 7126 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7127 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7128 | $ac_includes_default |
| 7129 | long longval () { return (long) (sizeof (float)); } |
| 7130 | unsigned long ulongval () { return (long) (sizeof (float)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7131 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7132 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7133 | int |
| 7134 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7135 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7136 | |
| 7137 | FILE *f = fopen ("conftest.val", "w"); |
| 7138 | if (! f) |
| 7139 | exit (1); |
| 7140 | if (((long) (sizeof (float))) < 0) |
| 7141 | { |
| 7142 | long i = longval (); |
| 7143 | if (i != ((long) (sizeof (float)))) |
| 7144 | exit (1); |
| 7145 | fprintf (f, "%ld\n", i); |
| 7146 | } |
| 7147 | else |
| 7148 | { |
| 7149 | unsigned long i = ulongval (); |
| 7150 | if (i != ((long) (sizeof (float)))) |
| 7151 | exit (1); |
| 7152 | fprintf (f, "%lu\n", i); |
| 7153 | } |
| 7154 | exit (ferror (f) || fclose (f) != 0); |
| 7155 | |
| 7156 | ; |
| 7157 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7158 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7159 | _ACEOF |
| 7160 | rm -f conftest$ac_exeext |
| 7161 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7162 | (eval $ac_link) 2>&5 |
| 7163 | ac_status=$? |
| 7164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7165 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 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_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7172 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7173 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7174 | echo "$as_me: failed program was:" >&5 |
| 7175 | cat conftest.$ac_ext >&5 |
| 7176 | ( exit $ac_status ) |
| 7177 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5 |
| 7178 | echo "$as_me: error: cannot compute sizeof (float), 77" >&2;} |
| 7179 | { (exit 1); exit 1; }; } |
| 7180 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 7181 | 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] | 7182 | fi |
| 7183 | fi |
| 7184 | rm -f conftest.val |
| 7185 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7186 | ac_cv_sizeof_float=0 |
| 7187 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7188 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7189 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 7190 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6 |
| 7191 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7192 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7193 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7194 | |
| 7195 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7196 | echo "$as_me:$LINENO: checking for double" >&5 |
| 7197 | echo $ECHO_N "checking for double... $ECHO_C" >&6 |
| 7198 | if test "${ac_cv_type_double+set}" = set; then |
| 7199 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7200 | else |
| 7201 | cat >conftest.$ac_ext <<_ACEOF |
| 7202 | #line $LINENO "configure" |
| 7203 | #include "confdefs.h" |
| 7204 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7205 | int |
| 7206 | main () |
| 7207 | { |
| 7208 | if ((double *) 0) |
| 7209 | return 0; |
| 7210 | if (sizeof (double)) |
| 7211 | return 0; |
| 7212 | ; |
| 7213 | return 0; |
| 7214 | } |
| 7215 | _ACEOF |
| 7216 | rm -f conftest.$ac_objext |
| 7217 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7218 | (eval $ac_compile) 2>&5 |
| 7219 | ac_status=$? |
| 7220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7221 | (exit $ac_status); } && |
| 7222 | { ac_try='test -s conftest.$ac_objext' |
| 7223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7224 | (eval $ac_try) 2>&5 |
| 7225 | ac_status=$? |
| 7226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7227 | (exit $ac_status); }; }; then |
| 7228 | ac_cv_type_double=yes |
| 7229 | else |
| 7230 | echo "$as_me: failed program was:" >&5 |
| 7231 | cat conftest.$ac_ext >&5 |
| 7232 | ac_cv_type_double=no |
| 7233 | fi |
| 7234 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7235 | fi |
| 7236 | echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 7237 | echo "${ECHO_T}$ac_cv_type_double" >&6 |
| 7238 | |
| 7239 | echo "$as_me:$LINENO: checking size of double" >&5 |
| 7240 | echo $ECHO_N "checking size of double... $ECHO_C" >&6 |
| 7241 | if test "${ac_cv_sizeof_double+set}" = set; then |
| 7242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7243 | else |
| 7244 | if test "$ac_cv_type_double" = yes; then |
| 7245 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7246 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7247 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7248 | # This bug is HP SR number 8606223364. |
| 7249 | if test "$cross_compiling" = yes; then |
| 7250 | # Depending upon the size, compute the lo and hi bounds. |
| 7251 | cat >conftest.$ac_ext <<_ACEOF |
| 7252 | #line $LINENO "configure" |
| 7253 | #include "confdefs.h" |
| 7254 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7255 | int |
| 7256 | main () |
| 7257 | { |
| 7258 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)]; |
| 7259 | test_array [0] = 0 |
| 7260 | |
| 7261 | ; |
| 7262 | return 0; |
| 7263 | } |
| 7264 | _ACEOF |
| 7265 | rm -f conftest.$ac_objext |
| 7266 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7267 | (eval $ac_compile) 2>&5 |
| 7268 | ac_status=$? |
| 7269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7270 | (exit $ac_status); } && |
| 7271 | { ac_try='test -s conftest.$ac_objext' |
| 7272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7273 | (eval $ac_try) 2>&5 |
| 7274 | ac_status=$? |
| 7275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7276 | (exit $ac_status); }; }; then |
| 7277 | ac_lo=0 ac_mid=0 |
| 7278 | while :; do |
| 7279 | cat >conftest.$ac_ext <<_ACEOF |
| 7280 | #line $LINENO "configure" |
| 7281 | #include "confdefs.h" |
| 7282 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7283 | int |
| 7284 | main () |
| 7285 | { |
| 7286 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 7287 | test_array [0] = 0 |
| 7288 | |
| 7289 | ; |
| 7290 | return 0; |
| 7291 | } |
| 7292 | _ACEOF |
| 7293 | rm -f conftest.$ac_objext |
| 7294 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7295 | (eval $ac_compile) 2>&5 |
| 7296 | ac_status=$? |
| 7297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7298 | (exit $ac_status); } && |
| 7299 | { ac_try='test -s conftest.$ac_objext' |
| 7300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7301 | (eval $ac_try) 2>&5 |
| 7302 | ac_status=$? |
| 7303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7304 | (exit $ac_status); }; }; then |
| 7305 | ac_hi=$ac_mid; break |
| 7306 | else |
| 7307 | echo "$as_me: failed program was:" >&5 |
| 7308 | cat conftest.$ac_ext >&5 |
| 7309 | ac_lo=`expr $ac_mid + 1` |
| 7310 | if test $ac_lo -le $ac_mid; then |
| 7311 | ac_lo= ac_hi= |
| 7312 | break |
| 7313 | fi |
| 7314 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7315 | fi |
| 7316 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7317 | done |
| 7318 | else |
| 7319 | echo "$as_me: failed program was:" >&5 |
| 7320 | cat conftest.$ac_ext >&5 |
| 7321 | cat >conftest.$ac_ext <<_ACEOF |
| 7322 | #line $LINENO "configure" |
| 7323 | #include "confdefs.h" |
| 7324 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7325 | int |
| 7326 | main () |
| 7327 | { |
| 7328 | static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)]; |
| 7329 | test_array [0] = 0 |
| 7330 | |
| 7331 | ; |
| 7332 | return 0; |
| 7333 | } |
| 7334 | _ACEOF |
| 7335 | rm -f conftest.$ac_objext |
| 7336 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7337 | (eval $ac_compile) 2>&5 |
| 7338 | ac_status=$? |
| 7339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7340 | (exit $ac_status); } && |
| 7341 | { ac_try='test -s conftest.$ac_objext' |
| 7342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7343 | (eval $ac_try) 2>&5 |
| 7344 | ac_status=$? |
| 7345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7346 | (exit $ac_status); }; }; then |
| 7347 | ac_hi=-1 ac_mid=-1 |
| 7348 | while :; do |
| 7349 | cat >conftest.$ac_ext <<_ACEOF |
| 7350 | #line $LINENO "configure" |
| 7351 | #include "confdefs.h" |
| 7352 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7353 | int |
| 7354 | main () |
| 7355 | { |
| 7356 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)]; |
| 7357 | test_array [0] = 0 |
| 7358 | |
| 7359 | ; |
| 7360 | return 0; |
| 7361 | } |
| 7362 | _ACEOF |
| 7363 | rm -f conftest.$ac_objext |
| 7364 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7365 | (eval $ac_compile) 2>&5 |
| 7366 | ac_status=$? |
| 7367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7368 | (exit $ac_status); } && |
| 7369 | { ac_try='test -s conftest.$ac_objext' |
| 7370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7371 | (eval $ac_try) 2>&5 |
| 7372 | ac_status=$? |
| 7373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7374 | (exit $ac_status); }; }; then |
| 7375 | ac_lo=$ac_mid; break |
| 7376 | else |
| 7377 | echo "$as_me: failed program was:" >&5 |
| 7378 | cat conftest.$ac_ext >&5 |
| 7379 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7380 | if test $ac_mid -le $ac_hi; then |
| 7381 | ac_lo= ac_hi= |
| 7382 | break |
| 7383 | fi |
| 7384 | ac_mid=`expr 2 '*' $ac_mid` |
| 7385 | fi |
| 7386 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7387 | done |
| 7388 | else |
| 7389 | echo "$as_me: failed program was:" >&5 |
| 7390 | cat conftest.$ac_ext >&5 |
| 7391 | ac_lo= ac_hi= |
| 7392 | fi |
| 7393 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7394 | fi |
| 7395 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7396 | # Binary search between lo and hi bounds. |
| 7397 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7398 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7399 | cat >conftest.$ac_ext <<_ACEOF |
| 7400 | #line $LINENO "configure" |
| 7401 | #include "confdefs.h" |
| 7402 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7403 | int |
| 7404 | main () |
| 7405 | { |
| 7406 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 7407 | test_array [0] = 0 |
| 7408 | |
| 7409 | ; |
| 7410 | return 0; |
| 7411 | } |
| 7412 | _ACEOF |
| 7413 | rm -f conftest.$ac_objext |
| 7414 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7415 | (eval $ac_compile) 2>&5 |
| 7416 | ac_status=$? |
| 7417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7418 | (exit $ac_status); } && |
| 7419 | { ac_try='test -s conftest.$ac_objext' |
| 7420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7421 | (eval $ac_try) 2>&5 |
| 7422 | ac_status=$? |
| 7423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7424 | (exit $ac_status); }; }; then |
| 7425 | ac_hi=$ac_mid |
| 7426 | else |
| 7427 | echo "$as_me: failed program was:" >&5 |
| 7428 | cat conftest.$ac_ext >&5 |
| 7429 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7430 | fi |
| 7431 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7432 | done |
| 7433 | case $ac_lo in |
| 7434 | ?*) ac_cv_sizeof_double=$ac_lo;; |
| 7435 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5 |
| 7436 | echo "$as_me: error: cannot compute sizeof (double), 77" >&2;} |
| 7437 | { (exit 1); exit 1; }; } ;; |
| 7438 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7439 | else |
| 7440 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7441 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7442 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7443 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7444 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7445 | cat >conftest.$ac_ext <<_ACEOF |
| 7446 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7447 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7448 | $ac_includes_default |
| 7449 | long longval () { return (long) (sizeof (double)); } |
| 7450 | unsigned long ulongval () { return (long) (sizeof (double)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7451 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7452 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7453 | int |
| 7454 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7455 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7456 | |
| 7457 | FILE *f = fopen ("conftest.val", "w"); |
| 7458 | if (! f) |
| 7459 | exit (1); |
| 7460 | if (((long) (sizeof (double))) < 0) |
| 7461 | { |
| 7462 | long i = longval (); |
| 7463 | if (i != ((long) (sizeof (double)))) |
| 7464 | exit (1); |
| 7465 | fprintf (f, "%ld\n", i); |
| 7466 | } |
| 7467 | else |
| 7468 | { |
| 7469 | unsigned long i = ulongval (); |
| 7470 | if (i != ((long) (sizeof (double)))) |
| 7471 | exit (1); |
| 7472 | fprintf (f, "%lu\n", i); |
| 7473 | } |
| 7474 | exit (ferror (f) || fclose (f) != 0); |
| 7475 | |
| 7476 | ; |
| 7477 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7478 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7479 | _ACEOF |
| 7480 | rm -f conftest$ac_exeext |
| 7481 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7482 | (eval $ac_link) 2>&5 |
| 7483 | ac_status=$? |
| 7484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7485 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7487 | (eval $ac_try) 2>&5 |
| 7488 | ac_status=$? |
| 7489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7490 | (exit $ac_status); }; }; then |
| 7491 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7492 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7493 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7494 | echo "$as_me: failed program was:" >&5 |
| 7495 | cat conftest.$ac_ext >&5 |
| 7496 | ( exit $ac_status ) |
| 7497 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5 |
| 7498 | echo "$as_me: error: cannot compute sizeof (double), 77" >&2;} |
| 7499 | { (exit 1); exit 1; }; } |
| 7500 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 7501 | 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] | 7502 | fi |
| 7503 | fi |
| 7504 | rm -f conftest.val |
| 7505 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7506 | ac_cv_sizeof_double=0 |
| 7507 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7508 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7509 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 7510 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6 |
| 7511 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7512 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7513 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7514 | |
| 7515 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7516 | echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 7517 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6 |
| 7518 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 7519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7520 | else |
| 7521 | cat >conftest.$ac_ext <<_ACEOF |
| 7522 | #line $LINENO "configure" |
| 7523 | #include "confdefs.h" |
| 7524 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7525 | int |
| 7526 | main () |
| 7527 | { |
| 7528 | if ((fpos_t *) 0) |
| 7529 | return 0; |
| 7530 | if (sizeof (fpos_t)) |
| 7531 | return 0; |
| 7532 | ; |
| 7533 | return 0; |
| 7534 | } |
| 7535 | _ACEOF |
| 7536 | rm -f conftest.$ac_objext |
| 7537 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7538 | (eval $ac_compile) 2>&5 |
| 7539 | ac_status=$? |
| 7540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7541 | (exit $ac_status); } && |
| 7542 | { ac_try='test -s conftest.$ac_objext' |
| 7543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7544 | (eval $ac_try) 2>&5 |
| 7545 | ac_status=$? |
| 7546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7547 | (exit $ac_status); }; }; then |
| 7548 | ac_cv_type_fpos_t=yes |
| 7549 | else |
| 7550 | echo "$as_me: failed program was:" >&5 |
| 7551 | cat conftest.$ac_ext >&5 |
| 7552 | ac_cv_type_fpos_t=no |
| 7553 | fi |
| 7554 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7555 | fi |
| 7556 | echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 7557 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6 |
| 7558 | |
| 7559 | echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 7560 | echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6 |
| 7561 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
| 7562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7563 | else |
| 7564 | if test "$ac_cv_type_fpos_t" = yes; then |
| 7565 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7566 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7567 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7568 | # This bug is HP SR number 8606223364. |
| 7569 | if test "$cross_compiling" = yes; then |
| 7570 | # Depending upon the size, compute the lo and hi bounds. |
| 7571 | cat >conftest.$ac_ext <<_ACEOF |
| 7572 | #line $LINENO "configure" |
| 7573 | #include "confdefs.h" |
| 7574 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7575 | int |
| 7576 | main () |
| 7577 | { |
| 7578 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)]; |
| 7579 | test_array [0] = 0 |
| 7580 | |
| 7581 | ; |
| 7582 | return 0; |
| 7583 | } |
| 7584 | _ACEOF |
| 7585 | rm -f conftest.$ac_objext |
| 7586 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7587 | (eval $ac_compile) 2>&5 |
| 7588 | ac_status=$? |
| 7589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7590 | (exit $ac_status); } && |
| 7591 | { ac_try='test -s conftest.$ac_objext' |
| 7592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7593 | (eval $ac_try) 2>&5 |
| 7594 | ac_status=$? |
| 7595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7596 | (exit $ac_status); }; }; then |
| 7597 | ac_lo=0 ac_mid=0 |
| 7598 | while :; do |
| 7599 | cat >conftest.$ac_ext <<_ACEOF |
| 7600 | #line $LINENO "configure" |
| 7601 | #include "confdefs.h" |
| 7602 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7603 | int |
| 7604 | main () |
| 7605 | { |
| 7606 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 7607 | test_array [0] = 0 |
| 7608 | |
| 7609 | ; |
| 7610 | return 0; |
| 7611 | } |
| 7612 | _ACEOF |
| 7613 | rm -f conftest.$ac_objext |
| 7614 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7615 | (eval $ac_compile) 2>&5 |
| 7616 | ac_status=$? |
| 7617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7618 | (exit $ac_status); } && |
| 7619 | { ac_try='test -s conftest.$ac_objext' |
| 7620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7621 | (eval $ac_try) 2>&5 |
| 7622 | ac_status=$? |
| 7623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7624 | (exit $ac_status); }; }; then |
| 7625 | ac_hi=$ac_mid; break |
| 7626 | else |
| 7627 | echo "$as_me: failed program was:" >&5 |
| 7628 | cat conftest.$ac_ext >&5 |
| 7629 | ac_lo=`expr $ac_mid + 1` |
| 7630 | if test $ac_lo -le $ac_mid; then |
| 7631 | ac_lo= ac_hi= |
| 7632 | break |
| 7633 | fi |
| 7634 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7635 | fi |
| 7636 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7637 | done |
| 7638 | else |
| 7639 | echo "$as_me: failed program was:" >&5 |
| 7640 | cat conftest.$ac_ext >&5 |
| 7641 | cat >conftest.$ac_ext <<_ACEOF |
| 7642 | #line $LINENO "configure" |
| 7643 | #include "confdefs.h" |
| 7644 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7645 | int |
| 7646 | main () |
| 7647 | { |
| 7648 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)]; |
| 7649 | test_array [0] = 0 |
| 7650 | |
| 7651 | ; |
| 7652 | return 0; |
| 7653 | } |
| 7654 | _ACEOF |
| 7655 | rm -f conftest.$ac_objext |
| 7656 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7657 | (eval $ac_compile) 2>&5 |
| 7658 | ac_status=$? |
| 7659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7660 | (exit $ac_status); } && |
| 7661 | { ac_try='test -s conftest.$ac_objext' |
| 7662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7663 | (eval $ac_try) 2>&5 |
| 7664 | ac_status=$? |
| 7665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7666 | (exit $ac_status); }; }; then |
| 7667 | ac_hi=-1 ac_mid=-1 |
| 7668 | while :; do |
| 7669 | cat >conftest.$ac_ext <<_ACEOF |
| 7670 | #line $LINENO "configure" |
| 7671 | #include "confdefs.h" |
| 7672 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7673 | int |
| 7674 | main () |
| 7675 | { |
| 7676 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)]; |
| 7677 | test_array [0] = 0 |
| 7678 | |
| 7679 | ; |
| 7680 | return 0; |
| 7681 | } |
| 7682 | _ACEOF |
| 7683 | rm -f conftest.$ac_objext |
| 7684 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7685 | (eval $ac_compile) 2>&5 |
| 7686 | ac_status=$? |
| 7687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7688 | (exit $ac_status); } && |
| 7689 | { ac_try='test -s conftest.$ac_objext' |
| 7690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7691 | (eval $ac_try) 2>&5 |
| 7692 | ac_status=$? |
| 7693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7694 | (exit $ac_status); }; }; then |
| 7695 | ac_lo=$ac_mid; break |
| 7696 | else |
| 7697 | echo "$as_me: failed program was:" >&5 |
| 7698 | cat conftest.$ac_ext >&5 |
| 7699 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7700 | if test $ac_mid -le $ac_hi; then |
| 7701 | ac_lo= ac_hi= |
| 7702 | break |
| 7703 | fi |
| 7704 | ac_mid=`expr 2 '*' $ac_mid` |
| 7705 | fi |
| 7706 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7707 | done |
| 7708 | else |
| 7709 | echo "$as_me: failed program was:" >&5 |
| 7710 | cat conftest.$ac_ext >&5 |
| 7711 | ac_lo= ac_hi= |
| 7712 | fi |
| 7713 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7714 | fi |
| 7715 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7716 | # Binary search between lo and hi bounds. |
| 7717 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7718 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7719 | cat >conftest.$ac_ext <<_ACEOF |
| 7720 | #line $LINENO "configure" |
| 7721 | #include "confdefs.h" |
| 7722 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7723 | int |
| 7724 | main () |
| 7725 | { |
| 7726 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 7727 | test_array [0] = 0 |
| 7728 | |
| 7729 | ; |
| 7730 | return 0; |
| 7731 | } |
| 7732 | _ACEOF |
| 7733 | rm -f conftest.$ac_objext |
| 7734 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7735 | (eval $ac_compile) 2>&5 |
| 7736 | ac_status=$? |
| 7737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7738 | (exit $ac_status); } && |
| 7739 | { ac_try='test -s conftest.$ac_objext' |
| 7740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7741 | (eval $ac_try) 2>&5 |
| 7742 | ac_status=$? |
| 7743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7744 | (exit $ac_status); }; }; then |
| 7745 | ac_hi=$ac_mid |
| 7746 | else |
| 7747 | echo "$as_me: failed program was:" >&5 |
| 7748 | cat conftest.$ac_ext >&5 |
| 7749 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7750 | fi |
| 7751 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7752 | done |
| 7753 | case $ac_lo in |
| 7754 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
| 7755 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5 |
| 7756 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;} |
| 7757 | { (exit 1); exit 1; }; } ;; |
| 7758 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7759 | else |
| 7760 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7761 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7762 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7763 | { (exit 1); exit 1; }; } |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7764 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7765 | cat >conftest.$ac_ext <<_ACEOF |
| 7766 | #line $LINENO "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7767 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7768 | $ac_includes_default |
| 7769 | long longval () { return (long) (sizeof (fpos_t)); } |
| 7770 | unsigned long ulongval () { return (long) (sizeof (fpos_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7771 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7772 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7773 | int |
| 7774 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7775 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7776 | |
| 7777 | FILE *f = fopen ("conftest.val", "w"); |
| 7778 | if (! f) |
| 7779 | exit (1); |
| 7780 | if (((long) (sizeof (fpos_t))) < 0) |
| 7781 | { |
| 7782 | long i = longval (); |
| 7783 | if (i != ((long) (sizeof (fpos_t)))) |
| 7784 | exit (1); |
| 7785 | fprintf (f, "%ld\n", i); |
| 7786 | } |
| 7787 | else |
| 7788 | { |
| 7789 | unsigned long i = ulongval (); |
| 7790 | if (i != ((long) (sizeof (fpos_t)))) |
| 7791 | exit (1); |
| 7792 | fprintf (f, "%lu\n", i); |
| 7793 | } |
| 7794 | exit (ferror (f) || fclose (f) != 0); |
| 7795 | |
| 7796 | ; |
| 7797 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7798 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7799 | _ACEOF |
| 7800 | rm -f conftest$ac_exeext |
| 7801 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7802 | (eval $ac_link) 2>&5 |
| 7803 | ac_status=$? |
| 7804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7805 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7807 | (eval $ac_try) 2>&5 |
| 7808 | ac_status=$? |
| 7809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7810 | (exit $ac_status); }; }; then |
| 7811 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7812 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7813 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7814 | echo "$as_me: failed program was:" >&5 |
| 7815 | cat conftest.$ac_ext >&5 |
| 7816 | ( exit $ac_status ) |
| 7817 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5 |
| 7818 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;} |
| 7819 | { (exit 1); exit 1; }; } |
| 7820 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 7821 | 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] | 7822 | fi |
| 7823 | fi |
| 7824 | rm -f conftest.val |
| 7825 | else |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7826 | ac_cv_sizeof_fpos_t=0 |
| 7827 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7828 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7829 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 7830 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6 |
| 7831 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7832 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7833 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7834 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7835 | |
| 7836 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7837 | echo "$as_me:$LINENO: checking for long long support" >&5 |
| 7838 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7839 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7840 | cat >conftest.$ac_ext <<_ACEOF |
| 7841 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7842 | #include "confdefs.h" |
| 7843 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7844 | int |
| 7845 | main () |
| 7846 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7847 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7848 | ; |
| 7849 | return 0; |
| 7850 | } |
| 7851 | _ACEOF |
| 7852 | rm -f conftest.$ac_objext |
| 7853 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7854 | (eval $ac_compile) 2>&5 |
| 7855 | ac_status=$? |
| 7856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7857 | (exit $ac_status); } && |
| 7858 | { ac_try='test -s conftest.$ac_objext' |
| 7859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7860 | (eval $ac_try) 2>&5 |
| 7861 | ac_status=$? |
| 7862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7863 | (exit $ac_status); }; }; then |
| 7864 | |
| 7865 | |
| 7866 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7867 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7868 | _ACEOF |
| 7869 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 7870 | have_long_long=yes |
| 7871 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7872 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7873 | echo "$as_me: failed program was:" >&5 |
| 7874 | cat conftest.$ac_ext >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7875 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7876 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7877 | echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 7878 | echo "${ECHO_T}$have_long_long" >&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 7879 | if test "$have_long_long" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7880 | echo "$as_me:$LINENO: checking for long long" >&5 |
| 7881 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 7882 | if test "${ac_cv_type_long_long+set}" = set; then |
| 7883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7884 | else |
| 7885 | cat >conftest.$ac_ext <<_ACEOF |
| 7886 | #line $LINENO "configure" |
| 7887 | #include "confdefs.h" |
| 7888 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7889 | int |
| 7890 | main () |
| 7891 | { |
| 7892 | if ((long long *) 0) |
| 7893 | return 0; |
| 7894 | if (sizeof (long long)) |
| 7895 | return 0; |
| 7896 | ; |
| 7897 | return 0; |
| 7898 | } |
| 7899 | _ACEOF |
| 7900 | rm -f conftest.$ac_objext |
| 7901 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7902 | (eval $ac_compile) 2>&5 |
| 7903 | ac_status=$? |
| 7904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7905 | (exit $ac_status); } && |
| 7906 | { ac_try='test -s conftest.$ac_objext' |
| 7907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7908 | (eval $ac_try) 2>&5 |
| 7909 | ac_status=$? |
| 7910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7911 | (exit $ac_status); }; }; then |
| 7912 | ac_cv_type_long_long=yes |
| 7913 | else |
| 7914 | echo "$as_me: failed program was:" >&5 |
| 7915 | cat conftest.$ac_ext >&5 |
| 7916 | ac_cv_type_long_long=no |
| 7917 | fi |
| 7918 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7919 | fi |
| 7920 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 7921 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
| 7922 | |
| 7923 | echo "$as_me:$LINENO: checking size of long long" >&5 |
| 7924 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 |
| 7925 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 7926 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7927 | else |
| 7928 | if test "$ac_cv_type_long_long" = yes; then |
| 7929 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7930 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7931 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7932 | # This bug is HP SR number 8606223364. |
| 7933 | if test "$cross_compiling" = yes; then |
| 7934 | # Depending upon the size, compute the lo and hi bounds. |
| 7935 | cat >conftest.$ac_ext <<_ACEOF |
| 7936 | #line $LINENO "configure" |
| 7937 | #include "confdefs.h" |
| 7938 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7939 | int |
| 7940 | main () |
| 7941 | { |
| 7942 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; |
| 7943 | test_array [0] = 0 |
| 7944 | |
| 7945 | ; |
| 7946 | return 0; |
| 7947 | } |
| 7948 | _ACEOF |
| 7949 | rm -f conftest.$ac_objext |
| 7950 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7951 | (eval $ac_compile) 2>&5 |
| 7952 | ac_status=$? |
| 7953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7954 | (exit $ac_status); } && |
| 7955 | { ac_try='test -s conftest.$ac_objext' |
| 7956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7957 | (eval $ac_try) 2>&5 |
| 7958 | ac_status=$? |
| 7959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7960 | (exit $ac_status); }; }; then |
| 7961 | ac_lo=0 ac_mid=0 |
| 7962 | while :; do |
| 7963 | cat >conftest.$ac_ext <<_ACEOF |
| 7964 | #line $LINENO "configure" |
| 7965 | #include "confdefs.h" |
| 7966 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7967 | int |
| 7968 | main () |
| 7969 | { |
| 7970 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 7971 | test_array [0] = 0 |
| 7972 | |
| 7973 | ; |
| 7974 | return 0; |
| 7975 | } |
| 7976 | _ACEOF |
| 7977 | rm -f conftest.$ac_objext |
| 7978 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7979 | (eval $ac_compile) 2>&5 |
| 7980 | ac_status=$? |
| 7981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7982 | (exit $ac_status); } && |
| 7983 | { ac_try='test -s conftest.$ac_objext' |
| 7984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7985 | (eval $ac_try) 2>&5 |
| 7986 | ac_status=$? |
| 7987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7988 | (exit $ac_status); }; }; then |
| 7989 | ac_hi=$ac_mid; break |
| 7990 | else |
| 7991 | echo "$as_me: failed program was:" >&5 |
| 7992 | cat conftest.$ac_ext >&5 |
| 7993 | ac_lo=`expr $ac_mid + 1` |
| 7994 | if test $ac_lo -le $ac_mid; then |
| 7995 | ac_lo= ac_hi= |
| 7996 | break |
| 7997 | fi |
| 7998 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7999 | fi |
| 8000 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8001 | done |
| 8002 | else |
| 8003 | echo "$as_me: failed program was:" >&5 |
| 8004 | cat conftest.$ac_ext >&5 |
| 8005 | cat >conftest.$ac_ext <<_ACEOF |
| 8006 | #line $LINENO "configure" |
| 8007 | #include "confdefs.h" |
| 8008 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8009 | int |
| 8010 | main () |
| 8011 | { |
| 8012 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; |
| 8013 | test_array [0] = 0 |
| 8014 | |
| 8015 | ; |
| 8016 | return 0; |
| 8017 | } |
| 8018 | _ACEOF |
| 8019 | rm -f conftest.$ac_objext |
| 8020 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8021 | (eval $ac_compile) 2>&5 |
| 8022 | ac_status=$? |
| 8023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8024 | (exit $ac_status); } && |
| 8025 | { ac_try='test -s conftest.$ac_objext' |
| 8026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8027 | (eval $ac_try) 2>&5 |
| 8028 | ac_status=$? |
| 8029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8030 | (exit $ac_status); }; }; then |
| 8031 | ac_hi=-1 ac_mid=-1 |
| 8032 | while :; do |
| 8033 | cat >conftest.$ac_ext <<_ACEOF |
| 8034 | #line $LINENO "configure" |
| 8035 | #include "confdefs.h" |
| 8036 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8037 | int |
| 8038 | main () |
| 8039 | { |
| 8040 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; |
| 8041 | test_array [0] = 0 |
| 8042 | |
| 8043 | ; |
| 8044 | return 0; |
| 8045 | } |
| 8046 | _ACEOF |
| 8047 | rm -f conftest.$ac_objext |
| 8048 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8049 | (eval $ac_compile) 2>&5 |
| 8050 | ac_status=$? |
| 8051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8052 | (exit $ac_status); } && |
| 8053 | { ac_try='test -s conftest.$ac_objext' |
| 8054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8055 | (eval $ac_try) 2>&5 |
| 8056 | ac_status=$? |
| 8057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8058 | (exit $ac_status); }; }; then |
| 8059 | ac_lo=$ac_mid; break |
| 8060 | else |
| 8061 | echo "$as_me: failed program was:" >&5 |
| 8062 | cat conftest.$ac_ext >&5 |
| 8063 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8064 | if test $ac_mid -le $ac_hi; then |
| 8065 | ac_lo= ac_hi= |
| 8066 | break |
| 8067 | fi |
| 8068 | ac_mid=`expr 2 '*' $ac_mid` |
| 8069 | fi |
| 8070 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8071 | done |
| 8072 | else |
| 8073 | echo "$as_me: failed program was:" >&5 |
| 8074 | cat conftest.$ac_ext >&5 |
| 8075 | ac_lo= ac_hi= |
| 8076 | fi |
| 8077 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8078 | fi |
| 8079 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8080 | # Binary search between lo and hi bounds. |
| 8081 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8082 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8083 | cat >conftest.$ac_ext <<_ACEOF |
| 8084 | #line $LINENO "configure" |
| 8085 | #include "confdefs.h" |
| 8086 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8087 | int |
| 8088 | main () |
| 8089 | { |
| 8090 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 8091 | test_array [0] = 0 |
| 8092 | |
| 8093 | ; |
| 8094 | return 0; |
| 8095 | } |
| 8096 | _ACEOF |
| 8097 | rm -f conftest.$ac_objext |
| 8098 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8099 | (eval $ac_compile) 2>&5 |
| 8100 | ac_status=$? |
| 8101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8102 | (exit $ac_status); } && |
| 8103 | { ac_try='test -s conftest.$ac_objext' |
| 8104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8105 | (eval $ac_try) 2>&5 |
| 8106 | ac_status=$? |
| 8107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8108 | (exit $ac_status); }; }; then |
| 8109 | ac_hi=$ac_mid |
| 8110 | else |
| 8111 | echo "$as_me: failed program was:" >&5 |
| 8112 | cat conftest.$ac_ext >&5 |
| 8113 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8114 | fi |
| 8115 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8116 | done |
| 8117 | case $ac_lo in |
| 8118 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
| 8119 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 |
| 8120 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} |
| 8121 | { (exit 1); exit 1; }; } ;; |
| 8122 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8123 | else |
| 8124 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8125 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 8126 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 8127 | { (exit 1); exit 1; }; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8128 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8129 | cat >conftest.$ac_ext <<_ACEOF |
| 8130 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8131 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8132 | $ac_includes_default |
| 8133 | long longval () { return (long) (sizeof (long long)); } |
| 8134 | unsigned long ulongval () { return (long) (sizeof (long long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8135 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8136 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8137 | int |
| 8138 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8139 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8140 | |
| 8141 | FILE *f = fopen ("conftest.val", "w"); |
| 8142 | if (! f) |
| 8143 | exit (1); |
| 8144 | if (((long) (sizeof (long long))) < 0) |
| 8145 | { |
| 8146 | long i = longval (); |
| 8147 | if (i != ((long) (sizeof (long long)))) |
| 8148 | exit (1); |
| 8149 | fprintf (f, "%ld\n", i); |
| 8150 | } |
| 8151 | else |
| 8152 | { |
| 8153 | unsigned long i = ulongval (); |
| 8154 | if (i != ((long) (sizeof (long long)))) |
| 8155 | exit (1); |
| 8156 | fprintf (f, "%lu\n", i); |
| 8157 | } |
| 8158 | exit (ferror (f) || fclose (f) != 0); |
| 8159 | |
| 8160 | ; |
| 8161 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8162 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8163 | _ACEOF |
| 8164 | rm -f conftest$ac_exeext |
| 8165 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8166 | (eval $ac_link) 2>&5 |
| 8167 | ac_status=$? |
| 8168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8169 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8171 | (eval $ac_try) 2>&5 |
| 8172 | ac_status=$? |
| 8173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8174 | (exit $ac_status); }; }; then |
| 8175 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8176 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8177 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8178 | echo "$as_me: failed program was:" >&5 |
| 8179 | cat conftest.$ac_ext >&5 |
| 8180 | ( exit $ac_status ) |
| 8181 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 |
| 8182 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} |
| 8183 | { (exit 1); exit 1; }; } |
| 8184 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 8185 | 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] | 8186 | fi |
| 8187 | fi |
| 8188 | rm -f conftest.val |
| 8189 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8190 | ac_cv_sizeof_long_long=0 |
| 8191 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8192 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8193 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 8194 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 |
| 8195 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8196 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8197 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8198 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8199 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8200 | fi |
| 8201 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8202 | echo "$as_me:$LINENO: checking for uintptr_t support" >&5 |
| 8203 | echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8204 | have_uintptr_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8205 | cat >conftest.$ac_ext <<_ACEOF |
| 8206 | #line $LINENO "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8207 | #include "confdefs.h" |
| 8208 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8209 | int |
| 8210 | main () |
| 8211 | { |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8212 | uintptr_t x; x = (uintptr_t)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8213 | ; |
| 8214 | return 0; |
| 8215 | } |
| 8216 | _ACEOF |
| 8217 | rm -f conftest.$ac_objext |
| 8218 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8219 | (eval $ac_compile) 2>&5 |
| 8220 | ac_status=$? |
| 8221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8222 | (exit $ac_status); } && |
| 8223 | { ac_try='test -s conftest.$ac_objext' |
| 8224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8225 | (eval $ac_try) 2>&5 |
| 8226 | ac_status=$? |
| 8227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8228 | (exit $ac_status); }; }; then |
| 8229 | |
| 8230 | |
| 8231 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8232 | #define HAVE_UINTPTR_T 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8233 | _ACEOF |
| 8234 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8235 | have_uintptr_t=yes |
| 8236 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8237 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8238 | echo "$as_me: failed program was:" >&5 |
| 8239 | cat conftest.$ac_ext >&5 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8240 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8241 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8242 | echo "$as_me:$LINENO: result: $have_uintptr_t" >&5 |
| 8243 | echo "${ECHO_T}$have_uintptr_t" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8244 | if test "$have_uintptr_t" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8245 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 8246 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| 8247 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 8248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8249 | else |
| 8250 | cat >conftest.$ac_ext <<_ACEOF |
| 8251 | #line $LINENO "configure" |
| 8252 | #include "confdefs.h" |
| 8253 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8254 | int |
| 8255 | main () |
| 8256 | { |
| 8257 | if ((uintptr_t *) 0) |
| 8258 | return 0; |
| 8259 | if (sizeof (uintptr_t)) |
| 8260 | return 0; |
| 8261 | ; |
| 8262 | return 0; |
| 8263 | } |
| 8264 | _ACEOF |
| 8265 | rm -f conftest.$ac_objext |
| 8266 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8267 | (eval $ac_compile) 2>&5 |
| 8268 | ac_status=$? |
| 8269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8270 | (exit $ac_status); } && |
| 8271 | { ac_try='test -s conftest.$ac_objext' |
| 8272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8273 | (eval $ac_try) 2>&5 |
| 8274 | ac_status=$? |
| 8275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8276 | (exit $ac_status); }; }; then |
| 8277 | ac_cv_type_uintptr_t=yes |
| 8278 | else |
| 8279 | echo "$as_me: failed program was:" >&5 |
| 8280 | cat conftest.$ac_ext >&5 |
| 8281 | ac_cv_type_uintptr_t=no |
| 8282 | fi |
| 8283 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8284 | fi |
| 8285 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 8286 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| 8287 | |
| 8288 | echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 8289 | echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6 |
| 8290 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
| 8291 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8292 | else |
| 8293 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 8294 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8295 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8296 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8297 | # This bug is HP SR number 8606223364. |
| 8298 | if test "$cross_compiling" = yes; then |
| 8299 | # Depending upon the size, compute the lo and hi bounds. |
| 8300 | cat >conftest.$ac_ext <<_ACEOF |
| 8301 | #line $LINENO "configure" |
| 8302 | #include "confdefs.h" |
| 8303 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8304 | int |
| 8305 | main () |
| 8306 | { |
| 8307 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)]; |
| 8308 | test_array [0] = 0 |
| 8309 | |
| 8310 | ; |
| 8311 | return 0; |
| 8312 | } |
| 8313 | _ACEOF |
| 8314 | rm -f conftest.$ac_objext |
| 8315 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8316 | (eval $ac_compile) 2>&5 |
| 8317 | ac_status=$? |
| 8318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8319 | (exit $ac_status); } && |
| 8320 | { ac_try='test -s conftest.$ac_objext' |
| 8321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8322 | (eval $ac_try) 2>&5 |
| 8323 | ac_status=$? |
| 8324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8325 | (exit $ac_status); }; }; then |
| 8326 | ac_lo=0 ac_mid=0 |
| 8327 | while :; do |
| 8328 | cat >conftest.$ac_ext <<_ACEOF |
| 8329 | #line $LINENO "configure" |
| 8330 | #include "confdefs.h" |
| 8331 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8332 | int |
| 8333 | main () |
| 8334 | { |
| 8335 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 8336 | test_array [0] = 0 |
| 8337 | |
| 8338 | ; |
| 8339 | return 0; |
| 8340 | } |
| 8341 | _ACEOF |
| 8342 | rm -f conftest.$ac_objext |
| 8343 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8344 | (eval $ac_compile) 2>&5 |
| 8345 | ac_status=$? |
| 8346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8347 | (exit $ac_status); } && |
| 8348 | { ac_try='test -s conftest.$ac_objext' |
| 8349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8350 | (eval $ac_try) 2>&5 |
| 8351 | ac_status=$? |
| 8352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8353 | (exit $ac_status); }; }; then |
| 8354 | ac_hi=$ac_mid; break |
| 8355 | else |
| 8356 | echo "$as_me: failed program was:" >&5 |
| 8357 | cat conftest.$ac_ext >&5 |
| 8358 | ac_lo=`expr $ac_mid + 1` |
| 8359 | if test $ac_lo -le $ac_mid; then |
| 8360 | ac_lo= ac_hi= |
| 8361 | break |
| 8362 | fi |
| 8363 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8364 | fi |
| 8365 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8366 | done |
| 8367 | else |
| 8368 | echo "$as_me: failed program was:" >&5 |
| 8369 | cat conftest.$ac_ext >&5 |
| 8370 | cat >conftest.$ac_ext <<_ACEOF |
| 8371 | #line $LINENO "configure" |
| 8372 | #include "confdefs.h" |
| 8373 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8374 | int |
| 8375 | main () |
| 8376 | { |
| 8377 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)]; |
| 8378 | test_array [0] = 0 |
| 8379 | |
| 8380 | ; |
| 8381 | return 0; |
| 8382 | } |
| 8383 | _ACEOF |
| 8384 | rm -f conftest.$ac_objext |
| 8385 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8386 | (eval $ac_compile) 2>&5 |
| 8387 | ac_status=$? |
| 8388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8389 | (exit $ac_status); } && |
| 8390 | { ac_try='test -s conftest.$ac_objext' |
| 8391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8392 | (eval $ac_try) 2>&5 |
| 8393 | ac_status=$? |
| 8394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8395 | (exit $ac_status); }; }; then |
| 8396 | ac_hi=-1 ac_mid=-1 |
| 8397 | while :; do |
| 8398 | cat >conftest.$ac_ext <<_ACEOF |
| 8399 | #line $LINENO "configure" |
| 8400 | #include "confdefs.h" |
| 8401 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8402 | int |
| 8403 | main () |
| 8404 | { |
| 8405 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)]; |
| 8406 | test_array [0] = 0 |
| 8407 | |
| 8408 | ; |
| 8409 | return 0; |
| 8410 | } |
| 8411 | _ACEOF |
| 8412 | rm -f conftest.$ac_objext |
| 8413 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8414 | (eval $ac_compile) 2>&5 |
| 8415 | ac_status=$? |
| 8416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8417 | (exit $ac_status); } && |
| 8418 | { ac_try='test -s conftest.$ac_objext' |
| 8419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8420 | (eval $ac_try) 2>&5 |
| 8421 | ac_status=$? |
| 8422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8423 | (exit $ac_status); }; }; then |
| 8424 | ac_lo=$ac_mid; break |
| 8425 | else |
| 8426 | echo "$as_me: failed program was:" >&5 |
| 8427 | cat conftest.$ac_ext >&5 |
| 8428 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8429 | if test $ac_mid -le $ac_hi; then |
| 8430 | ac_lo= ac_hi= |
| 8431 | break |
| 8432 | fi |
| 8433 | ac_mid=`expr 2 '*' $ac_mid` |
| 8434 | fi |
| 8435 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8436 | done |
| 8437 | else |
| 8438 | echo "$as_me: failed program was:" >&5 |
| 8439 | cat conftest.$ac_ext >&5 |
| 8440 | ac_lo= ac_hi= |
| 8441 | fi |
| 8442 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8443 | fi |
| 8444 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8445 | # Binary search between lo and hi bounds. |
| 8446 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8447 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8448 | cat >conftest.$ac_ext <<_ACEOF |
| 8449 | #line $LINENO "configure" |
| 8450 | #include "confdefs.h" |
| 8451 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8452 | int |
| 8453 | main () |
| 8454 | { |
| 8455 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 8456 | test_array [0] = 0 |
| 8457 | |
| 8458 | ; |
| 8459 | return 0; |
| 8460 | } |
| 8461 | _ACEOF |
| 8462 | rm -f conftest.$ac_objext |
| 8463 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8464 | (eval $ac_compile) 2>&5 |
| 8465 | ac_status=$? |
| 8466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8467 | (exit $ac_status); } && |
| 8468 | { ac_try='test -s conftest.$ac_objext' |
| 8469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8470 | (eval $ac_try) 2>&5 |
| 8471 | ac_status=$? |
| 8472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8473 | (exit $ac_status); }; }; then |
| 8474 | ac_hi=$ac_mid |
| 8475 | else |
| 8476 | echo "$as_me: failed program was:" >&5 |
| 8477 | cat conftest.$ac_ext >&5 |
| 8478 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8479 | fi |
| 8480 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8481 | done |
| 8482 | case $ac_lo in |
| 8483 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
| 8484 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5 |
| 8485 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;} |
| 8486 | { (exit 1); exit 1; }; } ;; |
| 8487 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8488 | else |
| 8489 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8490 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 8491 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 8492 | { (exit 1); exit 1; }; } |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8493 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8494 | cat >conftest.$ac_ext <<_ACEOF |
| 8495 | #line $LINENO "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8496 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8497 | $ac_includes_default |
| 8498 | long longval () { return (long) (sizeof (uintptr_t)); } |
| 8499 | unsigned long ulongval () { return (long) (sizeof (uintptr_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8500 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8501 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8502 | int |
| 8503 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8504 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8505 | |
| 8506 | FILE *f = fopen ("conftest.val", "w"); |
| 8507 | if (! f) |
| 8508 | exit (1); |
| 8509 | if (((long) (sizeof (uintptr_t))) < 0) |
| 8510 | { |
| 8511 | long i = longval (); |
| 8512 | if (i != ((long) (sizeof (uintptr_t)))) |
| 8513 | exit (1); |
| 8514 | fprintf (f, "%ld\n", i); |
| 8515 | } |
| 8516 | else |
| 8517 | { |
| 8518 | unsigned long i = ulongval (); |
| 8519 | if (i != ((long) (sizeof (uintptr_t)))) |
| 8520 | exit (1); |
| 8521 | fprintf (f, "%lu\n", i); |
| 8522 | } |
| 8523 | exit (ferror (f) || fclose (f) != 0); |
| 8524 | |
| 8525 | ; |
| 8526 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8527 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8528 | _ACEOF |
| 8529 | rm -f conftest$ac_exeext |
| 8530 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8531 | (eval $ac_link) 2>&5 |
| 8532 | ac_status=$? |
| 8533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8534 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8536 | (eval $ac_try) 2>&5 |
| 8537 | ac_status=$? |
| 8538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8539 | (exit $ac_status); }; }; then |
| 8540 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8541 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8542 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8543 | echo "$as_me: failed program was:" >&5 |
| 8544 | cat conftest.$ac_ext >&5 |
| 8545 | ( exit $ac_status ) |
| 8546 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5 |
| 8547 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;} |
| 8548 | { (exit 1); exit 1; }; } |
| 8549 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 8550 | 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] | 8551 | fi |
| 8552 | fi |
| 8553 | rm -f conftest.val |
| 8554 | else |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8555 | ac_cv_sizeof_uintptr_t=0 |
| 8556 | fi |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8557 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8558 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 8559 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6 |
| 8560 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8561 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8562 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8563 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8564 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8565 | fi |
| 8566 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8567 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8568 | echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 8569 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6 |
| 8570 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 8571 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8572 | else |
| 8573 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 8574 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8575 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8576 | cat >conftest.$ac_ext <<_ACEOF |
| 8577 | #line $LINENO "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8578 | #include "confdefs.h" |
| 8579 | #include <stdio.h> |
| 8580 | #include <sys/types.h> |
| 8581 | main() |
| 8582 | { |
| 8583 | FILE *f=fopen("conftestval", "w"); |
| 8584 | if (!f) exit(1); |
| 8585 | fprintf(f, "%d\n", sizeof(off_t)); |
| 8586 | exit(0); |
| 8587 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8588 | _ACEOF |
| 8589 | rm -f conftest$ac_exeext |
| 8590 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8591 | (eval $ac_link) 2>&5 |
| 8592 | ac_status=$? |
| 8593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8594 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8596 | (eval $ac_try) 2>&5 |
| 8597 | ac_status=$? |
| 8598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8599 | (exit $ac_status); }; }; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8600 | ac_cv_sizeof_off_t=`cat conftestval` |
| 8601 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8602 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8603 | echo "$as_me: failed program was:" >&5 |
| 8604 | cat conftest.$ac_ext >&5 |
| 8605 | ( exit $ac_status ) |
| 8606 | ac_cv_sizeof_off_t=0 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8607 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 8608 | 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] | 8609 | fi |
| 8610 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8611 | fi |
| 8612 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8613 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 8614 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6 |
| 8615 | |
| 8616 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8617 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8618 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8619 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8620 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8621 | echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 8622 | 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] | 8623 | if test "$have_long_long" = yes -a \ |
| 8624 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 8625 | "$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] | 8626 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8627 | cat >>confdefs.h <<\_ACEOF |
| 8628 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 8629 | _ACEOF |
| 8630 | |
| 8631 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8632 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8633 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8634 | echo "$as_me:$LINENO: result: no" >&5 |
| 8635 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8636 | fi |
| 8637 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8638 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8639 | echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 8640 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6 |
| 8641 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 8642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8643 | else |
| 8644 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 8645 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8646 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8647 | cat >conftest.$ac_ext <<_ACEOF |
| 8648 | #line $LINENO "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8649 | #include "confdefs.h" |
| 8650 | #include <stdio.h> |
| 8651 | #include <time.h> |
| 8652 | main() |
| 8653 | { |
| 8654 | FILE *f=fopen("conftestval", "w"); |
| 8655 | if (!f) exit(1); |
| 8656 | fprintf(f, "%d\n", sizeof(time_t)); |
| 8657 | exit(0); |
| 8658 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8659 | _ACEOF |
| 8660 | rm -f conftest$ac_exeext |
| 8661 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8662 | (eval $ac_link) 2>&5 |
| 8663 | ac_status=$? |
| 8664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8665 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8667 | (eval $ac_try) 2>&5 |
| 8668 | ac_status=$? |
| 8669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8670 | (exit $ac_status); }; }; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8671 | ac_cv_sizeof_time_t=`cat conftestval` |
| 8672 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8673 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8674 | echo "$as_me: failed program was:" >&5 |
| 8675 | cat conftest.$ac_ext >&5 |
| 8676 | ( exit $ac_status ) |
| 8677 | ac_cv_sizeof_time_t=0 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8678 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 8679 | 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] | 8680 | fi |
| 8681 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8682 | fi |
| 8683 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8684 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 8685 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6 |
| 8686 | |
| 8687 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8688 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8689 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8690 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8691 | |
| 8692 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8693 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8694 | ac_save_cc="$CC" |
| 8695 | if test "$ac_cv_kpthread" = "yes" |
| 8696 | then CC="$CC -Kpthread" |
| 8697 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8698 | echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 8699 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8700 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8701 | cat >conftest.$ac_ext <<_ACEOF |
| 8702 | #line $LINENO "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8703 | #include "confdefs.h" |
| 8704 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8705 | int |
| 8706 | main () |
| 8707 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 8708 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8709 | ; |
| 8710 | return 0; |
| 8711 | } |
| 8712 | _ACEOF |
| 8713 | rm -f conftest.$ac_objext |
| 8714 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8715 | (eval $ac_compile) 2>&5 |
| 8716 | ac_status=$? |
| 8717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8718 | (exit $ac_status); } && |
| 8719 | { ac_try='test -s conftest.$ac_objext' |
| 8720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8721 | (eval $ac_try) 2>&5 |
| 8722 | ac_status=$? |
| 8723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8724 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8725 | have_pthread_t=yes |
| 8726 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8727 | echo "$as_me: failed program was:" >&5 |
| 8728 | cat conftest.$ac_ext >&5 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8729 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8730 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8731 | echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 8732 | echo "${ECHO_T}$have_pthread_t" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8733 | if test "$have_pthread_t" = yes ; then |
| 8734 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8735 | echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 8736 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6 |
| 8737 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 8738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8739 | else |
| 8740 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 8741 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8742 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8743 | cat >conftest.$ac_ext <<_ACEOF |
| 8744 | #line $LINENO "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8745 | #include "confdefs.h" |
| 8746 | #include <stdio.h> |
| 8747 | #include <pthread.h> |
| 8748 | main() |
| 8749 | { |
| 8750 | FILE *f=fopen("conftestval", "w"); |
| 8751 | if (!f) exit(1); |
| 8752 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 8753 | exit(0); |
| 8754 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8755 | _ACEOF |
| 8756 | rm -f conftest$ac_exeext |
| 8757 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8758 | (eval $ac_link) 2>&5 |
| 8759 | ac_status=$? |
| 8760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8761 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8763 | (eval $ac_try) 2>&5 |
| 8764 | ac_status=$? |
| 8765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8766 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8767 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 8768 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8769 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8770 | echo "$as_me: failed program was:" >&5 |
| 8771 | cat conftest.$ac_ext >&5 |
| 8772 | ( exit $ac_status ) |
| 8773 | ac_cv_sizeof_pthread_t=0 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8774 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 8775 | 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] | 8776 | fi |
| 8777 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8778 | fi |
| 8779 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8780 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
| 8781 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6 |
| 8782 | |
| 8783 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8784 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8785 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8786 | |
| 8787 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8788 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8789 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8790 | echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 8791 | echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8792 | # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given. |
| 8793 | if test "${enable_toolbox_glue+set}" = set; then |
| 8794 | enableval="$enable_toolbox_glue" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8795 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8796 | fi; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8797 | |
| 8798 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8799 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8800 | case $ac_sys_system/$ac_sys_release in |
| 8801 | Darwin/*) |
| 8802 | enable_toolbox_glue="yes";; |
| 8803 | *) |
| 8804 | enable_toolbox_glue="no";; |
| 8805 | esac |
| 8806 | fi |
| 8807 | case "$enable_toolbox_glue" in |
| 8808 | yes) |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 8809 | extra_frameworks="-framework CoreServices -framework Foundation" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8810 | extra_machdep_objs="Python/mactoolboxglue.o" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 8811 | extra_undefs="-u __dummy -u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8812 | |
| 8813 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8814 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8815 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8816 | |
| 8817 | ;; |
| 8818 | *) |
| 8819 | extra_frameworks="" |
| 8820 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 8821 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8822 | ;; |
| 8823 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8824 | echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 8825 | echo "${ECHO_T}$enable_toolbox_glue" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8826 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8827 | |
| 8828 | case $ac_sys_system/$ac_sys_release in |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8829 | Darwin/1.3*) |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 8830 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc" |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8831 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8832 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python' |
| 8833 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 8834 | Darwin/*) |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 8835 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc" |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8836 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8837 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python' |
| 8838 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8839 | esac |
| 8840 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8841 | echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 8842 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8843 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8844 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 8845 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8846 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8847 | # in the build location. |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 8848 | LDFLAGS="$LDFLAGS -Wl,-F." |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8849 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8850 | cat >>confdefs.h <<\_ACEOF |
| 8851 | #define WITH_NEXT_FRAMEWORK 1 |
| 8852 | _ACEOF |
| 8853 | |
| 8854 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8855 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8856 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8857 | echo "$as_me:$LINENO: result: no" >&5 |
| 8858 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8859 | fi |
| 8860 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8861 | echo "$as_me:$LINENO: checking for dyld" >&5 |
| 8862 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8863 | case $ac_sys_system/$ac_sys_release in |
| 8864 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8865 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8866 | cat >>confdefs.h <<\_ACEOF |
| 8867 | #define WITH_DYLD 1 |
| 8868 | _ACEOF |
| 8869 | |
| 8870 | echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 8871 | echo "${ECHO_T}always on for Darwin" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8872 | ;; |
| 8873 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8874 | echo "$as_me:$LINENO: result: no" >&5 |
| 8875 | echo "${ECHO_T}no" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8876 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8877 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8878 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8879 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8880 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8881 | |
| 8882 | |
| 8883 | |
| 8884 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8885 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 8886 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8887 | echo "$as_me:$LINENO: checking SO" >&5 |
| 8888 | echo $ECHO_N "checking SO... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8889 | if test -z "$SO" |
| 8890 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8891 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 8892 | hp*|HP*) SO=.sl;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 8893 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 8894 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8895 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8896 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8897 | echo "$as_me:$LINENO: result: $SO" >&5 |
| 8898 | echo "${ECHO_T}$SO" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8899 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 5b718fc | 2001-09-10 15:34:42 +0000 | [diff] [blame] | 8900 | # -- "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] | 8901 | # (Shared libraries in this instance are shared modules to be loaded into |
| 8902 | # 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] | 8903 | echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 8904 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8905 | if test -z "$LDSHARED" |
| 8906 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8907 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8908 | AIX*) |
| 8909 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 8910 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8911 | ;; |
| 8912 | BeOS*) |
| 8913 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 8914 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8915 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 8916 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 8917 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8918 | SunOS/4*) LDSHARED="ld";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8919 | SunOS/5*) |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 8920 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 8921 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 8922 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 8923 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8924 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 8925 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
| 8926 | DYNIX/ptx*) LDSHARED="ld -G";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8927 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8928 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 8929 | if test "$enable_framework" ; then |
| 8930 | # Link against the framework. All externals should be defined. |
| 8931 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 8932 | else |
| 8933 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8934 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8935 | fi ;; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8936 | Darwin/*) |
| 8937 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 8938 | if test "$enable_framework" ; then |
| 8939 | # Link against the framework. All externals should be defined. |
| 8940 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 8941 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 8942 | # No framework, use the Python app as bundle-loader |
| 8943 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 8944 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/$(PYTHON)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8945 | fi ;; |
Martin v. Löwis | 3cba5c0 | 2002-09-16 17:50:59 +0000 | [diff] [blame] | 8946 | Linux*|GNU*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 8947 | dgux*) LDSHARED="ld -G";; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 8948 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 8949 | OpenBSD*|FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 8950 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 8951 | then |
| 8952 | LDSHARED="cc -shared ${LDFLAGS}" |
| 8953 | else |
| 8954 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 8955 | fi;; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 8956 | NetBSD*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 8957 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8958 | if test "$GCC" = "yes" |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 8959 | then LDSHARED='$(CC) -shared' |
| 8960 | else LDSHARED='$(CC) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8961 | fi;; |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 8962 | SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8963 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 8964 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8965 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8966 | *) LDSHARED="ld";; |
| 8967 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8968 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8969 | echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 8970 | echo "${ECHO_T}$LDSHARED" >&6 |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8971 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8972 | # 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] | 8973 | # library (module) -- this is only needed for a few systems |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8974 | echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 8975 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8976 | if test -z "$CCSHARED" |
| 8977 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 8978 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 8979 | SunOS*) if test "$GCC" = yes; |
| 8980 | then CCSHARED="-fPIC"; |
| 8981 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 8982 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 8983 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 8984 | else CCSHARED="+z"; |
| 8985 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8986 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 8987 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 8988 | FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 8989 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8990 | if test "$GCC" = "yes" |
| 8991 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8992 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8993 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 8994 | SCO_SV*) |
| 8995 | if test "$GCC" = "yes" |
| 8996 | then CCSHARED="-fPIC" |
| 8997 | else CCSHARED="-Kpic -belf" |
| 8998 | fi;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8999 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9000 | IRIX*/6*) case $CC in |
| 9001 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 9002 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9003 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9004 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9005 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9006 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9007 | echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 9008 | echo "${ECHO_T}$CCSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9009 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9010 | # 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] | 9011 | echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 9012 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9013 | if test -z "$LINKFORSHARED" |
| 9014 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9015 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9016 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 9017 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 9018 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 9019 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9020 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9021 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9022 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9023 | Darwin/*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9024 | # -u __dummy makes the linker aware of the objc runtime |
| 9025 | # in System.framework; otherwise, __objcInit (referenced in |
| 9026 | # crt1.o) gets erroneously defined as common, which breaks dynamic |
| 9027 | # loading of any modules which reference it in System.framework. |
| 9028 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, which is |
| 9029 | # not used by the core itself but which needs to be in the core so |
| 9030 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 9031 | LINKFORSHARED="$extra_undefs -framework System" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9032 | if test "$enable_framework" |
| 9033 | then |
| 9034 | LINKFORSHARED="$LINKFORSHARED -framework Python" |
| 9035 | fi |
| 9036 | LINKFORSHARED="$LINKFORSHARED $extra_frameworks";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9037 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9038 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 9039 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9040 | FreeBSD*|NetBSD*|OpenBSD*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 9041 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 9042 | then |
| 9043 | LINKFORSHARED="-Wl,--export-dynamic" |
| 9044 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9045 | SunOS/5*) case $CC in |
| 9046 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 9047 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 9048 | then |
| 9049 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9050 | fi;; |
| 9051 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9052 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9053 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9054 | echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 9055 | echo "${ECHO_T}$LINKFORSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9056 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9057 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9058 | echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 9059 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9060 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 9061 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 9062 | case $ac_sys_system in |
| 9063 | CYGWIN*) |
| 9064 | # Cygwin needs CCSHARED when building extension DLLs |
| 9065 | # but not when building the interpreter DLL. |
| 9066 | CFLAGSFORSHARED='';; |
| 9067 | *) |
| 9068 | CFLAGSFORSHARED='$(CCSHARED)' |
| 9069 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9070 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9071 | echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 9072 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9073 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9074 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 9075 | # library (with --enable-shared). |
| 9076 | # 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] | 9077 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 9078 | # if it is not required, since it creates a dependency of the shared library |
| 9079 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 9080 | # don't need to link LIBS explicitly. The default should be only changed |
| 9081 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9082 | |
| 9083 | echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 9084 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6 |
| 9085 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9086 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 9087 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9088 | esac |
| 9089 | echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 9090 | echo "${ECHO_T}$SHLIBS" >&6 |
| 9091 | |
| 9092 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9093 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9094 | |
| 9095 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9096 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 9097 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9098 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9099 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9100 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9101 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9102 | cat >conftest.$ac_ext <<_ACEOF |
| 9103 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9104 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9105 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9106 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9107 | #ifdef __cplusplus |
| 9108 | extern "C" |
| 9109 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9110 | /* 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] | 9111 | builtin and then its argument prototype would still apply. */ |
| 9112 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9113 | int |
| 9114 | main () |
| 9115 | { |
| 9116 | dlopen (); |
| 9117 | ; |
| 9118 | return 0; |
| 9119 | } |
| 9120 | _ACEOF |
| 9121 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9122 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9123 | (eval $ac_link) 2>&5 |
| 9124 | ac_status=$? |
| 9125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9126 | (exit $ac_status); } && |
| 9127 | { ac_try='test -s conftest$ac_exeext' |
| 9128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9129 | (eval $ac_try) 2>&5 |
| 9130 | ac_status=$? |
| 9131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9132 | (exit $ac_status); }; }; then |
| 9133 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9134 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9135 | echo "$as_me: failed program was:" >&5 |
| 9136 | cat conftest.$ac_ext >&5 |
| 9137 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9138 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9139 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9140 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9141 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9142 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9143 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 9144 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 9145 | cat >>confdefs.h <<_ACEOF |
| 9146 | #define HAVE_LIBDL 1 |
| 9147 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9148 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9149 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9150 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9151 | fi |
| 9152 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9153 | |
| 9154 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 9155 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 9156 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 9157 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9158 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9159 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9160 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9161 | cat >conftest.$ac_ext <<_ACEOF |
| 9162 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9163 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9164 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9165 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9166 | #ifdef __cplusplus |
| 9167 | extern "C" |
| 9168 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9169 | /* 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] | 9170 | builtin and then its argument prototype would still apply. */ |
| 9171 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9172 | int |
| 9173 | main () |
| 9174 | { |
| 9175 | shl_load (); |
| 9176 | ; |
| 9177 | return 0; |
| 9178 | } |
| 9179 | _ACEOF |
| 9180 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9181 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9182 | (eval $ac_link) 2>&5 |
| 9183 | ac_status=$? |
| 9184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9185 | (exit $ac_status); } && |
| 9186 | { ac_try='test -s conftest$ac_exeext' |
| 9187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9188 | (eval $ac_try) 2>&5 |
| 9189 | ac_status=$? |
| 9190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9191 | (exit $ac_status); }; }; then |
| 9192 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9193 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9194 | echo "$as_me: failed program was:" >&5 |
| 9195 | cat conftest.$ac_ext >&5 |
| 9196 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9197 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9198 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9199 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9200 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9201 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9202 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 9203 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 9204 | cat >>confdefs.h <<_ACEOF |
| 9205 | #define HAVE_LIBDLD 1 |
| 9206 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9207 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9208 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9209 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9210 | fi |
| 9211 | # Dynamic linking for HP-UX |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9212 | echo "$as_me:$LINENO: checking for library containing sem_init" >&5 |
| 9213 | echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6 |
| 9214 | if test "${ac_cv_search_sem_init+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9216 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9217 | ac_func_search_save_LIBS=$LIBS |
| 9218 | ac_cv_search_sem_init=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9219 | cat >conftest.$ac_ext <<_ACEOF |
| 9220 | #line $LINENO "configure" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9221 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9222 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9223 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9224 | #ifdef __cplusplus |
| 9225 | extern "C" |
| 9226 | #endif |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9227 | /* 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] | 9228 | builtin and then its argument prototype would still apply. */ |
| 9229 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9230 | int |
| 9231 | main () |
| 9232 | { |
| 9233 | sem_init (); |
| 9234 | ; |
| 9235 | return 0; |
| 9236 | } |
| 9237 | _ACEOF |
| 9238 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9239 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9240 | (eval $ac_link) 2>&5 |
| 9241 | ac_status=$? |
| 9242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9243 | (exit $ac_status); } && |
| 9244 | { ac_try='test -s conftest$ac_exeext' |
| 9245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9246 | (eval $ac_try) 2>&5 |
| 9247 | ac_status=$? |
| 9248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9249 | (exit $ac_status); }; }; then |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9250 | ac_cv_search_sem_init="none required" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9251 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9252 | echo "$as_me: failed program was:" >&5 |
| 9253 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9254 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9255 | 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] | 9256 | if test "$ac_cv_search_sem_init" = no; then |
| 9257 | for ac_lib in rt posix4; do |
| 9258 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9259 | cat >conftest.$ac_ext <<_ACEOF |
| 9260 | #line $LINENO "configure" |
| 9261 | #include "confdefs.h" |
| 9262 | |
| 9263 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9264 | #ifdef __cplusplus |
| 9265 | extern "C" |
| 9266 | #endif |
| 9267 | /* We use char because int might match the return type of a gcc2 |
| 9268 | builtin and then its argument prototype would still apply. */ |
| 9269 | char sem_init (); |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9270 | int |
| 9271 | main () |
| 9272 | { |
| 9273 | sem_init (); |
| 9274 | ; |
| 9275 | return 0; |
| 9276 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9277 | _ACEOF |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9278 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9279 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9280 | (eval $ac_link) 2>&5 |
| 9281 | ac_status=$? |
| 9282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9283 | (exit $ac_status); } && |
| 9284 | { ac_try='test -s conftest$ac_exeext' |
| 9285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9286 | (eval $ac_try) 2>&5 |
| 9287 | ac_status=$? |
| 9288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9289 | (exit $ac_status); }; }; then |
| 9290 | ac_cv_search_sem_init="-l$ac_lib" |
| 9291 | break |
| 9292 | else |
| 9293 | echo "$as_me: failed program was:" >&5 |
| 9294 | cat conftest.$ac_ext >&5 |
| 9295 | fi |
| 9296 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9297 | done |
| 9298 | fi |
| 9299 | LIBS=$ac_func_search_save_LIBS |
| 9300 | fi |
| 9301 | echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 9302 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6 |
| 9303 | if test "$ac_cv_search_sem_init" != no; then |
| 9304 | 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] | 9305 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9306 | fi |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9307 | # 'Real Time' functions on Solaris, |
| 9308 | # posix4 on Solaris 2.6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9309 | |
| 9310 | # checks for system dependent C++ extensions support |
| 9311 | case "$ac_sys_system" in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9312 | AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 9313 | echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6 |
| 9314 | cat >conftest.$ac_ext <<_ACEOF |
| 9315 | #line $LINENO "configure" |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9316 | #include "confdefs.h" |
| 9317 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9318 | int |
| 9319 | main () |
| 9320 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9321 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9322 | ; |
| 9323 | return 0; |
| 9324 | } |
| 9325 | _ACEOF |
| 9326 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9327 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9328 | (eval $ac_link) 2>&5 |
| 9329 | ac_status=$? |
| 9330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9331 | (exit $ac_status); } && |
| 9332 | { ac_try='test -s conftest$ac_exeext' |
| 9333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9334 | (eval $ac_try) 2>&5 |
| 9335 | ac_status=$? |
| 9336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9337 | (exit $ac_status); }; }; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9338 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9339 | cat >>confdefs.h <<\_ACEOF |
| 9340 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 9341 | _ACEOF |
| 9342 | |
| 9343 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9344 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9345 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9346 | echo "$as_me: failed program was:" >&5 |
| 9347 | cat conftest.$ac_ext >&5 |
| 9348 | echo "$as_me:$LINENO: result: no" >&5 |
| 9349 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9350 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9351 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9352 | *) ;; |
| 9353 | esac |
| 9354 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9355 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Martin v. Löwis | e117258 | 2002-11-13 08:51:19 +0000 | [diff] [blame] | 9356 | # However on SGI IRIX 4, these exist but are broken. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9357 | # BeOS' sockets are stashed in libnet. |
| 9358 | case "$ac_sys_system" in |
| 9359 | IRIX*) ;; |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9360 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9361 | echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 9362 | echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6 |
| 9363 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
| 9364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9365 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9366 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9367 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9368 | cat >conftest.$ac_ext <<_ACEOF |
| 9369 | #line $LINENO "configure" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9370 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9371 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9372 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9373 | #ifdef __cplusplus |
| 9374 | extern "C" |
| 9375 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9376 | /* 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] | 9377 | builtin and then its argument prototype would still apply. */ |
| 9378 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9379 | int |
| 9380 | main () |
| 9381 | { |
| 9382 | t_open (); |
| 9383 | ; |
| 9384 | return 0; |
| 9385 | } |
| 9386 | _ACEOF |
| 9387 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9388 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9389 | (eval $ac_link) 2>&5 |
| 9390 | ac_status=$? |
| 9391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9392 | (exit $ac_status); } && |
| 9393 | { ac_try='test -s conftest$ac_exeext' |
| 9394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9395 | (eval $ac_try) 2>&5 |
| 9396 | ac_status=$? |
| 9397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9398 | (exit $ac_status); }; }; then |
| 9399 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9400 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9401 | echo "$as_me: failed program was:" >&5 |
| 9402 | cat conftest.$ac_ext >&5 |
| 9403 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9404 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9405 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9406 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9407 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9408 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 9409 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6 |
| 9410 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9411 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9412 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 9413 | # SVR4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9414 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 9415 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 9416 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 9417 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9418 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9419 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9420 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9421 | cat >conftest.$ac_ext <<_ACEOF |
| 9422 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9423 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9424 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9425 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9426 | #ifdef __cplusplus |
| 9427 | extern "C" |
| 9428 | #endif |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9429 | /* 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] | 9430 | builtin and then its argument prototype would still apply. */ |
| 9431 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9432 | int |
| 9433 | main () |
| 9434 | { |
| 9435 | socket (); |
| 9436 | ; |
| 9437 | return 0; |
| 9438 | } |
| 9439 | _ACEOF |
| 9440 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9441 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9442 | (eval $ac_link) 2>&5 |
| 9443 | ac_status=$? |
| 9444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9445 | (exit $ac_status); } && |
| 9446 | { ac_try='test -s conftest$ac_exeext' |
| 9447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9448 | (eval $ac_try) 2>&5 |
| 9449 | ac_status=$? |
| 9450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9451 | (exit $ac_status); }; }; then |
| 9452 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9453 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9454 | echo "$as_me: failed program was:" >&5 |
| 9455 | cat conftest.$ac_ext >&5 |
| 9456 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9457 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9458 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9459 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9460 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9461 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 9462 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 9463 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9464 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9465 | fi |
| 9466 | # SVR4 sockets |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 9467 | ;; |
| 9468 | esac |
| 9469 | case "$ac_sys_system" in |
| 9470 | BeOS*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9471 | echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 9472 | echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6 |
| 9473 | if test "${ac_cv_lib_net_socket+set}" = set; then |
| 9474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9475 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9476 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9477 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9478 | cat >conftest.$ac_ext <<_ACEOF |
| 9479 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9480 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9481 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9482 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9483 | #ifdef __cplusplus |
| 9484 | extern "C" |
| 9485 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9486 | /* 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] | 9487 | builtin and then its argument prototype would still apply. */ |
| 9488 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9489 | int |
| 9490 | main () |
| 9491 | { |
| 9492 | socket (); |
| 9493 | ; |
| 9494 | return 0; |
| 9495 | } |
| 9496 | _ACEOF |
| 9497 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9498 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9499 | (eval $ac_link) 2>&5 |
| 9500 | ac_status=$? |
| 9501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9502 | (exit $ac_status); } && |
| 9503 | { ac_try='test -s conftest$ac_exeext' |
| 9504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9505 | (eval $ac_try) 2>&5 |
| 9506 | ac_status=$? |
| 9507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9508 | (exit $ac_status); }; }; then |
| 9509 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9510 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9511 | echo "$as_me: failed program was:" >&5 |
| 9512 | cat conftest.$ac_ext >&5 |
| 9513 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9514 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9515 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9516 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9517 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9518 | echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 9519 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6 |
| 9520 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9521 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9522 | fi |
| 9523 | # BeOS |
| 9524 | ;; |
| 9525 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9526 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9527 | echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 9528 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6 |
| 9529 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 9530 | # Check whether --with-libs or --without-libs was given. |
| 9531 | if test "${with_libs+set}" = set; then |
| 9532 | withval="$with_libs" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9533 | |
| 9534 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 9535 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 9536 | LIBS="$withval $LIBS" |
| 9537 | |
| 9538 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9539 | echo "$as_me:$LINENO: result: no" >&5 |
| 9540 | echo "${ECHO_T}no" >&6 |
| 9541 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9542 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 9543 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9544 | |
| 9545 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9546 | echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 9547 | echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6 |
| 9548 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9549 | # Check whether --with-signal-module or --without-signal-module was given. |
| 9550 | if test "${with_signal_module+set}" = set; then |
| 9551 | withval="$with_signal_module" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9552 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9553 | fi; |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9554 | |
| 9555 | if test -z "$with_signal_module" |
| 9556 | then with_signal_module="yes" |
| 9557 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9558 | echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 9559 | echo "${ECHO_T}$with_signal_module" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9560 | |
| 9561 | if test "${with_signal_module}" = "yes"; then |
| 9562 | USE_SIGNAL_MODULE="" |
| 9563 | SIGNAL_OBJS="" |
| 9564 | else |
| 9565 | USE_SIGNAL_MODULE="#" |
| 9566 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 9567 | fi |
| 9568 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 9569 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 9570 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9571 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 9572 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9573 | echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 9574 | echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6 |
| 9575 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9576 | |
| 9577 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 9578 | if test "${with_dec_threads+set}" = set; then |
| 9579 | withval="$with_dec_threads" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9580 | |
| 9581 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 9582 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9583 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9584 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9585 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9586 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9587 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9588 | echo "$as_me:$LINENO: result: no" >&5 |
| 9589 | echo "${ECHO_T}no" >&6 |
| 9590 | fi; |
| 9591 | |
| 9592 | # Templates for things AC_DEFINEd more than once. |
| 9593 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9594 | |
| 9595 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9596 | |
| 9597 | |
| 9598 | |
| 9599 | |
| 9600 | |
| 9601 | echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 9602 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6 |
| 9603 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9604 | # Check whether --with-threads or --without-threads was given. |
| 9605 | if test "${with_threads+set}" = set; then |
| 9606 | withval="$with_threads" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9607 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9608 | fi; |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9609 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9610 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9611 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9612 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9613 | if test "${with_thread+set}" = set; then |
| 9614 | withval="$with_thread" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 9615 | with_threads=$with_thread |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9616 | fi; |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9617 | |
| 9618 | if test -z "$with_threads" |
| 9619 | then with_threads="yes" |
| 9620 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9621 | echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 9622 | echo "${ECHO_T}$with_threads" >&6 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9623 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9624 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9625 | if test "$with_threads" = "no" |
| 9626 | then |
| 9627 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9628 | elif test "$ac_cv_pthread_is_default" = yes |
| 9629 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9630 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9631 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9632 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9633 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9634 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9635 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9636 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9637 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9638 | |
| 9639 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9640 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9641 | elif test "$ac_cv_kpthread" = "yes" |
| 9642 | then |
| 9643 | CC="$CC -Kpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9644 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 9645 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9646 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 9647 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9648 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9649 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9650 | else |
| 9651 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 9652 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 9653 | fi |
| 9654 | if test ! -z "$withval" -a -d "$withval" |
| 9655 | then LDFLAGS="$LDFLAGS -L$withval" |
| 9656 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9657 | |
| 9658 | # According to the POSIX spec, a pthreads implementation must |
| 9659 | # 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] | 9660 | echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 9661 | echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6 |
| 9662 | cat >conftest.$ac_ext <<_ACEOF |
| 9663 | #line $LINENO "configure" |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9664 | #include "confdefs.h" |
| 9665 | #include <unistd.h> |
| 9666 | #ifdef _POSIX_THREADS |
| 9667 | yes |
| 9668 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9669 | |
| 9670 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9671 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9672 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9673 | unistd_defines_pthreads=yes |
| 9674 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9675 | unistd_defines_pthreads=no |
| 9676 | fi |
| 9677 | rm -f conftest* |
| 9678 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9679 | echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 9680 | echo "${ECHO_T}$unistd_defines_pthreads" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9681 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9682 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 9683 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9684 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 9685 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9686 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 9687 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 9688 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 9689 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 9690 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9691 | fi |
| 9692 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 9693 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9694 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9695 | # Is the header compilable? |
| 9696 | echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 9697 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6 |
| 9698 | cat >conftest.$ac_ext <<_ACEOF |
| 9699 | #line $LINENO "configure" |
| 9700 | #include "confdefs.h" |
| 9701 | $ac_includes_default |
| 9702 | #include <cthreads.h> |
| 9703 | _ACEOF |
| 9704 | rm -f conftest.$ac_objext |
| 9705 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9706 | (eval $ac_compile) 2>&5 |
| 9707 | ac_status=$? |
| 9708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9709 | (exit $ac_status); } && |
| 9710 | { ac_try='test -s conftest.$ac_objext' |
| 9711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9712 | (eval $ac_try) 2>&5 |
| 9713 | ac_status=$? |
| 9714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9715 | (exit $ac_status); }; }; then |
| 9716 | ac_header_compiler=yes |
| 9717 | else |
| 9718 | echo "$as_me: failed program was:" >&5 |
| 9719 | cat conftest.$ac_ext >&5 |
| 9720 | ac_header_compiler=no |
| 9721 | fi |
| 9722 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9723 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9724 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9725 | |
| 9726 | # Is the header present? |
| 9727 | echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 9728 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6 |
| 9729 | cat >conftest.$ac_ext <<_ACEOF |
| 9730 | #line $LINENO "configure" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9731 | #include "confdefs.h" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9732 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9733 | _ACEOF |
| 9734 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9735 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9736 | ac_status=$? |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9737 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9738 | rm -f conftest.er1 |
| 9739 | cat conftest.err >&5 |
| 9740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9741 | (exit $ac_status); } >/dev/null; then |
| 9742 | if test -s conftest.err; then |
| 9743 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9744 | else |
| 9745 | ac_cpp_err= |
| 9746 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9747 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9748 | ac_cpp_err=yes |
| 9749 | fi |
| 9750 | if test -z "$ac_cpp_err"; then |
| 9751 | ac_header_preproc=yes |
| 9752 | else |
| 9753 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9754 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9755 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9756 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9757 | rm -f conftest.err conftest.$ac_ext |
| 9758 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9759 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9760 | |
| 9761 | # So? What about this header? |
| 9762 | case $ac_header_compiler:$ac_header_preproc in |
| 9763 | yes:no ) |
| 9764 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9765 | echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9766 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 9767 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 9768 | no:yes ) |
| 9769 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 9770 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
| 9771 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 9772 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 9773 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 9774 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 9775 | esac |
| 9776 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 9777 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 9778 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 9779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9780 | else |
| 9781 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9782 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9783 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 9784 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
| 9785 | |
| 9786 | fi |
| 9787 | if test $ac_cv_header_cthreads_h = yes; then |
| 9788 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9789 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9790 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9791 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9792 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9793 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9794 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9795 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9796 | |
| 9797 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9798 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9799 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9800 | |
| 9801 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9802 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9803 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9804 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9805 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 9806 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 9807 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 9808 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 9809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9810 | fi |
| 9811 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 9812 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9813 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9814 | # Is the header compilable? |
| 9815 | echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 9816 | echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6 |
| 9817 | cat >conftest.$ac_ext <<_ACEOF |
| 9818 | #line $LINENO "configure" |
| 9819 | #include "confdefs.h" |
| 9820 | $ac_includes_default |
| 9821 | #include <mach/cthreads.h> |
| 9822 | _ACEOF |
| 9823 | rm -f conftest.$ac_objext |
| 9824 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9825 | (eval $ac_compile) 2>&5 |
| 9826 | ac_status=$? |
| 9827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9828 | (exit $ac_status); } && |
| 9829 | { ac_try='test -s conftest.$ac_objext' |
| 9830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9831 | (eval $ac_try) 2>&5 |
| 9832 | ac_status=$? |
| 9833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9834 | (exit $ac_status); }; }; then |
| 9835 | ac_header_compiler=yes |
| 9836 | else |
| 9837 | echo "$as_me: failed program was:" >&5 |
| 9838 | cat conftest.$ac_ext >&5 |
| 9839 | ac_header_compiler=no |
| 9840 | fi |
| 9841 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9842 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9843 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9844 | |
| 9845 | # Is the header present? |
| 9846 | echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 9847 | echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6 |
| 9848 | cat >conftest.$ac_ext <<_ACEOF |
| 9849 | #line $LINENO "configure" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9850 | #include "confdefs.h" |
| 9851 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9852 | _ACEOF |
| 9853 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9854 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9855 | ac_status=$? |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9856 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9857 | rm -f conftest.er1 |
| 9858 | cat conftest.err >&5 |
| 9859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9860 | (exit $ac_status); } >/dev/null; then |
| 9861 | if test -s conftest.err; then |
| 9862 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9863 | else |
| 9864 | ac_cpp_err= |
| 9865 | fi |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9866 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9867 | ac_cpp_err=yes |
| 9868 | fi |
| 9869 | if test -z "$ac_cpp_err"; then |
| 9870 | ac_header_preproc=yes |
| 9871 | else |
| 9872 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9873 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9874 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9875 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9876 | rm -f conftest.err conftest.$ac_ext |
| 9877 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9878 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9879 | |
| 9880 | # So? What about this header? |
| 9881 | case $ac_header_compiler:$ac_header_preproc in |
| 9882 | yes:no ) |
| 9883 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9884 | echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9885 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 9886 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 9887 | no:yes ) |
| 9888 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 9889 | echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
| 9890 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 9891 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 9892 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 9893 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 9894 | esac |
| 9895 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 9896 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 9897 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 9898 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9899 | else |
| 9900 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9901 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9902 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 9903 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
| 9904 | |
| 9905 | fi |
| 9906 | if test $ac_cv_header_mach_cthreads_h = yes; then |
| 9907 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9908 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9909 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9910 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9911 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9912 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9913 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9914 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9915 | |
| 9916 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9917 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9918 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9919 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9920 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9921 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9922 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9923 | echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 9924 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6 |
| 9925 | |
| 9926 | # Check whether --with-pth or --without-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9927 | if test "${with_pth+set}" = set; then |
| 9928 | withval="$with_pth" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 9929 | echo "$as_me:$LINENO: result: $withval" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9930 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 9931 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9932 | #define WITH_THREAD 1 |
| 9933 | _ACEOF |
| 9934 | |
| 9935 | |
| 9936 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9937 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9938 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9939 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 9940 | LIBS="-lpth $LIBS" |
| 9941 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9942 | else |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 9943 | echo "$as_me:$LINENO: result: no" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9944 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9945 | |
| 9946 | # Just looking for pthread_create in libpthread is not enough: |
| 9947 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 9948 | # So we really have to include pthread.h, and then link. |
| 9949 | _libs=$LIBS |
| 9950 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9951 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 9952 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| 9953 | cat >conftest.$ac_ext <<_ACEOF |
| 9954 | #line $LINENO "configure" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9955 | #include "confdefs.h" |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9956 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9957 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9958 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9959 | int |
| 9960 | main () |
| 9961 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9962 | |
| 9963 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9964 | ; |
| 9965 | return 0; |
| 9966 | } |
| 9967 | _ACEOF |
| 9968 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9969 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9970 | (eval $ac_link) 2>&5 |
| 9971 | ac_status=$? |
| 9972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9973 | (exit $ac_status); } && |
| 9974 | { ac_try='test -s conftest$ac_exeext' |
| 9975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9976 | (eval $ac_try) 2>&5 |
| 9977 | ac_status=$? |
| 9978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9979 | (exit $ac_status); }; }; then |
| 9980 | |
| 9981 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9982 | echo "${ECHO_T}yes" >&6 |
| 9983 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9984 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9985 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9986 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9987 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9988 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9989 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9990 | echo "$as_me: failed program was:" >&5 |
| 9991 | cat conftest.$ac_ext >&5 |
| 9992 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9993 | LIBS=$_libs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9994 | echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 9995 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6 |
| 9996 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
| 9997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9998 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9999 | cat >conftest.$ac_ext <<_ACEOF |
| 10000 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10001 | #include "confdefs.h" |
| 10002 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10003 | which can conflict with char pthread_detach (); below. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10004 | #include <assert.h> |
| 10005 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10006 | #ifdef __cplusplus |
| 10007 | extern "C" |
| 10008 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10009 | /* 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] | 10010 | builtin and then its argument prototype would still apply. */ |
| 10011 | char pthread_detach (); |
| 10012 | char (*f) (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10013 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10014 | int |
| 10015 | main () |
| 10016 | { |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10017 | /* The GNU C library defines this for functions which it implements |
| 10018 | to always fail with ENOSYS. Some functions are actually named |
| 10019 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 10020 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10021 | choke me |
| 10022 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10023 | f = pthread_detach; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10024 | #endif |
| 10025 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10026 | ; |
| 10027 | return 0; |
| 10028 | } |
| 10029 | _ACEOF |
| 10030 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10031 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10032 | (eval $ac_link) 2>&5 |
| 10033 | ac_status=$? |
| 10034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10035 | (exit $ac_status); } && |
| 10036 | { ac_try='test -s conftest$ac_exeext' |
| 10037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10038 | (eval $ac_try) 2>&5 |
| 10039 | ac_status=$? |
| 10040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10041 | (exit $ac_status); }; }; then |
| 10042 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10043 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10044 | echo "$as_me: failed program was:" >&5 |
| 10045 | cat conftest.$ac_ext >&5 |
| 10046 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10047 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10048 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10049 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10050 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 10051 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6 |
| 10052 | if test $ac_cv_func_pthread_detach = yes; then |
| 10053 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10054 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10055 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10056 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10057 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10058 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10059 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10060 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10061 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10062 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 10063 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 10064 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10065 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10066 | fi |
| 10067 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 10068 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 10069 | else |
| 10070 | # Is the header compilable? |
| 10071 | echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 10072 | echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6 |
| 10073 | cat >conftest.$ac_ext <<_ACEOF |
| 10074 | #line $LINENO "configure" |
| 10075 | #include "confdefs.h" |
| 10076 | $ac_includes_default |
| 10077 | #include <atheos/threads.h> |
| 10078 | _ACEOF |
| 10079 | rm -f conftest.$ac_objext |
| 10080 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10081 | (eval $ac_compile) 2>&5 |
| 10082 | ac_status=$? |
| 10083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10084 | (exit $ac_status); } && |
| 10085 | { ac_try='test -s conftest.$ac_objext' |
| 10086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10087 | (eval $ac_try) 2>&5 |
| 10088 | ac_status=$? |
| 10089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10090 | (exit $ac_status); }; }; then |
| 10091 | ac_header_compiler=yes |
| 10092 | else |
| 10093 | echo "$as_me: failed program was:" >&5 |
| 10094 | cat conftest.$ac_ext >&5 |
| 10095 | ac_header_compiler=no |
| 10096 | fi |
| 10097 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10098 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10099 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10100 | |
| 10101 | # Is the header present? |
| 10102 | echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 10103 | echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6 |
| 10104 | cat >conftest.$ac_ext <<_ACEOF |
| 10105 | #line $LINENO "configure" |
| 10106 | #include "confdefs.h" |
| 10107 | #include <atheos/threads.h> |
| 10108 | _ACEOF |
| 10109 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10110 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10111 | ac_status=$? |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10112 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10113 | rm -f conftest.er1 |
| 10114 | cat conftest.err >&5 |
| 10115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10116 | (exit $ac_status); } >/dev/null; then |
| 10117 | if test -s conftest.err; then |
| 10118 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10119 | else |
| 10120 | ac_cpp_err= |
| 10121 | fi |
| 10122 | else |
| 10123 | ac_cpp_err=yes |
| 10124 | fi |
| 10125 | if test -z "$ac_cpp_err"; then |
| 10126 | ac_header_preproc=yes |
| 10127 | else |
| 10128 | echo "$as_me: failed program was:" >&5 |
| 10129 | cat conftest.$ac_ext >&5 |
| 10130 | ac_header_preproc=no |
| 10131 | fi |
| 10132 | rm -f conftest.err conftest.$ac_ext |
| 10133 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10134 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10135 | |
| 10136 | # So? What about this header? |
| 10137 | case $ac_header_compiler:$ac_header_preproc in |
| 10138 | yes:no ) |
| 10139 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10140 | echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10141 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 10142 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};; |
| 10143 | no:yes ) |
| 10144 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 10145 | echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;} |
| 10146 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 10147 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 10148 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 10149 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};; |
| 10150 | esac |
| 10151 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 10152 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 10153 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10154 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10155 | else |
| 10156 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 10157 | fi |
| 10158 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 10159 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 10160 | |
| 10161 | fi |
| 10162 | if test $ac_cv_header_atheos_threads_h = yes; then |
| 10163 | cat >>confdefs.h <<\_ACEOF |
| 10164 | #define WITH_THREAD 1 |
| 10165 | _ACEOF |
| 10166 | |
| 10167 | |
| 10168 | cat >>confdefs.h <<\_ACEOF |
| 10169 | #define ATHEOS_THREADS 1 |
| 10170 | _ACEOF |
| 10171 | |
| 10172 | THREADOBJ="Python/thread.o" |
| 10173 | else |
| 10174 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10175 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10176 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 10177 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 10178 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10180 | fi |
| 10181 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 10182 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10183 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10184 | # Is the header compilable? |
| 10185 | echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 10186 | echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6 |
| 10187 | cat >conftest.$ac_ext <<_ACEOF |
| 10188 | #line $LINENO "configure" |
| 10189 | #include "confdefs.h" |
| 10190 | $ac_includes_default |
| 10191 | #include <kernel/OS.h> |
| 10192 | _ACEOF |
| 10193 | rm -f conftest.$ac_objext |
| 10194 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10195 | (eval $ac_compile) 2>&5 |
| 10196 | ac_status=$? |
| 10197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10198 | (exit $ac_status); } && |
| 10199 | { ac_try='test -s conftest.$ac_objext' |
| 10200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10201 | (eval $ac_try) 2>&5 |
| 10202 | ac_status=$? |
| 10203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10204 | (exit $ac_status); }; }; then |
| 10205 | ac_header_compiler=yes |
| 10206 | else |
| 10207 | echo "$as_me: failed program was:" >&5 |
| 10208 | cat conftest.$ac_ext >&5 |
| 10209 | ac_header_compiler=no |
| 10210 | fi |
| 10211 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10212 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10213 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10214 | |
| 10215 | # Is the header present? |
| 10216 | echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 10217 | echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6 |
| 10218 | cat >conftest.$ac_ext <<_ACEOF |
| 10219 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10220 | #include "confdefs.h" |
| 10221 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10222 | _ACEOF |
| 10223 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10224 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10225 | ac_status=$? |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10226 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10227 | rm -f conftest.er1 |
| 10228 | cat conftest.err >&5 |
| 10229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10230 | (exit $ac_status); } >/dev/null; then |
| 10231 | if test -s conftest.err; then |
| 10232 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10233 | else |
| 10234 | ac_cpp_err= |
| 10235 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10236 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10237 | ac_cpp_err=yes |
| 10238 | fi |
| 10239 | if test -z "$ac_cpp_err"; then |
| 10240 | ac_header_preproc=yes |
| 10241 | else |
| 10242 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10243 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10244 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10245 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10246 | rm -f conftest.err conftest.$ac_ext |
| 10247 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10248 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10249 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10250 | # So? What about this header? |
| 10251 | case $ac_header_compiler:$ac_header_preproc in |
| 10252 | yes:no ) |
| 10253 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10254 | echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10255 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 10256 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};; |
| 10257 | no:yes ) |
| 10258 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 10259 | echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;} |
| 10260 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 10261 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 10262 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 10263 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};; |
| 10264 | esac |
| 10265 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 10266 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 10267 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10269 | else |
| 10270 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 10271 | fi |
| 10272 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 10273 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
| 10274 | |
| 10275 | fi |
| 10276 | if test $ac_cv_header_kernel_OS_h = yes; then |
| 10277 | cat >>confdefs.h <<\_ACEOF |
| 10278 | #define WITH_THREAD 1 |
| 10279 | _ACEOF |
| 10280 | |
| 10281 | |
| 10282 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10283 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10284 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10285 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10286 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10287 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10288 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10289 | echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 10290 | echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6 |
| 10291 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
| 10292 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10293 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10294 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10295 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10296 | cat >conftest.$ac_ext <<_ACEOF |
| 10297 | #line $LINENO "configure" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10298 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10299 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10300 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10301 | #ifdef __cplusplus |
| 10302 | extern "C" |
| 10303 | #endif |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10304 | /* 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] | 10305 | builtin and then its argument prototype would still apply. */ |
| 10306 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10307 | int |
| 10308 | main () |
| 10309 | { |
| 10310 | pthread_create (); |
| 10311 | ; |
| 10312 | return 0; |
| 10313 | } |
| 10314 | _ACEOF |
| 10315 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10316 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10317 | (eval $ac_link) 2>&5 |
| 10318 | ac_status=$? |
| 10319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10320 | (exit $ac_status); } && |
| 10321 | { ac_try='test -s conftest$ac_exeext' |
| 10322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10323 | (eval $ac_try) 2>&5 |
| 10324 | ac_status=$? |
| 10325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10326 | (exit $ac_status); }; }; then |
| 10327 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10328 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10329 | echo "$as_me: failed program was:" >&5 |
| 10330 | cat conftest.$ac_ext >&5 |
| 10331 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10332 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10333 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10334 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10335 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10336 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 10337 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6 |
| 10338 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
| 10339 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10340 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10341 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10342 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10343 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10344 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10345 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10346 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10347 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10348 | echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 10349 | echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6 |
| 10350 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
| 10351 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10352 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10353 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10354 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10355 | cat >conftest.$ac_ext <<_ACEOF |
| 10356 | #line $LINENO "configure" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10357 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10358 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10359 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10360 | #ifdef __cplusplus |
| 10361 | extern "C" |
| 10362 | #endif |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10363 | /* 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] | 10364 | builtin and then its argument prototype would still apply. */ |
| 10365 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10366 | int |
| 10367 | main () |
| 10368 | { |
| 10369 | pthread_create (); |
| 10370 | ; |
| 10371 | return 0; |
| 10372 | } |
| 10373 | _ACEOF |
| 10374 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10375 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10376 | (eval $ac_link) 2>&5 |
| 10377 | ac_status=$? |
| 10378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10379 | (exit $ac_status); } && |
| 10380 | { ac_try='test -s conftest$ac_exeext' |
| 10381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10382 | (eval $ac_try) 2>&5 |
| 10383 | ac_status=$? |
| 10384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10385 | (exit $ac_status); }; }; then |
| 10386 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10387 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10388 | echo "$as_me: failed program was:" >&5 |
| 10389 | cat conftest.$ac_ext >&5 |
| 10390 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10391 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10392 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10393 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10394 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10395 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 10396 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6 |
| 10397 | if test $ac_cv_lib_c_r_pthread_create = yes; then |
| 10398 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10399 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10400 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10401 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10402 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10403 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10404 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10405 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10406 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10407 | echo "$as_me:$LINENO: checking for __d6_pthread_create in -lthread" >&5 |
| 10408 | echo $ECHO_N "checking for __d6_pthread_create in -lthread... $ECHO_C" >&6 |
| 10409 | if test "${ac_cv_lib_thread___d6_pthread_create+set}" = set; then |
| 10410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10411 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10412 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10413 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10414 | cat >conftest.$ac_ext <<_ACEOF |
| 10415 | #line $LINENO "configure" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10416 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10417 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10418 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10419 | #ifdef __cplusplus |
| 10420 | extern "C" |
| 10421 | #endif |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10422 | /* 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] | 10423 | builtin and then its argument prototype would still apply. */ |
| 10424 | char __d6_pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10425 | int |
| 10426 | main () |
| 10427 | { |
| 10428 | __d6_pthread_create (); |
| 10429 | ; |
| 10430 | return 0; |
| 10431 | } |
| 10432 | _ACEOF |
| 10433 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10434 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10435 | (eval $ac_link) 2>&5 |
| 10436 | ac_status=$? |
| 10437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10438 | (exit $ac_status); } && |
| 10439 | { ac_try='test -s conftest$ac_exeext' |
| 10440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10441 | (eval $ac_try) 2>&5 |
| 10442 | ac_status=$? |
| 10443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10444 | (exit $ac_status); }; }; then |
| 10445 | ac_cv_lib_thread___d6_pthread_create=yes |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10446 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10447 | echo "$as_me: failed program was:" >&5 |
| 10448 | cat conftest.$ac_ext >&5 |
| 10449 | ac_cv_lib_thread___d6_pthread_create=no |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10450 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10451 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10452 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10453 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10454 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread___d6_pthread_create" >&5 |
| 10455 | echo "${ECHO_T}$ac_cv_lib_thread___d6_pthread_create" >&6 |
| 10456 | if test $ac_cv_lib_thread___d6_pthread_create = yes; then |
| 10457 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10458 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10459 | _ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10460 | |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 10461 | echo Systems with __d6_pthread_create are not supported anymore. |
| 10462 | echo See README |
| 10463 | exit 1 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10464 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10465 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10466 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10467 | else |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10468 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10469 | echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 10470 | echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6 |
| 10471 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
| 10472 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10473 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10474 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10475 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10476 | cat >conftest.$ac_ext <<_ACEOF |
| 10477 | #line $LINENO "configure" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10478 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10479 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10480 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10481 | #ifdef __cplusplus |
| 10482 | extern "C" |
| 10483 | #endif |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10484 | /* 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] | 10485 | builtin and then its argument prototype would still apply. */ |
| 10486 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10487 | int |
| 10488 | main () |
| 10489 | { |
| 10490 | __pthread_create_system (); |
| 10491 | ; |
| 10492 | return 0; |
| 10493 | } |
| 10494 | _ACEOF |
| 10495 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10496 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10497 | (eval $ac_link) 2>&5 |
| 10498 | ac_status=$? |
| 10499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10500 | (exit $ac_status); } && |
| 10501 | { ac_try='test -s conftest$ac_exeext' |
| 10502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10503 | (eval $ac_try) 2>&5 |
| 10504 | ac_status=$? |
| 10505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10506 | (exit $ac_status); }; }; then |
| 10507 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10508 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10509 | echo "$as_me: failed program was:" >&5 |
| 10510 | cat conftest.$ac_ext >&5 |
| 10511 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10512 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10513 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10514 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10515 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10516 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 10517 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6 |
| 10518 | if test $ac_cv_lib_pthread___pthread_create_system = yes; then |
| 10519 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10520 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10521 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10522 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10523 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10524 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10525 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10526 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10527 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10528 | echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 10529 | echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6 |
| 10530 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
| 10531 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10532 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10533 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10534 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10535 | cat >conftest.$ac_ext <<_ACEOF |
| 10536 | #line $LINENO "configure" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10537 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10538 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10539 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10540 | #ifdef __cplusplus |
| 10541 | extern "C" |
| 10542 | #endif |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10543 | /* 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] | 10544 | builtin and then its argument prototype would still apply. */ |
| 10545 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10546 | int |
| 10547 | main () |
| 10548 | { |
| 10549 | pthread_create (); |
| 10550 | ; |
| 10551 | return 0; |
| 10552 | } |
| 10553 | _ACEOF |
| 10554 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10555 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10556 | (eval $ac_link) 2>&5 |
| 10557 | ac_status=$? |
| 10558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10559 | (exit $ac_status); } && |
| 10560 | { ac_try='test -s conftest$ac_exeext' |
| 10561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10562 | (eval $ac_try) 2>&5 |
| 10563 | ac_status=$? |
| 10564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10565 | (exit $ac_status); }; }; then |
| 10566 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10567 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10568 | echo "$as_me: failed program was:" >&5 |
| 10569 | cat conftest.$ac_ext >&5 |
| 10570 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10571 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10572 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10573 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10574 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10575 | echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 10576 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6 |
| 10577 | if test $ac_cv_lib_cma_pthread_create = yes; then |
| 10578 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10579 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10580 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10581 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10582 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10583 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10584 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10585 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 10586 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10587 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 10588 | fi |
| 10589 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10590 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10591 | fi |
| 10592 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 10593 | fi |
| 10594 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10595 | fi |
| 10596 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10597 | fi |
| 10598 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10599 | fi |
| 10600 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10601 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10602 | fi |
| 10603 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10604 | |
| 10605 | fi |
| 10606 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10607 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10608 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10609 | fi; |
| 10610 | fi |
| 10611 | |
| 10612 | |
| 10613 | fi |
| 10614 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10615 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10616 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10617 | if test "$posix_threads" = "yes"; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10618 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10619 | |
| 10620 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10621 | #define _POSIX_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10622 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10623 | |
| 10624 | fi |
| 10625 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10626 | echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 10627 | echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6 |
| 10628 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
| 10629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10630 | else |
| 10631 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 10632 | ac_cv_pthread_system_supported=no |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10633 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10634 | cat >conftest.$ac_ext <<_ACEOF |
| 10635 | #line $LINENO "configure" |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10636 | #include "confdefs.h" |
| 10637 | #include <pthread.h> |
| 10638 | void *foo(void *parm) { |
| 10639 | return NULL; |
| 10640 | } |
| 10641 | main() { |
| 10642 | pthread_attr_t attr; |
Martin v. Löwis | a82d347 | 2002-02-24 16:05:05 +0000 | [diff] [blame] | 10643 | pthread_t id; |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10644 | if (pthread_attr_init(&attr)) exit(-1); |
| 10645 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
Martin v. Löwis | a82d347 | 2002-02-24 16:05:05 +0000 | [diff] [blame] | 10646 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10647 | exit(0); |
| 10648 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10649 | _ACEOF |
| 10650 | rm -f conftest$ac_exeext |
| 10651 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10652 | (eval $ac_link) 2>&5 |
| 10653 | ac_status=$? |
| 10654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10655 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10657 | (eval $ac_try) 2>&5 |
| 10658 | ac_status=$? |
| 10659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10660 | (exit $ac_status); }; }; then |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10661 | ac_cv_pthread_system_supported=yes |
| 10662 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10663 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10664 | echo "$as_me: failed program was:" >&5 |
| 10665 | cat conftest.$ac_ext >&5 |
| 10666 | ( exit $ac_status ) |
| 10667 | ac_cv_pthread_system_supported=no |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10668 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10669 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10670 | fi |
| 10671 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10672 | fi |
| 10673 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10674 | echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 10675 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10676 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10677 | |
| 10678 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10679 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10680 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10681 | |
| 10682 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10683 | |
| 10684 | for ac_func in pthread_sigmask |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10685 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10686 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10687 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10688 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 10689 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 10690 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10691 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10692 | cat >conftest.$ac_ext <<_ACEOF |
| 10693 | #line $LINENO "configure" |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10694 | #include "confdefs.h" |
| 10695 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10696 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10697 | #include <assert.h> |
| 10698 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10699 | #ifdef __cplusplus |
| 10700 | extern "C" |
| 10701 | #endif |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10702 | /* 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] | 10703 | builtin and then its argument prototype would still apply. */ |
| 10704 | char $ac_func (); |
| 10705 | char (*f) (); |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10706 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10707 | int |
| 10708 | main () |
| 10709 | { |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10710 | /* The GNU C library defines this for functions which it implements |
| 10711 | to always fail with ENOSYS. Some functions are actually named |
| 10712 | something starting with __ and the normal name is an alias. */ |
| 10713 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 10714 | choke me |
| 10715 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10716 | f = $ac_func; |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10717 | #endif |
| 10718 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10719 | ; |
| 10720 | return 0; |
| 10721 | } |
| 10722 | _ACEOF |
| 10723 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10724 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10725 | (eval $ac_link) 2>&5 |
| 10726 | ac_status=$? |
| 10727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10728 | (exit $ac_status); } && |
| 10729 | { ac_try='test -s conftest$ac_exeext' |
| 10730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10731 | (eval $ac_try) 2>&5 |
| 10732 | ac_status=$? |
| 10733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10734 | (exit $ac_status); }; }; then |
| 10735 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10736 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10737 | echo "$as_me: failed program was:" >&5 |
| 10738 | cat conftest.$ac_ext >&5 |
| 10739 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10740 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10741 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10742 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10743 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 10744 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 10745 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 10746 | cat >>confdefs.h <<_ACEOF |
| 10747 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10748 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10749 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10750 | fi |
| 10751 | done |
| 10752 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10753 | fi |
| 10754 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10755 | echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 10756 | echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6 |
| 10757 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
| 10758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10759 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10760 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10761 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10762 | cat >conftest.$ac_ext <<_ACEOF |
| 10763 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10764 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10765 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10766 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10767 | #ifdef __cplusplus |
| 10768 | extern "C" |
| 10769 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10770 | /* 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] | 10771 | builtin and then its argument prototype would still apply. */ |
| 10772 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10773 | int |
| 10774 | main () |
| 10775 | { |
| 10776 | usconfig (); |
| 10777 | ; |
| 10778 | return 0; |
| 10779 | } |
| 10780 | _ACEOF |
| 10781 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10782 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10783 | (eval $ac_link) 2>&5 |
| 10784 | ac_status=$? |
| 10785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10786 | (exit $ac_status); } && |
| 10787 | { ac_try='test -s conftest$ac_exeext' |
| 10788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10789 | (eval $ac_try) 2>&5 |
| 10790 | ac_status=$? |
| 10791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10792 | (exit $ac_status); }; }; then |
| 10793 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10794 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10795 | echo "$as_me: failed program was:" >&5 |
| 10796 | cat conftest.$ac_ext >&5 |
| 10797 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10798 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10799 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10800 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10801 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10802 | echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 10803 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6 |
| 10804 | if test $ac_cv_lib_mpc_usconfig = yes; then |
| 10805 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10806 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10807 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10808 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10809 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10810 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10811 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10812 | fi |
| 10813 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10814 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 10815 | if test "$posix_threads" != "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10816 | echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 10817 | echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6 |
| 10818 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
| 10819 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10820 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10821 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10822 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10823 | cat >conftest.$ac_ext <<_ACEOF |
| 10824 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10825 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10826 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10827 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10828 | #ifdef __cplusplus |
| 10829 | extern "C" |
| 10830 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10831 | /* 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] | 10832 | builtin and then its argument prototype would still apply. */ |
| 10833 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10834 | int |
| 10835 | main () |
| 10836 | { |
| 10837 | thr_create (); |
| 10838 | ; |
| 10839 | return 0; |
| 10840 | } |
| 10841 | _ACEOF |
| 10842 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10843 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10844 | (eval $ac_link) 2>&5 |
| 10845 | ac_status=$? |
| 10846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10847 | (exit $ac_status); } && |
| 10848 | { ac_try='test -s conftest$ac_exeext' |
| 10849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10850 | (eval $ac_try) 2>&5 |
| 10851 | ac_status=$? |
| 10852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10853 | (exit $ac_status); }; }; then |
| 10854 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10855 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10856 | echo "$as_me: failed program was:" >&5 |
| 10857 | cat conftest.$ac_ext >&5 |
| 10858 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10859 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10860 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10861 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10862 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10863 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 10864 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6 |
| 10865 | if test $ac_cv_lib_thread_thr_create = yes; then |
| 10866 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10867 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10868 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10869 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10870 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10871 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10872 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10873 | fi |
| 10874 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10875 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10876 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10877 | if test "$USE_THREAD_MODULE" != "#" |
| 10878 | then |
| 10879 | # If the above checks didn't disable threads, (at least) OSF1 |
| 10880 | # needs this '-threads' argument during linking. |
| 10881 | case $ac_sys_system in |
| 10882 | OSF1) LDLAST=-threads;; |
| 10883 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 10884 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10885 | |
| 10886 | if test "$posix_threads" = yes -a \ |
| 10887 | "$ac_sys_system" = "SunOS" -a \ |
| 10888 | "$ac_sys_release" = "5.6"; then |
| 10889 | |
| 10890 | cat >>confdefs.h <<\_ACEOF |
| 10891 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 10892 | _ACEOF |
| 10893 | |
| 10894 | fi |
| 10895 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10896 | fi |
| 10897 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10898 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10899 | |
| 10900 | |
| 10901 | echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 10902 | 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] | 10903 | # Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 10904 | if test "${enable_ipv6+set}" = set; then |
| 10905 | enableval="$enable_ipv6" |
| 10906 | case "$enableval" in |
| 10907 | no) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10908 | echo "$as_me:$LINENO: result: no" >&5 |
| 10909 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10910 | ipv6=no |
| 10911 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10912 | *) echo "$as_me:$LINENO: result: yes" >&5 |
| 10913 | echo "${ECHO_T}yes" >&6 |
| 10914 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10915 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10916 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10917 | |
| 10918 | ipv6=yes |
| 10919 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10920 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10921 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10922 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10923 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10924 | echo "$as_me:$LINENO: result: no" >&5 |
| 10925 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10926 | ipv6=no |
| 10927 | |
| 10928 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10929 | cat >conftest.$ac_ext <<_ACEOF |
| 10930 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10931 | #include "confdefs.h" |
| 10932 | /* AF_INET6 available check */ |
| 10933 | #include <sys/types.h> |
| 10934 | #include <sys/socket.h> |
| 10935 | main() |
| 10936 | { |
| 10937 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 10938 | exit(1); |
| 10939 | else |
| 10940 | exit(0); |
| 10941 | } |
| 10942 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10943 | _ACEOF |
| 10944 | rm -f conftest$ac_exeext |
| 10945 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10946 | (eval $ac_link) 2>&5 |
| 10947 | ac_status=$? |
| 10948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10949 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10951 | (eval $ac_try) 2>&5 |
| 10952 | ac_status=$? |
| 10953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10954 | (exit $ac_status); }; }; then |
| 10955 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10956 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10957 | ipv6=yes |
| 10958 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10959 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10960 | echo "$as_me: failed program was:" >&5 |
| 10961 | cat conftest.$ac_ext >&5 |
| 10962 | ( exit $ac_status ) |
| 10963 | echo "$as_me:$LINENO: result: no" >&5 |
| 10964 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10965 | ipv6=no |
| 10966 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10967 | 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] | 10968 | fi |
| 10969 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10970 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10971 | echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 10972 | echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6 |
| 10973 | cat >conftest.$ac_ext <<_ACEOF |
| 10974 | #line $LINENO "configure" |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10975 | #include "confdefs.h" |
| 10976 | #include <sys/types.h> |
| 10977 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10978 | int |
| 10979 | main () |
| 10980 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10981 | struct sockaddr_in6 x; |
| 10982 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10983 | ; |
| 10984 | return 0; |
| 10985 | } |
| 10986 | _ACEOF |
| 10987 | rm -f conftest.$ac_objext |
| 10988 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10989 | (eval $ac_compile) 2>&5 |
| 10990 | ac_status=$? |
| 10991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10992 | (exit $ac_status); } && |
| 10993 | { ac_try='test -s conftest.$ac_objext' |
| 10994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10995 | (eval $ac_try) 2>&5 |
| 10996 | ac_status=$? |
| 10997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10998 | (exit $ac_status); }; }; then |
| 10999 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11000 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11001 | ipv6=yes |
| 11002 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11003 | echo "$as_me: failed program was:" >&5 |
| 11004 | cat conftest.$ac_ext >&5 |
| 11005 | echo "$as_me:$LINENO: result: no" >&5 |
| 11006 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11007 | ipv6=no |
| 11008 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11009 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11010 | fi |
| 11011 | |
| 11012 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11013 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11014 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11015 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11016 | |
| 11017 | fi |
| 11018 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11019 | fi; |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11020 | |
| 11021 | ipv6type=unknown |
| 11022 | ipv6lib=none |
| 11023 | ipv6trylibc=no |
| 11024 | |
| 11025 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11026 | echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 11027 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 11028 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 11029 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11030 | case $i in |
| 11031 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11032 | cat >conftest.$ac_ext <<_ACEOF |
| 11033 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11034 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11035 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11036 | #include <netinet/in.h> |
| 11037 | #ifdef IPV6_INRIA_VERSION |
| 11038 | yes |
| 11039 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11040 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11041 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 11042 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11043 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11044 | fi |
| 11045 | rm -f conftest* |
| 11046 | |
| 11047 | ;; |
| 11048 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11049 | cat >conftest.$ac_ext <<_ACEOF |
| 11050 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11051 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11052 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11053 | #include <netinet/in.h> |
| 11054 | #ifdef __KAME__ |
| 11055 | yes |
| 11056 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11057 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11058 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 11059 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11060 | ipv6type=$i; |
| 11061 | ipv6lib=inet6 |
| 11062 | ipv6libdir=/usr/local/v6/lib |
| 11063 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11064 | fi |
| 11065 | rm -f conftest* |
| 11066 | |
| 11067 | ;; |
| 11068 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11069 | cat >conftest.$ac_ext <<_ACEOF |
| 11070 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11071 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11072 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11073 | #include <features.h> |
| 11074 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 11075 | yes |
| 11076 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11077 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11078 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 11079 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11080 | ipv6type=$i; |
| 11081 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11082 | fi |
| 11083 | rm -f conftest* |
| 11084 | |
| 11085 | ;; |
| 11086 | linux-inet6) |
| 11087 | if test -d /usr/inet6; then |
| 11088 | ipv6type=$i |
| 11089 | ipv6lib=inet6 |
| 11090 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 11091 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11092 | fi |
| 11093 | ;; |
| 11094 | solaris) |
| 11095 | if test -f /etc/netconfig; then |
| 11096 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 11097 | ipv6type=$i |
| 11098 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11099 | fi |
| 11100 | fi |
| 11101 | ;; |
| 11102 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11103 | cat >conftest.$ac_ext <<_ACEOF |
| 11104 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11105 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11106 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11107 | #include <sys/param.h> |
| 11108 | #ifdef _TOSHIBA_INET6 |
| 11109 | yes |
| 11110 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11111 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11112 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 11113 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11114 | ipv6type=$i; |
| 11115 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11116 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11117 | fi |
| 11118 | rm -f conftest* |
| 11119 | |
| 11120 | ;; |
| 11121 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11122 | cat >conftest.$ac_ext <<_ACEOF |
| 11123 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11124 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11125 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11126 | #include </usr/local/v6/include/sys/v6config.h> |
| 11127 | #ifdef __V6D__ |
| 11128 | yes |
| 11129 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11130 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11131 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 11132 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11133 | ipv6type=$i; |
| 11134 | ipv6lib=v6; |
| 11135 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 11136 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11137 | fi |
| 11138 | rm -f conftest* |
| 11139 | |
| 11140 | ;; |
| 11141 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11142 | cat >conftest.$ac_ext <<_ACEOF |
| 11143 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11144 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11145 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11146 | #include <sys/param.h> |
| 11147 | #ifdef _ZETA_MINAMI_INET6 |
| 11148 | yes |
| 11149 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11150 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11151 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 11152 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11153 | ipv6type=$i; |
| 11154 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11155 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11156 | fi |
| 11157 | rm -f conftest* |
| 11158 | |
| 11159 | ;; |
| 11160 | esac |
| 11161 | if test "$ipv6type" != "unknown"; then |
| 11162 | break |
| 11163 | fi |
| 11164 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11165 | echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 11166 | echo "${ECHO_T}$ipv6type" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11167 | fi |
| 11168 | |
| 11169 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 11170 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 11171 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 11172 | echo "using lib$ipv6lib" |
| 11173 | else |
| 11174 | if test $ipv6trylibc = "yes"; then |
| 11175 | echo "using libc" |
| 11176 | else |
| 11177 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 11178 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 11179 | echo 'ipv6 kit and compile beforehand.' |
| 11180 | exit 1 |
| 11181 | fi |
| 11182 | fi |
| 11183 | fi |
| 11184 | |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11185 | # Check for universal newline support |
Guido van Rossum | 402905e | 2002-08-15 13:56:35 +0000 | [diff] [blame] | 11186 | echo "$as_me:$LINENO: checking for --with-universal-newlines" >&5 |
| 11187 | echo $ECHO_N "checking for --with-universal-newlines... $ECHO_C" >&6 |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11188 | |
| 11189 | # Check whether --with-universal-newlines or --without-universal-newlines was given. |
| 11190 | if test "${with_universal_newlines+set}" = set; then |
| 11191 | withval="$with_universal_newlines" |
| 11192 | |
| 11193 | fi; |
| 11194 | |
| 11195 | if test -z "$with_universal_newlines" |
| 11196 | then with_universal_newlines="yes" |
| 11197 | fi |
Martin v. Löwis | 7e4cfcb | 2002-12-19 16:21:49 +0000 | [diff] [blame] | 11198 | if test "$with_universal_newlines" = "no" |
Martin v. Löwis | 03d00d5 | 2002-12-19 19:03:31 +0000 | [diff] [blame] | 11199 | then |
Martin v. Löwis | 7e4cfcb | 2002-12-19 16:21:49 +0000 | [diff] [blame] | 11200 | echo --without-universal-newlines is unsupported, see README |
| 11201 | exit 1 |
Martin v. Löwis | 03d00d5 | 2002-12-19 19:03:31 +0000 | [diff] [blame] | 11202 | else |
Martin v. Löwis | e8aea58 | 2002-04-16 05:51:02 +0000 | [diff] [blame] | 11203 | |
| 11204 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11205 | #define WITH_UNIVERSAL_NEWLINES 1 |
| 11206 | _ACEOF |
| 11207 | |
| 11208 | fi |
| 11209 | echo "$as_me:$LINENO: result: $with_universal_newlines" >&5 |
| 11210 | echo "${ECHO_T}$with_universal_newlines" >&6 |
| 11211 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11212 | # Check for --with-doc-strings |
| 11213 | echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 11214 | echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6 |
| 11215 | |
| 11216 | # Check whether --with-doc-strings or --without-doc-strings was given. |
| 11217 | if test "${with_doc_strings+set}" = set; then |
| 11218 | withval="$with_doc_strings" |
| 11219 | |
| 11220 | fi; |
| 11221 | |
| 11222 | if test -z "$with_doc_strings" |
| 11223 | then with_doc_strings="yes" |
| 11224 | fi |
| 11225 | if test "$with_doc_strings" != "no" |
| 11226 | then |
| 11227 | |
| 11228 | cat >>confdefs.h <<\_ACEOF |
| 11229 | #define WITH_DOC_STRINGS 1 |
| 11230 | _ACEOF |
| 11231 | |
| 11232 | fi |
| 11233 | echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 11234 | echo "${ECHO_T}$with_doc_strings" >&6 |
| 11235 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11236 | # Check for Python-specific malloc support |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11237 | echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 11238 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6 |
| 11239 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11240 | # Check whether --with-pymalloc or --without-pymalloc was given. |
| 11241 | if test "${with_pymalloc+set}" = set; then |
| 11242 | withval="$with_pymalloc" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11243 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11244 | fi; |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11245 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11246 | if test -z "$with_pymalloc" |
| 11247 | then with_pymalloc="yes" |
| 11248 | fi |
| 11249 | if test "$with_pymalloc" != "no" |
| 11250 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11251 | |
| 11252 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11253 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11254 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11255 | |
| 11256 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11257 | echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 11258 | echo "${ECHO_T}$with_pymalloc" >&6 |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11259 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11260 | # Check for --with-wctype-functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11261 | echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 11262 | echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6 |
| 11263 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11264 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 11265 | if test "${with_wctype_functions+set}" = set; then |
| 11266 | withval="$with_wctype_functions" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11267 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11268 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11269 | then |
| 11270 | |
| 11271 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11272 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11273 | _ACEOF |
| 11274 | |
| 11275 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11276 | echo "${ECHO_T}yes" >&6 |
| 11277 | else echo "$as_me:$LINENO: result: no" >&5 |
| 11278 | echo "${ECHO_T}no" >&6 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11279 | fi |
| 11280 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11281 | echo "$as_me:$LINENO: result: no" >&5 |
| 11282 | echo "${ECHO_T}no" >&6 |
| 11283 | fi; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11284 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11285 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11286 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 11287 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11288 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11289 | echo "$as_me:$LINENO: checking for --with-sgi-dl" >&5 |
| 11290 | echo $ECHO_N "checking for --with-sgi-dl... $ECHO_C" >&6 |
| 11291 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11292 | # Check whether --with-sgi-dl or --without-sgi-dl was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11293 | if test "${with_sgi_dl+set}" = set; then |
| 11294 | withval="$with_sgi_dl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11295 | |
| 11296 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11297 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 9ef3376 | 2002-12-02 22:23:56 +0000 | [diff] [blame] | 11298 | echo --with-sgi-dl is unsupported, see README |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 11299 | exit 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11300 | |
| 11301 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11302 | #define WITH_SGI_DL 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11303 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11304 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11305 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11306 | dldir=$withval |
Guido van Rossum | 4095101 | 2000-10-07 16:21:27 +0000 | [diff] [blame] | 11307 | if test ! -z "$dldir" -a -d "$dldir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 11308 | then LDFLAGS="$LDFLAGS -L$dldir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11309 | else { { echo "$as_me:$LINENO: error: proper usage is --with-sgi-dl=DIRECTORY" >&5 |
| 11310 | echo "$as_me: error: proper usage is --with-sgi-dl=DIRECTORY" >&2;} |
| 11311 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11312 | fi |
| 11313 | DLINCLDIR=${dldir} |
| 11314 | LIBS="$LIBS -ldl -lmld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11315 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11316 | echo "$as_me:$LINENO: result: no" >&5 |
| 11317 | echo "${ECHO_T}no" >&6 |
| 11318 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11319 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11320 | echo "$as_me:$LINENO: checking for --with-dl-dld" >&5 |
| 11321 | echo $ECHO_N "checking for --with-dl-dld... $ECHO_C" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11322 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11323 | # Check whether --with-dl-dld or --without-dl-dld was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11324 | if test "${with_dl_dld+set}" = set; then |
| 11325 | withval="$with_dl_dld" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11326 | |
| 11327 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11328 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 9ef3376 | 2002-12-02 22:23:56 +0000 | [diff] [blame] | 11329 | echo --with-dl-dld is unsupported, see README |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 11330 | exit 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11331 | |
| 11332 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11333 | #define WITH_DL_DLD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11334 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11335 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11336 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11337 | dldir=`echo "$withval" | sed 's/,.*//'` |
| 11338 | dlddir=`echo "$withval" | sed 's/.*,//'` |
Barry Warsaw | 7d1219d | 2000-10-05 18:45:53 +0000 | [diff] [blame] | 11339 | 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] | 11340 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11341 | else { { echo "$as_me:$LINENO: error: proper usage is --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY" >&5 |
| 11342 | echo "$as_me: error: proper usage is --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY" >&2;} |
| 11343 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11344 | fi |
| 11345 | DLINCLDIR=${dldir} |
| 11346 | LIBS="$LIBS -ldl -ldld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11347 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11348 | echo "$as_me:$LINENO: result: no" >&5 |
| 11349 | echo "${ECHO_T}no" >&6 |
| 11350 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11351 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11352 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 11353 | # 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] | 11354 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11355 | for ac_func in dlopen |
| 11356 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11357 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11358 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11359 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11360 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11362 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11363 | cat >conftest.$ac_ext <<_ACEOF |
| 11364 | #line $LINENO "configure" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11365 | #include "confdefs.h" |
| 11366 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11367 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11368 | #include <assert.h> |
| 11369 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11370 | #ifdef __cplusplus |
| 11371 | extern "C" |
| 11372 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11373 | /* 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] | 11374 | builtin and then its argument prototype would still apply. */ |
| 11375 | char $ac_func (); |
| 11376 | char (*f) (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11377 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11378 | int |
| 11379 | main () |
| 11380 | { |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11381 | /* The GNU C library defines this for functions which it implements |
| 11382 | to always fail with ENOSYS. Some functions are actually named |
| 11383 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11384 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11385 | choke me |
| 11386 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11387 | f = $ac_func; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11388 | #endif |
| 11389 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11390 | ; |
| 11391 | return 0; |
| 11392 | } |
| 11393 | _ACEOF |
| 11394 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11395 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11396 | (eval $ac_link) 2>&5 |
| 11397 | ac_status=$? |
| 11398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11399 | (exit $ac_status); } && |
| 11400 | { ac_try='test -s conftest$ac_exeext' |
| 11401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11402 | (eval $ac_try) 2>&5 |
| 11403 | ac_status=$? |
| 11404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11405 | (exit $ac_status); }; }; then |
| 11406 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11407 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11408 | echo "$as_me: failed program was:" >&5 |
| 11409 | cat conftest.$ac_ext >&5 |
| 11410 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11411 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11412 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11413 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11414 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11415 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11416 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11417 | cat >>confdefs.h <<_ACEOF |
| 11418 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11419 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11420 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11421 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11422 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11423 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11424 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11425 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 11426 | # loading of modules. |
| 11427 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11428 | echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 11429 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11430 | if test -z "$DYNLOADFILE" |
| 11431 | then |
| 11432 | case $ac_sys_system/$ac_sys_release in |
| 11433 | AIX*) DYNLOADFILE="dynload_aix.o";; |
| 11434 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 11435 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11436 | Darwin/*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11437 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11438 | *) |
| 11439 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 11440 | # out any dynamic loading |
| 11441 | if test "$ac_cv_func_dlopen" = yes |
| 11442 | then DYNLOADFILE="dynload_shlib.o" |
| 11443 | else DYNLOADFILE="dynload_stub.o" |
| 11444 | fi |
| 11445 | ;; |
| 11446 | esac |
| 11447 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11448 | echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 11449 | echo "${ECHO_T}$DYNLOADFILE" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11450 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 11451 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11452 | |
| 11453 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11454 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11455 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11456 | |
| 11457 | fi |
| 11458 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11459 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 11460 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11461 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11462 | echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 11463 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11464 | if test -z "$MACHDEP_OBJS" |
| 11465 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11466 | MACHDEP_OBJS=$extra_machdep_objs |
| 11467 | else |
| 11468 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11469 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11470 | echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 11471 | echo "${ECHO_T}MACHDEP_OBJS" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11472 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11473 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11474 | |
| 11475 | |
| 11476 | |
| 11477 | |
| 11478 | |
| 11479 | |
| 11480 | |
| 11481 | |
| 11482 | |
| 11483 | |
| 11484 | |
| 11485 | |
| 11486 | |
| 11487 | |
| 11488 | |
| 11489 | |
| 11490 | |
| 11491 | |
| 11492 | |
| 11493 | |
| 11494 | |
| 11495 | |
| 11496 | |
| 11497 | |
| 11498 | |
| 11499 | |
| 11500 | |
| 11501 | |
| 11502 | |
| 11503 | |
| 11504 | |
| 11505 | |
| 11506 | |
| 11507 | |
| 11508 | |
| 11509 | |
| 11510 | |
| 11511 | |
| 11512 | |
| 11513 | |
| 11514 | |
| 11515 | |
| 11516 | |
| 11517 | |
| 11518 | |
| 11519 | |
| 11520 | |
| 11521 | |
| 11522 | |
| 11523 | |
| 11524 | |
| 11525 | |
| 11526 | |
| 11527 | |
| 11528 | |
| 11529 | |
| 11530 | |
| 11531 | |
| 11532 | |
| 11533 | |
| 11534 | |
| 11535 | |
| 11536 | |
| 11537 | |
| 11538 | |
| 11539 | |
| 11540 | |
| 11541 | |
| 11542 | |
| 11543 | |
| 11544 | |
| 11545 | |
| 11546 | |
Martin v. Löwis | 9c36c29 | 2002-12-21 18:34:06 +0000 | [diff] [blame] | 11547 | |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 11548 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11549 | for ac_func in alarm chown clock confstr ctermid execv \ |
Fred Drake | 6b3cc52 | 2002-04-15 19:20:27 +0000 | [diff] [blame] | 11550 | fchdir flock fork fsync fdatasync fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 11551 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
| 11552 | getpriority getpwent getwd \ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11553 | hstrerror inet_pton kill killpg lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 11554 | mremap nice pathconf pause plock poll pthread_init \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 11555 | putenv readlink \ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11556 | select setegid seteuid setgid \ |
Martin v. Löwis | 791bfda | 2001-07-24 06:33:08 +0000 | [diff] [blame] | 11557 | setlocale setregid setreuid setsid setpgid setuid setvbuf snprintf \ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11558 | sigaction siginterrupt sigrelse strftime strptime \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 11559 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 11560 | truncate uname unsetenv utimes waitpid wcscoll _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11561 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11562 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11563 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11564 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11565 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11566 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11567 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11568 | cat >conftest.$ac_ext <<_ACEOF |
| 11569 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11570 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11571 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11572 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11573 | #include <assert.h> |
| 11574 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11575 | #ifdef __cplusplus |
| 11576 | extern "C" |
| 11577 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11578 | /* 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] | 11579 | builtin and then its argument prototype would still apply. */ |
| 11580 | char $ac_func (); |
| 11581 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11582 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11583 | int |
| 11584 | main () |
| 11585 | { |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11586 | /* The GNU C library defines this for functions which it implements |
| 11587 | to always fail with ENOSYS. Some functions are actually named |
| 11588 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11589 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11590 | choke me |
| 11591 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11592 | f = $ac_func; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11593 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11594 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11595 | ; |
| 11596 | return 0; |
| 11597 | } |
| 11598 | _ACEOF |
| 11599 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11600 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11601 | (eval $ac_link) 2>&5 |
| 11602 | ac_status=$? |
| 11603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11604 | (exit $ac_status); } && |
| 11605 | { ac_try='test -s conftest$ac_exeext' |
| 11606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11607 | (eval $ac_try) 2>&5 |
| 11608 | ac_status=$? |
| 11609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11610 | (exit $ac_status); }; }; then |
| 11611 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11612 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11613 | echo "$as_me: failed program was:" >&5 |
| 11614 | cat conftest.$ac_ext >&5 |
| 11615 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11616 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11617 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11618 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11619 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11620 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11621 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11622 | cat >>confdefs.h <<_ACEOF |
| 11623 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11624 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11625 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11626 | fi |
| 11627 | done |
| 11628 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11629 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11630 | # For some functions, having a definition is not sufficient, since |
| 11631 | # we want to take their address. |
| 11632 | echo "$as_me:$LINENO: checking for chroot" >&5 |
| 11633 | echo $ECHO_N "checking for chroot... $ECHO_C" >&6 |
| 11634 | cat >conftest.$ac_ext <<_ACEOF |
| 11635 | #line $LINENO "configure" |
| 11636 | #include "confdefs.h" |
| 11637 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11638 | int |
| 11639 | main () |
| 11640 | { |
| 11641 | void *x=chroot |
| 11642 | ; |
| 11643 | return 0; |
| 11644 | } |
| 11645 | _ACEOF |
| 11646 | rm -f conftest.$ac_objext |
| 11647 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11648 | (eval $ac_compile) 2>&5 |
| 11649 | ac_status=$? |
| 11650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11651 | (exit $ac_status); } && |
| 11652 | { ac_try='test -s conftest.$ac_objext' |
| 11653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11654 | (eval $ac_try) 2>&5 |
| 11655 | ac_status=$? |
| 11656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11657 | (exit $ac_status); }; }; then |
| 11658 | |
| 11659 | cat >>confdefs.h <<\_ACEOF |
| 11660 | #define HAVE_CHROOT 1 |
| 11661 | _ACEOF |
| 11662 | |
| 11663 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11664 | echo "${ECHO_T}yes" >&6 |
| 11665 | else |
| 11666 | echo "$as_me: failed program was:" >&5 |
| 11667 | cat conftest.$ac_ext >&5 |
| 11668 | echo "$as_me:$LINENO: result: no" >&5 |
| 11669 | echo "${ECHO_T}no" >&6 |
| 11670 | |
| 11671 | fi |
| 11672 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 11673 | echo "$as_me:$LINENO: checking for link" >&5 |
| 11674 | echo $ECHO_N "checking for link... $ECHO_C" >&6 |
| 11675 | cat >conftest.$ac_ext <<_ACEOF |
| 11676 | #line $LINENO "configure" |
| 11677 | #include "confdefs.h" |
| 11678 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11679 | int |
| 11680 | main () |
| 11681 | { |
| 11682 | void *x=link |
| 11683 | ; |
| 11684 | return 0; |
| 11685 | } |
| 11686 | _ACEOF |
| 11687 | rm -f conftest.$ac_objext |
| 11688 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11689 | (eval $ac_compile) 2>&5 |
| 11690 | ac_status=$? |
| 11691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11692 | (exit $ac_status); } && |
| 11693 | { ac_try='test -s conftest.$ac_objext' |
| 11694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11695 | (eval $ac_try) 2>&5 |
| 11696 | ac_status=$? |
| 11697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11698 | (exit $ac_status); }; }; then |
| 11699 | |
| 11700 | cat >>confdefs.h <<\_ACEOF |
| 11701 | #define HAVE_LINK 1 |
| 11702 | _ACEOF |
| 11703 | |
| 11704 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11705 | echo "${ECHO_T}yes" >&6 |
| 11706 | else |
| 11707 | echo "$as_me: failed program was:" >&5 |
| 11708 | cat conftest.$ac_ext >&5 |
| 11709 | echo "$as_me:$LINENO: result: no" >&5 |
| 11710 | echo "${ECHO_T}no" >&6 |
| 11711 | |
| 11712 | fi |
| 11713 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 11714 | echo "$as_me:$LINENO: checking for symlink" >&5 |
| 11715 | echo $ECHO_N "checking for symlink... $ECHO_C" >&6 |
| 11716 | cat >conftest.$ac_ext <<_ACEOF |
| 11717 | #line $LINENO "configure" |
| 11718 | #include "confdefs.h" |
| 11719 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11720 | int |
| 11721 | main () |
| 11722 | { |
| 11723 | void *x=symlink |
| 11724 | ; |
| 11725 | return 0; |
| 11726 | } |
| 11727 | _ACEOF |
| 11728 | rm -f conftest.$ac_objext |
| 11729 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11730 | (eval $ac_compile) 2>&5 |
| 11731 | ac_status=$? |
| 11732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11733 | (exit $ac_status); } && |
| 11734 | { ac_try='test -s conftest.$ac_objext' |
| 11735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11736 | (eval $ac_try) 2>&5 |
| 11737 | ac_status=$? |
| 11738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11739 | (exit $ac_status); }; }; then |
| 11740 | |
| 11741 | cat >>confdefs.h <<\_ACEOF |
| 11742 | #define HAVE_SYMLINK 1 |
| 11743 | _ACEOF |
| 11744 | |
| 11745 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11746 | echo "${ECHO_T}yes" >&6 |
| 11747 | else |
| 11748 | echo "$as_me: failed program was:" >&5 |
| 11749 | cat conftest.$ac_ext >&5 |
| 11750 | echo "$as_me:$LINENO: result: no" >&5 |
| 11751 | echo "${ECHO_T}no" >&6 |
| 11752 | |
| 11753 | fi |
| 11754 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 11755 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11756 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 11757 | # functions ctermid_r, setgroups in the library, but no prototype |
| 11758 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 11759 | # address to avoid compiler warnings and potential miscompilations |
| 11760 | # because of the missing prototypes. |
| 11761 | |
| 11762 | echo "$as_me:$LINENO: checking for ctermid_r" >&5 |
| 11763 | echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6 |
| 11764 | cat >conftest.$ac_ext <<_ACEOF |
| 11765 | #line $LINENO "configure" |
| 11766 | #include "confdefs.h" |
| 11767 | |
| 11768 | #include "confdefs.h" |
| 11769 | #include <stdio.h> |
| 11770 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11771 | int |
| 11772 | main () |
| 11773 | { |
| 11774 | void* p = ctermid_r |
| 11775 | ; |
| 11776 | return 0; |
| 11777 | } |
| 11778 | _ACEOF |
| 11779 | rm -f conftest.$ac_objext |
| 11780 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11781 | (eval $ac_compile) 2>&5 |
| 11782 | ac_status=$? |
| 11783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11784 | (exit $ac_status); } && |
| 11785 | { ac_try='test -s conftest.$ac_objext' |
| 11786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11787 | (eval $ac_try) 2>&5 |
| 11788 | ac_status=$? |
| 11789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11790 | (exit $ac_status); }; }; then |
| 11791 | |
| 11792 | cat >>confdefs.h <<\_ACEOF |
| 11793 | #define HAVE_CTERMID_R 1 |
| 11794 | _ACEOF |
| 11795 | |
| 11796 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11797 | echo "${ECHO_T}yes" >&6 |
| 11798 | else |
| 11799 | echo "$as_me: failed program was:" >&5 |
| 11800 | cat conftest.$ac_ext >&5 |
| 11801 | echo "$as_me:$LINENO: result: no" >&5 |
| 11802 | echo "${ECHO_T}no" >&6 |
| 11803 | |
| 11804 | fi |
| 11805 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 11806 | |
| 11807 | echo "$as_me:$LINENO: checking for setgroups" >&5 |
| 11808 | echo $ECHO_N "checking for setgroups... $ECHO_C" >&6 |
| 11809 | cat >conftest.$ac_ext <<_ACEOF |
| 11810 | #line $LINENO "configure" |
| 11811 | #include "confdefs.h" |
| 11812 | |
| 11813 | #include "confdefs.h" |
| 11814 | #include <unistd.h.h> |
| 11815 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11816 | int |
| 11817 | main () |
| 11818 | { |
| 11819 | void* p = setgroups |
| 11820 | ; |
| 11821 | return 0; |
| 11822 | } |
| 11823 | _ACEOF |
| 11824 | rm -f conftest.$ac_objext |
| 11825 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11826 | (eval $ac_compile) 2>&5 |
| 11827 | ac_status=$? |
| 11828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11829 | (exit $ac_status); } && |
| 11830 | { ac_try='test -s conftest.$ac_objext' |
| 11831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11832 | (eval $ac_try) 2>&5 |
| 11833 | ac_status=$? |
| 11834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11835 | (exit $ac_status); }; }; then |
| 11836 | |
| 11837 | cat >>confdefs.h <<\_ACEOF |
| 11838 | #define HAVE_SETGROUPS 1 |
| 11839 | _ACEOF |
| 11840 | |
| 11841 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11842 | echo "${ECHO_T}yes" >&6 |
| 11843 | else |
| 11844 | echo "$as_me: failed program was:" >&5 |
| 11845 | cat conftest.$ac_ext >&5 |
| 11846 | echo "$as_me:$LINENO: result: no" >&5 |
| 11847 | echo "${ECHO_T}no" >&6 |
| 11848 | |
| 11849 | fi |
| 11850 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 11851 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11852 | # check for openpty and forkpty |
| 11853 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11854 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11855 | for ac_func in openpty |
| 11856 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11857 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11858 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11859 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11860 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11861 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11862 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11863 | cat >conftest.$ac_ext <<_ACEOF |
| 11864 | #line $LINENO "configure" |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11865 | #include "confdefs.h" |
| 11866 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11867 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11868 | #include <assert.h> |
| 11869 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11870 | #ifdef __cplusplus |
| 11871 | extern "C" |
| 11872 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11873 | /* 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] | 11874 | builtin and then its argument prototype would still apply. */ |
| 11875 | char $ac_func (); |
| 11876 | char (*f) (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11877 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11878 | int |
| 11879 | main () |
| 11880 | { |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11881 | /* The GNU C library defines this for functions which it implements |
| 11882 | to always fail with ENOSYS. Some functions are actually named |
| 11883 | something starting with __ and the normal name is an alias. */ |
| 11884 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11885 | choke me |
| 11886 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11887 | f = $ac_func; |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11888 | #endif |
| 11889 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11890 | ; |
| 11891 | return 0; |
| 11892 | } |
| 11893 | _ACEOF |
| 11894 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11895 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11896 | (eval $ac_link) 2>&5 |
| 11897 | ac_status=$? |
| 11898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11899 | (exit $ac_status); } && |
| 11900 | { ac_try='test -s conftest$ac_exeext' |
| 11901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11902 | (eval $ac_try) 2>&5 |
| 11903 | ac_status=$? |
| 11904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11905 | (exit $ac_status); }; }; then |
| 11906 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11907 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11908 | echo "$as_me: failed program was:" >&5 |
| 11909 | cat conftest.$ac_ext >&5 |
| 11910 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11911 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11912 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11913 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11914 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11915 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11916 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11917 | cat >>confdefs.h <<_ACEOF |
| 11918 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11919 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11920 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11921 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11922 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 11923 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
| 11924 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
| 11925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11926 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11927 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11928 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11929 | cat >conftest.$ac_ext <<_ACEOF |
| 11930 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11931 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11932 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11933 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11934 | #ifdef __cplusplus |
| 11935 | extern "C" |
| 11936 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11937 | /* 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] | 11938 | builtin and then its argument prototype would still apply. */ |
| 11939 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11940 | int |
| 11941 | main () |
| 11942 | { |
| 11943 | openpty (); |
| 11944 | ; |
| 11945 | return 0; |
| 11946 | } |
| 11947 | _ACEOF |
| 11948 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11949 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11950 | (eval $ac_link) 2>&5 |
| 11951 | ac_status=$? |
| 11952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11953 | (exit $ac_status); } && |
| 11954 | { ac_try='test -s conftest$ac_exeext' |
| 11955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11956 | (eval $ac_try) 2>&5 |
| 11957 | ac_status=$? |
| 11958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11959 | (exit $ac_status); }; }; then |
| 11960 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11961 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11962 | echo "$as_me: failed program was:" >&5 |
| 11963 | cat conftest.$ac_ext >&5 |
| 11964 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11965 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11966 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11967 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11968 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11969 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 11970 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
| 11971 | if test $ac_cv_lib_util_openpty = yes; then |
| 11972 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11973 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11974 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11975 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11976 | fi |
| 11977 | |
| 11978 | fi |
| 11979 | done |
| 11980 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11981 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11982 | for ac_func in forkpty |
| 11983 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11984 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11985 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11986 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11987 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11989 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11990 | cat >conftest.$ac_ext <<_ACEOF |
| 11991 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11992 | #include "confdefs.h" |
| 11993 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11994 | which can conflict with char $ac_func (); below. */ |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11995 | #include <assert.h> |
| 11996 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11997 | #ifdef __cplusplus |
| 11998 | extern "C" |
| 11999 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12000 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12001 | builtin and then its argument prototype would still apply. */ |
| 12002 | char $ac_func (); |
| 12003 | char (*f) (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12004 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12005 | int |
| 12006 | main () |
| 12007 | { |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12008 | /* The GNU C library defines this for functions which it implements |
| 12009 | to always fail with ENOSYS. Some functions are actually named |
| 12010 | something starting with __ and the normal name is an alias. */ |
| 12011 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12012 | choke me |
| 12013 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12014 | f = $ac_func; |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12015 | #endif |
| 12016 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12017 | ; |
| 12018 | return 0; |
| 12019 | } |
| 12020 | _ACEOF |
| 12021 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12022 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12023 | (eval $ac_link) 2>&5 |
| 12024 | ac_status=$? |
| 12025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12026 | (exit $ac_status); } && |
| 12027 | { ac_try='test -s conftest$ac_exeext' |
| 12028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12029 | (eval $ac_try) 2>&5 |
| 12030 | ac_status=$? |
| 12031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12032 | (exit $ac_status); }; }; then |
| 12033 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12034 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12035 | echo "$as_me: failed program was:" >&5 |
| 12036 | cat conftest.$ac_ext >&5 |
| 12037 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12038 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12039 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12040 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12041 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12042 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12043 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12044 | cat >>confdefs.h <<_ACEOF |
| 12045 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12046 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12047 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12048 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12049 | echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 12050 | echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6 |
| 12051 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
| 12052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12053 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12054 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12055 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12056 | cat >conftest.$ac_ext <<_ACEOF |
| 12057 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12058 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12059 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12060 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12061 | #ifdef __cplusplus |
| 12062 | extern "C" |
| 12063 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12064 | /* 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] | 12065 | builtin and then its argument prototype would still apply. */ |
| 12066 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12067 | int |
| 12068 | main () |
| 12069 | { |
| 12070 | forkpty (); |
| 12071 | ; |
| 12072 | return 0; |
| 12073 | } |
| 12074 | _ACEOF |
| 12075 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12076 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12077 | (eval $ac_link) 2>&5 |
| 12078 | ac_status=$? |
| 12079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12080 | (exit $ac_status); } && |
| 12081 | { ac_try='test -s conftest$ac_exeext' |
| 12082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12083 | (eval $ac_try) 2>&5 |
| 12084 | ac_status=$? |
| 12085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12086 | (exit $ac_status); }; }; then |
| 12087 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12088 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12089 | echo "$as_me: failed program was:" >&5 |
| 12090 | cat conftest.$ac_ext >&5 |
| 12091 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12092 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12093 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12094 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12095 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12096 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 12097 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6 |
| 12098 | if test $ac_cv_lib_util_forkpty = yes; then |
| 12099 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12100 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12101 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12102 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12103 | fi |
| 12104 | |
| 12105 | fi |
| 12106 | done |
| 12107 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12108 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12109 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12110 | |
| 12111 | |
| 12112 | |
| 12113 | |
| 12114 | |
| 12115 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12116 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 12117 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12118 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12119 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12120 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12121 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12123 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12124 | cat >conftest.$ac_ext <<_ACEOF |
| 12125 | #line $LINENO "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12126 | #include "confdefs.h" |
| 12127 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12128 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12129 | #include <assert.h> |
| 12130 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12131 | #ifdef __cplusplus |
| 12132 | extern "C" |
| 12133 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12134 | /* 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] | 12135 | builtin and then its argument prototype would still apply. */ |
| 12136 | char $ac_func (); |
| 12137 | char (*f) (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12138 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12139 | int |
| 12140 | main () |
| 12141 | { |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12142 | /* The GNU C library defines this for functions which it implements |
| 12143 | to always fail with ENOSYS. Some functions are actually named |
| 12144 | something starting with __ and the normal name is an alias. */ |
| 12145 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12146 | choke me |
| 12147 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12148 | f = $ac_func; |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12149 | #endif |
| 12150 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12151 | ; |
| 12152 | return 0; |
| 12153 | } |
| 12154 | _ACEOF |
| 12155 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12156 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12157 | (eval $ac_link) 2>&5 |
| 12158 | ac_status=$? |
| 12159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12160 | (exit $ac_status); } && |
| 12161 | { ac_try='test -s conftest$ac_exeext' |
| 12162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12163 | (eval $ac_try) 2>&5 |
| 12164 | ac_status=$? |
| 12165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12166 | (exit $ac_status); }; }; then |
| 12167 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12168 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12169 | echo "$as_me: failed program was:" >&5 |
| 12170 | cat conftest.$ac_ext >&5 |
| 12171 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12172 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12173 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12174 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12175 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12176 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12177 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12178 | cat >>confdefs.h <<_ACEOF |
| 12179 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12180 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12181 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12182 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12183 | done |
| 12184 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12185 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12186 | |
| 12187 | |
| 12188 | |
| 12189 | |
| 12190 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12191 | for ac_func in dup2 getcwd strdup strerror memmove |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12192 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12193 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12194 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12195 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12196 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12197 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12198 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12199 | cat >conftest.$ac_ext <<_ACEOF |
| 12200 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12201 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12202 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12203 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12204 | #include <assert.h> |
| 12205 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12206 | #ifdef __cplusplus |
| 12207 | extern "C" |
| 12208 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12209 | /* 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] | 12210 | builtin and then its argument prototype would still apply. */ |
| 12211 | char $ac_func (); |
| 12212 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12213 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12214 | int |
| 12215 | main () |
| 12216 | { |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12217 | /* The GNU C library defines this for functions which it implements |
| 12218 | to always fail with ENOSYS. Some functions are actually named |
| 12219 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12220 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12221 | choke me |
| 12222 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12223 | f = $ac_func; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12224 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12225 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12226 | ; |
| 12227 | return 0; |
| 12228 | } |
| 12229 | _ACEOF |
| 12230 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12231 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12232 | (eval $ac_link) 2>&5 |
| 12233 | ac_status=$? |
| 12234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12235 | (exit $ac_status); } && |
| 12236 | { ac_try='test -s conftest$ac_exeext' |
| 12237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12238 | (eval $ac_try) 2>&5 |
| 12239 | ac_status=$? |
| 12240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12241 | (exit $ac_status); }; }; then |
| 12242 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12243 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12244 | echo "$as_me: failed program was:" >&5 |
| 12245 | cat conftest.$ac_ext >&5 |
| 12246 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12247 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12248 | 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] | 12249 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12250 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12251 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12252 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12253 | cat >>confdefs.h <<_ACEOF |
| 12254 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12255 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12256 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12257 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12258 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12259 | fi |
| 12260 | done |
| 12261 | |
| 12262 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12263 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12264 | for ac_func in getpgrp |
| 12265 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12266 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12267 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12268 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12269 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12270 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12271 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12272 | cat >conftest.$ac_ext <<_ACEOF |
| 12273 | #line $LINENO "configure" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12274 | #include "confdefs.h" |
| 12275 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12276 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12277 | #include <assert.h> |
| 12278 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12279 | #ifdef __cplusplus |
| 12280 | extern "C" |
| 12281 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12282 | /* 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] | 12283 | builtin and then its argument prototype would still apply. */ |
| 12284 | char $ac_func (); |
| 12285 | char (*f) (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12286 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12287 | int |
| 12288 | main () |
| 12289 | { |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12290 | /* The GNU C library defines this for functions which it implements |
| 12291 | to always fail with ENOSYS. Some functions are actually named |
| 12292 | something starting with __ and the normal name is an alias. */ |
| 12293 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12294 | choke me |
| 12295 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12296 | f = $ac_func; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12297 | #endif |
| 12298 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12299 | ; |
| 12300 | return 0; |
| 12301 | } |
| 12302 | _ACEOF |
| 12303 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12304 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12305 | (eval $ac_link) 2>&5 |
| 12306 | ac_status=$? |
| 12307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12308 | (exit $ac_status); } && |
| 12309 | { ac_try='test -s conftest$ac_exeext' |
| 12310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12311 | (eval $ac_try) 2>&5 |
| 12312 | ac_status=$? |
| 12313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12314 | (exit $ac_status); }; }; then |
| 12315 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12316 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12317 | echo "$as_me: failed program was:" >&5 |
| 12318 | cat conftest.$ac_ext >&5 |
| 12319 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12320 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12321 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12322 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12323 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12324 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12325 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12326 | cat >>confdefs.h <<_ACEOF |
| 12327 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12328 | _ACEOF |
| 12329 | cat >conftest.$ac_ext <<_ACEOF |
| 12330 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12331 | #include "confdefs.h" |
| 12332 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12333 | int |
| 12334 | main () |
| 12335 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12336 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12337 | ; |
| 12338 | return 0; |
| 12339 | } |
| 12340 | _ACEOF |
| 12341 | rm -f conftest.$ac_objext |
| 12342 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12343 | (eval $ac_compile) 2>&5 |
| 12344 | ac_status=$? |
| 12345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12346 | (exit $ac_status); } && |
| 12347 | { ac_try='test -s conftest.$ac_objext' |
| 12348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12349 | (eval $ac_try) 2>&5 |
| 12350 | ac_status=$? |
| 12351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12352 | (exit $ac_status); }; }; then |
| 12353 | |
| 12354 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12355 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12356 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12357 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12358 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 12359 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12360 | echo "$as_me: failed program was:" >&5 |
| 12361 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12362 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12363 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12364 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12365 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12366 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12367 | |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12368 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
| 12369 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 |
| 12370 | if test "${ac_cv_func_setpgrp_void+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12371 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12372 | else |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12373 | if test "$cross_compiling" = yes; then |
| 12374 | { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5 |
| 12375 | echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;} |
| 12376 | { (exit 1); exit 1; }; } |
| 12377 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12378 | cat >conftest.$ac_ext <<_ACEOF |
| 12379 | #line $LINENO "configure" |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12380 | #include "confdefs.h" |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12381 | #if HAVE_UNISTD_H |
| 12382 | # include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12383 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12384 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12385 | int |
| 12386 | main () |
| 12387 | { |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12388 | /* If this system has a BSD-style setpgrp which takes arguments, |
| 12389 | setpgrp(1, 1) will fail with ESRCH and return -1, in that case |
| 12390 | exit successfully. */ |
| 12391 | exit (setpgrp (1,1) == -1 ? 0 : 1); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12392 | ; |
| 12393 | return 0; |
| 12394 | } |
| 12395 | _ACEOF |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12396 | rm -f conftest$ac_exeext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12397 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12398 | (eval $ac_link) 2>&5 |
| 12399 | ac_status=$? |
| 12400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12401 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12403 | (eval $ac_try) 2>&5 |
| 12404 | ac_status=$? |
| 12405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12406 | (exit $ac_status); }; }; then |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12407 | ac_cv_func_setpgrp_void=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12408 | else |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12409 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12410 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12411 | cat conftest.$ac_ext >&5 |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12412 | ( exit $ac_status ) |
| 12413 | ac_cv_func_setpgrp_void=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12414 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 12415 | 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] | 12416 | fi |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12417 | fi |
| 12418 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
| 12419 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 |
| 12420 | if test $ac_cv_func_setpgrp_void = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12421 | |
| 12422 | cat >>confdefs.h <<\_ACEOF |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12423 | #define SETPGRP_VOID 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12424 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12425 | |
| 12426 | fi |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12427 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12428 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12429 | for ac_func in gettimeofday |
| 12430 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12431 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12432 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12433 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12434 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12435 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12436 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12437 | cat >conftest.$ac_ext <<_ACEOF |
| 12438 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12439 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12440 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12441 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12442 | #include <assert.h> |
| 12443 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12444 | #ifdef __cplusplus |
| 12445 | extern "C" |
| 12446 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12447 | /* 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] | 12448 | builtin and then its argument prototype would still apply. */ |
| 12449 | char $ac_func (); |
| 12450 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12451 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12452 | int |
| 12453 | main () |
| 12454 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12455 | /* The GNU C library defines this for functions which it implements |
| 12456 | to always fail with ENOSYS. Some functions are actually named |
| 12457 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12458 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12459 | choke me |
| 12460 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12461 | f = $ac_func; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12462 | #endif |
| 12463 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12464 | ; |
| 12465 | return 0; |
| 12466 | } |
| 12467 | _ACEOF |
| 12468 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12469 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12470 | (eval $ac_link) 2>&5 |
| 12471 | ac_status=$? |
| 12472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12473 | (exit $ac_status); } && |
| 12474 | { ac_try='test -s conftest$ac_exeext' |
| 12475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12476 | (eval $ac_try) 2>&5 |
| 12477 | ac_status=$? |
| 12478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12479 | (exit $ac_status); }; }; then |
| 12480 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12481 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12482 | echo "$as_me: failed program was:" >&5 |
| 12483 | cat conftest.$ac_ext >&5 |
| 12484 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12485 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12486 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12487 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12488 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12489 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12490 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12491 | cat >>confdefs.h <<_ACEOF |
| 12492 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12493 | _ACEOF |
| 12494 | cat >conftest.$ac_ext <<_ACEOF |
| 12495 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12496 | #include "confdefs.h" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12497 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12498 | int |
| 12499 | main () |
| 12500 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12501 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12502 | ; |
| 12503 | return 0; |
| 12504 | } |
| 12505 | _ACEOF |
| 12506 | rm -f conftest.$ac_objext |
| 12507 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12508 | (eval $ac_compile) 2>&5 |
| 12509 | ac_status=$? |
| 12510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12511 | (exit $ac_status); } && |
| 12512 | { ac_try='test -s conftest.$ac_objext' |
| 12513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12514 | (eval $ac_try) 2>&5 |
| 12515 | ac_status=$? |
| 12516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12517 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12518 | : |
| 12519 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12520 | echo "$as_me: failed program was:" >&5 |
| 12521 | cat conftest.$ac_ext >&5 |
| 12522 | |
| 12523 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12524 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12525 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12526 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12527 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12528 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12529 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12530 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12531 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12532 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12533 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12534 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12535 | echo "$as_me:$LINENO: checking for major" >&5 |
| 12536 | echo $ECHO_N "checking for major... $ECHO_C" >&6 |
| 12537 | cat >conftest.$ac_ext <<_ACEOF |
| 12538 | #line $LINENO "configure" |
| 12539 | #include "confdefs.h" |
| 12540 | |
| 12541 | #if defined(MAJOR_IN_MKDEV) |
| 12542 | #include <sys/mkdev.h> |
| 12543 | #elif defined(MAJOR_IN_SYSMACROS) |
| 12544 | #include <sys/sysmacros.h> |
| 12545 | #else |
| 12546 | #include <sys/types.h> |
| 12547 | #endif |
| 12548 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12549 | int |
| 12550 | main () |
| 12551 | { |
| 12552 | |
| 12553 | makedev(major(0),minor(0)); |
| 12554 | |
| 12555 | ; |
| 12556 | return 0; |
| 12557 | } |
| 12558 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 12559 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12560 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12561 | (eval $ac_link) 2>&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12562 | ac_status=$? |
| 12563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12564 | (exit $ac_status); } && |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 12565 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12567 | (eval $ac_try) 2>&5 |
| 12568 | ac_status=$? |
| 12569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12570 | (exit $ac_status); }; }; then |
| 12571 | |
| 12572 | |
| 12573 | cat >>confdefs.h <<\_ACEOF |
| 12574 | #define HAVE_DEVICE_MACROS 1 |
| 12575 | _ACEOF |
| 12576 | |
| 12577 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12578 | echo "${ECHO_T}yes" >&6 |
| 12579 | |
| 12580 | else |
| 12581 | echo "$as_me: failed program was:" >&5 |
| 12582 | cat conftest.$ac_ext >&5 |
| 12583 | |
| 12584 | echo "$as_me:$LINENO: result: no" >&5 |
| 12585 | echo "${ECHO_T}no" >&6 |
| 12586 | |
| 12587 | fi |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 12588 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12589 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12590 | # 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] | 12591 | # for [no]getaddrinfo in netdb.h. |
| 12592 | echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 12593 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6 |
| 12594 | cat >conftest.$ac_ext <<_ACEOF |
| 12595 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12596 | #include "confdefs.h" |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12597 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12598 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12599 | #include <sys/socket.h> |
| 12600 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12601 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12602 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12603 | int |
| 12604 | main () |
| 12605 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12606 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12607 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12608 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12609 | ; |
| 12610 | return 0; |
| 12611 | } |
| 12612 | _ACEOF |
| 12613 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12614 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12615 | (eval $ac_link) 2>&5 |
| 12616 | ac_status=$? |
| 12617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12618 | (exit $ac_status); } && |
| 12619 | { ac_try='test -s conftest$ac_exeext' |
| 12620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12621 | (eval $ac_try) 2>&5 |
| 12622 | ac_status=$? |
| 12623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12624 | (exit $ac_status); }; }; then |
| 12625 | |
| 12626 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12627 | echo "${ECHO_T}yes" >&6 |
| 12628 | echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| 12629 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12630 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12631 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 12632 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12633 | buggygetaddrinfo=yes |
| 12634 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12635 | cat >conftest.$ac_ext <<_ACEOF |
| 12636 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12637 | #include "confdefs.h" |
| 12638 | |
| 12639 | #include <sys/types.h> |
| 12640 | #include <netdb.h> |
| 12641 | #include <string.h> |
| 12642 | #include <sys/socket.h> |
| 12643 | #include <netinet/in.h> |
| 12644 | |
| 12645 | main() |
| 12646 | { |
| 12647 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 12648 | struct addrinfo hints, *ai, *aitop; |
| 12649 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 12650 | |
| 12651 | for (passive = 0; passive <= 1; passive++) { |
| 12652 | memset(&hints, 0, sizeof(hints)); |
| 12653 | hints.ai_family = AF_UNSPEC; |
| 12654 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 12655 | hints.ai_socktype = SOCK_STREAM; |
| 12656 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 12657 | (void)gai_strerror(gaierr); |
| 12658 | goto bad; |
| 12659 | } |
| 12660 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 12661 | if (ai->ai_addr == NULL || |
| 12662 | ai->ai_addrlen == 0 || |
| 12663 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 12664 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 12665 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 12666 | goto bad; |
| 12667 | } |
| 12668 | switch (ai->ai_family) { |
| 12669 | case AF_INET: |
| 12670 | if (strcmp(strport, "54321") != 0) { |
| 12671 | goto bad; |
| 12672 | } |
| 12673 | if (passive) { |
| 12674 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 12675 | goto bad; |
| 12676 | } |
| 12677 | } else { |
| 12678 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 12679 | goto bad; |
| 12680 | } |
| 12681 | } |
| 12682 | inet4++; |
| 12683 | break; |
| 12684 | case AF_INET6: |
| 12685 | if (strcmp(strport, "54321") != 0) { |
| 12686 | goto bad; |
| 12687 | } |
| 12688 | if (passive) { |
| 12689 | if (strcmp(straddr, "::") != 0) { |
| 12690 | goto bad; |
| 12691 | } |
| 12692 | } else { |
| 12693 | if (strcmp(straddr, "::1") != 0) { |
| 12694 | goto bad; |
| 12695 | } |
| 12696 | } |
| 12697 | inet6++; |
| 12698 | break; |
| 12699 | case AF_UNSPEC: |
| 12700 | goto bad; |
| 12701 | break; |
| 12702 | default: |
| 12703 | /* another family support? */ |
| 12704 | break; |
| 12705 | } |
| 12706 | } |
| 12707 | } |
| 12708 | |
| 12709 | if (!(inet4 == 0 || inet4 == 2)) |
| 12710 | goto bad; |
| 12711 | if (!(inet6 == 0 || inet6 == 2)) |
| 12712 | goto bad; |
| 12713 | |
| 12714 | if (aitop) |
| 12715 | freeaddrinfo(aitop); |
| 12716 | exit(0); |
| 12717 | |
| 12718 | bad: |
| 12719 | if (aitop) |
| 12720 | freeaddrinfo(aitop); |
| 12721 | exit(1); |
| 12722 | } |
| 12723 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12724 | _ACEOF |
| 12725 | rm -f conftest$ac_exeext |
| 12726 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12727 | (eval $ac_link) 2>&5 |
| 12728 | ac_status=$? |
| 12729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12730 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12732 | (eval $ac_try) 2>&5 |
| 12733 | ac_status=$? |
| 12734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12735 | (exit $ac_status); }; }; then |
| 12736 | echo "$as_me:$LINENO: result: good" >&5 |
| 12737 | echo "${ECHO_T}good" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12738 | buggygetaddrinfo=no |
| 12739 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12740 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12741 | echo "$as_me: failed program was:" >&5 |
| 12742 | cat conftest.$ac_ext >&5 |
| 12743 | ( exit $ac_status ) |
| 12744 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 12745 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12746 | buggygetaddrinfo=yes |
| 12747 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 12748 | 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] | 12749 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12750 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12751 | echo "$as_me: failed program was:" >&5 |
| 12752 | cat conftest.$ac_ext >&5 |
| 12753 | |
| 12754 | echo "$as_me:$LINENO: result: no" >&5 |
| 12755 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12756 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12757 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12758 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12759 | 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] | 12760 | |
| 12761 | if test "$buggygetaddrinfo" = "yes"; then |
| 12762 | if test "$ipv6" = "yes"; then |
| 12763 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 12764 | echo ' or you can specify "--disable-ipv6"'. |
| 12765 | exit 1 |
| 12766 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12767 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12768 | |
| 12769 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12770 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12771 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12772 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12773 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12774 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 12775 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12776 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12777 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12778 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12779 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12780 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12781 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12782 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12783 | cat >conftest.$ac_ext <<_ACEOF |
| 12784 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12785 | #include "confdefs.h" |
| 12786 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12787 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12788 | #include <assert.h> |
| 12789 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12790 | #ifdef __cplusplus |
| 12791 | extern "C" |
| 12792 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12793 | /* 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] | 12794 | builtin and then its argument prototype would still apply. */ |
| 12795 | char $ac_func (); |
| 12796 | char (*f) (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12797 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12798 | int |
| 12799 | main () |
| 12800 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12801 | /* The GNU C library defines this for functions which it implements |
| 12802 | to always fail with ENOSYS. Some functions are actually named |
| 12803 | something starting with __ and the normal name is an alias. */ |
| 12804 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12805 | choke me |
| 12806 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12807 | f = $ac_func; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12808 | #endif |
| 12809 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12810 | ; |
| 12811 | return 0; |
| 12812 | } |
| 12813 | _ACEOF |
| 12814 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12815 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12816 | (eval $ac_link) 2>&5 |
| 12817 | ac_status=$? |
| 12818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12819 | (exit $ac_status); } && |
| 12820 | { ac_try='test -s conftest$ac_exeext' |
| 12821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12822 | (eval $ac_try) 2>&5 |
| 12823 | ac_status=$? |
| 12824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12825 | (exit $ac_status); }; }; then |
| 12826 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12827 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12828 | echo "$as_me: failed program was:" >&5 |
| 12829 | cat conftest.$ac_ext >&5 |
| 12830 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12831 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12832 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12833 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12834 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12835 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12836 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12837 | cat >>confdefs.h <<_ACEOF |
| 12838 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12839 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12840 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12841 | fi |
| 12842 | done |
| 12843 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12844 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12845 | # checks for structures |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12846 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 12847 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 12848 | if test "${ac_cv_header_time+set}" = set; then |
| 12849 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12850 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12851 | cat >conftest.$ac_ext <<_ACEOF |
| 12852 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12853 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12854 | #include <sys/types.h> |
| 12855 | #include <sys/time.h> |
| 12856 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12857 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12858 | int |
| 12859 | main () |
| 12860 | { |
| 12861 | if ((struct tm *) 0) |
| 12862 | return 0; |
| 12863 | ; |
| 12864 | return 0; |
| 12865 | } |
| 12866 | _ACEOF |
| 12867 | rm -f conftest.$ac_objext |
| 12868 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12869 | (eval $ac_compile) 2>&5 |
| 12870 | ac_status=$? |
| 12871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12872 | (exit $ac_status); } && |
| 12873 | { ac_try='test -s conftest.$ac_objext' |
| 12874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12875 | (eval $ac_try) 2>&5 |
| 12876 | ac_status=$? |
| 12877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12878 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12879 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12880 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12881 | echo "$as_me: failed program was:" >&5 |
| 12882 | cat conftest.$ac_ext >&5 |
| 12883 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12884 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12885 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12886 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12887 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 12888 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12889 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12890 | |
| 12891 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12892 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12893 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12894 | |
| 12895 | fi |
| 12896 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12897 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 12898 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 12899 | if test "${ac_cv_struct_tm+set}" = set; then |
| 12900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12901 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12902 | cat >conftest.$ac_ext <<_ACEOF |
| 12903 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12904 | #include "confdefs.h" |
| 12905 | #include <sys/types.h> |
| 12906 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12907 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12908 | int |
| 12909 | main () |
| 12910 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12911 | struct tm *tp; tp->tm_sec; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12912 | ; |
| 12913 | return 0; |
| 12914 | } |
| 12915 | _ACEOF |
| 12916 | rm -f conftest.$ac_objext |
| 12917 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12918 | (eval $ac_compile) 2>&5 |
| 12919 | ac_status=$? |
| 12920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12921 | (exit $ac_status); } && |
| 12922 | { ac_try='test -s conftest.$ac_objext' |
| 12923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12924 | (eval $ac_try) 2>&5 |
| 12925 | ac_status=$? |
| 12926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12927 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12928 | ac_cv_struct_tm=time.h |
| 12929 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12930 | echo "$as_me: failed program was:" >&5 |
| 12931 | cat conftest.$ac_ext >&5 |
| 12932 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12933 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12934 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12935 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12936 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 12937 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12938 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12939 | |
| 12940 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12941 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12942 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12943 | |
| 12944 | fi |
| 12945 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12946 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 12947 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 12948 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 12949 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12950 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12951 | cat >conftest.$ac_ext <<_ACEOF |
| 12952 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12953 | #include "confdefs.h" |
| 12954 | #include <sys/types.h> |
| 12955 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12956 | |
| 12957 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12958 | int |
| 12959 | main () |
| 12960 | { |
| 12961 | static struct tm ac_aggr; |
| 12962 | if (ac_aggr.tm_zone) |
| 12963 | return 0; |
| 12964 | ; |
| 12965 | return 0; |
| 12966 | } |
| 12967 | _ACEOF |
| 12968 | rm -f conftest.$ac_objext |
| 12969 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12970 | (eval $ac_compile) 2>&5 |
| 12971 | ac_status=$? |
| 12972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12973 | (exit $ac_status); } && |
| 12974 | { ac_try='test -s conftest.$ac_objext' |
| 12975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12976 | (eval $ac_try) 2>&5 |
| 12977 | ac_status=$? |
| 12978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12979 | (exit $ac_status); }; }; then |
| 12980 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12981 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12982 | echo "$as_me: failed program was:" >&5 |
| 12983 | cat conftest.$ac_ext >&5 |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 12984 | cat >conftest.$ac_ext <<_ACEOF |
| 12985 | #line $LINENO "configure" |
| 12986 | #include "confdefs.h" |
| 12987 | #include <sys/types.h> |
| 12988 | #include <$ac_cv_struct_tm> |
| 12989 | |
| 12990 | |
| 12991 | int |
| 12992 | main () |
| 12993 | { |
| 12994 | static struct tm ac_aggr; |
| 12995 | if (sizeof ac_aggr.tm_zone) |
| 12996 | return 0; |
| 12997 | ; |
| 12998 | return 0; |
| 12999 | } |
| 13000 | _ACEOF |
| 13001 | rm -f conftest.$ac_objext |
| 13002 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13003 | (eval $ac_compile) 2>&5 |
| 13004 | ac_status=$? |
| 13005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13006 | (exit $ac_status); } && |
| 13007 | { ac_try='test -s conftest.$ac_objext' |
| 13008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13009 | (eval $ac_try) 2>&5 |
| 13010 | ac_status=$? |
| 13011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13012 | (exit $ac_status); }; }; then |
| 13013 | ac_cv_member_struct_tm_tm_zone=yes |
| 13014 | else |
| 13015 | echo "$as_me: failed program was:" >&5 |
| 13016 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13017 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13018 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13019 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13020 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 13021 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13022 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13023 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 13024 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 13025 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 13026 | |
| 13027 | cat >>confdefs.h <<_ACEOF |
| 13028 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 13029 | _ACEOF |
| 13030 | |
| 13031 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13032 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13033 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13034 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 13035 | |
| 13036 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13037 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13038 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13039 | |
| 13040 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13041 | echo "$as_me:$LINENO: checking for tzname" >&5 |
| 13042 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 13043 | if test "${ac_cv_var_tzname+set}" = set; then |
| 13044 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13045 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13046 | cat >conftest.$ac_ext <<_ACEOF |
| 13047 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13048 | #include "confdefs.h" |
| 13049 | #include <time.h> |
| 13050 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13051 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13052 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13053 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13054 | int |
| 13055 | main () |
| 13056 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13057 | atoi(*tzname); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13058 | ; |
| 13059 | return 0; |
| 13060 | } |
| 13061 | _ACEOF |
| 13062 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13063 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13064 | (eval $ac_link) 2>&5 |
| 13065 | ac_status=$? |
| 13066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13067 | (exit $ac_status); } && |
| 13068 | { ac_try='test -s conftest$ac_exeext' |
| 13069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13070 | (eval $ac_try) 2>&5 |
| 13071 | ac_status=$? |
| 13072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13073 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13074 | ac_cv_var_tzname=yes |
| 13075 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13076 | echo "$as_me: failed program was:" >&5 |
| 13077 | cat conftest.$ac_ext >&5 |
| 13078 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13079 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13080 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13081 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13082 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 13083 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13084 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13085 | |
| 13086 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13087 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13088 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13089 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13090 | fi |
| 13091 | fi |
| 13092 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13093 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 13094 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 |
| 13095 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
| 13096 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13097 | else |
| 13098 | cat >conftest.$ac_ext <<_ACEOF |
| 13099 | #line $LINENO "configure" |
| 13100 | #include "confdefs.h" |
| 13101 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13102 | int |
| 13103 | main () |
| 13104 | { |
| 13105 | static struct stat ac_aggr; |
| 13106 | if (ac_aggr.st_rdev) |
| 13107 | return 0; |
| 13108 | ; |
| 13109 | return 0; |
| 13110 | } |
| 13111 | _ACEOF |
| 13112 | rm -f conftest.$ac_objext |
| 13113 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13114 | (eval $ac_compile) 2>&5 |
| 13115 | ac_status=$? |
| 13116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13117 | (exit $ac_status); } && |
| 13118 | { ac_try='test -s conftest.$ac_objext' |
| 13119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13120 | (eval $ac_try) 2>&5 |
| 13121 | ac_status=$? |
| 13122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13123 | (exit $ac_status); }; }; then |
| 13124 | ac_cv_member_struct_stat_st_rdev=yes |
| 13125 | else |
| 13126 | echo "$as_me: failed program was:" >&5 |
| 13127 | cat conftest.$ac_ext >&5 |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 13128 | cat >conftest.$ac_ext <<_ACEOF |
| 13129 | #line $LINENO "configure" |
| 13130 | #include "confdefs.h" |
| 13131 | $ac_includes_default |
| 13132 | int |
| 13133 | main () |
| 13134 | { |
| 13135 | static struct stat ac_aggr; |
| 13136 | if (sizeof ac_aggr.st_rdev) |
| 13137 | return 0; |
| 13138 | ; |
| 13139 | return 0; |
| 13140 | } |
| 13141 | _ACEOF |
| 13142 | rm -f conftest.$ac_objext |
| 13143 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13144 | (eval $ac_compile) 2>&5 |
| 13145 | ac_status=$? |
| 13146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13147 | (exit $ac_status); } && |
| 13148 | { ac_try='test -s conftest.$ac_objext' |
| 13149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13150 | (eval $ac_try) 2>&5 |
| 13151 | ac_status=$? |
| 13152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13153 | (exit $ac_status); }; }; then |
| 13154 | ac_cv_member_struct_stat_st_rdev=yes |
| 13155 | else |
| 13156 | echo "$as_me: failed program was:" >&5 |
| 13157 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13158 | ac_cv_member_struct_stat_st_rdev=no |
| 13159 | fi |
| 13160 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13161 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 13162 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13163 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13164 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 13165 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 |
| 13166 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
| 13167 | |
| 13168 | cat >>confdefs.h <<_ACEOF |
| 13169 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 13170 | _ACEOF |
| 13171 | |
| 13172 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13173 | fi |
| 13174 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13175 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 13176 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 |
| 13177 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
| 13178 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13179 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13180 | cat >conftest.$ac_ext <<_ACEOF |
| 13181 | #line $LINENO "configure" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13182 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13183 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13184 | int |
| 13185 | main () |
| 13186 | { |
| 13187 | static struct stat ac_aggr; |
| 13188 | if (ac_aggr.st_blksize) |
| 13189 | return 0; |
| 13190 | ; |
| 13191 | return 0; |
| 13192 | } |
| 13193 | _ACEOF |
| 13194 | rm -f conftest.$ac_objext |
| 13195 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13196 | (eval $ac_compile) 2>&5 |
| 13197 | ac_status=$? |
| 13198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13199 | (exit $ac_status); } && |
| 13200 | { ac_try='test -s conftest.$ac_objext' |
| 13201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13202 | (eval $ac_try) 2>&5 |
| 13203 | ac_status=$? |
| 13204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13205 | (exit $ac_status); }; }; then |
| 13206 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13207 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13208 | echo "$as_me: failed program was:" >&5 |
| 13209 | cat conftest.$ac_ext >&5 |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 13210 | cat >conftest.$ac_ext <<_ACEOF |
| 13211 | #line $LINENO "configure" |
| 13212 | #include "confdefs.h" |
| 13213 | $ac_includes_default |
| 13214 | int |
| 13215 | main () |
| 13216 | { |
| 13217 | static struct stat ac_aggr; |
| 13218 | if (sizeof ac_aggr.st_blksize) |
| 13219 | return 0; |
| 13220 | ; |
| 13221 | return 0; |
| 13222 | } |
| 13223 | _ACEOF |
| 13224 | rm -f conftest.$ac_objext |
| 13225 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13226 | (eval $ac_compile) 2>&5 |
| 13227 | ac_status=$? |
| 13228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13229 | (exit $ac_status); } && |
| 13230 | { ac_try='test -s conftest.$ac_objext' |
| 13231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13232 | (eval $ac_try) 2>&5 |
| 13233 | ac_status=$? |
| 13234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13235 | (exit $ac_status); }; }; then |
| 13236 | ac_cv_member_struct_stat_st_blksize=yes |
| 13237 | else |
| 13238 | echo "$as_me: failed program was:" >&5 |
| 13239 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13240 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13241 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13242 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13243 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 13244 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13245 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13246 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 13247 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 |
| 13248 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13249 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13250 | cat >>confdefs.h <<_ACEOF |
| 13251 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 13252 | _ACEOF |
| 13253 | |
| 13254 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13255 | fi |
| 13256 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13257 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 13258 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 |
| 13259 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 13260 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13261 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13262 | cat >conftest.$ac_ext <<_ACEOF |
| 13263 | #line $LINENO "configure" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13264 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13265 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13266 | int |
| 13267 | main () |
| 13268 | { |
| 13269 | static struct stat ac_aggr; |
| 13270 | if (ac_aggr.st_blocks) |
| 13271 | return 0; |
| 13272 | ; |
| 13273 | return 0; |
| 13274 | } |
| 13275 | _ACEOF |
| 13276 | rm -f conftest.$ac_objext |
| 13277 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13278 | (eval $ac_compile) 2>&5 |
| 13279 | ac_status=$? |
| 13280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13281 | (exit $ac_status); } && |
| 13282 | { ac_try='test -s conftest.$ac_objext' |
| 13283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13284 | (eval $ac_try) 2>&5 |
| 13285 | ac_status=$? |
| 13286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13287 | (exit $ac_status); }; }; then |
| 13288 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13289 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13290 | echo "$as_me: failed program was:" >&5 |
| 13291 | cat conftest.$ac_ext >&5 |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 13292 | cat >conftest.$ac_ext <<_ACEOF |
| 13293 | #line $LINENO "configure" |
| 13294 | #include "confdefs.h" |
| 13295 | $ac_includes_default |
| 13296 | int |
| 13297 | main () |
| 13298 | { |
| 13299 | static struct stat ac_aggr; |
| 13300 | if (sizeof ac_aggr.st_blocks) |
| 13301 | return 0; |
| 13302 | ; |
| 13303 | return 0; |
| 13304 | } |
| 13305 | _ACEOF |
| 13306 | rm -f conftest.$ac_objext |
| 13307 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13308 | (eval $ac_compile) 2>&5 |
| 13309 | ac_status=$? |
| 13310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13311 | (exit $ac_status); } && |
| 13312 | { ac_try='test -s conftest.$ac_objext' |
| 13313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13314 | (eval $ac_try) 2>&5 |
| 13315 | ac_status=$? |
| 13316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13317 | (exit $ac_status); }; }; then |
| 13318 | ac_cv_member_struct_stat_st_blocks=yes |
| 13319 | else |
| 13320 | echo "$as_me: failed program was:" >&5 |
| 13321 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13322 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13323 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13324 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13325 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 13326 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13327 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13328 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 13329 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 |
| 13330 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13331 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13332 | cat >>confdefs.h <<_ACEOF |
| 13333 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 13334 | _ACEOF |
| 13335 | |
| 13336 | |
| 13337 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13338 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13339 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13340 | |
| 13341 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13342 | LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13343 | fi |
| 13344 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13345 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13346 | |
| 13347 | echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 13348 | echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6 |
| 13349 | if test "${ac_cv_header_time_altzone+set}" = set; then |
| 13350 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13351 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13352 | cat >conftest.$ac_ext <<_ACEOF |
| 13353 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13354 | #include "confdefs.h" |
| 13355 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13356 | int |
| 13357 | main () |
| 13358 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13359 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13360 | ; |
| 13361 | return 0; |
| 13362 | } |
| 13363 | _ACEOF |
| 13364 | rm -f conftest.$ac_objext |
| 13365 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13366 | (eval $ac_compile) 2>&5 |
| 13367 | ac_status=$? |
| 13368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13369 | (exit $ac_status); } && |
| 13370 | { ac_try='test -s conftest.$ac_objext' |
| 13371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13372 | (eval $ac_try) 2>&5 |
| 13373 | ac_status=$? |
| 13374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13375 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13376 | ac_cv_header_time_altzone=yes |
| 13377 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13378 | echo "$as_me: failed program was:" >&5 |
| 13379 | cat conftest.$ac_ext >&5 |
| 13380 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13381 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13382 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13383 | fi |
| 13384 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13385 | echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 13386 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13387 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13388 | |
| 13389 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13390 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13391 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13392 | |
| 13393 | fi |
| 13394 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13395 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13396 | echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 13397 | echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 13398 | cat >conftest.$ac_ext <<_ACEOF |
| 13399 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13400 | #include "confdefs.h" |
| 13401 | |
| 13402 | #include <sys/types.h> |
| 13403 | #include <sys/select.h> |
| 13404 | #include <sys/time.h> |
| 13405 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13406 | int |
| 13407 | main () |
| 13408 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13409 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13410 | ; |
| 13411 | return 0; |
| 13412 | } |
| 13413 | _ACEOF |
| 13414 | rm -f conftest.$ac_objext |
| 13415 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13416 | (eval $ac_compile) 2>&5 |
| 13417 | ac_status=$? |
| 13418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13419 | (exit $ac_status); } && |
| 13420 | { ac_try='test -s conftest.$ac_objext' |
| 13421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13422 | (eval $ac_try) 2>&5 |
| 13423 | ac_status=$? |
| 13424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13425 | (exit $ac_status); }; }; then |
| 13426 | |
| 13427 | |
| 13428 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13429 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13430 | _ACEOF |
| 13431 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13432 | was_it_defined=yes |
| 13433 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13434 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13435 | echo "$as_me: failed program was:" >&5 |
| 13436 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13437 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13438 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13439 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 13440 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13441 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13442 | echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 13443 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6 |
| 13444 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
| 13445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13446 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13447 | cat >conftest.$ac_ext <<_ACEOF |
| 13448 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13449 | #include "confdefs.h" |
| 13450 | |
| 13451 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13452 | int |
| 13453 | main () |
| 13454 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13455 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13456 | ; |
| 13457 | return 0; |
| 13458 | } |
| 13459 | _ACEOF |
| 13460 | rm -f conftest.$ac_objext |
| 13461 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13462 | (eval $ac_compile) 2>&5 |
| 13463 | ac_status=$? |
| 13464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13465 | (exit $ac_status); } && |
| 13466 | { ac_try='test -s conftest.$ac_objext' |
| 13467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13468 | (eval $ac_try) 2>&5 |
| 13469 | ac_status=$? |
| 13470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13471 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13472 | ac_cv_struct_addrinfo=yes |
| 13473 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13474 | echo "$as_me: failed program was:" >&5 |
| 13475 | cat conftest.$ac_ext >&5 |
| 13476 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13477 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13478 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13479 | fi |
| 13480 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13481 | echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 13482 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13483 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13484 | |
| 13485 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13486 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13487 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13488 | |
| 13489 | fi |
| 13490 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13491 | echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 13492 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6 |
| 13493 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
| 13494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13495 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13496 | cat >conftest.$ac_ext <<_ACEOF |
| 13497 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13498 | #include "confdefs.h" |
| 13499 | |
| 13500 | # include <sys/types.h> |
| 13501 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13502 | int |
| 13503 | main () |
| 13504 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13505 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13506 | ; |
| 13507 | return 0; |
| 13508 | } |
| 13509 | _ACEOF |
| 13510 | rm -f conftest.$ac_objext |
| 13511 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13512 | (eval $ac_compile) 2>&5 |
| 13513 | ac_status=$? |
| 13514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13515 | (exit $ac_status); } && |
| 13516 | { ac_try='test -s conftest.$ac_objext' |
| 13517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13518 | (eval $ac_try) 2>&5 |
| 13519 | ac_status=$? |
| 13520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13521 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13522 | ac_cv_struct_sockaddr_storage=yes |
| 13523 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13524 | echo "$as_me: failed program was:" >&5 |
| 13525 | cat conftest.$ac_ext >&5 |
| 13526 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13527 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13528 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13529 | fi |
| 13530 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13531 | echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 13532 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13533 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13534 | |
| 13535 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13536 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13537 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13538 | |
| 13539 | fi |
| 13540 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13541 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13542 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13543 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13544 | echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 13545 | echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 |
| 13546 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
| 13547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13548 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13549 | cat >conftest.$ac_ext <<_ACEOF |
| 13550 | #line $LINENO "configure" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13551 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13552 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13553 | int |
| 13554 | main () |
| 13555 | { |
| 13556 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 13557 | test_array [0] = 0 |
| 13558 | |
| 13559 | ; |
| 13560 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13561 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13562 | _ACEOF |
| 13563 | rm -f conftest.$ac_objext |
| 13564 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13565 | (eval $ac_compile) 2>&5 |
| 13566 | ac_status=$? |
| 13567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13568 | (exit $ac_status); } && |
| 13569 | { ac_try='test -s conftest.$ac_objext' |
| 13570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13571 | (eval $ac_try) 2>&5 |
| 13572 | ac_status=$? |
| 13573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13574 | (exit $ac_status); }; }; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13575 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13576 | else |
| 13577 | echo "$as_me: failed program was:" >&5 |
| 13578 | cat conftest.$ac_ext >&5 |
| 13579 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13580 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13581 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13582 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13583 | echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 13584 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13585 | 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] | 13586 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13587 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13588 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13589 | |
| 13590 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13591 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13592 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 13593 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 13594 | if test "${ac_cv_c_const+set}" = set; then |
| 13595 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13596 | else |
| 13597 | cat >conftest.$ac_ext <<_ACEOF |
| 13598 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13599 | #include "confdefs.h" |
| 13600 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13601 | int |
| 13602 | main () |
| 13603 | { |
| 13604 | /* FIXME: Include the comments suggested by Paul. */ |
| 13605 | #ifndef __cplusplus |
| 13606 | /* Ultrix mips cc rejects this. */ |
| 13607 | typedef int charset[2]; |
| 13608 | const charset x; |
| 13609 | /* SunOS 4.1.1 cc rejects this. */ |
| 13610 | char const *const *ccp; |
| 13611 | char **p; |
| 13612 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 13613 | struct point {int x, y;}; |
| 13614 | static struct point const zero = {0,0}; |
| 13615 | /* AIX XL C 1.02.0.0 rejects this. |
| 13616 | It does not let you subtract one const X* pointer from another in |
| 13617 | an arm of an if-expression whose if-part is not a constant |
| 13618 | expression */ |
| 13619 | const char *g = "string"; |
| 13620 | ccp = &g + (g ? g-g : 0); |
| 13621 | /* HPUX 7.0 cc rejects these. */ |
| 13622 | ++ccp; |
| 13623 | p = (char**) ccp; |
| 13624 | ccp = (char const *const *) p; |
| 13625 | { /* SCO 3.2v4 cc rejects this. */ |
| 13626 | char *t; |
| 13627 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13628 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13629 | *t++ = 0; |
| 13630 | } |
| 13631 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 13632 | int x[] = {25, 17}; |
| 13633 | const int *foo = &x[0]; |
| 13634 | ++foo; |
| 13635 | } |
| 13636 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 13637 | typedef const int *iptr; |
| 13638 | iptr p = 0; |
| 13639 | ++p; |
| 13640 | } |
| 13641 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 13642 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 13643 | struct s { int j; const int *ap[3]; }; |
| 13644 | struct s *b; b->j = 5; |
| 13645 | } |
| 13646 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 13647 | const int foo = 10; |
| 13648 | } |
| 13649 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13650 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13651 | ; |
| 13652 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13653 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13654 | _ACEOF |
| 13655 | rm -f conftest.$ac_objext |
| 13656 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13657 | (eval $ac_compile) 2>&5 |
| 13658 | ac_status=$? |
| 13659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13660 | (exit $ac_status); } && |
| 13661 | { ac_try='test -s conftest.$ac_objext' |
| 13662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13663 | (eval $ac_try) 2>&5 |
| 13664 | ac_status=$? |
| 13665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13666 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13667 | ac_cv_c_const=yes |
| 13668 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13669 | echo "$as_me: failed program was:" >&5 |
| 13670 | cat conftest.$ac_ext >&5 |
| 13671 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13672 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13673 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13674 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13675 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 13676 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13677 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13678 | |
| 13679 | cat >>confdefs.h <<\_ACEOF |
| 13680 | #define const |
| 13681 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13682 | |
| 13683 | fi |
| 13684 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13685 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13686 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13687 | echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 13688 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
| 13689 | cat >conftest.$ac_ext <<_ACEOF |
| 13690 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13691 | #include "confdefs.h" |
| 13692 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13693 | int |
| 13694 | main () |
| 13695 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13696 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13697 | ; |
| 13698 | return 0; |
| 13699 | } |
| 13700 | _ACEOF |
| 13701 | rm -f conftest.$ac_objext |
| 13702 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13703 | (eval $ac_compile) 2>&5 |
| 13704 | ac_status=$? |
| 13705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13706 | (exit $ac_status); } && |
| 13707 | { ac_try='test -s conftest.$ac_objext' |
| 13708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13709 | (eval $ac_try) 2>&5 |
| 13710 | ac_status=$? |
| 13711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13712 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13713 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13714 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13715 | echo "$as_me: failed program was:" >&5 |
| 13716 | cat conftest.$ac_ext >&5 |
| 13717 | |
| 13718 | cat >>confdefs.h <<\_ACEOF |
| 13719 | #define volatile |
| 13720 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13721 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13722 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13723 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13724 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13725 | echo "$as_me:$LINENO: result: $works" >&5 |
| 13726 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13727 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13728 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13729 | echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 13730 | echo $ECHO_N "checking for working signed char... $ECHO_C" >&6 |
| 13731 | cat >conftest.$ac_ext <<_ACEOF |
| 13732 | #line $LINENO "configure" |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 13733 | #include "confdefs.h" |
| 13734 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13735 | int |
| 13736 | main () |
| 13737 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13738 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13739 | ; |
| 13740 | return 0; |
| 13741 | } |
| 13742 | _ACEOF |
| 13743 | rm -f conftest.$ac_objext |
| 13744 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13745 | (eval $ac_compile) 2>&5 |
| 13746 | ac_status=$? |
| 13747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13748 | (exit $ac_status); } && |
| 13749 | { ac_try='test -s conftest.$ac_objext' |
| 13750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13751 | (eval $ac_try) 2>&5 |
| 13752 | ac_status=$? |
| 13753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13754 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13755 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 13756 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13757 | echo "$as_me: failed program was:" >&5 |
| 13758 | cat conftest.$ac_ext >&5 |
| 13759 | |
| 13760 | cat >>confdefs.h <<\_ACEOF |
| 13761 | #define signed |
| 13762 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13763 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13764 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13765 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13766 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13767 | echo "$as_me:$LINENO: result: $works" >&5 |
| 13768 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13769 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13770 | have_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13771 | echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 13772 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6 |
| 13773 | cat >conftest.$ac_ext <<_ACEOF |
| 13774 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13775 | #include "confdefs.h" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13776 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13777 | int |
| 13778 | main () |
| 13779 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13780 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13781 | ; |
| 13782 | return 0; |
| 13783 | } |
| 13784 | _ACEOF |
| 13785 | rm -f conftest.$ac_objext |
| 13786 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13787 | (eval $ac_compile) 2>&5 |
| 13788 | ac_status=$? |
| 13789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13790 | (exit $ac_status); } && |
| 13791 | { ac_try='test -s conftest.$ac_objext' |
| 13792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13793 | (eval $ac_try) 2>&5 |
| 13794 | ac_status=$? |
| 13795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13796 | (exit $ac_status); }; }; then |
| 13797 | |
| 13798 | |
| 13799 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13800 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13801 | _ACEOF |
| 13802 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13803 | have_prototypes=yes |
| 13804 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13805 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13806 | echo "$as_me: failed program was:" >&5 |
| 13807 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13808 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13809 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13810 | echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 13811 | echo "${ECHO_T}$have_prototypes" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13812 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13813 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13814 | echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 13815 | echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6 |
| 13816 | cat >conftest.$ac_ext <<_ACEOF |
| 13817 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13818 | #include "confdefs.h" |
| 13819 | |
| 13820 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 13821 | int foo(int x, ...) { |
| 13822 | va_list va; |
| 13823 | va_start(va, x); |
| 13824 | va_arg(va, int); |
| 13825 | va_arg(va, char *); |
| 13826 | va_arg(va, double); |
| 13827 | return 0; |
| 13828 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13829 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13830 | int |
| 13831 | main () |
| 13832 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 13833 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13834 | ; |
| 13835 | return 0; |
| 13836 | } |
| 13837 | _ACEOF |
| 13838 | rm -f conftest.$ac_objext |
| 13839 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13840 | (eval $ac_compile) 2>&5 |
| 13841 | ac_status=$? |
| 13842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13843 | (exit $ac_status); } && |
| 13844 | { ac_try='test -s conftest.$ac_objext' |
| 13845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13846 | (eval $ac_try) 2>&5 |
| 13847 | ac_status=$? |
| 13848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13849 | (exit $ac_status); }; }; then |
| 13850 | |
| 13851 | |
| 13852 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13853 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13854 | _ACEOF |
| 13855 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13856 | works=yes |
| 13857 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13858 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13859 | echo "$as_me: failed program was:" >&5 |
| 13860 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13861 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13862 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13863 | echo "$as_me:$LINENO: result: $works" >&5 |
| 13864 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13865 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13866 | if test "$have_prototypes" = yes; then |
| 13867 | bad_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13868 | echo "$as_me:$LINENO: checking for bad exec* prototypes" >&5 |
| 13869 | echo $ECHO_N "checking for bad exec* prototypes... $ECHO_C" >&6 |
| 13870 | cat >conftest.$ac_ext <<_ACEOF |
| 13871 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13872 | #include "confdefs.h" |
| 13873 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13874 | int |
| 13875 | main () |
| 13876 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13877 | char **t;execve("@",t,t); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13878 | ; |
| 13879 | return 0; |
| 13880 | } |
| 13881 | _ACEOF |
| 13882 | rm -f conftest.$ac_objext |
| 13883 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13884 | (eval $ac_compile) 2>&5 |
| 13885 | ac_status=$? |
| 13886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13887 | (exit $ac_status); } && |
| 13888 | { ac_try='test -s conftest.$ac_objext' |
| 13889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13890 | (eval $ac_try) 2>&5 |
| 13891 | ac_status=$? |
| 13892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13893 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13894 | : |
| 13895 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13896 | echo "$as_me: failed program was:" >&5 |
| 13897 | cat conftest.$ac_ext >&5 |
| 13898 | |
| 13899 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13900 | #define BAD_EXEC_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13901 | _ACEOF |
| 13902 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13903 | bad_prototypes=yes |
| 13904 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13905 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13906 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13907 | echo "$as_me:$LINENO: result: $bad_prototypes" >&5 |
| 13908 | echo "${ECHO_T}$bad_prototypes" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13909 | fi |
| 13910 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13911 | # check if sockaddr has sa_len member |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13912 | echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 13913 | echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6 |
| 13914 | cat >conftest.$ac_ext <<_ACEOF |
| 13915 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13916 | #include "confdefs.h" |
| 13917 | #include <sys/types.h> |
| 13918 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13919 | int |
| 13920 | main () |
| 13921 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13922 | struct sockaddr x; |
| 13923 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13924 | ; |
| 13925 | return 0; |
| 13926 | } |
| 13927 | _ACEOF |
| 13928 | rm -f conftest.$ac_objext |
| 13929 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13930 | (eval $ac_compile) 2>&5 |
| 13931 | ac_status=$? |
| 13932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13933 | (exit $ac_status); } && |
| 13934 | { ac_try='test -s conftest.$ac_objext' |
| 13935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13936 | (eval $ac_try) 2>&5 |
| 13937 | ac_status=$? |
| 13938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13939 | (exit $ac_status); }; }; then |
| 13940 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13941 | echo "${ECHO_T}yes" >&6 |
| 13942 | |
| 13943 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13944 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13945 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13946 | |
| 13947 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13948 | echo "$as_me: failed program was:" >&5 |
| 13949 | cat conftest.$ac_ext >&5 |
| 13950 | echo "$as_me:$LINENO: result: no" >&5 |
| 13951 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13952 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13953 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13954 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13955 | va_list_is_array=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13956 | echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 13957 | echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6 |
| 13958 | cat >conftest.$ac_ext <<_ACEOF |
| 13959 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13960 | #include "confdefs.h" |
| 13961 | |
| 13962 | #ifdef HAVE_STDARG_PROTOTYPES |
| 13963 | #include <stdarg.h> |
| 13964 | #else |
| 13965 | #include <varargs.h> |
| 13966 | #endif |
| 13967 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13968 | int |
| 13969 | main () |
| 13970 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13971 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13972 | ; |
| 13973 | return 0; |
| 13974 | } |
| 13975 | _ACEOF |
| 13976 | rm -f conftest.$ac_objext |
| 13977 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13978 | (eval $ac_compile) 2>&5 |
| 13979 | ac_status=$? |
| 13980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13981 | (exit $ac_status); } && |
| 13982 | { ac_try='test -s conftest.$ac_objext' |
| 13983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13984 | (eval $ac_try) 2>&5 |
| 13985 | ac_status=$? |
| 13986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13987 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13988 | : |
| 13989 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13990 | echo "$as_me: failed program was:" >&5 |
| 13991 | cat conftest.$ac_ext >&5 |
| 13992 | |
| 13993 | |
| 13994 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13995 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13996 | _ACEOF |
| 13997 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13998 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13999 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14000 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14001 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14002 | echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 14003 | echo "${ECHO_T}$va_list_is_array" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14004 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14005 | # 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] | 14006 | |
| 14007 | |
| 14008 | |
| 14009 | echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 14010 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6 |
| 14011 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
| 14012 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14013 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14014 | cat >conftest.$ac_ext <<_ACEOF |
| 14015 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14016 | #include "confdefs.h" |
| 14017 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14018 | which can conflict with char gethostbyname_r (); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14019 | #include <assert.h> |
| 14020 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14021 | #ifdef __cplusplus |
| 14022 | extern "C" |
| 14023 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +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 gethostbyname_r (); |
| 14027 | char (*f) (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14028 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14029 | int |
| 14030 | main () |
| 14031 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14032 | /* The GNU C library defines this for functions which it implements |
| 14033 | to always fail with ENOSYS. Some functions are actually named |
| 14034 | something starting with __ and the normal name is an alias. */ |
| 14035 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 14036 | choke me |
| 14037 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14038 | f = gethostbyname_r; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14039 | #endif |
| 14040 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14041 | ; |
| 14042 | return 0; |
| 14043 | } |
| 14044 | _ACEOF |
| 14045 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14046 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14047 | (eval $ac_link) 2>&5 |
| 14048 | ac_status=$? |
| 14049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14050 | (exit $ac_status); } && |
| 14051 | { ac_try='test -s conftest$ac_exeext' |
| 14052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14053 | (eval $ac_try) 2>&5 |
| 14054 | ac_status=$? |
| 14055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14056 | (exit $ac_status); }; }; then |
| 14057 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14058 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14059 | echo "$as_me: failed program was:" >&5 |
| 14060 | cat conftest.$ac_ext >&5 |
| 14061 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14062 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14063 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14064 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14065 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 14066 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6 |
| 14067 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14068 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14069 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14070 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14071 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14072 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14073 | echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 14074 | 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] | 14075 | OLD_CFLAGS=$CFLAGS |
| 14076 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14077 | cat >conftest.$ac_ext <<_ACEOF |
| 14078 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14079 | #include "confdefs.h" |
| 14080 | |
| 14081 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14082 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14083 | int |
| 14084 | main () |
| 14085 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14086 | |
| 14087 | char *name; |
| 14088 | struct hostent *he, *res; |
| 14089 | char buffer[2048]; |
| 14090 | int buflen = 2048; |
| 14091 | int h_errnop; |
| 14092 | |
| 14093 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14094 | |
| 14095 | ; |
| 14096 | return 0; |
| 14097 | } |
| 14098 | _ACEOF |
| 14099 | rm -f conftest.$ac_objext |
| 14100 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14101 | (eval $ac_compile) 2>&5 |
| 14102 | ac_status=$? |
| 14103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14104 | (exit $ac_status); } && |
| 14105 | { ac_try='test -s conftest.$ac_objext' |
| 14106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14107 | (eval $ac_try) 2>&5 |
| 14108 | ac_status=$? |
| 14109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14110 | (exit $ac_status); }; }; then |
| 14111 | |
| 14112 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14113 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14114 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14115 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14116 | |
| 14117 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14118 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14119 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14120 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14121 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14122 | echo "${ECHO_T}yes" >&6 |
| 14123 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14124 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14125 | echo "$as_me: failed program was:" >&5 |
| 14126 | cat conftest.$ac_ext >&5 |
| 14127 | |
| 14128 | echo "$as_me:$LINENO: result: no" >&5 |
| 14129 | echo "${ECHO_T}no" >&6 |
| 14130 | echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 14131 | echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6 |
| 14132 | cat >conftest.$ac_ext <<_ACEOF |
| 14133 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14134 | #include "confdefs.h" |
| 14135 | |
| 14136 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14137 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14138 | int |
| 14139 | main () |
| 14140 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14141 | |
| 14142 | char *name; |
| 14143 | struct hostent *he; |
| 14144 | char buffer[2048]; |
| 14145 | int buflen = 2048; |
| 14146 | int h_errnop; |
| 14147 | |
| 14148 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14149 | |
| 14150 | ; |
| 14151 | return 0; |
| 14152 | } |
| 14153 | _ACEOF |
| 14154 | rm -f conftest.$ac_objext |
| 14155 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14156 | (eval $ac_compile) 2>&5 |
| 14157 | ac_status=$? |
| 14158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14159 | (exit $ac_status); } && |
| 14160 | { ac_try='test -s conftest.$ac_objext' |
| 14161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14162 | (eval $ac_try) 2>&5 |
| 14163 | ac_status=$? |
| 14164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14165 | (exit $ac_status); }; }; then |
| 14166 | |
| 14167 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14168 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14169 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14170 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14171 | |
| 14172 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14173 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14174 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14175 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14176 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14177 | echo "${ECHO_T}yes" >&6 |
| 14178 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14179 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14180 | echo "$as_me: failed program was:" >&5 |
| 14181 | cat conftest.$ac_ext >&5 |
| 14182 | |
| 14183 | echo "$as_me:$LINENO: result: no" >&5 |
| 14184 | echo "${ECHO_T}no" >&6 |
| 14185 | echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 14186 | echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6 |
| 14187 | cat >conftest.$ac_ext <<_ACEOF |
| 14188 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14189 | #include "confdefs.h" |
| 14190 | |
| 14191 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14192 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14193 | int |
| 14194 | main () |
| 14195 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14196 | |
| 14197 | char *name; |
| 14198 | struct hostent *he; |
| 14199 | struct hostent_data data; |
| 14200 | |
| 14201 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14202 | |
| 14203 | ; |
| 14204 | return 0; |
| 14205 | } |
| 14206 | _ACEOF |
| 14207 | rm -f conftest.$ac_objext |
| 14208 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14209 | (eval $ac_compile) 2>&5 |
| 14210 | ac_status=$? |
| 14211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14212 | (exit $ac_status); } && |
| 14213 | { ac_try='test -s conftest.$ac_objext' |
| 14214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14215 | (eval $ac_try) 2>&5 |
| 14216 | ac_status=$? |
| 14217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14218 | (exit $ac_status); }; }; then |
| 14219 | |
| 14220 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14221 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14222 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14223 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14224 | |
| 14225 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14226 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14227 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14228 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14229 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14230 | echo "${ECHO_T}yes" >&6 |
| 14231 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14232 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14233 | echo "$as_me: failed program was:" >&5 |
| 14234 | cat conftest.$ac_ext >&5 |
| 14235 | |
| 14236 | echo "$as_me:$LINENO: result: no" >&5 |
| 14237 | echo "${ECHO_T}no" >&6 |
| 14238 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14239 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14240 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14241 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14242 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14243 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14244 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14245 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14246 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14247 | CFLAGS=$OLD_CFLAGS |
| 14248 | |
| 14249 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14250 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14251 | |
| 14252 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14253 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14254 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14255 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14256 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14257 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14259 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14260 | cat >conftest.$ac_ext <<_ACEOF |
| 14261 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14262 | #include "confdefs.h" |
| 14263 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14264 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14265 | #include <assert.h> |
| 14266 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14267 | #ifdef __cplusplus |
| 14268 | extern "C" |
| 14269 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14270 | /* 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] | 14271 | builtin and then its argument prototype would still apply. */ |
| 14272 | char $ac_func (); |
| 14273 | char (*f) (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14274 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14275 | int |
| 14276 | main () |
| 14277 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14278 | /* The GNU C library defines this for functions which it implements |
| 14279 | to always fail with ENOSYS. Some functions are actually named |
| 14280 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14281 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14282 | choke me |
| 14283 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14284 | f = $ac_func; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14285 | #endif |
| 14286 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14287 | ; |
| 14288 | return 0; |
| 14289 | } |
| 14290 | _ACEOF |
| 14291 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14292 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14293 | (eval $ac_link) 2>&5 |
| 14294 | ac_status=$? |
| 14295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14296 | (exit $ac_status); } && |
| 14297 | { ac_try='test -s conftest$ac_exeext' |
| 14298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14299 | (eval $ac_try) 2>&5 |
| 14300 | ac_status=$? |
| 14301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14302 | (exit $ac_status); }; }; then |
| 14303 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14304 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14305 | echo "$as_me: failed program was:" >&5 |
| 14306 | cat conftest.$ac_ext >&5 |
| 14307 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14308 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14309 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14310 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14311 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14312 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14313 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14314 | cat >>confdefs.h <<_ACEOF |
| 14315 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14316 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14317 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14318 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14319 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14320 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14321 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14322 | fi |
| 14323 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14324 | |
| 14325 | |
| 14326 | |
| 14327 | |
| 14328 | |
| 14329 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14330 | # checks for system services |
| 14331 | # (none yet) |
| 14332 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14333 | # Linux requires this for correct f.p. operations |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14334 | echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 14335 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6 |
| 14336 | if test "${ac_cv_func___fpu_control+set}" = set; then |
| 14337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14338 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14339 | cat >conftest.$ac_ext <<_ACEOF |
| 14340 | #line $LINENO "configure" |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14341 | #include "confdefs.h" |
| 14342 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14343 | which can conflict with char __fpu_control (); below. */ |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14344 | #include <assert.h> |
| 14345 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14346 | #ifdef __cplusplus |
| 14347 | extern "C" |
| 14348 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14349 | /* 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] | 14350 | builtin and then its argument prototype would still apply. */ |
| 14351 | char __fpu_control (); |
| 14352 | char (*f) (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14353 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14354 | int |
| 14355 | main () |
| 14356 | { |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14357 | /* The GNU C library defines this for functions which it implements |
| 14358 | to always fail with ENOSYS. Some functions are actually named |
| 14359 | something starting with __ and the normal name is an alias. */ |
| 14360 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 14361 | choke me |
| 14362 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14363 | f = __fpu_control; |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14364 | #endif |
| 14365 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14366 | ; |
| 14367 | return 0; |
| 14368 | } |
| 14369 | _ACEOF |
| 14370 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14371 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14372 | (eval $ac_link) 2>&5 |
| 14373 | ac_status=$? |
| 14374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14375 | (exit $ac_status); } && |
| 14376 | { ac_try='test -s conftest$ac_exeext' |
| 14377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14378 | (eval $ac_try) 2>&5 |
| 14379 | ac_status=$? |
| 14380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14381 | (exit $ac_status); }; }; then |
| 14382 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14383 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14384 | echo "$as_me: failed program was:" >&5 |
| 14385 | cat conftest.$ac_ext >&5 |
| 14386 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14387 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14388 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14389 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14390 | echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 14391 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6 |
| 14392 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14393 | : |
| 14394 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14395 | |
| 14396 | echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 14397 | echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6 |
| 14398 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
| 14399 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14400 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14401 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14402 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14403 | cat >conftest.$ac_ext <<_ACEOF |
| 14404 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14405 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14406 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +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" |
| 14410 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14411 | /* 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] | 14412 | builtin and then its argument prototype would still apply. */ |
| 14413 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14414 | int |
| 14415 | main () |
| 14416 | { |
| 14417 | __fpu_control (); |
| 14418 | ; |
| 14419 | return 0; |
| 14420 | } |
| 14421 | _ACEOF |
| 14422 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14423 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14424 | (eval $ac_link) 2>&5 |
| 14425 | ac_status=$? |
| 14426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14427 | (exit $ac_status); } && |
| 14428 | { ac_try='test -s conftest$ac_exeext' |
| 14429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14430 | (eval $ac_try) 2>&5 |
| 14431 | ac_status=$? |
| 14432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14433 | (exit $ac_status); }; }; then |
| 14434 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14435 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14436 | echo "$as_me: failed program was:" >&5 |
| 14437 | cat conftest.$ac_ext >&5 |
| 14438 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14439 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14440 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 14441 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14442 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14443 | echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 14444 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6 |
| 14445 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
| 14446 | cat >>confdefs.h <<_ACEOF |
| 14447 | #define HAVE_LIBIEEE 1 |
| 14448 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14449 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14450 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14451 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14452 | fi |
| 14453 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14454 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14455 | fi |
| 14456 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14457 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14458 | # Check for --with-fpectl |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14459 | echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 14460 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6 |
| 14461 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14462 | # Check whether --with-fpectl or --without-fpectl was given. |
| 14463 | if test "${with_fpectl+set}" = set; then |
| 14464 | withval="$with_fpectl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14465 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14466 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14467 | then |
| 14468 | |
| 14469 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14470 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14471 | _ACEOF |
| 14472 | |
| 14473 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14474 | echo "${ECHO_T}yes" >&6 |
| 14475 | else echo "$as_me:$LINENO: result: no" >&5 |
| 14476 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14477 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14478 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14479 | echo "$as_me:$LINENO: result: no" >&5 |
| 14480 | echo "${ECHO_T}no" >&6 |
| 14481 | fi; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14482 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14483 | # check for --with-libm=... |
| 14484 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 14485 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 14486 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 14487 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 14488 | *) LIBM=-lm |
| 14489 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14490 | echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 14491 | echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6 |
| 14492 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14493 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14494 | if test "${with_libm+set}" = set; then |
| 14495 | withval="$with_libm" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14496 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14497 | if test "$withval" = no |
| 14498 | then LIBM= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14499 | echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 14500 | echo "${ECHO_T}force LIBM empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14501 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14502 | then LIBM=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14503 | echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 14504 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6 |
| 14505 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 14506 | echo "$as_me: error: proper usage is --with-libm=STRING" >&2;} |
| 14507 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14508 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14509 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14510 | echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 14511 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6 |
| 14512 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14513 | |
| 14514 | # check for --with-libc=... |
| 14515 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14516 | echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 14517 | echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6 |
| 14518 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14519 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14520 | if test "${with_libc+set}" = set; then |
| 14521 | withval="$with_libc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14522 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14523 | if test "$withval" = no |
| 14524 | then LIBC= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14525 | echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 14526 | echo "${ECHO_T}force LIBC empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14527 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14528 | then LIBC=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14529 | echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 14530 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6 |
| 14531 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 14532 | echo "$as_me: error: proper usage is --with-libc=STRING" >&2;} |
| 14533 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14534 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14535 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14536 | echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 14537 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6 |
| 14538 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14539 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14540 | # check for hypot() in math library |
| 14541 | LIBS_SAVE=$LIBS |
| 14542 | LIBS="$LIBS $LIBM" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14543 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14544 | for ac_func in hypot |
| 14545 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14546 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14547 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14548 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14549 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14551 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14552 | cat >conftest.$ac_ext <<_ACEOF |
| 14553 | #line $LINENO "configure" |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14554 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14555 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14556 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14557 | #include <assert.h> |
| 14558 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14559 | #ifdef __cplusplus |
| 14560 | extern "C" |
| 14561 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14562 | /* 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] | 14563 | builtin and then its argument prototype would still apply. */ |
| 14564 | char $ac_func (); |
| 14565 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14566 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14567 | int |
| 14568 | main () |
| 14569 | { |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14570 | /* The GNU C library defines this for functions which it implements |
| 14571 | to always fail with ENOSYS. Some functions are actually named |
| 14572 | something starting with __ and the normal name is an alias. */ |
| 14573 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14574 | choke me |
| 14575 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14576 | f = $ac_func; |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14577 | #endif |
| 14578 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14579 | ; |
| 14580 | return 0; |
| 14581 | } |
| 14582 | _ACEOF |
| 14583 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14584 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14585 | (eval $ac_link) 2>&5 |
| 14586 | ac_status=$? |
| 14587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14588 | (exit $ac_status); } && |
| 14589 | { ac_try='test -s conftest$ac_exeext' |
| 14590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14591 | (eval $ac_try) 2>&5 |
| 14592 | ac_status=$? |
| 14593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14594 | (exit $ac_status); }; }; then |
| 14595 | eval "$as_ac_var=yes" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 14596 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14597 | echo "$as_me: failed program was:" >&5 |
| 14598 | cat conftest.$ac_ext >&5 |
| 14599 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14600 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14601 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14602 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14603 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14604 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14605 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14606 | cat >>confdefs.h <<_ACEOF |
| 14607 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14608 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14609 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14610 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14611 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 14612 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 14613 | done |
| 14614 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14615 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14616 | LIBS=$LIBS_SAVE |
| 14617 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14618 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14619 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 14620 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 14621 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 14622 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 14623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14624 | fi |
| 14625 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 14626 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14627 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14628 | # Is the header compilable? |
| 14629 | echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 14630 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6 |
| 14631 | cat >conftest.$ac_ext <<_ACEOF |
| 14632 | #line $LINENO "configure" |
| 14633 | #include "confdefs.h" |
| 14634 | $ac_includes_default |
| 14635 | #include <wchar.h> |
| 14636 | _ACEOF |
| 14637 | rm -f conftest.$ac_objext |
| 14638 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14639 | (eval $ac_compile) 2>&5 |
| 14640 | ac_status=$? |
| 14641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14642 | (exit $ac_status); } && |
| 14643 | { ac_try='test -s conftest.$ac_objext' |
| 14644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14645 | (eval $ac_try) 2>&5 |
| 14646 | ac_status=$? |
| 14647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14648 | (exit $ac_status); }; }; then |
| 14649 | ac_header_compiler=yes |
| 14650 | else |
| 14651 | echo "$as_me: failed program was:" >&5 |
| 14652 | cat conftest.$ac_ext >&5 |
| 14653 | ac_header_compiler=no |
| 14654 | fi |
| 14655 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14656 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14657 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 14658 | |
| 14659 | # Is the header present? |
| 14660 | echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 14661 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6 |
| 14662 | cat >conftest.$ac_ext <<_ACEOF |
| 14663 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14664 | #include "confdefs.h" |
| 14665 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14666 | _ACEOF |
| 14667 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 14668 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 14669 | ac_status=$? |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 14670 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14671 | rm -f conftest.er1 |
| 14672 | cat conftest.err >&5 |
| 14673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14674 | (exit $ac_status); } >/dev/null; then |
| 14675 | if test -s conftest.err; then |
| 14676 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14677 | else |
| 14678 | ac_cpp_err= |
| 14679 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14680 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14681 | ac_cpp_err=yes |
| 14682 | fi |
| 14683 | if test -z "$ac_cpp_err"; then |
| 14684 | ac_header_preproc=yes |
| 14685 | else |
| 14686 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14687 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14688 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14689 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14690 | rm -f conftest.err conftest.$ac_ext |
| 14691 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14692 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 14693 | |
| 14694 | # So? What about this header? |
| 14695 | case $ac_header_compiler:$ac_header_preproc in |
| 14696 | yes:no ) |
| 14697 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14698 | echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14699 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 14700 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};; |
| 14701 | no:yes ) |
| 14702 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 14703 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
| 14704 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 14705 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 14706 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 14707 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};; |
| 14708 | esac |
| 14709 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 14710 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 14711 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 14712 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14713 | else |
| 14714 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14715 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14716 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 14717 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
| 14718 | |
| 14719 | fi |
| 14720 | if test $ac_cv_header_wchar_h = yes; then |
| 14721 | |
| 14722 | |
| 14723 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14724 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14725 | _ACEOF |
| 14726 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14727 | wchar_h="yes" |
| 14728 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14729 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14730 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14731 | |
| 14732 | fi |
| 14733 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14734 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14735 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14736 | # determine wchar_t size |
| 14737 | if test "$wchar_h" = yes |
| 14738 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14739 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 14740 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 |
| 14741 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 14742 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14743 | else |
| 14744 | cat >conftest.$ac_ext <<_ACEOF |
| 14745 | #line $LINENO "configure" |
| 14746 | #include "confdefs.h" |
| 14747 | #include <wchar.h> |
| 14748 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14749 | int |
| 14750 | main () |
| 14751 | { |
| 14752 | if ((wchar_t *) 0) |
| 14753 | return 0; |
| 14754 | if (sizeof (wchar_t)) |
| 14755 | return 0; |
| 14756 | ; |
| 14757 | return 0; |
| 14758 | } |
| 14759 | _ACEOF |
| 14760 | rm -f conftest.$ac_objext |
| 14761 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14762 | (eval $ac_compile) 2>&5 |
| 14763 | ac_status=$? |
| 14764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14765 | (exit $ac_status); } && |
| 14766 | { ac_try='test -s conftest.$ac_objext' |
| 14767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14768 | (eval $ac_try) 2>&5 |
| 14769 | ac_status=$? |
| 14770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14771 | (exit $ac_status); }; }; then |
| 14772 | ac_cv_type_wchar_t=yes |
| 14773 | else |
| 14774 | echo "$as_me: failed program was:" >&5 |
| 14775 | cat conftest.$ac_ext >&5 |
| 14776 | ac_cv_type_wchar_t=no |
| 14777 | fi |
| 14778 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14779 | fi |
| 14780 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 14781 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 |
| 14782 | |
| 14783 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 14784 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 |
| 14785 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
| 14786 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14787 | else |
| 14788 | if test "$ac_cv_type_wchar_t" = yes; then |
| 14789 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 14790 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 14791 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 14792 | # This bug is HP SR number 8606223364. |
| 14793 | if test "$cross_compiling" = yes; then |
| 14794 | # Depending upon the size, compute the lo and hi bounds. |
| 14795 | cat >conftest.$ac_ext <<_ACEOF |
| 14796 | #line $LINENO "configure" |
| 14797 | #include "confdefs.h" |
| 14798 | #include <wchar.h> |
| 14799 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14800 | int |
| 14801 | main () |
| 14802 | { |
| 14803 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; |
| 14804 | test_array [0] = 0 |
| 14805 | |
| 14806 | ; |
| 14807 | return 0; |
| 14808 | } |
| 14809 | _ACEOF |
| 14810 | rm -f conftest.$ac_objext |
| 14811 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14812 | (eval $ac_compile) 2>&5 |
| 14813 | ac_status=$? |
| 14814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14815 | (exit $ac_status); } && |
| 14816 | { ac_try='test -s conftest.$ac_objext' |
| 14817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14818 | (eval $ac_try) 2>&5 |
| 14819 | ac_status=$? |
| 14820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14821 | (exit $ac_status); }; }; then |
| 14822 | ac_lo=0 ac_mid=0 |
| 14823 | while :; do |
| 14824 | cat >conftest.$ac_ext <<_ACEOF |
| 14825 | #line $LINENO "configure" |
| 14826 | #include "confdefs.h" |
| 14827 | #include <wchar.h> |
| 14828 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14829 | int |
| 14830 | main () |
| 14831 | { |
| 14832 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 14833 | test_array [0] = 0 |
| 14834 | |
| 14835 | ; |
| 14836 | return 0; |
| 14837 | } |
| 14838 | _ACEOF |
| 14839 | rm -f conftest.$ac_objext |
| 14840 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14841 | (eval $ac_compile) 2>&5 |
| 14842 | ac_status=$? |
| 14843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14844 | (exit $ac_status); } && |
| 14845 | { ac_try='test -s conftest.$ac_objext' |
| 14846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14847 | (eval $ac_try) 2>&5 |
| 14848 | ac_status=$? |
| 14849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14850 | (exit $ac_status); }; }; then |
| 14851 | ac_hi=$ac_mid; break |
| 14852 | else |
| 14853 | echo "$as_me: failed program was:" >&5 |
| 14854 | cat conftest.$ac_ext >&5 |
| 14855 | ac_lo=`expr $ac_mid + 1` |
| 14856 | if test $ac_lo -le $ac_mid; then |
| 14857 | ac_lo= ac_hi= |
| 14858 | break |
| 14859 | fi |
| 14860 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 14861 | fi |
| 14862 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14863 | done |
| 14864 | else |
| 14865 | echo "$as_me: failed program was:" >&5 |
| 14866 | cat conftest.$ac_ext >&5 |
| 14867 | cat >conftest.$ac_ext <<_ACEOF |
| 14868 | #line $LINENO "configure" |
| 14869 | #include "confdefs.h" |
| 14870 | #include <wchar.h> |
| 14871 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14872 | int |
| 14873 | main () |
| 14874 | { |
| 14875 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; |
| 14876 | test_array [0] = 0 |
| 14877 | |
| 14878 | ; |
| 14879 | return 0; |
| 14880 | } |
| 14881 | _ACEOF |
| 14882 | rm -f conftest.$ac_objext |
| 14883 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14884 | (eval $ac_compile) 2>&5 |
| 14885 | ac_status=$? |
| 14886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14887 | (exit $ac_status); } && |
| 14888 | { ac_try='test -s conftest.$ac_objext' |
| 14889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14890 | (eval $ac_try) 2>&5 |
| 14891 | ac_status=$? |
| 14892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14893 | (exit $ac_status); }; }; then |
| 14894 | ac_hi=-1 ac_mid=-1 |
| 14895 | while :; do |
| 14896 | cat >conftest.$ac_ext <<_ACEOF |
| 14897 | #line $LINENO "configure" |
| 14898 | #include "confdefs.h" |
| 14899 | #include <wchar.h> |
| 14900 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14901 | int |
| 14902 | main () |
| 14903 | { |
| 14904 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; |
| 14905 | test_array [0] = 0 |
| 14906 | |
| 14907 | ; |
| 14908 | return 0; |
| 14909 | } |
| 14910 | _ACEOF |
| 14911 | rm -f conftest.$ac_objext |
| 14912 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14913 | (eval $ac_compile) 2>&5 |
| 14914 | ac_status=$? |
| 14915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14916 | (exit $ac_status); } && |
| 14917 | { ac_try='test -s conftest.$ac_objext' |
| 14918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14919 | (eval $ac_try) 2>&5 |
| 14920 | ac_status=$? |
| 14921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14922 | (exit $ac_status); }; }; then |
| 14923 | ac_lo=$ac_mid; break |
| 14924 | else |
| 14925 | echo "$as_me: failed program was:" >&5 |
| 14926 | cat conftest.$ac_ext >&5 |
| 14927 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 14928 | if test $ac_mid -le $ac_hi; then |
| 14929 | ac_lo= ac_hi= |
| 14930 | break |
| 14931 | fi |
| 14932 | ac_mid=`expr 2 '*' $ac_mid` |
| 14933 | fi |
| 14934 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14935 | done |
| 14936 | else |
| 14937 | echo "$as_me: failed program was:" >&5 |
| 14938 | cat conftest.$ac_ext >&5 |
| 14939 | ac_lo= ac_hi= |
| 14940 | fi |
| 14941 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14942 | fi |
| 14943 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14944 | # Binary search between lo and hi bounds. |
| 14945 | while test "x$ac_lo" != "x$ac_hi"; do |
| 14946 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 14947 | cat >conftest.$ac_ext <<_ACEOF |
| 14948 | #line $LINENO "configure" |
| 14949 | #include "confdefs.h" |
| 14950 | #include <wchar.h> |
| 14951 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14952 | int |
| 14953 | main () |
| 14954 | { |
| 14955 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 14956 | test_array [0] = 0 |
| 14957 | |
| 14958 | ; |
| 14959 | return 0; |
| 14960 | } |
| 14961 | _ACEOF |
| 14962 | rm -f conftest.$ac_objext |
| 14963 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14964 | (eval $ac_compile) 2>&5 |
| 14965 | ac_status=$? |
| 14966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14967 | (exit $ac_status); } && |
| 14968 | { ac_try='test -s conftest.$ac_objext' |
| 14969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14970 | (eval $ac_try) 2>&5 |
| 14971 | ac_status=$? |
| 14972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14973 | (exit $ac_status); }; }; then |
| 14974 | ac_hi=$ac_mid |
| 14975 | else |
| 14976 | echo "$as_me: failed program was:" >&5 |
| 14977 | cat conftest.$ac_ext >&5 |
| 14978 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 14979 | fi |
| 14980 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14981 | done |
| 14982 | case $ac_lo in |
| 14983 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
| 14984 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5 |
| 14985 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;} |
| 14986 | { (exit 1); exit 1; }; } ;; |
| 14987 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14988 | else |
| 14989 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14990 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 14991 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 14992 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14993 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14994 | cat >conftest.$ac_ext <<_ACEOF |
| 14995 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14996 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14997 | #include <wchar.h> |
| 14998 | |
| 14999 | long longval () { return (long) (sizeof (wchar_t)); } |
| 15000 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15001 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15002 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15003 | int |
| 15004 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15005 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15006 | |
| 15007 | FILE *f = fopen ("conftest.val", "w"); |
| 15008 | if (! f) |
| 15009 | exit (1); |
| 15010 | if (((long) (sizeof (wchar_t))) < 0) |
| 15011 | { |
| 15012 | long i = longval (); |
| 15013 | if (i != ((long) (sizeof (wchar_t)))) |
| 15014 | exit (1); |
| 15015 | fprintf (f, "%ld\n", i); |
| 15016 | } |
| 15017 | else |
| 15018 | { |
| 15019 | unsigned long i = ulongval (); |
| 15020 | if (i != ((long) (sizeof (wchar_t)))) |
| 15021 | exit (1); |
| 15022 | fprintf (f, "%lu\n", i); |
| 15023 | } |
| 15024 | exit (ferror (f) || fclose (f) != 0); |
| 15025 | |
| 15026 | ; |
| 15027 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15028 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15029 | _ACEOF |
| 15030 | rm -f conftest$ac_exeext |
| 15031 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15032 | (eval $ac_link) 2>&5 |
| 15033 | ac_status=$? |
| 15034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15035 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15037 | (eval $ac_try) 2>&5 |
| 15038 | ac_status=$? |
| 15039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15040 | (exit $ac_status); }; }; then |
| 15041 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15042 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15043 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15044 | echo "$as_me: failed program was:" >&5 |
| 15045 | cat conftest.$ac_ext >&5 |
| 15046 | ( exit $ac_status ) |
| 15047 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5 |
| 15048 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;} |
| 15049 | { (exit 1); exit 1; }; } |
| 15050 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 15051 | 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] | 15052 | fi |
| 15053 | fi |
| 15054 | rm -f conftest.val |
| 15055 | else |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15056 | ac_cv_sizeof_wchar_t=0 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15057 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15058 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15059 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 15060 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 |
| 15061 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15062 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15063 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15064 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15065 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15066 | fi |
| 15067 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15068 | echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 15069 | 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] | 15070 | # Check whether --enable-unicode or --disable-unicode was given. |
| 15071 | if test "${enable_unicode+set}" = set; then |
| 15072 | enableval="$enable_unicode" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15073 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15074 | else |
| 15075 | enable_unicode=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15076 | fi; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15077 | |
| 15078 | if test $enable_unicode = yes |
| 15079 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 15080 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
| 15081 | enable_unicode="ucs2" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15082 | fi |
| 15083 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 15084 | |
| 15085 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15086 | case "$enable_unicode" in |
| 15087 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15088 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15089 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15090 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15091 | |
| 15092 | ;; |
| 15093 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15094 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15095 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15096 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15097 | |
| 15098 | ;; |
| 15099 | esac |
| 15100 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15101 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15102 | |
| 15103 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 15104 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15105 | if test "$enable_unicode" = "no" |
| 15106 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 15107 | UNICODE_OBJS="" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15108 | echo "$as_me:$LINENO: result: not used" >&5 |
| 15109 | echo "${ECHO_T}not used" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15110 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 15111 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15112 | |
| 15113 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15114 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15115 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15116 | |
| 15117 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" |
| 15118 | then |
| 15119 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15120 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15121 | cat >>confdefs.h <<\_ACEOF |
| 15122 | #define HAVE_USABLE_WCHAR_T 1 |
| 15123 | _ACEOF |
| 15124 | |
| 15125 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15126 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15127 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15128 | |
| 15129 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 15130 | then |
| 15131 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15132 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15133 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15134 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15135 | |
| 15136 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 15137 | then |
| 15138 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15139 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15140 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15141 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15142 | |
| 15143 | else |
| 15144 | PY_UNICODE_TYPE="no type found" |
| 15145 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15146 | echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 15147 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15148 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15149 | |
| 15150 | # check for endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15151 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 15152 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 15153 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 15154 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15155 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15156 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 15157 | cat >conftest.$ac_ext <<_ACEOF |
| 15158 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15159 | #include "confdefs.h" |
| 15160 | #include <sys/types.h> |
| 15161 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15162 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15163 | int |
| 15164 | main () |
| 15165 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15166 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 15167 | bogus endian macros |
| 15168 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15169 | |
| 15170 | ; |
| 15171 | return 0; |
| 15172 | } |
| 15173 | _ACEOF |
| 15174 | rm -f conftest.$ac_objext |
| 15175 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15176 | (eval $ac_compile) 2>&5 |
| 15177 | ac_status=$? |
| 15178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15179 | (exit $ac_status); } && |
| 15180 | { ac_try='test -s conftest.$ac_objext' |
| 15181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15182 | (eval $ac_try) 2>&5 |
| 15183 | ac_status=$? |
| 15184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15185 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15186 | # 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] | 15187 | cat >conftest.$ac_ext <<_ACEOF |
| 15188 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15189 | #include "confdefs.h" |
| 15190 | #include <sys/types.h> |
| 15191 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15192 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15193 | int |
| 15194 | main () |
| 15195 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15196 | #if BYTE_ORDER != BIG_ENDIAN |
| 15197 | not big endian |
| 15198 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15199 | |
| 15200 | ; |
| 15201 | return 0; |
| 15202 | } |
| 15203 | _ACEOF |
| 15204 | rm -f conftest.$ac_objext |
| 15205 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15206 | (eval $ac_compile) 2>&5 |
| 15207 | ac_status=$? |
| 15208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15209 | (exit $ac_status); } && |
| 15210 | { ac_try='test -s conftest.$ac_objext' |
| 15211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15212 | (eval $ac_try) 2>&5 |
| 15213 | ac_status=$? |
| 15214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15215 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15216 | ac_cv_c_bigendian=yes |
| 15217 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15218 | echo "$as_me: failed program was:" >&5 |
| 15219 | cat conftest.$ac_ext >&5 |
| 15220 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15221 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15222 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15223 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15224 | echo "$as_me: failed program was:" >&5 |
| 15225 | cat conftest.$ac_ext >&5 |
| 15226 | # It does not; compile a test program. |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15227 | if test "$cross_compiling" = yes; then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 15228 | # 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] | 15229 | ac_cv_c_bigendian=unknown |
| 15230 | cat >conftest.$ac_ext <<_ACEOF |
| 15231 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15232 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15233 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 15234 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 15235 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 15236 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 15237 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 15238 | 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] | 15239 | int |
| 15240 | main () |
| 15241 | { |
| 15242 | _ascii (); _ebcdic (); |
| 15243 | ; |
| 15244 | return 0; |
| 15245 | } |
| 15246 | _ACEOF |
| 15247 | rm -f conftest.$ac_objext |
| 15248 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15249 | (eval $ac_compile) 2>&5 |
| 15250 | ac_status=$? |
| 15251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15252 | (exit $ac_status); } && |
| 15253 | { ac_try='test -s conftest.$ac_objext' |
| 15254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15255 | (eval $ac_try) 2>&5 |
| 15256 | ac_status=$? |
| 15257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15258 | (exit $ac_status); }; }; then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 15259 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15260 | ac_cv_c_bigendian=yes |
| 15261 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 15262 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15263 | if test "$ac_cv_c_bigendian" = unknown; then |
| 15264 | ac_cv_c_bigendian=no |
| 15265 | else |
| 15266 | # finding both strings is unlikely to happen, but who knows? |
| 15267 | ac_cv_c_bigendian=unknown |
| 15268 | fi |
| 15269 | fi |
| 15270 | else |
| 15271 | echo "$as_me: failed program was:" >&5 |
| 15272 | cat conftest.$ac_ext >&5 |
| 15273 | fi |
| 15274 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15275 | else |
| 15276 | cat >conftest.$ac_ext <<_ACEOF |
| 15277 | #line $LINENO "configure" |
| 15278 | #include "confdefs.h" |
| 15279 | int |
| 15280 | main () |
| 15281 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15282 | /* Are we little or big endian? From Harbison&Steele. */ |
| 15283 | union |
| 15284 | { |
| 15285 | long l; |
| 15286 | char c[sizeof (long)]; |
| 15287 | } u; |
| 15288 | u.l = 1; |
| 15289 | exit (u.c[sizeof (long) - 1] == 1); |
| 15290 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15291 | _ACEOF |
| 15292 | rm -f conftest$ac_exeext |
| 15293 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15294 | (eval $ac_link) 2>&5 |
| 15295 | ac_status=$? |
| 15296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15297 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15299 | (eval $ac_try) 2>&5 |
| 15300 | ac_status=$? |
| 15301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15302 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15303 | ac_cv_c_bigendian=no |
| 15304 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15305 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15306 | echo "$as_me: failed program was:" >&5 |
| 15307 | cat conftest.$ac_ext >&5 |
| 15308 | ( exit $ac_status ) |
| 15309 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15310 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 15311 | 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] | 15312 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15313 | fi |
| 15314 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15315 | fi |
| 15316 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 15317 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 15318 | case $ac_cv_c_bigendian in |
| 15319 | yes) |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15320 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15321 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15322 | #define WORDS_BIGENDIAN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15323 | _ACEOF |
| 15324 | ;; |
| 15325 | no) |
| 15326 | ;; |
| 15327 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 15328 | { { echo "$as_me:$LINENO: error: unknown endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15329 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 15330 | echo "$as_me: error: unknown endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15331 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 15332 | { (exit 1); exit 1; }; } ;; |
| 15333 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15334 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15335 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15336 | # Check whether right shifting a negative integer extends the sign bit |
| 15337 | # 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] | 15338 | echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 15339 | echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6 |
| 15340 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
| 15341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15342 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15343 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15344 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15345 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15346 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15347 | cat >conftest.$ac_ext <<_ACEOF |
| 15348 | #line $LINENO "configure" |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15349 | #include "confdefs.h" |
| 15350 | |
| 15351 | int main() |
| 15352 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15353 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15354 | } |
| 15355 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15356 | _ACEOF |
| 15357 | rm -f conftest$ac_exeext |
| 15358 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15359 | (eval $ac_link) 2>&5 |
| 15360 | ac_status=$? |
| 15361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15362 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15364 | (eval $ac_try) 2>&5 |
| 15365 | ac_status=$? |
| 15366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15367 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15368 | ac_cv_rshift_extends_sign=yes |
| 15369 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15370 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15371 | echo "$as_me: failed program was:" >&5 |
| 15372 | cat conftest.$ac_ext >&5 |
| 15373 | ( exit $ac_status ) |
| 15374 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15375 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 15376 | 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] | 15377 | fi |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15378 | fi |
| 15379 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15380 | echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 15381 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15382 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15383 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15384 | |
| 15385 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15386 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15387 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15388 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15389 | fi |
| 15390 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15391 | # check for getc_unlocked and related locking functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15392 | echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 15393 | echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6 |
| 15394 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
| 15395 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15396 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15397 | |
| 15398 | cat >conftest.$ac_ext <<_ACEOF |
| 15399 | #line $LINENO "configure" |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15400 | #include "confdefs.h" |
| 15401 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15402 | int |
| 15403 | main () |
| 15404 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15405 | |
| 15406 | FILE *f = fopen("/dev/null", "r"); |
| 15407 | flockfile(f); |
| 15408 | getc_unlocked(f); |
| 15409 | funlockfile(f); |
| 15410 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15411 | ; |
| 15412 | return 0; |
| 15413 | } |
| 15414 | _ACEOF |
| 15415 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15416 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15417 | (eval $ac_link) 2>&5 |
| 15418 | ac_status=$? |
| 15419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15420 | (exit $ac_status); } && |
| 15421 | { ac_try='test -s conftest$ac_exeext' |
| 15422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15423 | (eval $ac_try) 2>&5 |
| 15424 | ac_status=$? |
| 15425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15426 | (exit $ac_status); }; }; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15427 | ac_cv_have_getc_unlocked=yes |
| 15428 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15429 | echo "$as_me: failed program was:" >&5 |
| 15430 | cat conftest.$ac_ext >&5 |
| 15431 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15432 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15433 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15434 | fi |
| 15435 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15436 | echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 15437 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15438 | if test "$ac_cv_have_getc_unlocked" = yes |
| 15439 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15440 | |
| 15441 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15442 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15443 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15444 | |
| 15445 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15446 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15447 | # check for readline 2.2 |
| 15448 | cat >conftest.$ac_ext <<_ACEOF |
| 15449 | #line $LINENO "configure" |
| 15450 | #include "confdefs.h" |
| 15451 | #include <readline/readline.h> |
| 15452 | _ACEOF |
| 15453 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 15454 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 15455 | ac_status=$? |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 15456 | grep -v '^ *+' conftest.er1 >conftest.err |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15457 | rm -f conftest.er1 |
| 15458 | cat conftest.err >&5 |
| 15459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15460 | (exit $ac_status); } >/dev/null; then |
| 15461 | if test -s conftest.err; then |
| 15462 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15463 | else |
| 15464 | ac_cpp_err= |
| 15465 | fi |
| 15466 | else |
| 15467 | ac_cpp_err=yes |
| 15468 | fi |
| 15469 | if test -z "$ac_cpp_err"; then |
| 15470 | have_readline=yes |
| 15471 | else |
| 15472 | echo "$as_me: failed program was:" >&5 |
| 15473 | cat conftest.$ac_ext >&5 |
| 15474 | have_readline=no |
| 15475 | fi |
| 15476 | rm -f conftest.err conftest.$ac_ext |
| 15477 | if test $have_readline = yes |
| 15478 | then |
| 15479 | cat >conftest.$ac_ext <<_ACEOF |
| 15480 | #line $LINENO "configure" |
| 15481 | #include "confdefs.h" |
| 15482 | #include <readline/readline.h> |
| 15483 | |
| 15484 | _ACEOF |
| 15485 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 15486 | $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] | 15487 | |
| 15488 | cat >>confdefs.h <<\_ACEOF |
| 15489 | #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1 |
| 15490 | _ACEOF |
| 15491 | |
| 15492 | fi |
| 15493 | rm -f conftest* |
| 15494 | |
| 15495 | fi |
| 15496 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15497 | # check for readline 4.0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15498 | echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 15499 | echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6 |
| 15500 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
| 15501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15502 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15503 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15504 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15505 | cat >conftest.$ac_ext <<_ACEOF |
| 15506 | #line $LINENO "configure" |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15507 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15508 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15509 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15510 | #ifdef __cplusplus |
| 15511 | extern "C" |
| 15512 | #endif |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15513 | /* 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] | 15514 | builtin and then its argument prototype would still apply. */ |
| 15515 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15516 | int |
| 15517 | main () |
| 15518 | { |
| 15519 | rl_pre_input_hook (); |
| 15520 | ; |
| 15521 | return 0; |
| 15522 | } |
| 15523 | _ACEOF |
| 15524 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15525 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15526 | (eval $ac_link) 2>&5 |
| 15527 | ac_status=$? |
| 15528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15529 | (exit $ac_status); } && |
| 15530 | { ac_try='test -s conftest$ac_exeext' |
| 15531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15532 | (eval $ac_try) 2>&5 |
| 15533 | ac_status=$? |
| 15534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15535 | (exit $ac_status); }; }; then |
| 15536 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15537 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15538 | echo "$as_me: failed program was:" >&5 |
| 15539 | cat conftest.$ac_ext >&5 |
| 15540 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15541 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15542 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 15543 | LIBS=$ac_check_lib_save_LIBS |
| 15544 | fi |
| 15545 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 15546 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6 |
| 15547 | 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] | 15548 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15549 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15550 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15551 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15552 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15553 | fi |
| 15554 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15555 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15556 | # check for readline 4.2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15557 | echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 15558 | echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6 |
| 15559 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
| 15560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15561 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15562 | ac_check_lib_save_LIBS=$LIBS |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15563 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15564 | cat >conftest.$ac_ext <<_ACEOF |
| 15565 | #line $LINENO "configure" |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15566 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15567 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15568 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15569 | #ifdef __cplusplus |
| 15570 | extern "C" |
| 15571 | #endif |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15572 | /* 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] | 15573 | builtin and then its argument prototype would still apply. */ |
| 15574 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15575 | int |
| 15576 | main () |
| 15577 | { |
| 15578 | rl_completion_matches (); |
| 15579 | ; |
| 15580 | return 0; |
| 15581 | } |
| 15582 | _ACEOF |
| 15583 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15584 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15585 | (eval $ac_link) 2>&5 |
| 15586 | ac_status=$? |
| 15587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15588 | (exit $ac_status); } && |
| 15589 | { ac_try='test -s conftest$ac_exeext' |
| 15590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15591 | (eval $ac_try) 2>&5 |
| 15592 | ac_status=$? |
| 15593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15594 | (exit $ac_status); }; }; then |
| 15595 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15596 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15597 | echo "$as_me: failed program was:" >&5 |
| 15598 | cat conftest.$ac_ext >&5 |
| 15599 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15600 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15601 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 15602 | LIBS=$ac_check_lib_save_LIBS |
| 15603 | fi |
| 15604 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 15605 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6 |
| 15606 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15607 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15608 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15609 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15610 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15611 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15612 | fi |
| 15613 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15614 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15615 | echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 15616 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6 |
| 15617 | if test "${ac_cv_broken_nice+set}" = set; then |
| 15618 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15619 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15620 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15621 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15622 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15623 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15624 | cat >conftest.$ac_ext <<_ACEOF |
| 15625 | #line $LINENO "configure" |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15626 | #include "confdefs.h" |
| 15627 | |
| 15628 | int main() |
| 15629 | { |
| 15630 | int val1 = nice(1); |
| 15631 | if (val1 != -1 && val1 == nice(2)) |
| 15632 | exit(0); |
| 15633 | exit(1); |
| 15634 | } |
| 15635 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15636 | _ACEOF |
| 15637 | rm -f conftest$ac_exeext |
| 15638 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15639 | (eval $ac_link) 2>&5 |
| 15640 | ac_status=$? |
| 15641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15642 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15644 | (eval $ac_try) 2>&5 |
| 15645 | ac_status=$? |
| 15646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15647 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15648 | ac_cv_broken_nice=yes |
| 15649 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15650 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15651 | echo "$as_me: failed program was:" >&5 |
| 15652 | cat conftest.$ac_ext >&5 |
| 15653 | ( exit $ac_status ) |
| 15654 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15655 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 15656 | 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] | 15657 | fi |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15658 | fi |
| 15659 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15660 | echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 15661 | echo "${ECHO_T}$ac_cv_broken_nice" >&6 |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15662 | if test "$ac_cv_broken_nice" = yes |
| 15663 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15664 | |
| 15665 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15666 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15667 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15668 | |
| 15669 | fi |
| 15670 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15671 | # Look for subsecond timestamps in struct stat |
| 15672 | echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 15673 | echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6 |
| 15674 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
| 15675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15676 | else |
| 15677 | cat >conftest.$ac_ext <<_ACEOF |
| 15678 | #line $LINENO "configure" |
| 15679 | #include "confdefs.h" |
| 15680 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15681 | int |
| 15682 | main () |
| 15683 | { |
| 15684 | |
| 15685 | struct stat st; |
| 15686 | st.st_mtim.tv_nsec = 1; |
| 15687 | |
| 15688 | ; |
| 15689 | return 0; |
| 15690 | } |
| 15691 | _ACEOF |
| 15692 | rm -f conftest.$ac_objext |
| 15693 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15694 | (eval $ac_compile) 2>&5 |
| 15695 | ac_status=$? |
| 15696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15697 | (exit $ac_status); } && |
| 15698 | { ac_try='test -s conftest.$ac_objext' |
| 15699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15700 | (eval $ac_try) 2>&5 |
| 15701 | ac_status=$? |
| 15702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15703 | (exit $ac_status); }; }; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 15704 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15705 | else |
| 15706 | echo "$as_me: failed program was:" >&5 |
| 15707 | cat conftest.$ac_ext >&5 |
| 15708 | ac_cv_stat_tv_nsec=no |
| 15709 | fi |
| 15710 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15711 | fi |
| 15712 | |
| 15713 | echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 15714 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6 |
| 15715 | if test "$ac_cv_stat_tv_nsec" = yes |
| 15716 | then |
| 15717 | |
| 15718 | cat >>confdefs.h <<\_ACEOF |
| 15719 | #define HAVE_STAT_TV_NSEC 1 |
| 15720 | _ACEOF |
| 15721 | |
| 15722 | fi |
| 15723 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15724 | # 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] | 15725 | echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 15726 | echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6 |
| 15727 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
| 15728 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15729 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15730 | cat >conftest.$ac_ext <<_ACEOF |
| 15731 | #line $LINENO "configure" |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15732 | #include "confdefs.h" |
| 15733 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15734 | int |
| 15735 | main () |
| 15736 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15737 | |
| 15738 | int rtn; |
| 15739 | rtn = mvwdelch(0,0,0); |
| 15740 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15741 | ; |
| 15742 | return 0; |
| 15743 | } |
| 15744 | _ACEOF |
| 15745 | rm -f conftest.$ac_objext |
| 15746 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15747 | (eval $ac_compile) 2>&5 |
| 15748 | ac_status=$? |
| 15749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15750 | (exit $ac_status); } && |
| 15751 | { ac_try='test -s conftest.$ac_objext' |
| 15752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15753 | (eval $ac_try) 2>&5 |
| 15754 | ac_status=$? |
| 15755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15756 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15757 | ac_cv_mvwdelch_is_expression=yes |
| 15758 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15759 | echo "$as_me: failed program was:" >&5 |
| 15760 | cat conftest.$ac_ext >&5 |
| 15761 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15762 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15763 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15764 | fi |
| 15765 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15766 | echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 15767 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15768 | |
| 15769 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 15770 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15771 | |
| 15772 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15773 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15774 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15775 | |
| 15776 | fi |
| 15777 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15778 | echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 15779 | echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6 |
| 15780 | if test "${ac_cv_window_has_flags+set}" = set; then |
| 15781 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15782 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15783 | cat >conftest.$ac_ext <<_ACEOF |
| 15784 | #line $LINENO "configure" |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15785 | #include "confdefs.h" |
| 15786 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15787 | int |
| 15788 | main () |
| 15789 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15790 | |
| 15791 | WINDOW *w; |
| 15792 | w->_flags = 0; |
| 15793 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15794 | ; |
| 15795 | return 0; |
| 15796 | } |
| 15797 | _ACEOF |
| 15798 | rm -f conftest.$ac_objext |
| 15799 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15800 | (eval $ac_compile) 2>&5 |
| 15801 | ac_status=$? |
| 15802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15803 | (exit $ac_status); } && |
| 15804 | { ac_try='test -s conftest.$ac_objext' |
| 15805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15806 | (eval $ac_try) 2>&5 |
| 15807 | ac_status=$? |
| 15808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15809 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15810 | ac_cv_window_has_flags=yes |
| 15811 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15812 | echo "$as_me: failed program was:" >&5 |
| 15813 | cat conftest.$ac_ext >&5 |
| 15814 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15815 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15816 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15817 | fi |
| 15818 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15819 | echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 15820 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15821 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15822 | |
| 15823 | if test "$ac_cv_window_has_flags" = yes |
| 15824 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15825 | |
| 15826 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15827 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15828 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15829 | |
| 15830 | fi |
| 15831 | |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 15832 | echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
| 15833 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6 |
| 15834 | |
| 15835 | if test -e /dev/ptmx |
| 15836 | then |
| 15837 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15838 | echo "${ECHO_T}yes" >&6 |
| 15839 | |
| 15840 | cat >>confdefs.h <<\_ACEOF |
| 15841 | #define HAVE_DEV_PTMX 1 |
| 15842 | _ACEOF |
| 15843 | |
| 15844 | else |
| 15845 | echo "$as_me:$LINENO: result: no" >&5 |
| 15846 | echo "${ECHO_T}no" >&6 |
| 15847 | fi |
| 15848 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15849 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 15850 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
| 15851 | if test "${ac_cv_type_socklen_t+set}" = set; then |
| 15852 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15853 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15854 | cat >conftest.$ac_ext <<_ACEOF |
| 15855 | #line $LINENO "configure" |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15856 | #include "confdefs.h" |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 15857 | |
| 15858 | #ifdef HAVE_SYS_TYPES_H |
| 15859 | #include <sys/types.h> |
| 15860 | #endif |
| 15861 | #ifdef HAVE_SYS_SOCKET_H |
| 15862 | #include <sys/socket.h> |
| 15863 | #endif |
| 15864 | |
| 15865 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15866 | int |
| 15867 | main () |
| 15868 | { |
| 15869 | if ((socklen_t *) 0) |
| 15870 | return 0; |
| 15871 | if (sizeof (socklen_t)) |
| 15872 | return 0; |
| 15873 | ; |
| 15874 | return 0; |
| 15875 | } |
| 15876 | _ACEOF |
| 15877 | rm -f conftest.$ac_objext |
| 15878 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15879 | (eval $ac_compile) 2>&5 |
| 15880 | ac_status=$? |
| 15881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15882 | (exit $ac_status); } && |
| 15883 | { ac_try='test -s conftest.$ac_objext' |
| 15884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15885 | (eval $ac_try) 2>&5 |
| 15886 | ac_status=$? |
| 15887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15888 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 15889 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15890 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15891 | echo "$as_me: failed program was:" >&5 |
| 15892 | cat conftest.$ac_ext >&5 |
| 15893 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15894 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15895 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15896 | fi |
| 15897 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 15898 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 |
| 15899 | if test $ac_cv_type_socklen_t = yes; then |
| 15900 | : |
| 15901 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15902 | |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 15903 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15904 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15905 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15906 | |
| 15907 | fi |
| 15908 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15909 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15910 | |
| 15911 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 15912 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 15913 | do |
| 15914 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 15915 | done |
| 15916 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15917 | |
Jack Jansen | 0b06be7 | 2002-06-21 14:48:38 +0000 | [diff] [blame] | 15918 | SRCDIRS="Parser Grammar Objects Python Modules Mac Mac/Python" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15919 | echo "$as_me:$LINENO: checking for build directories" >&5 |
| 15920 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15921 | for dir in $SRCDIRS; do |
| 15922 | if test ! -d $dir; then |
| 15923 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 15924 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15925 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15926 | echo "$as_me:$LINENO: result: done" >&5 |
| 15927 | echo "${ECHO_T}done" >&6 |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 15928 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15929 | # generate output files |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 15930 | 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] | 15931 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15932 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15933 | # This file is a shell script that caches the results of configure |
| 15934 | # 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] | 15935 | # scripts and configure runs, see configure's option --config-cache. |
| 15936 | # It is not useful on other systems. If it contains results you don't |
| 15937 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15938 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15939 | # config.status only pays attention to the cache file if you give it |
| 15940 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15941 | # |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 15942 | # `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] | 15943 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 15944 | # following values. |
| 15945 | |
| 15946 | _ACEOF |
| 15947 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15948 | # The following way of writing the cache mishandles newlines in values, |
| 15949 | # but we know of no workaround that is simple, portable, and efficient. |
| 15950 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15951 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 15952 | # 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] | 15953 | { |
| 15954 | (set) 2>&1 | |
| 15955 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 15956 | *ac_space=\ *) |
| 15957 | # `set' does not quote correctly, so add quotes (double-quote |
| 15958 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 15959 | sed -n \ |
| 15960 | "s/'/'\\\\''/g; |
| 15961 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 15962 | ;; |
| 15963 | *) |
| 15964 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 15965 | sed -n \ |
| 15966 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 15967 | ;; |
| 15968 | esac; |
| 15969 | } | |
| 15970 | sed ' |
| 15971 | t clear |
| 15972 | : clear |
| 15973 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 15974 | t end |
| 15975 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 15976 | : end' >>confcache |
| 15977 | if cmp -s $cache_file confcache; then :; else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15978 | if test -w $cache_file; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15979 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 15980 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15981 | else |
| 15982 | echo "not updating unwritable cache $cache_file" |
| 15983 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15984 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15985 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 15986 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15987 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 15988 | # Let make expand exec_prefix. |
| 15989 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 15990 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15991 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 15992 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 15993 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 15994 | # (actually we leave an empty line to preserve line numbers). |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15995 | if test "x$srcdir" = x.; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15996 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 15997 | s/:*\$(srcdir):*/:/; |
| 15998 | s/:*\${srcdir}:*/:/; |
| 15999 | s/:*@srcdir@:*/:/; |
| 16000 | s/^\([^=]*=[ ]*\):*/\1/; |
| 16001 | s/:*$//; |
| 16002 | s/^[^=]*=[ ]*$//; |
| 16003 | }' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16004 | fi |
| 16005 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16006 | DEFS=-DHAVE_CONFIG_H |
| 16007 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 16008 | ac_libobjs= |
| 16009 | ac_ltlibobjs= |
| 16010 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 16011 | # 1. Remove the extension, and $U if already installed. |
| 16012 | ac_i=`echo "$ac_i" | |
| 16013 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 16014 | # 2. Add them. |
| 16015 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 16016 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 16017 | done |
| 16018 | LIBOBJS=$ac_libobjs |
| 16019 | |
| 16020 | LTLIBOBJS=$ac_ltlibobjs |
| 16021 | |
| 16022 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16023 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16024 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16025 | ac_clean_files_save=$ac_clean_files |
| 16026 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 16027 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 16028 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 16029 | cat >$CONFIG_STATUS <<_ACEOF |
| 16030 | #! $SHELL |
| 16031 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16032 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16033 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16034 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16035 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16036 | debug=false |
| 16037 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 16038 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16039 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16040 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16041 | ## --------------------- ## |
| 16042 | ## M4sh Initialization. ## |
| 16043 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16044 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16045 | # Be Bourne compatible |
| 16046 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 16047 | emulate sh |
| 16048 | NULLCMD=: |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 16049 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 16050 | # is contrary to our usage. Disable this feature. |
| 16051 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16052 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 16053 | set -o posix |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16054 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16055 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16056 | # Support unset when possible. |
| 16057 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 16058 | as_unset=unset |
| 16059 | else |
| 16060 | as_unset=false |
| 16061 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16062 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 16063 | |
| 16064 | # Work around bugs in pre-3.0 UWIN ksh. |
| 16065 | $as_unset ENV MAIL MAILPATH |
| 16066 | PS1='$ ' |
| 16067 | PS2='> ' |
| 16068 | PS4='+ ' |
| 16069 | |
| 16070 | # NLS nuisances. |
| 16071 | for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME |
| 16072 | do |
| 16073 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 16074 | eval $as_var=C; export $as_var |
| 16075 | else |
| 16076 | $as_unset $as_var |
| 16077 | fi |
| 16078 | done |
| 16079 | |
| 16080 | # Required to use basename. |
| 16081 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 16082 | as_expr=expr |
| 16083 | else |
| 16084 | as_expr=false |
| 16085 | fi |
| 16086 | |
| 16087 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 16088 | as_basename=basename |
| 16089 | else |
| 16090 | as_basename=false |
| 16091 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16092 | |
| 16093 | |
| 16094 | # Name of the executable. |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 16095 | as_me=`$as_basename "$0" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16096 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 16097 | X"$0" : 'X\(//\)$' \| \ |
| 16098 | X"$0" : 'X\(/\)$' \| \ |
| 16099 | . : '\(.\)' 2>/dev/null || |
| 16100 | echo X/"$0" | |
| 16101 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 16102 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 16103 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 16104 | s/.*/./; q'` |
| 16105 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 16106 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16107 | # PATH needs CR, and LINENO needs CR and PATH. |
| 16108 | # Avoid depending upon Character Ranges. |
| 16109 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 16110 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 16111 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 16112 | as_cr_digits='0123456789' |
| 16113 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 16114 | |
| 16115 | # The user is always right. |
| 16116 | if test "${PATH_SEPARATOR+set}" != set; then |
| 16117 | echo "#! /bin/sh" >conftest.sh |
| 16118 | echo "exit 0" >>conftest.sh |
| 16119 | chmod +x conftest.sh |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 16120 | if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16121 | PATH_SEPARATOR=';' |
| 16122 | else |
| 16123 | PATH_SEPARATOR=: |
| 16124 | fi |
| 16125 | rm -f conftest.sh |
| 16126 | fi |
| 16127 | |
| 16128 | |
| 16129 | as_lineno_1=$LINENO |
| 16130 | as_lineno_2=$LINENO |
| 16131 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 16132 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 16133 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 16134 | # Find who we are. Look in the path if we contain no path at all |
| 16135 | # relative or not. |
| 16136 | case $0 in |
| 16137 | *[\\/]* ) as_myself=$0 ;; |
| 16138 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16139 | for as_dir in $PATH |
| 16140 | do |
| 16141 | IFS=$as_save_IFS |
| 16142 | test -z "$as_dir" && as_dir=. |
| 16143 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 16144 | done |
| 16145 | |
| 16146 | ;; |
| 16147 | esac |
| 16148 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 16149 | # in which case we are not to be found in the path. |
| 16150 | if test "x$as_myself" = x; then |
| 16151 | as_myself=$0 |
| 16152 | fi |
| 16153 | if test ! -f "$as_myself"; then |
| 16154 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 16155 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 16156 | { (exit 1); exit 1; }; } |
| 16157 | fi |
| 16158 | case $CONFIG_SHELL in |
| 16159 | '') |
| 16160 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16161 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 16162 | do |
| 16163 | IFS=$as_save_IFS |
| 16164 | test -z "$as_dir" && as_dir=. |
| 16165 | for as_base in sh bash ksh sh5; do |
| 16166 | case $as_dir in |
| 16167 | /*) |
| 16168 | if ("$as_dir/$as_base" -c ' |
| 16169 | as_lineno_1=$LINENO |
| 16170 | as_lineno_2=$LINENO |
| 16171 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 16172 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 16173 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 16174 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 16175 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16176 | CONFIG_SHELL=$as_dir/$as_base |
| 16177 | export CONFIG_SHELL |
| 16178 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 16179 | fi;; |
| 16180 | esac |
| 16181 | done |
| 16182 | done |
| 16183 | ;; |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16184 | esac |
| 16185 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16186 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 16187 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 16188 | # line-number line before each line; the second 'sed' does the real |
| 16189 | # work. The second script uses 'N' to pair each line-number line |
| 16190 | # with the numbered line, and appends trailing '-' during |
| 16191 | # substitution so that $LINENO is not a special case at line end. |
| 16192 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 16193 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 16194 | sed '=' <$as_myself | |
| 16195 | sed ' |
| 16196 | N |
| 16197 | s,$,-, |
| 16198 | : loop |
| 16199 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 16200 | t loop |
| 16201 | s,-$,, |
| 16202 | s,^['$as_cr_digits']*\n,, |
| 16203 | ' >$as_me.lineno && |
| 16204 | chmod +x $as_me.lineno || |
| 16205 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 16206 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 16207 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16208 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16209 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 16210 | # (the dirname of $[0] is not the place where we might find the |
| 16211 | # original and so on. Autoconf is especially sensible to this). |
| 16212 | . ./$as_me.lineno |
| 16213 | # Exit status is that of the last command. |
| 16214 | exit |
| 16215 | } |
| 16216 | |
| 16217 | |
| 16218 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 16219 | *c*,-n*) ECHO_N= ECHO_C=' |
| 16220 | ' ECHO_T=' ' ;; |
| 16221 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 16222 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 16223 | esac |
| 16224 | |
| 16225 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 16226 | as_expr=expr |
| 16227 | else |
| 16228 | as_expr=false |
| 16229 | fi |
| 16230 | |
| 16231 | rm -f conf$$ conf$$.exe conf$$.file |
| 16232 | echo >conf$$.file |
| 16233 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 16234 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 16235 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 16236 | if test -f conf$$.exe; then |
| 16237 | # Don't use ln at all; we don't have any links |
| 16238 | as_ln_s='cp -p' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16239 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16240 | as_ln_s='ln -s' |
| 16241 | fi |
| 16242 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 16243 | as_ln_s=ln |
| 16244 | else |
| 16245 | as_ln_s='cp -p' |
| 16246 | fi |
| 16247 | rm -f conf$$ conf$$.exe conf$$.file |
| 16248 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 16249 | if mkdir -p . 2>/dev/null; then |
| 16250 | as_mkdir_p=: |
| 16251 | else |
| 16252 | as_mkdir_p=false |
| 16253 | fi |
| 16254 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16255 | as_executable_p="test -f" |
| 16256 | |
| 16257 | # Sed expression to map a string onto a valid CPP name. |
| 16258 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 16259 | |
| 16260 | # Sed expression to map a string onto a valid variable name. |
| 16261 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 16262 | |
| 16263 | |
| 16264 | # IFS |
| 16265 | # We need space, tab and new line, in precisely that order. |
| 16266 | as_nl=' |
| 16267 | ' |
| 16268 | IFS=" $as_nl" |
| 16269 | |
| 16270 | # CDPATH. |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 16271 | $as_unset CDPATH |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16272 | |
| 16273 | exec 6>&1 |
| 16274 | |
| 16275 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 16276 | # report actual input values of CONFIG_FILES etc. instead of their |
| 16277 | # values after options handling. Logging --version etc. is OK. |
| 16278 | exec 5>>config.log |
| 16279 | { |
| 16280 | echo |
| 16281 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 16282 | ## Running $as_me. ## |
| 16283 | _ASBOX |
| 16284 | } >&5 |
| 16285 | cat >&5 <<_CSEOF |
| 16286 | |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 16287 | This file was extended by python $as_me 2.3, which was |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 16288 | generated by GNU Autoconf 2.54. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16289 | |
| 16290 | CONFIG_FILES = $CONFIG_FILES |
| 16291 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 16292 | CONFIG_LINKS = $CONFIG_LINKS |
| 16293 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 16294 | $ $0 $@ |
| 16295 | |
| 16296 | _CSEOF |
| 16297 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 16298 | echo >&5 |
| 16299 | _ACEOF |
| 16300 | |
| 16301 | # Files that config.status was made for. |
| 16302 | if test -n "$ac_config_files"; then |
| 16303 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 16304 | fi |
| 16305 | |
| 16306 | if test -n "$ac_config_headers"; then |
| 16307 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 16308 | fi |
| 16309 | |
| 16310 | if test -n "$ac_config_links"; then |
| 16311 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 16312 | fi |
| 16313 | |
| 16314 | if test -n "$ac_config_commands"; then |
| 16315 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 16316 | fi |
| 16317 | |
| 16318 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16319 | |
| 16320 | ac_cs_usage="\ |
| 16321 | \`$as_me' instantiates files from templates according to the |
| 16322 | current configuration. |
| 16323 | |
| 16324 | Usage: $0 [OPTIONS] [FILE]... |
| 16325 | |
| 16326 | -h, --help print this help, then exit |
| 16327 | -V, --version print version number, then exit |
| 16328 | -d, --debug don't remove temporary files |
| 16329 | --recheck update $as_me by reconfiguring in the same conditions |
| 16330 | --file=FILE[:TEMPLATE] |
| 16331 | instantiate the configuration file FILE |
| 16332 | --header=FILE[:TEMPLATE] |
| 16333 | instantiate the configuration header FILE |
| 16334 | |
| 16335 | Configuration files: |
| 16336 | $config_files |
| 16337 | |
| 16338 | Configuration headers: |
| 16339 | $config_headers |
| 16340 | |
| 16341 | Report bugs to <bug-autoconf@gnu.org>." |
| 16342 | _ACEOF |
| 16343 | |
| 16344 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16345 | ac_cs_version="\\ |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 16346 | python config.status 2.3 |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 16347 | configured by $0, generated by GNU Autoconf 2.54, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16348 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 16349 | |
| 16350 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 16351 | Free Software Foundation, Inc. |
| 16352 | This config.status script is free software; the Free Software Foundation |
| 16353 | gives unlimited permission to copy, distribute and modify it." |
| 16354 | srcdir=$srcdir |
| 16355 | INSTALL="$INSTALL" |
| 16356 | _ACEOF |
| 16357 | |
| 16358 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16359 | # If no file are specified by the user, then we need to provide default |
| 16360 | # value. By we need to know if files were specified by the user. |
| 16361 | ac_need_defaults=: |
| 16362 | while test $# != 0 |
| 16363 | do |
| 16364 | case $1 in |
| 16365 | --*=*) |
| 16366 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 16367 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 16368 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16369 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 16370 | -*) |
| 16371 | ac_option=$1 |
| 16372 | ac_optarg=$2 |
| 16373 | ac_shift=shift |
| 16374 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16375 | *) # This is not an option, so the user has probably given explicit |
| 16376 | # arguments. |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 16377 | ac_option=$1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16378 | ac_need_defaults=false;; |
| 16379 | esac |
| 16380 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 16381 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16382 | # Handling of the options. |
| 16383 | _ACEOF |
| 16384 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16385 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 16386 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
| 16387 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; |
| 16388 | _ACEOF |
| 16389 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16390 | --version | --vers* | -V ) |
| 16391 | echo "$ac_cs_version"; exit 0 ;; |
| 16392 | --he | --h) |
| 16393 | # Conflict between --help and --header |
| 16394 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 16395 | Try \`$0 --help' for more information." >&5 |
| 16396 | echo "$as_me: error: ambiguous option: $1 |
| 16397 | Try \`$0 --help' for more information." >&2;} |
| 16398 | { (exit 1); exit 1; }; };; |
| 16399 | --help | --hel | -h ) |
| 16400 | echo "$ac_cs_usage"; exit 0 ;; |
| 16401 | --debug | --d* | -d ) |
| 16402 | debug=: ;; |
| 16403 | --file | --fil | --fi | --f ) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 16404 | $ac_shift |
| 16405 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16406 | ac_need_defaults=false;; |
| 16407 | --header | --heade | --head | --hea ) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 16408 | $ac_shift |
| 16409 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16410 | ac_need_defaults=false;; |
| 16411 | |
| 16412 | # This is an error. |
| 16413 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 16414 | Try \`$0 --help' for more information." >&5 |
| 16415 | echo "$as_me: error: unrecognized option: $1 |
| 16416 | Try \`$0 --help' for more information." >&2;} |
| 16417 | { (exit 1); exit 1; }; } ;; |
| 16418 | |
| 16419 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 16420 | |
| 16421 | esac |
| 16422 | shift |
| 16423 | done |
| 16424 | |
| 16425 | _ACEOF |
| 16426 | |
| 16427 | |
| 16428 | |
| 16429 | |
| 16430 | |
| 16431 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16432 | for ac_config_target in $ac_config_targets |
| 16433 | do |
| 16434 | case "$ac_config_target" in |
| 16435 | # Handling of arguments. |
| 16436 | "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 16437 | "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
| 16438 | "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 16439 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 16440 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 16441 | { (exit 1); exit 1; }; };; |
| 16442 | esac |
| 16443 | done |
| 16444 | |
| 16445 | # If the user did not use the arguments to specify the items to instantiate, |
| 16446 | # then the envvar interface is used. Set only those that are not. |
| 16447 | # We use the long form for the default assignment because of an extremely |
| 16448 | # bizarre bug on SunOS 4.1.3. |
| 16449 | if $ac_need_defaults; then |
| 16450 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 16451 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 16452 | fi |
| 16453 | |
| 16454 | # Create a temporary directory, and hook for its removal unless debugging. |
| 16455 | $debug || |
| 16456 | { |
| 16457 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 16458 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 16459 | } |
| 16460 | |
| 16461 | # Create a (secure) tmp directory for tmp files. |
| 16462 | : ${TMPDIR=/tmp} |
| 16463 | { |
| 16464 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && |
| 16465 | test -n "$tmp" && test -d "$tmp" |
| 16466 | } || |
| 16467 | { |
| 16468 | tmp=$TMPDIR/cs$$-$RANDOM |
| 16469 | (umask 077 && mkdir $tmp) |
| 16470 | } || |
| 16471 | { |
| 16472 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
| 16473 | { (exit 1); exit 1; } |
| 16474 | } |
| 16475 | |
| 16476 | _ACEOF |
| 16477 | |
| 16478 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16479 | |
| 16480 | # |
| 16481 | # CONFIG_FILES section. |
| 16482 | # |
| 16483 | |
| 16484 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 16485 | # This happens for instance when ./config.status config.h |
| 16486 | if test -n "\$CONFIG_FILES"; then |
| 16487 | # Protect against being on the right side of a sed subst in config.status. |
| 16488 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 16489 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 16490 | s,@SHELL@,$SHELL,;t t |
| 16491 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 16492 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 16493 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 16494 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 16495 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 16496 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 16497 | s,@exec_prefix@,$exec_prefix,;t t |
| 16498 | s,@prefix@,$prefix,;t t |
| 16499 | s,@program_transform_name@,$program_transform_name,;t t |
| 16500 | s,@bindir@,$bindir,;t t |
| 16501 | s,@sbindir@,$sbindir,;t t |
| 16502 | s,@libexecdir@,$libexecdir,;t t |
| 16503 | s,@datadir@,$datadir,;t t |
| 16504 | s,@sysconfdir@,$sysconfdir,;t t |
| 16505 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 16506 | s,@localstatedir@,$localstatedir,;t t |
| 16507 | s,@libdir@,$libdir,;t t |
| 16508 | s,@includedir@,$includedir,;t t |
| 16509 | s,@oldincludedir@,$oldincludedir,;t t |
| 16510 | s,@infodir@,$infodir,;t t |
| 16511 | s,@mandir@,$mandir,;t t |
| 16512 | s,@build_alias@,$build_alias,;t t |
| 16513 | s,@host_alias@,$host_alias,;t t |
| 16514 | s,@target_alias@,$target_alias,;t t |
| 16515 | s,@DEFS@,$DEFS,;t t |
| 16516 | s,@ECHO_C@,$ECHO_C,;t t |
| 16517 | s,@ECHO_N@,$ECHO_N,;t t |
| 16518 | s,@ECHO_T@,$ECHO_T,;t t |
| 16519 | s,@LIBS@,$LIBS,;t t |
| 16520 | s,@VERSION@,$VERSION,;t t |
| 16521 | s,@SOVERSION@,$SOVERSION,;t t |
| 16522 | s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t |
| 16523 | s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t |
| 16524 | s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t |
| 16525 | s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t |
| 16526 | s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t |
| 16527 | s,@MACHDEP@,$MACHDEP,;t t |
| 16528 | s,@SGI_ABI@,$SGI_ABI,;t t |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 16529 | s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16530 | s,@CXX@,$CXX,;t t |
| 16531 | s,@MAINOBJ@,$MAINOBJ,;t t |
| 16532 | s,@EXEEXT@,$EXEEXT,;t t |
| 16533 | s,@CC@,$CC,;t t |
| 16534 | s,@CFLAGS@,$CFLAGS,;t t |
| 16535 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 16536 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 16537 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 16538 | s,@OBJEXT@,$OBJEXT,;t t |
| 16539 | s,@CPP@,$CPP,;t t |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 16540 | s,@EGREP@,$EGREP,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16541 | s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t |
| 16542 | s,@LIBRARY@,$LIBRARY,;t t |
| 16543 | s,@LDLIBRARY@,$LDLIBRARY,;t t |
| 16544 | s,@DLLLIBRARY@,$DLLLIBRARY,;t t |
| 16545 | s,@BLDLIBRARY@,$BLDLIBRARY,;t t |
| 16546 | s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t |
| 16547 | s,@INSTSONAME@,$INSTSONAME,;t t |
| 16548 | s,@RUNSHARED@,$RUNSHARED,;t t |
| 16549 | s,@LINKCC@,$LINKCC,;t t |
| 16550 | s,@RANLIB@,$RANLIB,;t t |
| 16551 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 16552 | s,@AR@,$AR,;t t |
| 16553 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 16554 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 16555 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 16556 | s,@LN@,$LN,;t t |
| 16557 | s,@OPT@,$OPT,;t t |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 16558 | s,@BASECFLAGS@,$BASECFLAGS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16559 | s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t |
| 16560 | s,@SO@,$SO,;t t |
| 16561 | s,@LDSHARED@,$LDSHARED,;t t |
| 16562 | s,@BLDSHARED@,$BLDSHARED,;t t |
| 16563 | s,@CCSHARED@,$CCSHARED,;t t |
| 16564 | s,@LINKFORSHARED@,$LINKFORSHARED,;t t |
| 16565 | s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16566 | s,@SHLIBS@,$SHLIBS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16567 | s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t |
| 16568 | s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t |
| 16569 | s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t |
| 16570 | s,@LDLAST@,$LDLAST,;t t |
| 16571 | s,@THREADOBJ@,$THREADOBJ,;t t |
| 16572 | s,@DLINCLDIR@,$DLINCLDIR,;t t |
| 16573 | s,@DYNLOADFILE@,$DYNLOADFILE,;t t |
| 16574 | s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t |
| 16575 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 16576 | s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t |
| 16577 | s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t |
| 16578 | s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t |
| 16579 | s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t |
| 16580 | s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t |
| 16581 | s,@LIBM@,$LIBM,;t t |
| 16582 | s,@LIBC@,$LIBC,;t t |
| 16583 | s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t |
| 16584 | s,@THREADHEADERS@,$THREADHEADERS,;t t |
| 16585 | s,@SRCDIRS@,$SRCDIRS,;t t |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 16586 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16587 | CEOF |
| 16588 | |
| 16589 | _ACEOF |
| 16590 | |
| 16591 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16592 | # Split the substitutions into bite-sized pieces for seds with |
| 16593 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 16594 | ac_max_sed_lines=48 |
| 16595 | ac_sed_frag=1 # Number of current file. |
| 16596 | ac_beg=1 # First line for current file. |
| 16597 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 16598 | ac_more_lines=: |
| 16599 | ac_sed_cmds= |
| 16600 | while $ac_more_lines; do |
| 16601 | if test $ac_beg -gt 1; then |
| 16602 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 16603 | else |
| 16604 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 16605 | fi |
| 16606 | if test ! -s $tmp/subs.frag; then |
| 16607 | ac_more_lines=false |
| 16608 | else |
| 16609 | # The purpose of the label and of the branching condition is to |
| 16610 | # speed up the sed processing (if there are no `@' at all, there |
| 16611 | # is no need to browse any of the substitutions). |
| 16612 | # These are the two extra sed commands mentioned above. |
| 16613 | (echo ':t |
| 16614 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 16615 | if test -z "$ac_sed_cmds"; then |
| 16616 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 16617 | else |
| 16618 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 16619 | fi |
| 16620 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 16621 | ac_beg=$ac_end |
| 16622 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 16623 | fi |
| 16624 | done |
| 16625 | if test -z "$ac_sed_cmds"; then |
| 16626 | ac_sed_cmds=cat |
| 16627 | fi |
| 16628 | fi # test -n "$CONFIG_FILES" |
| 16629 | |
| 16630 | _ACEOF |
| 16631 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16632 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 16633 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 16634 | case $ac_file in |
| 16635 | - | *:- | *:-:* ) # input from stdin |
| 16636 | cat >$tmp/stdin |
| 16637 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16638 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16639 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16640 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16641 | * ) ac_file_in=$ac_file.in ;; |
| 16642 | esac |
| 16643 | |
| 16644 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 16645 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 16646 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16647 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16648 | X"$ac_file" : 'X\(//\)$' \| \ |
| 16649 | X"$ac_file" : 'X\(/\)' \| \ |
| 16650 | . : '\(.\)' 2>/dev/null || |
| 16651 | echo X"$ac_file" | |
| 16652 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16653 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16654 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16655 | /^X\(\/\).*/{ s//\1/; q; } |
| 16656 | s/.*/./; q'` |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 16657 | { if $as_mkdir_p; then |
| 16658 | mkdir -p "$ac_dir" |
| 16659 | else |
| 16660 | as_dir="$ac_dir" |
| 16661 | as_dirs= |
| 16662 | while test ! -d "$as_dir"; do |
| 16663 | as_dirs="$as_dir $as_dirs" |
| 16664 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 16665 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16666 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 16667 | X"$as_dir" : 'X\(//\)$' \| \ |
| 16668 | X"$as_dir" : 'X\(/\)' \| \ |
| 16669 | . : '\(.\)' 2>/dev/null || |
| 16670 | echo X"$as_dir" | |
| 16671 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16672 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16673 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16674 | /^X\(\/\).*/{ s//\1/; q; } |
| 16675 | s/.*/./; q'` |
| 16676 | done |
| 16677 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 16678 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 16679 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 16680 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16681 | |
| 16682 | ac_builddir=. |
| 16683 | |
| 16684 | if test "$ac_dir" != .; then |
| 16685 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 16686 | # A "../" for each directory in $ac_dir_suffix. |
| 16687 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 16688 | else |
| 16689 | ac_dir_suffix= ac_top_builddir= |
| 16690 | fi |
| 16691 | |
| 16692 | case $srcdir in |
| 16693 | .) # No --srcdir option. We are building in place. |
| 16694 | ac_srcdir=. |
| 16695 | if test -z "$ac_top_builddir"; then |
| 16696 | ac_top_srcdir=. |
| 16697 | else |
| 16698 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 16699 | fi ;; |
| 16700 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 16701 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 16702 | ac_top_srcdir=$srcdir ;; |
| 16703 | *) # Relative path. |
| 16704 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 16705 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 16706 | esac |
| 16707 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 16708 | # absolute. |
| 16709 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 16710 | 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] | 16711 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 16712 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 16713 | |
| 16714 | |
| 16715 | case $INSTALL in |
| 16716 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 16717 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 16718 | esac |
| 16719 | |
| 16720 | if test x"$ac_file" != x-; then |
| 16721 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 16722 | echo "$as_me: creating $ac_file" >&6;} |
| 16723 | rm -f "$ac_file" |
| 16724 | fi |
| 16725 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16726 | # use $as_me), people would be surprised to read: |
| 16727 | # /* config.h. Generated by config.status. */ |
| 16728 | if test x"$ac_file" = x-; then |
| 16729 | configure_input= |
| 16730 | else |
| 16731 | configure_input="$ac_file. " |
| 16732 | fi |
| 16733 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 16734 | sed 's,.*/,,'` by configure." |
| 16735 | |
| 16736 | # First look for the input files in the build tree, otherwise in the |
| 16737 | # src tree. |
| 16738 | ac_file_inputs=`IFS=: |
| 16739 | for f in $ac_file_in; do |
| 16740 | case $f in |
| 16741 | -) echo $tmp/stdin ;; |
| 16742 | [\\/$]*) |
| 16743 | # Absolute (can't be DOS-style, as IFS=:) |
| 16744 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16745 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16746 | { (exit 1); exit 1; }; } |
| 16747 | echo $f;; |
| 16748 | *) # Relative |
| 16749 | if test -f "$f"; then |
| 16750 | # Build tree |
| 16751 | echo $f |
| 16752 | elif test -f "$srcdir/$f"; then |
| 16753 | # Source tree |
| 16754 | echo $srcdir/$f |
| 16755 | else |
| 16756 | # /dev/null tree |
| 16757 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16758 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16759 | { (exit 1); exit 1; }; } |
| 16760 | fi;; |
| 16761 | esac |
| 16762 | done` || { (exit 1); exit 1; } |
| 16763 | _ACEOF |
| 16764 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16765 | sed "$ac_vpsub |
| 16766 | $extrasub |
| 16767 | _ACEOF |
| 16768 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16769 | :t |
| 16770 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 16771 | s,@configure_input@,$configure_input,;t t |
| 16772 | s,@srcdir@,$ac_srcdir,;t t |
| 16773 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 16774 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 16775 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 16776 | s,@builddir@,$ac_builddir,;t t |
| 16777 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 16778 | s,@top_builddir@,$ac_top_builddir,;t t |
| 16779 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 16780 | s,@INSTALL@,$ac_INSTALL,;t t |
| 16781 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 16782 | rm -f $tmp/stdin |
| 16783 | if test x"$ac_file" != x-; then |
| 16784 | mv $tmp/out $ac_file |
| 16785 | else |
| 16786 | cat $tmp/out |
| 16787 | rm -f $tmp/out |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16788 | fi |
| 16789 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16790 | done |
| 16791 | _ACEOF |
| 16792 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16793 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16794 | # |
| 16795 | # CONFIG_HEADER section. |
| 16796 | # |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16797 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16798 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 16799 | # 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] | 16800 | # |
| 16801 | # ac_d sets the value in "#define NAME VALUE" lines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16802 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 16803 | ac_dB='[ ].*$,\1#\2' |
| 16804 | ac_dC=' ' |
| 16805 | ac_dD=',;t' |
| 16806 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 16807 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 16808 | ac_uB='$,\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16809 | ac_uC=' ' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16810 | ac_uD=',;t' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16811 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16812 | 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] | 16813 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16814 | case $ac_file in |
| 16815 | - | *:- | *:-:* ) # input from stdin |
| 16816 | cat >$tmp/stdin |
| 16817 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16818 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16819 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16820 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16821 | * ) ac_file_in=$ac_file.in ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16822 | esac |
| 16823 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16824 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 16825 | echo "$as_me: creating $ac_file" >&6;} |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16826 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16827 | # First look for the input files in the build tree, otherwise in the |
| 16828 | # src tree. |
| 16829 | ac_file_inputs=`IFS=: |
| 16830 | for f in $ac_file_in; do |
| 16831 | case $f in |
| 16832 | -) echo $tmp/stdin ;; |
| 16833 | [\\/$]*) |
| 16834 | # Absolute (can't be DOS-style, as IFS=:) |
| 16835 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16836 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16837 | { (exit 1); exit 1; }; } |
| 16838 | echo $f;; |
| 16839 | *) # Relative |
| 16840 | if test -f "$f"; then |
| 16841 | # Build tree |
| 16842 | echo $f |
| 16843 | elif test -f "$srcdir/$f"; then |
| 16844 | # Source tree |
| 16845 | echo $srcdir/$f |
| 16846 | else |
| 16847 | # /dev/null tree |
| 16848 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16849 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16850 | { (exit 1); exit 1; }; } |
| 16851 | fi;; |
| 16852 | esac |
| 16853 | done` || { (exit 1); exit 1; } |
| 16854 | # Remove the trailing spaces. |
| 16855 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16856 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16857 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16858 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16859 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 16860 | # `conftest.undefs', that substitutes the proper values into |
| 16861 | # config.h.in to produce config.h. The first handles `#define' |
| 16862 | # templates, and the second `#undef' templates. |
| 16863 | # And first: Protect against being on the right side of a sed subst in |
| 16864 | # config.status. Protect against being in an unquoted here document |
| 16865 | # in config.status. |
| 16866 | rm -f conftest.defines conftest.undefs |
| 16867 | # Using a here document instead of a string reduces the quoting nightmare. |
| 16868 | # Putting comments in sed scripts is not portable. |
| 16869 | # |
| 16870 | # `end' is used to avoid that the second main sed command (meant for |
| 16871 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 16872 | # See the Autoconf documentation for `clear'. |
| 16873 | cat >confdef2sed.sed <<\_ACEOF |
| 16874 | s/[\\&,]/\\&/g |
| 16875 | s,[\\$`],\\&,g |
| 16876 | t clear |
| 16877 | : clear |
| 16878 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 16879 | t end |
| 16880 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 16881 | : end |
| 16882 | _ACEOF |
| 16883 | # If some macros were called several times there might be several times |
| 16884 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 16885 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 16886 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 16887 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 16888 | rm -f confdef2sed.sed |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16889 | |
| 16890 | # This sed command replaces #undef with comments. This is necessary, for |
| 16891 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 16892 | # 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] | 16893 | cat >>conftest.undefs <<\_ACEOF |
| 16894 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 16895 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16896 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16897 | # Break up conftest.defines because some shells have a limit on the size |
| 16898 | # of here documents, and old seds have small limits too (100 cmds). |
| 16899 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 16900 | 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] | 16901 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 16902 | echo ' :' >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16903 | rm -f conftest.tail |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16904 | while grep . conftest.defines >/dev/null |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16905 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16906 | # Write a limited-size here document to $tmp/defines.sed. |
| 16907 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 16908 | # Speed up: don't consider the non `#define' lines. |
| 16909 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 16910 | # Work around the forget-to-reset-the-flag bug. |
| 16911 | echo 't clr' >>$CONFIG_STATUS |
| 16912 | echo ': clr' >>$CONFIG_STATUS |
| 16913 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16914 | echo 'CEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16915 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 16916 | rm -f $tmp/in |
| 16917 | mv $tmp/out $tmp/in |
| 16918 | ' >>$CONFIG_STATUS |
| 16919 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 16920 | rm -f conftest.defines |
| 16921 | mv conftest.tail conftest.defines |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16922 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16923 | rm -f conftest.defines |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 16924 | echo ' fi # grep' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16925 | echo >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16926 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16927 | # Break up conftest.undefs because some shells have a limit on the size |
| 16928 | # of here documents, and old seds have small limits too (100 cmds). |
| 16929 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 16930 | rm -f conftest.tail |
| 16931 | while grep . conftest.undefs >/dev/null |
| 16932 | do |
| 16933 | # Write a limited-size here document to $tmp/undefs.sed. |
| 16934 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 16935 | # Speed up: don't consider the non `#undef' |
| 16936 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 16937 | # Work around the forget-to-reset-the-flag bug. |
| 16938 | echo 't clr' >>$CONFIG_STATUS |
| 16939 | echo ': clr' >>$CONFIG_STATUS |
| 16940 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 16941 | echo 'CEOF |
| 16942 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 16943 | rm -f $tmp/in |
| 16944 | mv $tmp/out $tmp/in |
| 16945 | ' >>$CONFIG_STATUS |
| 16946 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 16947 | rm -f conftest.undefs |
| 16948 | mv conftest.tail conftest.undefs |
| 16949 | done |
| 16950 | rm -f conftest.undefs |
| 16951 | |
| 16952 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16953 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16954 | # use $as_me), people would be surprised to read: |
| 16955 | # /* config.h. Generated by config.status. */ |
| 16956 | if test x"$ac_file" = x-; then |
| 16957 | echo "/* Generated by configure. */" >$tmp/config.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16958 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16959 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16960 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16961 | cat $tmp/in >>$tmp/config.h |
| 16962 | rm -f $tmp/in |
| 16963 | if test x"$ac_file" != x-; then |
| 16964 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then |
| 16965 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 16966 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 16967 | else |
| 16968 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 16969 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16970 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16971 | X"$ac_file" : 'X\(//\)$' \| \ |
| 16972 | X"$ac_file" : 'X\(/\)' \| \ |
| 16973 | . : '\(.\)' 2>/dev/null || |
| 16974 | echo X"$ac_file" | |
| 16975 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16976 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16977 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16978 | /^X\(\/\).*/{ s//\1/; q; } |
| 16979 | s/.*/./; q'` |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 16980 | { if $as_mkdir_p; then |
| 16981 | mkdir -p "$ac_dir" |
| 16982 | else |
| 16983 | as_dir="$ac_dir" |
| 16984 | as_dirs= |
| 16985 | while test ! -d "$as_dir"; do |
| 16986 | as_dirs="$as_dir $as_dirs" |
| 16987 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 16988 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16989 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 16990 | X"$as_dir" : 'X\(//\)$' \| \ |
| 16991 | X"$as_dir" : 'X\(/\)' \| \ |
| 16992 | . : '\(.\)' 2>/dev/null || |
| 16993 | echo X"$as_dir" | |
| 16994 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16995 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16996 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16997 | /^X\(\/\).*/{ s//\1/; q; } |
| 16998 | s/.*/./; q'` |
| 16999 | done |
| 17000 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 17001 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 17002 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 17003 | { (exit 1); exit 1; }; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17004 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17005 | rm -f $ac_file |
| 17006 | mv $tmp/config.h $ac_file |
| 17007 | fi |
| 17008 | else |
| 17009 | cat $tmp/config.h |
| 17010 | rm -f $tmp/config.h |
| 17011 | fi |
| 17012 | done |
| 17013 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17014 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17015 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17016 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17017 | { (exit 0); exit 0; } |
| 17018 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17019 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17020 | ac_clean_files=$ac_clean_files_save |
| 17021 | |
| 17022 | |
| 17023 | # configure is writing to config.log, and then calls config.status. |
| 17024 | # config.status does its own redirection, appending to config.log. |
| 17025 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 17026 | # by configure, so config.status won't be able to write to it; its |
| 17027 | # output is simply discarded. So we exec the FD to /dev/null, |
| 17028 | # effectively closing config.log, so it can be properly (re)opened and |
| 17029 | # appended to by config.status. When coming back to configure, we |
| 17030 | # need to make the FD available again. |
| 17031 | if test "$no_create" != yes; then |
| 17032 | ac_cs_success=: |
| 17033 | exec 5>/dev/null |
| 17034 | $SHELL $CONFIG_STATUS || ac_cs_success=false |
| 17035 | exec 5>>config.log |
| 17036 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 17037 | # would make configure fail if this is the last instruction. |
| 17038 | $ac_cs_success || { (exit 1); exit 1; } |
| 17039 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17040 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17041 | |
| 17042 | echo "creating Setup" |
| 17043 | if test ! -f Modules/Setup |
| 17044 | then |
| 17045 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 17046 | fi |
| 17047 | |
| 17048 | echo "creating Setup.local" |
| 17049 | if test ! -f Modules/Setup.local |
| 17050 | then |
| 17051 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 17052 | fi |
| 17053 | |
| 17054 | echo "creating Makefile" |
| 17055 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 17056 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 17057 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 17058 | mv config.c Modules |