Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 2 | # From configure.in Revision: 1.457 . |
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 | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.59 for python 2.4. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5 | # |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6 | # Copyright (C) 2003 Free Software Foundation, Inc. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7 | # This configure script is free software; the Free Software Foundation |
| 8 | # gives unlimited permission to copy, distribute and modify it. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9 | ## --------------------- ## |
| 10 | ## M4sh Initialization. ## |
| 11 | ## --------------------- ## |
| 12 | |
| 13 | # Be Bourne compatible |
| 14 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 15 | emulate sh |
| 16 | NULLCMD=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 18 | # is contrary to our usage. Disable this feature. |
| 19 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 21 | set -o posix |
| 22 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 23 | DUALCASE=1; export DUALCASE # for MKS sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25 | # Support unset when possible. |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 26 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27 | as_unset=unset |
| 28 | else |
| 29 | as_unset=false |
| 30 | fi |
| 31 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 32 | |
| 33 | # Work around bugs in pre-3.0 UWIN ksh. |
| 34 | $as_unset ENV MAIL MAILPATH |
| 35 | PS1='$ ' |
| 36 | PS2='> ' |
| 37 | PS4='+ ' |
| 38 | |
| 39 | # NLS nuisances. |
| 40 | for as_var in \ |
| 41 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 42 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 43 | LC_TELEPHONE LC_TIME |
| 44 | do |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 45 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 46 | eval $as_var=C; export $as_var |
| 47 | else |
| 48 | $as_unset $as_var |
| 49 | fi |
| 50 | done |
| 51 | |
| 52 | # Required to use basename. |
| 53 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 54 | as_expr=expr |
| 55 | else |
| 56 | as_expr=false |
| 57 | fi |
| 58 | |
| 59 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 60 | as_basename=basename |
| 61 | else |
| 62 | as_basename=false |
| 63 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 64 | |
| 65 | |
| 66 | # Name of the executable. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 67 | as_me=`$as_basename "$0" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 68 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 69 | X"$0" : 'X\(//\)$' \| \ |
| 70 | X"$0" : 'X\(/\)$' \| \ |
| 71 | . : '\(.\)' 2>/dev/null || |
| 72 | echo X/"$0" | |
| 73 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 74 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 75 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 76 | s/.*/./; q'` |
| 77 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 78 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 79 | # PATH needs CR, and LINENO needs CR and PATH. |
| 80 | # Avoid depending upon Character Ranges. |
| 81 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 82 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 83 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 84 | as_cr_digits='0123456789' |
| 85 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 86 | |
| 87 | # The user is always right. |
| 88 | if test "${PATH_SEPARATOR+set}" != set; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 89 | echo "#! /bin/sh" >conf$$.sh |
| 90 | echo "exit 0" >>conf$$.sh |
| 91 | chmod +x conf$$.sh |
| 92 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 93 | PATH_SEPARATOR=';' |
| 94 | else |
| 95 | PATH_SEPARATOR=: |
| 96 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 97 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 98 | fi |
| 99 | |
| 100 | |
| 101 | as_lineno_1=$LINENO |
| 102 | as_lineno_2=$LINENO |
| 103 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 104 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 105 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 106 | # Find who we are. Look in the path if we contain no path at all |
| 107 | # relative or not. |
| 108 | case $0 in |
| 109 | *[\\/]* ) as_myself=$0 ;; |
| 110 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 111 | for as_dir in $PATH |
| 112 | do |
| 113 | IFS=$as_save_IFS |
| 114 | test -z "$as_dir" && as_dir=. |
| 115 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 116 | done |
| 117 | |
| 118 | ;; |
| 119 | esac |
| 120 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 121 | # in which case we are not to be found in the path. |
| 122 | if test "x$as_myself" = x; then |
| 123 | as_myself=$0 |
| 124 | fi |
| 125 | if test ! -f "$as_myself"; then |
| 126 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 127 | { (exit 1); exit 1; }; } |
| 128 | fi |
| 129 | case $CONFIG_SHELL in |
| 130 | '') |
| 131 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 132 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 133 | do |
| 134 | IFS=$as_save_IFS |
| 135 | test -z "$as_dir" && as_dir=. |
| 136 | for as_base in sh bash ksh sh5; do |
| 137 | case $as_dir in |
| 138 | /*) |
| 139 | if ("$as_dir/$as_base" -c ' |
| 140 | as_lineno_1=$LINENO |
| 141 | as_lineno_2=$LINENO |
| 142 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 143 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 144 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 145 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 146 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 147 | CONFIG_SHELL=$as_dir/$as_base |
| 148 | export CONFIG_SHELL |
| 149 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 150 | fi;; |
| 151 | esac |
| 152 | done |
| 153 | done |
| 154 | ;; |
| 155 | esac |
| 156 | |
| 157 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 158 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 159 | # line-number line before each line; the second 'sed' does the real |
| 160 | # work. The second script uses 'N' to pair each line-number line |
| 161 | # with the numbered line, and appends trailing '-' during |
| 162 | # substitution so that $LINENO is not a special case at line end. |
| 163 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 164 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 165 | sed '=' <$as_myself | |
| 166 | sed ' |
| 167 | N |
| 168 | s,$,-, |
| 169 | : loop |
| 170 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 171 | t loop |
| 172 | s,-$,, |
| 173 | s,^['$as_cr_digits']*\n,, |
| 174 | ' >$as_me.lineno && |
| 175 | chmod +x $as_me.lineno || |
| 176 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 177 | { (exit 1); exit 1; }; } |
| 178 | |
| 179 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 180 | # (the dirname of $[0] is not the place where we might find the |
| 181 | # original and so on. Autoconf is especially sensible to this). |
| 182 | . ./$as_me.lineno |
| 183 | # Exit status is that of the last command. |
| 184 | exit |
| 185 | } |
| 186 | |
| 187 | |
| 188 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 189 | *c*,-n*) ECHO_N= ECHO_C=' |
| 190 | ' ECHO_T=' ' ;; |
| 191 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 192 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 193 | esac |
| 194 | |
| 195 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 196 | as_expr=expr |
| 197 | else |
| 198 | as_expr=false |
| 199 | fi |
| 200 | |
| 201 | rm -f conf$$ conf$$.exe conf$$.file |
| 202 | echo >conf$$.file |
| 203 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 204 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 205 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 206 | if test -f conf$$.exe; then |
| 207 | # Don't use ln at all; we don't have any links |
| 208 | as_ln_s='cp -p' |
| 209 | else |
| 210 | as_ln_s='ln -s' |
| 211 | fi |
| 212 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 213 | as_ln_s=ln |
| 214 | else |
| 215 | as_ln_s='cp -p' |
| 216 | fi |
| 217 | rm -f conf$$ conf$$.exe conf$$.file |
| 218 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 219 | if mkdir -p . 2>/dev/null; then |
| 220 | as_mkdir_p=: |
| 221 | else |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 222 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 223 | as_mkdir_p=false |
| 224 | fi |
| 225 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 226 | as_executable_p="test -f" |
| 227 | |
| 228 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 229 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 230 | |
| 231 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 232 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 233 | |
| 234 | |
| 235 | # IFS |
| 236 | # We need space, tab and new line, in precisely that order. |
| 237 | as_nl=' |
| 238 | ' |
| 239 | IFS=" $as_nl" |
| 240 | |
| 241 | # CDPATH. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 242 | $as_unset CDPATH |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 243 | |
| 244 | |
| 245 | # Name of the host. |
| 246 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 247 | # so uname gets run too. |
| 248 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 249 | |
| 250 | exec 6>&1 |
| 251 | |
| 252 | # |
| 253 | # Initializations. |
| 254 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 255 | ac_default_prefix=/usr/local |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 256 | ac_config_libobj_dir=. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 257 | cross_compiling=no |
| 258 | subdirs= |
| 259 | MFLAGS= |
| 260 | MAKEFLAGS= |
| 261 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 262 | |
| 263 | # Maximum number of lines to put in a shell here document. |
| 264 | # This variable seems obsolete. It should probably be removed, and |
| 265 | # only ac_max_sed_lines should be used. |
| 266 | : ${ac_max_here_lines=38} |
| 267 | |
| 268 | # Identity of this package. |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 269 | PACKAGE_NAME='python' |
| 270 | PACKAGE_TARNAME='python' |
Fred Drake | 9bd4462 | 2003-07-30 17:39:48 +0000 | [diff] [blame] | 271 | PACKAGE_VERSION='2.4' |
| 272 | PACKAGE_STRING='python 2.4' |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 273 | PACKAGE_BUGREPORT='' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 274 | |
| 275 | ac_unique_file="Include/object.h" |
| 276 | # Factoring default headers for most tests. |
| 277 | ac_includes_default="\ |
| 278 | #include <stdio.h> |
| 279 | #if HAVE_SYS_TYPES_H |
| 280 | # include <sys/types.h> |
| 281 | #endif |
| 282 | #if HAVE_SYS_STAT_H |
| 283 | # include <sys/stat.h> |
| 284 | #endif |
| 285 | #if STDC_HEADERS |
| 286 | # include <stdlib.h> |
| 287 | # include <stddef.h> |
| 288 | #else |
| 289 | # if HAVE_STDLIB_H |
| 290 | # include <stdlib.h> |
| 291 | # endif |
| 292 | #endif |
| 293 | #if HAVE_STRING_H |
| 294 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 295 | # include <memory.h> |
| 296 | # endif |
| 297 | # include <string.h> |
| 298 | #endif |
| 299 | #if HAVE_STRINGS_H |
| 300 | # include <strings.h> |
| 301 | #endif |
| 302 | #if HAVE_INTTYPES_H |
| 303 | # include <inttypes.h> |
| 304 | #else |
| 305 | # if HAVE_STDINT_H |
| 306 | # include <stdint.h> |
| 307 | # endif |
| 308 | #endif |
| 309 | #if HAVE_UNISTD_H |
| 310 | # include <unistd.h> |
| 311 | #endif" |
| 312 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 313 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION SOVERSION CONFIG_ARGS PYTHONFRAMEWORK PYTHONFRAMEWORKDIR PYTHONFRAMEWORKPREFIX PYTHONFRAMEWORKINSTALLDIR MACHDEP SGI_ABI EXTRAPLATDIR EXTRAMACHDEPPATH CONFIGURE_MACOSX_DEPLOYMENT_TARGET CXX MAINOBJ EXEEXT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC OBJEXT CPP EGREP BUILDEXEEXT LIBRARY LDLIBRARY DLLLIBRARY BLDLIBRARY LDLIBRARYDIR INSTSONAME RUNSHARED LINKCC RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN OPT BASECFLAGS LIBTOOL_CRUFT SO LDSHARED BLDSHARED CCSHARED LINKFORSHARED CFLAGSFORSHARED SHLIBS USE_SIGNAL_MODULE SIGNAL_OBJS USE_THREAD_MODULE LDLAST THREADOBJ DLINCLDIR DYNLOADFILE MACHDEP_OBJS TRUE LIBOBJS HAVE_GETHOSTBYNAME_R_6_ARG HAVE_GETHOSTBYNAME_R_5_ARG HAVE_GETHOSTBYNAME_R_3_ARG HAVE_GETHOSTBYNAME_R HAVE_GETHOSTBYNAME LIBM LIBC UNICODE_OBJS THREADHEADERS SRCDIRS LTLIBOBJS' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 314 | ac_subst_files='' |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 315 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 316 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 317 | ac_init_help= |
| 318 | ac_init_version=false |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 319 | # The variables have the same names as the options, with |
| 320 | # dashes changed to underlines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 321 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 322 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 323 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 324 | no_recursion= |
| 325 | prefix=NONE |
| 326 | program_prefix=NONE |
| 327 | program_suffix=NONE |
| 328 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 329 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 330 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 331 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 332 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 333 | x_includes=NONE |
| 334 | x_libraries=NONE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 335 | |
| 336 | # Installation directory options. |
| 337 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 338 | # and all the variables that are supposed to be based on exec_prefix |
| 339 | # by default will actually change. |
| 340 | # 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] | 341 | bindir='${exec_prefix}/bin' |
| 342 | sbindir='${exec_prefix}/sbin' |
| 343 | libexecdir='${exec_prefix}/libexec' |
| 344 | datadir='${prefix}/share' |
| 345 | sysconfdir='${prefix}/etc' |
| 346 | sharedstatedir='${prefix}/com' |
| 347 | localstatedir='${prefix}/var' |
| 348 | libdir='${exec_prefix}/lib' |
| 349 | includedir='${prefix}/include' |
| 350 | oldincludedir='/usr/include' |
| 351 | infodir='${prefix}/info' |
| 352 | mandir='${prefix}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 353 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 354 | ac_prev= |
| 355 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 356 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 357 | # If the previous option needs an argument, assign it. |
| 358 | if test -n "$ac_prev"; then |
| 359 | eval "$ac_prev=\$ac_option" |
| 360 | ac_prev= |
| 361 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 362 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 363 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 364 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 365 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 366 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 367 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 368 | case $ac_option in |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 369 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 370 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 371 | ac_prev=bindir ;; |
| 372 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 373 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 374 | |
| 375 | -build | --build | --buil | --bui | --bu) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 376 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 377 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 378 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 379 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 380 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 381 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 382 | ac_prev=cache_file ;; |
| 383 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 384 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 385 | cache_file=$ac_optarg ;; |
| 386 | |
| 387 | --config-cache | -C) |
| 388 | cache_file=config.cache ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 389 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 390 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 391 | ac_prev=datadir ;; |
| 392 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 393 | | --da=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 394 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 395 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 396 | -disable-* | --disable-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 397 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 398 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 399 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 400 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 401 | { (exit 1); exit 1; }; } |
| 402 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 403 | eval "enable_$ac_feature=no" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 404 | |
| 405 | -enable-* | --enable-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 406 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 407 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 408 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 409 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 410 | { (exit 1); exit 1; }; } |
| 411 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 412 | case $ac_option in |
| 413 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 414 | *) ac_optarg=yes ;; |
| 415 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 416 | eval "enable_$ac_feature='$ac_optarg'" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 417 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 418 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 419 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 420 | | --exec | --exe | --ex) |
| 421 | ac_prev=exec_prefix ;; |
| 422 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 423 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 424 | | --exec=* | --exe=* | --ex=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 425 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 426 | |
| 427 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 428 | # Obsolete; use --with-gas. |
| 429 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 430 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 431 | -help | --help | --hel | --he | -h) |
| 432 | ac_init_help=long ;; |
| 433 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 434 | ac_init_help=recursive ;; |
| 435 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 436 | ac_init_help=short ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 437 | |
| 438 | -host | --host | --hos | --ho) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 439 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 440 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 441 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 442 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 443 | -includedir | --includedir | --includedi | --included | --include \ |
| 444 | | --includ | --inclu | --incl | --inc) |
| 445 | ac_prev=includedir ;; |
| 446 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 447 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 448 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 449 | |
| 450 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 451 | ac_prev=infodir ;; |
| 452 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 453 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 454 | |
| 455 | -libdir | --libdir | --libdi | --libd) |
| 456 | ac_prev=libdir ;; |
| 457 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 458 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 459 | |
| 460 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 461 | | --libexe | --libex | --libe) |
| 462 | ac_prev=libexecdir ;; |
| 463 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 464 | | --libexe=* | --libex=* | --libe=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 465 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 466 | |
| 467 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 468 | | --localstate | --localstat | --localsta | --localst \ |
| 469 | | --locals | --local | --loca | --loc | --lo) |
| 470 | ac_prev=localstatedir ;; |
| 471 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 472 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 473 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 474 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 475 | |
| 476 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 477 | ac_prev=mandir ;; |
| 478 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 479 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 480 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 481 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 482 | # Obsolete; use --without-fp. |
| 483 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 484 | |
| 485 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 486 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 487 | no_create=yes ;; |
| 488 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 489 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 490 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 491 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 492 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 493 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 494 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 495 | | --oldin | --oldi | --old | --ol | --o) |
| 496 | ac_prev=oldincludedir ;; |
| 497 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 498 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 499 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 500 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 501 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 502 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 503 | ac_prev=prefix ;; |
| 504 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 505 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 506 | |
| 507 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 508 | | --program-pre | --program-pr | --program-p) |
| 509 | ac_prev=program_prefix ;; |
| 510 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 511 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 512 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 513 | |
| 514 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 515 | | --program-suf | --program-su | --program-s) |
| 516 | ac_prev=program_suffix ;; |
| 517 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 518 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 519 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 520 | |
| 521 | -program-transform-name | --program-transform-name \ |
| 522 | | --program-transform-nam | --program-transform-na \ |
| 523 | | --program-transform-n | --program-transform- \ |
| 524 | | --program-transform | --program-transfor \ |
| 525 | | --program-transfo | --program-transf \ |
| 526 | | --program-trans | --program-tran \ |
| 527 | | --progr-tra | --program-tr | --program-t) |
| 528 | ac_prev=program_transform_name ;; |
| 529 | -program-transform-name=* | --program-transform-name=* \ |
| 530 | | --program-transform-nam=* | --program-transform-na=* \ |
| 531 | | --program-transform-n=* | --program-transform-=* \ |
| 532 | | --program-transform=* | --program-transfor=* \ |
| 533 | | --program-transfo=* | --program-transf=* \ |
| 534 | | --program-trans=* | --program-tran=* \ |
| 535 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 536 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 537 | |
| 538 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 539 | | -silent | --silent | --silen | --sile | --sil) |
| 540 | silent=yes ;; |
| 541 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 542 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 543 | ac_prev=sbindir ;; |
| 544 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 545 | | --sbi=* | --sb=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 546 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 547 | |
| 548 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 549 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 550 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 551 | | --sha | --sh) |
| 552 | ac_prev=sharedstatedir ;; |
| 553 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 554 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 555 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 556 | | --sha=* | --sh=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 557 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 558 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 559 | -site | --site | --sit) |
| 560 | ac_prev=site ;; |
| 561 | -site=* | --site=* | --sit=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 562 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 563 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 564 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 565 | ac_prev=srcdir ;; |
| 566 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 567 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 568 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 569 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 570 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 571 | ac_prev=sysconfdir ;; |
| 572 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 573 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 574 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 575 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 576 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 577 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 578 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 579 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 580 | |
| 581 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 582 | verbose=yes ;; |
| 583 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 584 | -version | --version | --versio | --versi | --vers | -V) |
| 585 | ac_init_version=: ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 586 | |
| 587 | -with-* | --with-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 588 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 589 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 590 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 591 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 592 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 593 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 594 | case $ac_option in |
| 595 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 596 | *) ac_optarg=yes ;; |
| 597 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 598 | eval "with_$ac_package='$ac_optarg'" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 599 | |
| 600 | -without-* | --without-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 601 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 602 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 603 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 604 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 605 | { (exit 1); exit 1; }; } |
| 606 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 607 | eval "with_$ac_package=no" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 608 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 609 | --x) |
| 610 | # Obsolete; use --with-x. |
| 611 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 612 | |
| 613 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 614 | | --x-incl | --x-inc | --x-in | --x-i) |
| 615 | ac_prev=x_includes ;; |
| 616 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 617 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 618 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 619 | |
| 620 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 621 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 622 | ac_prev=x_libraries ;; |
| 623 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 624 | | --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] | 625 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 626 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 627 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 628 | Try \`$0 --help' for more information." >&2 |
| 629 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 630 | ;; |
| 631 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 632 | *=*) |
| 633 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 634 | # Reject names that are not valid shell variable names. |
| 635 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 636 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 637 | { (exit 1); exit 1; }; } |
| 638 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 639 | eval "$ac_envvar='$ac_optarg'" |
| 640 | export $ac_envvar ;; |
| 641 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 642 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 643 | # FIXME: should be removed in autoconf 3.0. |
| 644 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 645 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 646 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 647 | : ${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] | 648 | ;; |
| 649 | |
| 650 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 651 | done |
| 652 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 653 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 654 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 655 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 656 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 657 | fi |
| 658 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 659 | # Be sure to have absolute paths. |
| 660 | for ac_var in exec_prefix prefix |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 661 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 662 | eval ac_val=$`echo $ac_var` |
| 663 | case $ac_val in |
| 664 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 665 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 666 | { (exit 1); exit 1; }; };; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 667 | esac |
| 668 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 669 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 670 | # Be sure to have absolute paths. |
| 671 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 672 | localstatedir libdir includedir oldincludedir infodir mandir |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 673 | do |
| 674 | eval ac_val=$`echo $ac_var` |
| 675 | case $ac_val in |
| 676 | [\\/$]* | ?:[\\/]* ) ;; |
| 677 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 678 | { (exit 1); exit 1; }; };; |
| 679 | esac |
| 680 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 681 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 682 | # There might be people who depend on the old broken behavior: `$host' |
| 683 | # used to hold the argument of --host etc. |
| 684 | # FIXME: To remove some day. |
| 685 | build=$build_alias |
| 686 | host=$host_alias |
| 687 | target=$target_alias |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 688 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 689 | # FIXME: To remove some day. |
| 690 | if test "x$host_alias" != x; then |
| 691 | if test "x$build_alias" = x; then |
| 692 | cross_compiling=maybe |
| 693 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 694 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 695 | elif test "x$build_alias" != "x$host_alias"; then |
| 696 | cross_compiling=yes |
| 697 | fi |
| 698 | fi |
| 699 | |
| 700 | ac_tool_prefix= |
| 701 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 702 | |
| 703 | test "$silent" = yes && exec 6>/dev/null |
| 704 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 705 | |
| 706 | # Find the source files, if location was not specified. |
| 707 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 708 | ac_srcdir_defaulted=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 709 | # Try the directory containing this script, then its parent. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 710 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 711 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 712 | X"$0" : 'X\(//\)[^/]' \| \ |
| 713 | X"$0" : 'X\(//\)$' \| \ |
| 714 | X"$0" : 'X\(/\)' \| \ |
| 715 | . : '\(.\)' 2>/dev/null || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 716 | echo X"$0" | |
| 717 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 718 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 719 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 720 | /^X\(\/\).*/{ s//\1/; q; } |
| 721 | s/.*/./; q'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 722 | srcdir=$ac_confdir |
| 723 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 724 | srcdir=.. |
| 725 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 726 | else |
| 727 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 728 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 729 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 730 | if test "$ac_srcdir_defaulted" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 731 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 732 | { (exit 1); exit 1; }; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 733 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 735 | { (exit 1); exit 1; }; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 736 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 737 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 738 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 739 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 740 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 741 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 742 | ac_env_build_alias_set=${build_alias+set} |
| 743 | ac_env_build_alias_value=$build_alias |
| 744 | ac_cv_env_build_alias_set=${build_alias+set} |
| 745 | ac_cv_env_build_alias_value=$build_alias |
| 746 | ac_env_host_alias_set=${host_alias+set} |
| 747 | ac_env_host_alias_value=$host_alias |
| 748 | ac_cv_env_host_alias_set=${host_alias+set} |
| 749 | ac_cv_env_host_alias_value=$host_alias |
| 750 | ac_env_target_alias_set=${target_alias+set} |
| 751 | ac_env_target_alias_value=$target_alias |
| 752 | ac_cv_env_target_alias_set=${target_alias+set} |
| 753 | ac_cv_env_target_alias_value=$target_alias |
| 754 | ac_env_CC_set=${CC+set} |
| 755 | ac_env_CC_value=$CC |
| 756 | ac_cv_env_CC_set=${CC+set} |
| 757 | ac_cv_env_CC_value=$CC |
| 758 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 759 | ac_env_CFLAGS_value=$CFLAGS |
| 760 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 761 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 762 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 763 | ac_env_LDFLAGS_value=$LDFLAGS |
| 764 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 765 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 766 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 767 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 768 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 769 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 770 | ac_env_CPP_set=${CPP+set} |
| 771 | ac_env_CPP_value=$CPP |
| 772 | ac_cv_env_CPP_set=${CPP+set} |
| 773 | ac_cv_env_CPP_value=$CPP |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 774 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 775 | # |
| 776 | # Report the --help message. |
| 777 | # |
| 778 | if test "$ac_init_help" = "long"; then |
| 779 | # Omit some internal or obsolete options to make the list less imposing. |
| 780 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 781 | cat <<_ACEOF |
Fred Drake | 9bd4462 | 2003-07-30 17:39:48 +0000 | [diff] [blame] | 782 | \`configure' configures python 2.4 to adapt to many kinds of systems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 783 | |
| 784 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 785 | |
| 786 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 787 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 788 | |
| 789 | Defaults for the options are specified in brackets. |
| 790 | |
| 791 | Configuration: |
| 792 | -h, --help display this help and exit |
| 793 | --help=short display options specific to this package |
| 794 | --help=recursive display the short help of all the included packages |
| 795 | -V, --version display version information and exit |
| 796 | -q, --quiet, --silent do not print \`checking...' messages |
| 797 | --cache-file=FILE cache test results in FILE [disabled] |
| 798 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 799 | -n, --no-create do not create output files |
| 800 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 801 | |
| 802 | _ACEOF |
| 803 | |
| 804 | cat <<_ACEOF |
| 805 | Installation directories: |
| 806 | --prefix=PREFIX install architecture-independent files in PREFIX |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 807 | [$ac_default_prefix] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 808 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 809 | [PREFIX] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 810 | |
| 811 | By default, \`make install' will install all the files in |
| 812 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 813 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 814 | for instance \`--prefix=\$HOME'. |
| 815 | |
| 816 | For better control, use the options below. |
| 817 | |
| 818 | Fine tuning of the installation directories: |
| 819 | --bindir=DIR user executables [EPREFIX/bin] |
| 820 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 821 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 822 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 823 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 824 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 825 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 826 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 827 | --includedir=DIR C header files [PREFIX/include] |
| 828 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 829 | --infodir=DIR info documentation [PREFIX/info] |
| 830 | --mandir=DIR man documentation [PREFIX/man] |
| 831 | _ACEOF |
| 832 | |
| 833 | cat <<\_ACEOF |
| 834 | _ACEOF |
| 835 | fi |
| 836 | |
| 837 | if test -n "$ac_init_help"; then |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 838 | case $ac_init_help in |
Fred Drake | 9bd4462 | 2003-07-30 17:39:48 +0000 | [diff] [blame] | 839 | short | recursive ) echo "Configuration of python 2.4:";; |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 840 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 841 | cat <<\_ACEOF |
| 842 | |
| 843 | Optional Features: |
| 844 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 845 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 846 | --enable-framework[=INSTALLDIR] |
| 847 | Build (MacOSX|Darwin) framework |
| 848 | --enable-shared disable/enable building shared python library |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 849 | --enable-profiling enable C-level code profiling |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 850 | --enable-toolbox-glue disable/enable MacOSX glue code for extensions |
| 851 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 852 | --disable-ipv6 Disable ipv6 support |
| 853 | --enable-unicode[=ucs[24]] |
| 854 | Enable Unicode strings (default is yes) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 855 | |
| 856 | Optional Packages: |
| 857 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 858 | --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] | 859 | --without-gcc never use gcc |
| 860 | --with-cxx=<compiler> enable C++ support |
| 861 | --with-suffix=.exe set executable suffix |
| 862 | --with-pydebug build with Py_DEBUG defined |
| 863 | --with-libs='lib1 ...' link against additional libs |
| 864 | --with-signal-module disable/enable signal module |
| 865 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries |
| 866 | --with(out)-threads[=DIRECTORY] |
| 867 | disable/enable thread support |
| 868 | --with(out)-thread[=DIRECTORY] |
| 869 | deprecated; use --with(out)-threads |
| 870 | --with-pth use GNU pth threading libraries |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 871 | --with(out)-doc-strings disable/enable documentation strings |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 872 | --with(out)-tsc enable/disable timestamp counter profile |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 873 | --with(out)-pymalloc disable/enable specialized mallocs |
| 874 | --with-wctype-functions use wctype.h functions |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 875 | --with-fpectl enable SIGFPE catching |
| 876 | --with-libm=STRING math library |
| 877 | --with-libc=STRING C library |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 878 | |
| 879 | Some influential environment variables: |
| 880 | CC C compiler command |
| 881 | CFLAGS C compiler flags |
| 882 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 883 | nonstandard directory <lib dir> |
| 884 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 885 | headers in a nonstandard directory <include dir> |
| 886 | CPP C preprocessor |
| 887 | |
| 888 | Use these variables to override the choices made by `configure' or to help |
| 889 | it to find libraries and programs with nonstandard names/locations. |
| 890 | |
| 891 | _ACEOF |
| 892 | fi |
| 893 | |
| 894 | if test "$ac_init_help" = "recursive"; then |
| 895 | # If there are subdirs, report their specific --help. |
| 896 | ac_popdir=`pwd` |
| 897 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 898 | test -d $ac_dir || continue |
| 899 | ac_builddir=. |
| 900 | |
| 901 | if test "$ac_dir" != .; then |
| 902 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 903 | # A "../" for each directory in $ac_dir_suffix. |
| 904 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 905 | else |
| 906 | ac_dir_suffix= ac_top_builddir= |
| 907 | fi |
| 908 | |
| 909 | case $srcdir in |
| 910 | .) # No --srcdir option. We are building in place. |
| 911 | ac_srcdir=. |
| 912 | if test -z "$ac_top_builddir"; then |
| 913 | ac_top_srcdir=. |
| 914 | else |
| 915 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 916 | fi ;; |
| 917 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 918 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 919 | ac_top_srcdir=$srcdir ;; |
| 920 | *) # Relative path. |
| 921 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 922 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 923 | esac |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 924 | |
| 925 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 926 | # the directories may not exist. |
| 927 | case `pwd` in |
| 928 | .) ac_abs_builddir="$ac_dir";; |
| 929 | *) |
| 930 | case "$ac_dir" in |
| 931 | .) ac_abs_builddir=`pwd`;; |
| 932 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 933 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 934 | esac;; |
| 935 | esac |
| 936 | case $ac_abs_builddir in |
| 937 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 938 | *) |
| 939 | case ${ac_top_builddir}. in |
| 940 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 941 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 942 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 943 | esac;; |
| 944 | esac |
| 945 | case $ac_abs_builddir in |
| 946 | .) ac_abs_srcdir=$ac_srcdir;; |
| 947 | *) |
| 948 | case $ac_srcdir in |
| 949 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 950 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 951 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 952 | esac;; |
| 953 | esac |
| 954 | case $ac_abs_builddir in |
| 955 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 956 | *) |
| 957 | case $ac_top_srcdir in |
| 958 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 959 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 960 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 961 | esac;; |
| 962 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 963 | |
| 964 | cd $ac_dir |
| 965 | # Check for guested configure; otherwise get Cygnus style configure. |
| 966 | if test -f $ac_srcdir/configure.gnu; then |
| 967 | echo |
| 968 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 969 | elif test -f $ac_srcdir/configure; then |
| 970 | echo |
| 971 | $SHELL $ac_srcdir/configure --help=recursive |
| 972 | elif test -f $ac_srcdir/configure.ac || |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 973 | test -f $ac_srcdir/configure.in; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 974 | echo |
| 975 | $ac_configure --help |
| 976 | else |
| 977 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 978 | fi |
| 979 | cd $ac_popdir |
| 980 | done |
| 981 | fi |
| 982 | |
| 983 | test -n "$ac_init_help" && exit 0 |
| 984 | if $ac_init_version; then |
| 985 | cat <<\_ACEOF |
Fred Drake | 9bd4462 | 2003-07-30 17:39:48 +0000 | [diff] [blame] | 986 | python configure 2.4 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 987 | generated by GNU Autoconf 2.59 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 988 | |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 989 | Copyright (C) 2003 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 990 | This configure script is free software; the Free Software Foundation |
| 991 | gives unlimited permission to copy, distribute and modify it. |
| 992 | _ACEOF |
| 993 | exit 0 |
| 994 | fi |
| 995 | exec 5>config.log |
| 996 | cat >&5 <<_ACEOF |
| 997 | This file contains any messages produced by compilers while |
| 998 | running configure, to aid debugging if configure makes a mistake. |
| 999 | |
Fred Drake | 9bd4462 | 2003-07-30 17:39:48 +0000 | [diff] [blame] | 1000 | It was created by python $as_me 2.4, which was |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1001 | generated by GNU Autoconf 2.59. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1002 | |
| 1003 | $ $0 $@ |
| 1004 | |
| 1005 | _ACEOF |
| 1006 | { |
| 1007 | cat <<_ASUNAME |
| 1008 | ## --------- ## |
| 1009 | ## Platform. ## |
| 1010 | ## --------- ## |
| 1011 | |
| 1012 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1013 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1014 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1015 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1016 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1017 | |
| 1018 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1019 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1020 | |
| 1021 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1022 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1023 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1024 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1025 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1026 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1027 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1028 | |
| 1029 | _ASUNAME |
| 1030 | |
| 1031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1032 | for as_dir in $PATH |
| 1033 | do |
| 1034 | IFS=$as_save_IFS |
| 1035 | test -z "$as_dir" && as_dir=. |
| 1036 | echo "PATH: $as_dir" |
| 1037 | done |
| 1038 | |
| 1039 | } >&5 |
| 1040 | |
| 1041 | cat >&5 <<_ACEOF |
| 1042 | |
| 1043 | |
| 1044 | ## ----------- ## |
| 1045 | ## Core tests. ## |
| 1046 | ## ----------- ## |
| 1047 | |
| 1048 | _ACEOF |
| 1049 | |
| 1050 | |
| 1051 | # Keep a trace of the command line. |
| 1052 | # Strip out --no-create and --no-recursion so they do not pile up. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1053 | # Strip out --silent because we don't want to record it for future runs. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1054 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1055 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1056 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1057 | ac_configure_args0= |
| 1058 | ac_configure_args1= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1059 | ac_sep= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1060 | ac_must_keep_next=false |
| 1061 | for ac_pass in 1 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1062 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1063 | for ac_arg |
| 1064 | do |
| 1065 | case $ac_arg in |
| 1066 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1067 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1068 | | -silent | --silent | --silen | --sile | --sil) |
| 1069 | continue ;; |
| 1070 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1071 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1072 | esac |
| 1073 | case $ac_pass in |
| 1074 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1075 | 2) |
| 1076 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1077 | if test $ac_must_keep_next = true; then |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1078 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1079 | else |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1080 | case $ac_arg in |
| 1081 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1082 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1083 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1084 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1085 | case "$ac_configure_args0 " in |
| 1086 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1087 | esac |
| 1088 | ;; |
| 1089 | -* ) ac_must_keep_next=true ;; |
| 1090 | esac |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1091 | fi |
| 1092 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1093 | # Get rid of the leading space. |
| 1094 | ac_sep=" " |
| 1095 | ;; |
| 1096 | esac |
| 1097 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1098 | done |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1099 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1100 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1101 | |
| 1102 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1103 | # config.log. We remove comments because anyway the quotes in there |
| 1104 | # would cause problems or look ugly. |
| 1105 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1106 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1107 | trap 'exit_status=$? |
| 1108 | # Save into config.log some information that might help in debugging. |
| 1109 | { |
| 1110 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1111 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1112 | cat <<\_ASBOX |
| 1113 | ## ---------------- ## |
| 1114 | ## Cache variables. ## |
| 1115 | ## ---------------- ## |
| 1116 | _ASBOX |
| 1117 | echo |
| 1118 | # The following way of writing the cache mishandles newlines in values, |
| 1119 | { |
| 1120 | (set) 2>&1 | |
| 1121 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1122 | *ac_space=\ *) |
| 1123 | sed -n \ |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1124 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1125 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1126 | ;; |
| 1127 | *) |
| 1128 | sed -n \ |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1129 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1130 | ;; |
| 1131 | esac; |
| 1132 | } |
| 1133 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1134 | |
| 1135 | cat <<\_ASBOX |
| 1136 | ## ----------------- ## |
| 1137 | ## Output variables. ## |
| 1138 | ## ----------------- ## |
| 1139 | _ASBOX |
| 1140 | echo |
| 1141 | for ac_var in $ac_subst_vars |
| 1142 | do |
| 1143 | eval ac_val=$`echo $ac_var` |
| 1144 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1145 | done | sort |
| 1146 | echo |
| 1147 | |
| 1148 | if test -n "$ac_subst_files"; then |
| 1149 | cat <<\_ASBOX |
| 1150 | ## ------------- ## |
| 1151 | ## Output files. ## |
| 1152 | ## ------------- ## |
| 1153 | _ASBOX |
| 1154 | echo |
| 1155 | for ac_var in $ac_subst_files |
| 1156 | do |
| 1157 | eval ac_val=$`echo $ac_var` |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1158 | echo "$ac_var='"'"'$ac_val'"'"'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1159 | done | sort |
| 1160 | echo |
| 1161 | fi |
| 1162 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1163 | if test -s confdefs.h; then |
| 1164 | cat <<\_ASBOX |
| 1165 | ## ----------- ## |
| 1166 | ## confdefs.h. ## |
| 1167 | ## ----------- ## |
| 1168 | _ASBOX |
| 1169 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1170 | sed "/^$/d" confdefs.h | sort |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1171 | echo |
| 1172 | fi |
| 1173 | test "$ac_signal" != 0 && |
| 1174 | echo "$as_me: caught signal $ac_signal" |
| 1175 | echo "$as_me: exit $exit_status" |
| 1176 | } >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1177 | rm -f core *.core && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1178 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1179 | exit $exit_status |
| 1180 | ' 0 |
| 1181 | for ac_signal in 1 2 13 15; do |
| 1182 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1183 | done |
| 1184 | ac_signal=0 |
| 1185 | |
| 1186 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1187 | rm -rf conftest* confdefs.h |
| 1188 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1189 | echo >confdefs.h |
| 1190 | |
| 1191 | # Predefined preprocessor variables. |
| 1192 | |
| 1193 | cat >>confdefs.h <<_ACEOF |
| 1194 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1195 | _ACEOF |
| 1196 | |
| 1197 | |
| 1198 | cat >>confdefs.h <<_ACEOF |
| 1199 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1200 | _ACEOF |
| 1201 | |
| 1202 | |
| 1203 | cat >>confdefs.h <<_ACEOF |
| 1204 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1205 | _ACEOF |
| 1206 | |
| 1207 | |
| 1208 | cat >>confdefs.h <<_ACEOF |
| 1209 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1210 | _ACEOF |
| 1211 | |
| 1212 | |
| 1213 | cat >>confdefs.h <<_ACEOF |
| 1214 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1215 | _ACEOF |
| 1216 | |
| 1217 | |
| 1218 | # 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] | 1219 | # Prefer explicitly selected file to automatically selected ones. |
| 1220 | if test -z "$CONFIG_SITE"; then |
| 1221 | if test "x$prefix" != xNONE; then |
| 1222 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1223 | else |
| 1224 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1225 | fi |
| 1226 | fi |
| 1227 | for ac_site_file in $CONFIG_SITE; do |
| 1228 | if test -r "$ac_site_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1229 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1230 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1231 | sed 's/^/| /' "$ac_site_file" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1232 | . "$ac_site_file" |
| 1233 | fi |
| 1234 | done |
| 1235 | |
| 1236 | if test -r "$cache_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1237 | # Some versions of bash will fail to source /dev/null (special |
| 1238 | # files actually), so we avoid doing that. |
| 1239 | if test -f "$cache_file"; then |
| 1240 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1241 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1242 | case $cache_file in |
| 1243 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1244 | *) . ./$cache_file;; |
| 1245 | esac |
| 1246 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1247 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1248 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1249 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1250 | >$cache_file |
| 1251 | fi |
| 1252 | |
| 1253 | # Check that the precious variables saved in the cache have kept the same |
| 1254 | # value. |
| 1255 | ac_cache_corrupted=false |
| 1256 | for ac_var in `(set) 2>&1 | |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1257 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1258 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1259 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1260 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1261 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1262 | case $ac_old_set,$ac_new_set in |
| 1263 | set,) |
| 1264 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1265 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1266 | ac_cache_corrupted=: ;; |
| 1267 | ,set) |
| 1268 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1269 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1270 | ac_cache_corrupted=: ;; |
| 1271 | ,);; |
| 1272 | *) |
| 1273 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1274 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1275 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1276 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1277 | echo "$as_me: former value: $ac_old_val" >&2;} |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1278 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1279 | echo "$as_me: current value: $ac_new_val" >&2;} |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1280 | ac_cache_corrupted=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1281 | fi;; |
| 1282 | esac |
| 1283 | # Pass precious variables to config.status. |
| 1284 | if test "$ac_new_set" = set; then |
| 1285 | case $ac_new_val in |
| 1286 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1287 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1288 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1289 | esac |
| 1290 | case " $ac_configure_args " in |
| 1291 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1292 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1293 | esac |
| 1294 | fi |
| 1295 | done |
| 1296 | if $ac_cache_corrupted; then |
| 1297 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1298 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1299 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1300 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1301 | { (exit 1); exit 1; }; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1302 | fi |
| 1303 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1304 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1305 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1306 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1307 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1308 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1309 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1310 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1311 | |
| 1312 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1313 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1314 | |
| 1315 | |
| 1316 | |
| 1317 | |
| 1318 | |
| 1319 | |
| 1320 | |
| 1321 | |
| 1322 | |
| 1323 | |
| 1324 | |
| 1325 | |
| 1326 | |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1327 | |
| 1328 | |
| 1329 | |
| 1330 | |
| 1331 | |
| 1332 | |
| 1333 | |
| 1334 | |
| 1335 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1336 | |
| 1337 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1338 | |
| 1339 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1340 | |
| 1341 | |
| 1342 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1343 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1344 | |
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 1345 | # We don't use PACKAGE_ variables, and they cause conflicts |
| 1346 | # with other autoconf-based packages that include Python.h |
| 1347 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| 1348 | rm confdefs.h |
| 1349 | mv confdefs.h.new confdefs.h |
| 1350 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1351 | |
Fred Drake | 9bd4462 | 2003-07-30 17:39:48 +0000 | [diff] [blame] | 1352 | VERSION=2.4 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1353 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 1354 | |
| 1355 | SOVERSION=1.0 |
| 1356 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1357 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 1358 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 1359 | |
| 1360 | cat >>confdefs.h <<\_ACEOF |
| 1361 | #define _GNU_SOURCE 1 |
| 1362 | _ACEOF |
| 1363 | |
| 1364 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 1365 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1366 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 1367 | # them. |
| 1368 | |
| 1369 | cat >>confdefs.h <<\_ACEOF |
| 1370 | #define _NETBSD_SOURCE 1 |
| 1371 | _ACEOF |
| 1372 | |
| 1373 | |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 1374 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1375 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| 1376 | # them. |
| 1377 | |
| 1378 | cat >>confdefs.h <<\_ACEOF |
| 1379 | #define __BSD_VISIBLE 1 |
| 1380 | _ACEOF |
| 1381 | |
| 1382 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1383 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1384 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 1385 | # Arguments passed to configure. |
| 1386 | |
| 1387 | CONFIG_ARGS="$ac_configure_args" |
| 1388 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1389 | # Check whether --enable-framework or --disable-framework was given. |
| 1390 | if test "${enable_framework+set}" = set; then |
| 1391 | enableval="$enable_framework" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1392 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1393 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1394 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1395 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1396 | esac |
| 1397 | case $enableval in |
| 1398 | no) |
| 1399 | PYTHONFRAMEWORK= |
| 1400 | PYTHONFRAMEWORKDIR=no-framework |
| 1401 | PYTHONFRAMEWORKPREFIX= |
| 1402 | PYTHONFRAMEWORKINSTALLDIR= |
| 1403 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1404 | ;; |
| 1405 | *) |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1406 | PYTHONFRAMEWORK=Python |
| 1407 | PYTHONFRAMEWORKDIR=Python.framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1408 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1409 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
| 1410 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1411 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1412 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1413 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1414 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1415 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1416 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1417 | PYTHONFRAMEWORKPREFIX= |
| 1418 | PYTHONFRAMEWORKINSTALLDIR= |
| 1419 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1420 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1421 | fi; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1422 | |
| 1423 | |
| 1424 | |
| 1425 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1426 | |
| 1427 | ##AC_ARG_WITH(dyld, |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1428 | ## AC_HELP_STRING(--with-dyld, |
| 1429 | ## Use (OpenStep|Rhapsody) dynamic linker)) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1430 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1431 | # Set name for machine-dependent library files |
| 1432 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1433 | echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 1434 | echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1435 | if test -z "$MACHDEP" |
| 1436 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1437 | ac_sys_system=`uname -s` |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 1438 | if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \ |
| 1439 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1440 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1441 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1442 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1443 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1444 | ac_md_system=`echo $ac_sys_system | |
| 1445 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 1446 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 1447 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1448 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1449 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 1450 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 1451 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 1452 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 1453 | atheos*) MACHDEP="atheos";; |
Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 1454 | irix646) MACHDEP="irix6";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1455 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1456 | esac |
| 1457 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1458 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1459 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 1460 | # disable features if it is defined, without any means to access these |
| 1461 | # features as extensions. For these systems, we skip the definition of |
| 1462 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 1463 | # some feature, make sure there is no alternative way to access this |
| 1464 | # feature. Also, when using wildcards, make sure you have verified the |
| 1465 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 1466 | # wildcard, and that the wildcard does not include future systems |
| 1467 | # (which may remove their limitations). |
| 1468 | case $ac_sys_system/$ac_sys_release in |
| 1469 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 1470 | # even though select is a POSIX function. Reported by J. Ribbens. |
Martin v. Löwis | 76bafc6 | 2003-10-03 13:47:44 +0000 | [diff] [blame] | 1471 | # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. |
| 1472 | OpenBSD/2.* | OpenBSD/3.[01234]) |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1473 | define_xopen_source=no;; |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 1474 | # On Solaris 2.6, sys/wait.h is inconsistent in the usage |
| 1475 | # of union __?sigval. Reported by Stuart Bishop. |
| 1476 | SunOS/5.6) |
| 1477 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 1478 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| 1479 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 1480 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 1481 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 1482 | define_xopen_source=no;; |
| 1483 | # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE, |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 1484 | # but used in struct sockaddr.sa_family. Reported by Tim Rice. |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 1485 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 1486 | define_xopen_source=no;; |
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 1487 | # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that |
| 1488 | # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently, |
| 1489 | # this is fixed in 10.3, which identifies itself as Darwin/7.* |
| 1490 | # This should hopefully be fixed in FreeBSD 4.9 |
| 1491 | FreeBSD/4.8* | Darwin/6* ) |
| 1492 | define_xopen_source=no;; |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 1493 | # On AIX 4, mbstate_t is defined only when _XOPEN_SOURCE == 500 but used in |
| 1494 | # wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined or |
| 1495 | # has another value. By not (re)defining it, the defaults come in place. |
| 1496 | AIX/4) |
| 1497 | define_xopen_source=no;; |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1498 | esac |
| 1499 | |
| 1500 | if test $define_xopen_source = yes |
| 1501 | then |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1502 | |
| 1503 | cat >>confdefs.h <<\_ACEOF |
| 1504 | #define _XOPEN_SOURCE 600 |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1505 | _ACEOF |
| 1506 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1507 | |
| 1508 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 1509 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 1510 | # several APIs are not declared. Since this is also needed in some |
| 1511 | # cases for HP-UX, we define it globally. |
| 1512 | |
| 1513 | |
| 1514 | cat >>confdefs.h <<\_ACEOF |
| 1515 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 1516 | _ACEOF |
| 1517 | |
| 1518 | |
| 1519 | cat >>confdefs.h <<\_ACEOF |
| 1520 | #define _POSIX_C_SOURCE 200112L |
| 1521 | _ACEOF |
| 1522 | |
| 1523 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1524 | fi |
| 1525 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1526 | # |
| 1527 | # SGI compilers allow the specification of the both the ABI and the |
| 1528 | # ISA on the command line. Depending on the values of these switches, |
| 1529 | # different and often incompatable code will be generated. |
| 1530 | # |
| 1531 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 1532 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 1533 | # variable is also adjusted. |
| 1534 | # |
| 1535 | |
| 1536 | if test ! -z "$SGI_ABI" |
| 1537 | then |
| 1538 | CC="cc $SGI_ABI" |
| 1539 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 1540 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 1541 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1542 | echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 1543 | echo "${ECHO_T}$MACHDEP" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1544 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1545 | # And add extra plat-mac for darwin |
| 1546 | |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 1547 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1548 | echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5 |
| 1549 | echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6 |
| 1550 | if test -z "$EXTRAPLATDIR" |
| 1551 | then |
| 1552 | case $MACHDEP in |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 1553 | darwin) |
| 1554 | EXTRAPLATDIR="\$(PLATMACDIRS)" |
| 1555 | EXTRAMACHDEPPATH="\$(PLATMACPATH)" |
| 1556 | ;; |
| 1557 | *) |
| 1558 | EXTRAPLATDIR="" |
| 1559 | EXTRAMACHDEPPATH="" |
| 1560 | ;; |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1561 | esac |
| 1562 | fi |
| 1563 | echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5 |
| 1564 | echo "${ECHO_T}$EXTRAPLATDIR" >&6 |
| 1565 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 1566 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
| 1567 | # it may influence the way we can build extensions, so distutils |
| 1568 | # needs to check it |
| 1569 | |
| 1570 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
| 1571 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1572 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1573 | |
| 1574 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 1575 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 1576 | # just to get things to compile and link. Users are free to override OPT |
| 1577 | # when running configure or make. The build should not break if they do. |
| 1578 | # BASECFLAGS should generally not be messed with, however. |
| 1579 | |
| 1580 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 1581 | # on that fiddles with OPT and BASECFLAGS? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1582 | echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 1583 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6 |
| 1584 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1585 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1586 | if test "${with_gcc+set}" = set; then |
| 1587 | withval="$with_gcc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1588 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1589 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1590 | no) CC=cc |
| 1591 | without_gcc=yes;; |
| 1592 | yes) CC=gcc |
| 1593 | without_gcc=no;; |
| 1594 | *) CC=$withval |
| 1595 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1596 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1597 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1598 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1599 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1600 | AIX*) CC=cc_r |
| 1601 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1602 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1603 | case $BE_HOST_CPU in |
| 1604 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1605 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1606 | without_gcc=yes |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1607 | BASECFLAGS="$BASECFLAGS -export pragma" |
| 1608 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1609 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1610 | ;; |
| 1611 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1612 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1613 | without_gcc=no |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1614 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1615 | ;; |
| 1616 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1617 | { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| 1618 | echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;} |
| 1619 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1620 | ;; |
| 1621 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1622 | AR="\$(srcdir)/Modules/ar_beos" |
| 1623 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1624 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1625 | Monterey*) |
| 1626 | RANLIB=: |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1627 | without_gcc=;; |
| 1628 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1629 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1630 | fi; |
| 1631 | echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 1632 | echo "${ECHO_T}$without_gcc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1633 | |
| 1634 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1635 | |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1636 | MAINOBJ=python.o |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1637 | echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5 |
| 1638 | echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6 |
| 1639 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1640 | # Check whether --with-cxx or --without-cxx was given. |
| 1641 | if test "${with_cxx+set}" = set; then |
| 1642 | withval="$with_cxx" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1643 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1644 | check_cxx=no |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1645 | case $withval in |
| 1646 | no) CXX= |
| 1647 | with_cxx=no;; |
| 1648 | *) CXX=$withval |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1649 | MAINOBJ=ccpython.o |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1650 | with_cxx=$withval;; |
| 1651 | esac |
| 1652 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1653 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1654 | with_cxx=no |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1655 | check_cxx=yes |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1656 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1657 | fi; |
| 1658 | echo "$as_me:$LINENO: result: $with_cxx" >&5 |
| 1659 | echo "${ECHO_T}$with_cxx" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1660 | |
| 1661 | if test "$with_cxx" = "yes" |
| 1662 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1663 | { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5 |
| 1664 | echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;} |
| 1665 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1666 | fi |
| 1667 | |
| 1668 | |
| 1669 | |
| 1670 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1671 | if test "$check_cxx" = "yes" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1672 | then |
| 1673 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 1674 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1675 | # 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] | 1676 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1677 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1678 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1679 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 1680 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1681 | else |
| 1682 | if test -n "$CXX"; then |
| 1683 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 1684 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1686 | for as_dir in $PATH |
| 1687 | do |
| 1688 | IFS=$as_save_IFS |
| 1689 | test -z "$as_dir" && as_dir=. |
| 1690 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1691 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1692 | ac_cv_prog_CXX="$ac_prog" |
| 1693 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1694 | break 2 |
| 1695 | fi |
| 1696 | done |
| 1697 | done |
| 1698 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1699 | fi |
| 1700 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1701 | CXX=$ac_cv_prog_CXX |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1702 | if test -n "$CXX"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1703 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 1704 | echo "${ECHO_T}$CXX" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1705 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1706 | echo "$as_me:$LINENO: result: no" >&5 |
| 1707 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1708 | fi |
| 1709 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1710 | test -n "$CXX" && break |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1711 | done |
| 1712 | test -n "$CXX" || CXX="notfound" |
| 1713 | |
| 1714 | if test "$CXX" = "notfound" |
| 1715 | then |
| 1716 | CXX= |
| 1717 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1718 | ac_ext=cc |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1719 | ac_cpp='$CXXCPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1720 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1721 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1722 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 1723 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1724 | /* confdefs.h. */ |
| 1725 | _ACEOF |
| 1726 | cat confdefs.h >>conftest.$ac_ext |
| 1727 | cat >>conftest.$ac_ext <<_ACEOF |
| 1728 | /* end confdefs.h. */ |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1729 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1730 | int |
| 1731 | main () |
| 1732 | { |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1733 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1734 | ; |
| 1735 | return 0; |
| 1736 | } |
| 1737 | _ACEOF |
| 1738 | ac_clean_files_save=$ac_clean_files |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1739 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1740 | # Try to create an executable without -o first, disregard a.out. |
| 1741 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1742 | # of exeext. |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1743 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
| 1744 | echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1745 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1746 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1747 | (eval $ac_link_default) 2>&5 |
| 1748 | ac_status=$? |
| 1749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1750 | (exit $ac_status); }; then |
| 1751 | # Find the output, starting from the most likely. This scheme is |
| 1752 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1753 | # resort. |
| 1754 | |
| 1755 | # Be careful to initialize this variable, since it used to be cached. |
| 1756 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1757 | ac_cv_exeext= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1758 | # b.out is created by i960 compilers. |
| 1759 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 1760 | do |
| 1761 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1762 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1763 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1764 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1765 | conftest.$ac_ext ) |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1766 | # This is the source file. |
| 1767 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1768 | [ab].out ) |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1769 | # We found the default executable, but exeext='' is most |
| 1770 | # certainly right. |
| 1771 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1772 | *.* ) |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1773 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1774 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1775 | # but it would be cool to find out if it's true. Does anybody |
| 1776 | # maintain Libtool? --akim. |
| 1777 | export ac_cv_exeext |
| 1778 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1779 | * ) |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1780 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1781 | esac |
| 1782 | done |
| 1783 | else |
| 1784 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1785 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1786 | |
| 1787 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
| 1788 | See \`config.log' for more details." >&5 |
| 1789 | echo "$as_me: error: C++ compiler cannot create executables |
| 1790 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1791 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1792 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1793 | |
| 1794 | ac_exeext=$ac_cv_exeext |
| 1795 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1796 | echo "${ECHO_T}$ac_file" >&6 |
| 1797 | |
| 1798 | # Check the compiler produces executables we can run. If not, either |
| 1799 | # the compiler is broken, or we cross compile. |
| 1800 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
| 1801 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
| 1802 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1803 | # If not cross compiling, check that we can run a simple program. |
| 1804 | if test "$cross_compiling" != yes; then |
| 1805 | if { ac_try='./$ac_file' |
| 1806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1807 | (eval $ac_try) 2>&5 |
| 1808 | ac_status=$? |
| 1809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1810 | (exit $ac_status); }; }; then |
| 1811 | cross_compiling=no |
| 1812 | else |
| 1813 | if test "$cross_compiling" = maybe; then |
| 1814 | cross_compiling=yes |
| 1815 | else |
| 1816 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1817 | If you meant to cross compile, use \`--host'. |
| 1818 | See \`config.log' for more details." >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1819 | echo "$as_me: error: cannot run C++ compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1820 | If you meant to cross compile, use \`--host'. |
| 1821 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1822 | { (exit 1); exit 1; }; } |
| 1823 | fi |
| 1824 | fi |
| 1825 | fi |
| 1826 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1827 | echo "${ECHO_T}yes" >&6 |
| 1828 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1829 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1830 | ac_clean_files=$ac_clean_files_save |
| 1831 | # Check the compiler produces executables we can run. If not, either |
| 1832 | # the compiler is broken, or we cross compile. |
| 1833 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1834 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1835 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1836 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1837 | |
| 1838 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1839 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1840 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1841 | (eval $ac_link) 2>&5 |
| 1842 | ac_status=$? |
| 1843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1844 | (exit $ac_status); }; then |
| 1845 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1846 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1847 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1848 | # `rm'. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1849 | for ac_file in conftest.exe conftest conftest.*; do |
| 1850 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1851 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1852 | *.$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] | 1853 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1854 | export ac_cv_exeext |
| 1855 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1856 | * ) break;; |
| 1857 | esac |
| 1858 | done |
| 1859 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1860 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1861 | See \`config.log' for more details." >&5 |
| 1862 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 1863 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1864 | { (exit 1); exit 1; }; } |
| 1865 | fi |
| 1866 | |
| 1867 | rm -f conftest$ac_cv_exeext |
| 1868 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1869 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1870 | |
| 1871 | rm -f conftest.$ac_ext |
| 1872 | EXEEXT=$ac_cv_exeext |
| 1873 | ac_exeext=$EXEEXT |
| 1874 | |
| 1875 | ac_ext=c |
| 1876 | ac_cpp='$CPP $CPPFLAGS' |
| 1877 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1878 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1879 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1880 | |
| 1881 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1882 | |
| 1883 | fi |
| 1884 | fi |
| 1885 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1886 | # If the user switches compilers, we can't believe the cache |
| 1887 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 1888 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1889 | { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file |
| 1890 | (it is also a good idea to do 'make clean' before compiling)" >&5 |
| 1891 | echo "$as_me: error: cached CC is different -- throw away $cache_file |
| 1892 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 1893 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1894 | fi |
| 1895 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1896 | ac_ext=c |
| 1897 | ac_cpp='$CPP $CPPFLAGS' |
| 1898 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1899 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1900 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1901 | if test -n "$ac_tool_prefix"; then |
| 1902 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1903 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1904 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1905 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1906 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1907 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1908 | else |
| 1909 | if test -n "$CC"; then |
| 1910 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1911 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1912 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1913 | for as_dir in $PATH |
| 1914 | do |
| 1915 | IFS=$as_save_IFS |
| 1916 | test -z "$as_dir" && as_dir=. |
| 1917 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1918 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1919 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1920 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1921 | break 2 |
| 1922 | fi |
| 1923 | done |
| 1924 | done |
| 1925 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1926 | fi |
| 1927 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1928 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1929 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1930 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1931 | echo "${ECHO_T}$CC" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1932 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1933 | echo "$as_me:$LINENO: result: no" >&5 |
| 1934 | echo "${ECHO_T}no" >&6 |
| 1935 | fi |
| 1936 | |
| 1937 | fi |
| 1938 | if test -z "$ac_cv_prog_CC"; then |
| 1939 | ac_ct_CC=$CC |
| 1940 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1941 | set dummy gcc; ac_word=$2 |
| 1942 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1943 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1944 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1946 | else |
| 1947 | if test -n "$ac_ct_CC"; then |
| 1948 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1949 | else |
| 1950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1951 | for as_dir in $PATH |
| 1952 | do |
| 1953 | IFS=$as_save_IFS |
| 1954 | test -z "$as_dir" && as_dir=. |
| 1955 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1956 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1957 | ac_cv_prog_ac_ct_CC="gcc" |
| 1958 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1959 | break 2 |
| 1960 | fi |
| 1961 | done |
| 1962 | done |
| 1963 | |
| 1964 | fi |
| 1965 | fi |
| 1966 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1967 | if test -n "$ac_ct_CC"; then |
| 1968 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1969 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1970 | else |
| 1971 | echo "$as_me:$LINENO: result: no" >&5 |
| 1972 | echo "${ECHO_T}no" >&6 |
| 1973 | fi |
| 1974 | |
| 1975 | CC=$ac_ct_CC |
| 1976 | else |
| 1977 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1978 | fi |
| 1979 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1980 | if test -z "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1981 | if test -n "$ac_tool_prefix"; then |
| 1982 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1983 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1984 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1985 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1986 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1987 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1988 | else |
| 1989 | if test -n "$CC"; then |
| 1990 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1991 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1993 | for as_dir in $PATH |
| 1994 | do |
| 1995 | IFS=$as_save_IFS |
| 1996 | test -z "$as_dir" && as_dir=. |
| 1997 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1998 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1999 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2000 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2001 | break 2 |
| 2002 | fi |
| 2003 | done |
| 2004 | done |
| 2005 | |
| 2006 | fi |
| 2007 | fi |
| 2008 | CC=$ac_cv_prog_CC |
| 2009 | if test -n "$CC"; then |
| 2010 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2011 | echo "${ECHO_T}$CC" >&6 |
| 2012 | else |
| 2013 | echo "$as_me:$LINENO: result: no" >&5 |
| 2014 | echo "${ECHO_T}no" >&6 |
| 2015 | fi |
| 2016 | |
| 2017 | fi |
| 2018 | if test -z "$ac_cv_prog_CC"; then |
| 2019 | ac_ct_CC=$CC |
| 2020 | # Extract the first word of "cc", so it can be a program name with args. |
| 2021 | set dummy cc; ac_word=$2 |
| 2022 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2023 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2024 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2025 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2026 | else |
| 2027 | if test -n "$ac_ct_CC"; then |
| 2028 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2029 | else |
| 2030 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2031 | for as_dir in $PATH |
| 2032 | do |
| 2033 | IFS=$as_save_IFS |
| 2034 | test -z "$as_dir" && as_dir=. |
| 2035 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2036 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2037 | ac_cv_prog_ac_ct_CC="cc" |
| 2038 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2039 | break 2 |
| 2040 | fi |
| 2041 | done |
| 2042 | done |
| 2043 | |
| 2044 | fi |
| 2045 | fi |
| 2046 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2047 | if test -n "$ac_ct_CC"; then |
| 2048 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2049 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2050 | else |
| 2051 | echo "$as_me:$LINENO: result: no" >&5 |
| 2052 | echo "${ECHO_T}no" >&6 |
| 2053 | fi |
| 2054 | |
| 2055 | CC=$ac_ct_CC |
| 2056 | else |
| 2057 | CC="$ac_cv_prog_CC" |
| 2058 | fi |
| 2059 | |
| 2060 | fi |
| 2061 | if test -z "$CC"; then |
| 2062 | # Extract the first word of "cc", so it can be a program name with args. |
| 2063 | set dummy cc; ac_word=$2 |
| 2064 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2065 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2066 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2068 | else |
| 2069 | if test -n "$CC"; then |
| 2070 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2071 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2072 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2073 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2074 | for as_dir in $PATH |
| 2075 | do |
| 2076 | IFS=$as_save_IFS |
| 2077 | test -z "$as_dir" && as_dir=. |
| 2078 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2079 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2080 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2081 | ac_prog_rejected=yes |
| 2082 | continue |
| 2083 | fi |
| 2084 | ac_cv_prog_CC="cc" |
| 2085 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2086 | break 2 |
| 2087 | fi |
| 2088 | done |
| 2089 | done |
| 2090 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2091 | if test $ac_prog_rejected = yes; then |
| 2092 | # We found a bogon in the path, so make sure we never use it. |
| 2093 | set dummy $ac_cv_prog_CC |
| 2094 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2095 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2096 | # We chose a different compiler from the bogus one. |
| 2097 | # However, it has the same basename, so the bogon will be chosen |
| 2098 | # first if we set CC to just the basename; use the full file name. |
| 2099 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2100 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2101 | fi |
| 2102 | fi |
| 2103 | fi |
| 2104 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2105 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2106 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2107 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2108 | echo "${ECHO_T}$CC" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2109 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2110 | echo "$as_me:$LINENO: result: no" >&5 |
| 2111 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2112 | fi |
| 2113 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2114 | fi |
| 2115 | if test -z "$CC"; then |
| 2116 | if test -n "$ac_tool_prefix"; then |
| 2117 | for ac_prog in cl |
| 2118 | do |
| 2119 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2120 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2121 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2122 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2123 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2125 | else |
| 2126 | if test -n "$CC"; then |
| 2127 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2128 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2129 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2130 | for as_dir in $PATH |
| 2131 | do |
| 2132 | IFS=$as_save_IFS |
| 2133 | test -z "$as_dir" && as_dir=. |
| 2134 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2135 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2136 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2137 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2138 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2139 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2140 | done |
| 2141 | done |
| 2142 | |
| 2143 | fi |
| 2144 | fi |
| 2145 | CC=$ac_cv_prog_CC |
| 2146 | if test -n "$CC"; then |
| 2147 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2148 | echo "${ECHO_T}$CC" >&6 |
| 2149 | else |
| 2150 | echo "$as_me:$LINENO: result: no" >&5 |
| 2151 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2152 | fi |
| 2153 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2154 | test -n "$CC" && break |
| 2155 | done |
| 2156 | fi |
| 2157 | if test -z "$CC"; then |
| 2158 | ac_ct_CC=$CC |
| 2159 | for ac_prog in cl |
| 2160 | do |
| 2161 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2162 | set dummy $ac_prog; ac_word=$2 |
| 2163 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2164 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2165 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2167 | else |
| 2168 | if test -n "$ac_ct_CC"; then |
| 2169 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2170 | else |
| 2171 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2172 | for as_dir in $PATH |
| 2173 | do |
| 2174 | IFS=$as_save_IFS |
| 2175 | test -z "$as_dir" && as_dir=. |
| 2176 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2177 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2178 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2179 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2180 | break 2 |
| 2181 | fi |
| 2182 | done |
| 2183 | done |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2184 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2185 | fi |
| 2186 | fi |
| 2187 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2188 | if test -n "$ac_ct_CC"; then |
| 2189 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2190 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2191 | else |
| 2192 | echo "$as_me:$LINENO: result: no" >&5 |
| 2193 | echo "${ECHO_T}no" >&6 |
| 2194 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2195 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2196 | test -n "$ac_ct_CC" && break |
| 2197 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2198 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2199 | CC=$ac_ct_CC |
| 2200 | fi |
| 2201 | |
| 2202 | fi |
| 2203 | |
| 2204 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2205 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2206 | See \`config.log' for more details." >&5 |
| 2207 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2208 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2209 | { (exit 1); exit 1; }; } |
| 2210 | |
| 2211 | # Provide some information about the compiler. |
| 2212 | echo "$as_me:$LINENO:" \ |
| 2213 | "checking for C compiler version" >&5 |
| 2214 | ac_compiler=`set X $ac_compile; echo $2` |
| 2215 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2216 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2217 | ac_status=$? |
| 2218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2219 | (exit $ac_status); } |
| 2220 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2221 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2222 | ac_status=$? |
| 2223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2224 | (exit $ac_status); } |
| 2225 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2226 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2227 | ac_status=$? |
| 2228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2229 | (exit $ac_status); } |
| 2230 | |
| 2231 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2232 | /* confdefs.h. */ |
| 2233 | _ACEOF |
| 2234 | cat confdefs.h >>conftest.$ac_ext |
| 2235 | cat >>conftest.$ac_ext <<_ACEOF |
| 2236 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2237 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2238 | int |
| 2239 | main () |
| 2240 | { |
| 2241 | |
| 2242 | ; |
| 2243 | return 0; |
| 2244 | } |
| 2245 | _ACEOF |
| 2246 | ac_clean_files_save=$ac_clean_files |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2247 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2248 | # Try to create an executable without -o first, disregard a.out. |
| 2249 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2250 | # of exeext. |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 2251 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2252 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2253 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2254 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2255 | (eval $ac_link_default) 2>&5 |
| 2256 | ac_status=$? |
| 2257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2258 | (exit $ac_status); }; then |
| 2259 | # Find the output, starting from the most likely. This scheme is |
| 2260 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2261 | # resort. |
| 2262 | |
| 2263 | # Be careful to initialize this variable, since it used to be cached. |
| 2264 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2265 | ac_cv_exeext= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2266 | # b.out is created by i960 compilers. |
| 2267 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 2268 | do |
| 2269 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2270 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2271 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 2272 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2273 | conftest.$ac_ext ) |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 2274 | # This is the source file. |
| 2275 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2276 | [ab].out ) |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 2277 | # We found the default executable, but exeext='' is most |
| 2278 | # certainly right. |
| 2279 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2280 | *.* ) |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 2281 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2282 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 2283 | # but it would be cool to find out if it's true. Does anybody |
| 2284 | # maintain Libtool? --akim. |
| 2285 | export ac_cv_exeext |
| 2286 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2287 | * ) |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 2288 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2289 | esac |
| 2290 | done |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2291 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2292 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2293 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2294 | |
| 2295 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2296 | See \`config.log' for more details." >&5 |
| 2297 | echo "$as_me: error: C compiler cannot create executables |
| 2298 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2299 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2300 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2301 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2302 | ac_exeext=$ac_cv_exeext |
| 2303 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2304 | echo "${ECHO_T}$ac_file" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2305 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2306 | # Check the compiler produces executables we can run. If not, either |
| 2307 | # the compiler is broken, or we cross compile. |
| 2308 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2309 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2310 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2311 | # If not cross compiling, check that we can run a simple program. |
| 2312 | if test "$cross_compiling" != yes; then |
| 2313 | if { ac_try='./$ac_file' |
| 2314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2315 | (eval $ac_try) 2>&5 |
| 2316 | ac_status=$? |
| 2317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2318 | (exit $ac_status); }; }; then |
| 2319 | cross_compiling=no |
| 2320 | else |
| 2321 | if test "$cross_compiling" = maybe; then |
| 2322 | cross_compiling=yes |
| 2323 | else |
| 2324 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2325 | If you meant to cross compile, use \`--host'. |
| 2326 | See \`config.log' for more details." >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2327 | echo "$as_me: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2328 | If you meant to cross compile, use \`--host'. |
| 2329 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2330 | { (exit 1); exit 1; }; } |
| 2331 | fi |
| 2332 | fi |
| 2333 | fi |
| 2334 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2335 | echo "${ECHO_T}yes" >&6 |
| 2336 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2337 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2338 | ac_clean_files=$ac_clean_files_save |
| 2339 | # Check the compiler produces executables we can run. If not, either |
| 2340 | # the compiler is broken, or we cross compile. |
| 2341 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2342 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2343 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2344 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2345 | |
| 2346 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2347 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2348 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2349 | (eval $ac_link) 2>&5 |
| 2350 | ac_status=$? |
| 2351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2352 | (exit $ac_status); }; then |
| 2353 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2354 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2355 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2356 | # `rm'. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2357 | for ac_file in conftest.exe conftest conftest.*; do |
| 2358 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2359 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2360 | *.$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] | 2361 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 2362 | export ac_cv_exeext |
| 2363 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2364 | * ) break;; |
| 2365 | esac |
| 2366 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2367 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2368 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2369 | See \`config.log' for more details." >&5 |
| 2370 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2371 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2372 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2373 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2374 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2375 | rm -f conftest$ac_cv_exeext |
| 2376 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2377 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2378 | |
| 2379 | rm -f conftest.$ac_ext |
| 2380 | EXEEXT=$ac_cv_exeext |
| 2381 | ac_exeext=$EXEEXT |
| 2382 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2383 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2384 | if test "${ac_cv_objext+set}" = set; then |
| 2385 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2386 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2387 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2388 | /* confdefs.h. */ |
| 2389 | _ACEOF |
| 2390 | cat confdefs.h >>conftest.$ac_ext |
| 2391 | cat >>conftest.$ac_ext <<_ACEOF |
| 2392 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2393 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2394 | int |
| 2395 | main () |
| 2396 | { |
| 2397 | |
| 2398 | ; |
| 2399 | return 0; |
| 2400 | } |
| 2401 | _ACEOF |
| 2402 | rm -f conftest.o conftest.obj |
| 2403 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2404 | (eval $ac_compile) 2>&5 |
| 2405 | ac_status=$? |
| 2406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2407 | (exit $ac_status); }; then |
| 2408 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2409 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2410 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2411 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2412 | break;; |
| 2413 | esac |
| 2414 | done |
| 2415 | else |
| 2416 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2417 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2418 | |
| 2419 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2420 | See \`config.log' for more details." >&5 |
| 2421 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2422 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2423 | { (exit 1); exit 1; }; } |
| 2424 | fi |
| 2425 | |
| 2426 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2427 | fi |
| 2428 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2429 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2430 | OBJEXT=$ac_cv_objext |
| 2431 | ac_objext=$OBJEXT |
| 2432 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2433 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2434 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2435 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2436 | else |
| 2437 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2438 | /* confdefs.h. */ |
| 2439 | _ACEOF |
| 2440 | cat confdefs.h >>conftest.$ac_ext |
| 2441 | cat >>conftest.$ac_ext <<_ACEOF |
| 2442 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2443 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2444 | int |
| 2445 | main () |
| 2446 | { |
| 2447 | #ifndef __GNUC__ |
| 2448 | choke me |
| 2449 | #endif |
| 2450 | |
| 2451 | ; |
| 2452 | return 0; |
| 2453 | } |
| 2454 | _ACEOF |
| 2455 | rm -f conftest.$ac_objext |
| 2456 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 2457 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2458 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 2459 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2460 | rm -f conftest.er1 |
| 2461 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2463 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 2464 | { ac_try='test -z "$ac_c_werror_flag" |
| 2465 | || test ! -s conftest.err' |
| 2466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2467 | (eval $ac_try) 2>&5 |
| 2468 | ac_status=$? |
| 2469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2470 | (exit $ac_status); }; } && |
| 2471 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2473 | (eval $ac_try) 2>&5 |
| 2474 | ac_status=$? |
| 2475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2476 | (exit $ac_status); }; }; then |
| 2477 | ac_compiler_gnu=yes |
| 2478 | else |
| 2479 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2480 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2481 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2482 | ac_compiler_gnu=no |
| 2483 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 2484 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2485 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2486 | |
| 2487 | fi |
| 2488 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2489 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2490 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2491 | ac_test_CFLAGS=${CFLAGS+set} |
| 2492 | ac_save_CFLAGS=$CFLAGS |
| 2493 | CFLAGS="-g" |
| 2494 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2495 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2496 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2497 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2498 | else |
| 2499 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2500 | /* confdefs.h. */ |
| 2501 | _ACEOF |
| 2502 | cat confdefs.h >>conftest.$ac_ext |
| 2503 | cat >>conftest.$ac_ext <<_ACEOF |
| 2504 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2505 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2506 | int |
| 2507 | main () |
| 2508 | { |
| 2509 | |
| 2510 | ; |
| 2511 | return 0; |
| 2512 | } |
| 2513 | _ACEOF |
| 2514 | rm -f conftest.$ac_objext |
| 2515 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 2516 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2517 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 2518 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2519 | rm -f conftest.er1 |
| 2520 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2522 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 2523 | { ac_try='test -z "$ac_c_werror_flag" |
| 2524 | || test ! -s conftest.err' |
| 2525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2526 | (eval $ac_try) 2>&5 |
| 2527 | ac_status=$? |
| 2528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2529 | (exit $ac_status); }; } && |
| 2530 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2532 | (eval $ac_try) 2>&5 |
| 2533 | ac_status=$? |
| 2534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2535 | (exit $ac_status); }; }; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2536 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2537 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2538 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2539 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2540 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2541 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2542 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 2543 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2544 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2545 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2546 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2547 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2548 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2549 | elif test $ac_cv_prog_cc_g = yes; then |
| 2550 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2551 | CFLAGS="-g -O2" |
| 2552 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2553 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2554 | fi |
| 2555 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2556 | if test "$GCC" = yes; then |
| 2557 | CFLAGS="-O2" |
| 2558 | else |
| 2559 | CFLAGS= |
| 2560 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2561 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2562 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2563 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2564 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2565 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2566 | else |
| 2567 | ac_cv_prog_cc_stdc=no |
| 2568 | ac_save_CC=$CC |
| 2569 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2570 | /* confdefs.h. */ |
| 2571 | _ACEOF |
| 2572 | cat confdefs.h >>conftest.$ac_ext |
| 2573 | cat >>conftest.$ac_ext <<_ACEOF |
| 2574 | /* end confdefs.h. */ |
| 2575 | #include <stdarg.h> |
| 2576 | #include <stdio.h> |
| 2577 | #include <sys/types.h> |
| 2578 | #include <sys/stat.h> |
| 2579 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2580 | struct buf { int x; }; |
| 2581 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2582 | static char *e (p, i) |
| 2583 | char **p; |
| 2584 | int i; |
| 2585 | { |
| 2586 | return p[i]; |
| 2587 | } |
| 2588 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2589 | { |
| 2590 | char *s; |
| 2591 | va_list v; |
| 2592 | va_start (v,p); |
| 2593 | s = g (p, va_arg (v,int)); |
| 2594 | va_end (v); |
| 2595 | return s; |
| 2596 | } |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 2597 | |
| 2598 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2599 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2600 | These don't provoke an error unfortunately, instead are silently treated |
| 2601 | as 'x'. The following induces an error, until -std1 is added to get |
| 2602 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2603 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2604 | that's true only with -std1. */ |
| 2605 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2606 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2607 | int test (int i, double x); |
| 2608 | struct s1 {int (*f) (int a);}; |
| 2609 | struct s2 {int (*f) (double a);}; |
| 2610 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2611 | int argc; |
| 2612 | char **argv; |
| 2613 | int |
| 2614 | main () |
| 2615 | { |
| 2616 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2617 | ; |
| 2618 | return 0; |
| 2619 | } |
| 2620 | _ACEOF |
| 2621 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2622 | # breaks some systems' header files. |
| 2623 | # AIX -qlanglvl=ansi |
| 2624 | # Ultrix and OSF/1 -std1 |
| 2625 | # HP-UX 10.20 and later -Ae |
| 2626 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2627 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2628 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2629 | do |
| 2630 | CC="$ac_save_CC $ac_arg" |
| 2631 | rm -f conftest.$ac_objext |
| 2632 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 2633 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2634 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 2635 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2636 | rm -f conftest.er1 |
| 2637 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2639 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 2640 | { ac_try='test -z "$ac_c_werror_flag" |
| 2641 | || test ! -s conftest.err' |
| 2642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2643 | (eval $ac_try) 2>&5 |
| 2644 | ac_status=$? |
| 2645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2646 | (exit $ac_status); }; } && |
| 2647 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2649 | (eval $ac_try) 2>&5 |
| 2650 | ac_status=$? |
| 2651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2652 | (exit $ac_status); }; }; then |
| 2653 | ac_cv_prog_cc_stdc=$ac_arg |
| 2654 | break |
| 2655 | else |
| 2656 | echo "$as_me: failed program was:" >&5 |
| 2657 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2658 | |
| 2659 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 2660 | rm -f conftest.err conftest.$ac_objext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2661 | done |
| 2662 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2663 | CC=$ac_save_CC |
| 2664 | |
| 2665 | fi |
| 2666 | |
| 2667 | case "x$ac_cv_prog_cc_stdc" in |
| 2668 | x|xno) |
| 2669 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2670 | echo "${ECHO_T}none needed" >&6 ;; |
| 2671 | *) |
| 2672 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2673 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2674 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2675 | esac |
| 2676 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2677 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2678 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2679 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2680 | # the declaration of exit, since it's the most demanding environment. |
| 2681 | cat >conftest.$ac_ext <<_ACEOF |
| 2682 | #ifndef __cplusplus |
| 2683 | choke me |
| 2684 | #endif |
| 2685 | _ACEOF |
| 2686 | rm -f conftest.$ac_objext |
| 2687 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 2688 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2689 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 2690 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2691 | rm -f conftest.er1 |
| 2692 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2694 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 2695 | { ac_try='test -z "$ac_c_werror_flag" |
| 2696 | || test ! -s conftest.err' |
| 2697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2698 | (eval $ac_try) 2>&5 |
| 2699 | ac_status=$? |
| 2700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2701 | (exit $ac_status); }; } && |
| 2702 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2704 | (eval $ac_try) 2>&5 |
| 2705 | ac_status=$? |
| 2706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2707 | (exit $ac_status); }; }; then |
| 2708 | for ac_declaration in \ |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 2709 | '' \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2710 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2711 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2712 | 'extern "C" void exit (int) throw ();' \ |
| 2713 | 'extern "C" void exit (int);' \ |
| 2714 | 'void exit (int);' |
| 2715 | do |
| 2716 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2717 | /* confdefs.h. */ |
| 2718 | _ACEOF |
| 2719 | cat confdefs.h >>conftest.$ac_ext |
| 2720 | cat >>conftest.$ac_ext <<_ACEOF |
| 2721 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2722 | $ac_declaration |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 2723 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2724 | int |
| 2725 | main () |
| 2726 | { |
| 2727 | exit (42); |
| 2728 | ; |
| 2729 | return 0; |
| 2730 | } |
| 2731 | _ACEOF |
| 2732 | rm -f conftest.$ac_objext |
| 2733 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 2734 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2735 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 2736 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2737 | rm -f conftest.er1 |
| 2738 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2740 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 2741 | { ac_try='test -z "$ac_c_werror_flag" |
| 2742 | || test ! -s conftest.err' |
| 2743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2744 | (eval $ac_try) 2>&5 |
| 2745 | ac_status=$? |
| 2746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2747 | (exit $ac_status); }; } && |
| 2748 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2750 | (eval $ac_try) 2>&5 |
| 2751 | ac_status=$? |
| 2752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2753 | (exit $ac_status); }; }; then |
| 2754 | : |
| 2755 | else |
| 2756 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2757 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2758 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2759 | continue |
| 2760 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 2761 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2762 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2763 | /* confdefs.h. */ |
| 2764 | _ACEOF |
| 2765 | cat confdefs.h >>conftest.$ac_ext |
| 2766 | cat >>conftest.$ac_ext <<_ACEOF |
| 2767 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2768 | $ac_declaration |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2769 | int |
| 2770 | main () |
| 2771 | { |
| 2772 | exit (42); |
| 2773 | ; |
| 2774 | return 0; |
| 2775 | } |
| 2776 | _ACEOF |
| 2777 | rm -f conftest.$ac_objext |
| 2778 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 2779 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2780 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 2781 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2782 | rm -f conftest.er1 |
| 2783 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2785 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 2786 | { ac_try='test -z "$ac_c_werror_flag" |
| 2787 | || test ! -s conftest.err' |
| 2788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2789 | (eval $ac_try) 2>&5 |
| 2790 | ac_status=$? |
| 2791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2792 | (exit $ac_status); }; } && |
| 2793 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2795 | (eval $ac_try) 2>&5 |
| 2796 | ac_status=$? |
| 2797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2798 | (exit $ac_status); }; }; then |
| 2799 | break |
| 2800 | else |
| 2801 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2802 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2803 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2804 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 2805 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2806 | done |
| 2807 | rm -f conftest* |
| 2808 | if test -n "$ac_declaration"; then |
| 2809 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2810 | echo $ac_declaration >>confdefs.h |
| 2811 | echo '#endif' >>confdefs.h |
| 2812 | fi |
| 2813 | |
| 2814 | else |
| 2815 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2816 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2817 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2818 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 2819 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2820 | ac_ext=c |
| 2821 | ac_cpp='$CPP $CPPFLAGS' |
| 2822 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2823 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2824 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2825 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2826 | |
| 2827 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2828 | |
| 2829 | ac_ext=c |
| 2830 | ac_cpp='$CPP $CPPFLAGS' |
| 2831 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2832 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2833 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2834 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2835 | 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] | 2836 | # On Suns, sometimes $CPP names a directory. |
| 2837 | if test -n "$CPP" && test -d "$CPP"; then |
| 2838 | CPP= |
| 2839 | fi |
| 2840 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2841 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2843 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2844 | # Double quotes because CPP needs to be expanded |
| 2845 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2846 | do |
| 2847 | ac_preproc_ok=false |
| 2848 | for ac_c_preproc_warn_flag in '' yes |
| 2849 | do |
| 2850 | # Use a header file that comes with gcc, so configuring glibc |
| 2851 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2852 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2853 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2854 | # 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] | 2855 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2856 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2857 | /* confdefs.h. */ |
| 2858 | _ACEOF |
| 2859 | cat confdefs.h >>conftest.$ac_ext |
| 2860 | cat >>conftest.$ac_ext <<_ACEOF |
| 2861 | /* end confdefs.h. */ |
| 2862 | #ifdef __STDC__ |
| 2863 | # include <limits.h> |
| 2864 | #else |
| 2865 | # include <assert.h> |
| 2866 | #endif |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 2867 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2868 | _ACEOF |
| 2869 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2870 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2871 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2872 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2873 | rm -f conftest.er1 |
| 2874 | cat conftest.err >&5 |
| 2875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2876 | (exit $ac_status); } >/dev/null; then |
| 2877 | if test -s conftest.err; then |
| 2878 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 2879 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2880 | else |
| 2881 | ac_cpp_err= |
| 2882 | fi |
| 2883 | else |
| 2884 | ac_cpp_err=yes |
| 2885 | fi |
| 2886 | if test -z "$ac_cpp_err"; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2887 | : |
| 2888 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2889 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2890 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2891 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2892 | # Broken: fails on valid input. |
| 2893 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2894 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2895 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2896 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2897 | # OK, works on sane cases. Now check whether non-existent headers |
| 2898 | # can be detected and how. |
| 2899 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2900 | /* confdefs.h. */ |
| 2901 | _ACEOF |
| 2902 | cat confdefs.h >>conftest.$ac_ext |
| 2903 | cat >>conftest.$ac_ext <<_ACEOF |
| 2904 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2905 | #include <ac_nonexistent.h> |
| 2906 | _ACEOF |
| 2907 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2908 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2909 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2910 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2911 | rm -f conftest.er1 |
| 2912 | cat conftest.err >&5 |
| 2913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2914 | (exit $ac_status); } >/dev/null; then |
| 2915 | if test -s conftest.err; then |
| 2916 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 2917 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2918 | else |
| 2919 | ac_cpp_err= |
| 2920 | fi |
| 2921 | else |
| 2922 | ac_cpp_err=yes |
| 2923 | fi |
| 2924 | if test -z "$ac_cpp_err"; then |
| 2925 | # Broken: success on invalid input. |
| 2926 | continue |
| 2927 | else |
| 2928 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2929 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2930 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2931 | # Passes both tests. |
| 2932 | ac_preproc_ok=: |
| 2933 | break |
| 2934 | fi |
| 2935 | rm -f conftest.err conftest.$ac_ext |
| 2936 | |
| 2937 | done |
| 2938 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2939 | rm -f conftest.err conftest.$ac_ext |
| 2940 | if $ac_preproc_ok; then |
| 2941 | break |
| 2942 | fi |
| 2943 | |
| 2944 | done |
| 2945 | ac_cv_prog_CPP=$CPP |
| 2946 | |
| 2947 | fi |
| 2948 | CPP=$ac_cv_prog_CPP |
| 2949 | else |
| 2950 | ac_cv_prog_CPP=$CPP |
| 2951 | fi |
| 2952 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2953 | echo "${ECHO_T}$CPP" >&6 |
| 2954 | ac_preproc_ok=false |
| 2955 | for ac_c_preproc_warn_flag in '' yes |
| 2956 | do |
| 2957 | # Use a header file that comes with gcc, so configuring glibc |
| 2958 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2959 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2960 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2961 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2962 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2963 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2964 | /* confdefs.h. */ |
| 2965 | _ACEOF |
| 2966 | cat confdefs.h >>conftest.$ac_ext |
| 2967 | cat >>conftest.$ac_ext <<_ACEOF |
| 2968 | /* end confdefs.h. */ |
| 2969 | #ifdef __STDC__ |
| 2970 | # include <limits.h> |
| 2971 | #else |
| 2972 | # include <assert.h> |
| 2973 | #endif |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 2974 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2975 | _ACEOF |
| 2976 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2977 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2978 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2979 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2980 | rm -f conftest.er1 |
| 2981 | cat conftest.err >&5 |
| 2982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2983 | (exit $ac_status); } >/dev/null; then |
| 2984 | if test -s conftest.err; then |
| 2985 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 2986 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2987 | else |
| 2988 | ac_cpp_err= |
| 2989 | fi |
| 2990 | else |
| 2991 | ac_cpp_err=yes |
| 2992 | fi |
| 2993 | if test -z "$ac_cpp_err"; then |
| 2994 | : |
| 2995 | else |
| 2996 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2997 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2998 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2999 | # Broken: fails on valid input. |
| 3000 | continue |
| 3001 | fi |
| 3002 | rm -f conftest.err conftest.$ac_ext |
| 3003 | |
| 3004 | # OK, works on sane cases. Now check whether non-existent headers |
| 3005 | # can be detected and how. |
| 3006 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3007 | /* confdefs.h. */ |
| 3008 | _ACEOF |
| 3009 | cat confdefs.h >>conftest.$ac_ext |
| 3010 | cat >>conftest.$ac_ext <<_ACEOF |
| 3011 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3012 | #include <ac_nonexistent.h> |
| 3013 | _ACEOF |
| 3014 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3015 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3016 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3017 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3018 | rm -f conftest.er1 |
| 3019 | cat conftest.err >&5 |
| 3020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3021 | (exit $ac_status); } >/dev/null; then |
| 3022 | if test -s conftest.err; then |
| 3023 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 3024 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3025 | else |
| 3026 | ac_cpp_err= |
| 3027 | fi |
| 3028 | else |
| 3029 | ac_cpp_err=yes |
| 3030 | fi |
| 3031 | if test -z "$ac_cpp_err"; then |
| 3032 | # Broken: success on invalid input. |
| 3033 | continue |
| 3034 | else |
| 3035 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3036 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3037 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3038 | # Passes both tests. |
| 3039 | ac_preproc_ok=: |
| 3040 | break |
| 3041 | fi |
| 3042 | rm -f conftest.err conftest.$ac_ext |
| 3043 | |
| 3044 | done |
| 3045 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3046 | rm -f conftest.err conftest.$ac_ext |
| 3047 | if $ac_preproc_ok; then |
| 3048 | : |
| 3049 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3050 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3051 | See \`config.log' for more details." >&5 |
| 3052 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3053 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3054 | { (exit 1); exit 1; }; } |
| 3055 | fi |
| 3056 | |
| 3057 | ac_ext=c |
| 3058 | ac_cpp='$CPP $CPPFLAGS' |
| 3059 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3060 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3061 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3062 | |
| 3063 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3064 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3065 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 3066 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 3067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3068 | else |
| 3069 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 3070 | then ac_cv_prog_egrep='grep -E' |
| 3071 | else ac_cv_prog_egrep='egrep' |
| 3072 | fi |
| 3073 | fi |
| 3074 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 3075 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 3076 | EGREP=$ac_cv_prog_egrep |
| 3077 | |
| 3078 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3079 | |
| 3080 | echo "$as_me:$LINENO: checking for AIX" >&5 |
| 3081 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
| 3082 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3083 | /* confdefs.h. */ |
| 3084 | _ACEOF |
| 3085 | cat confdefs.h >>conftest.$ac_ext |
| 3086 | cat >>conftest.$ac_ext <<_ACEOF |
| 3087 | /* end confdefs.h. */ |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3088 | #ifdef _AIX |
| 3089 | yes |
| 3090 | #endif |
| 3091 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3092 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3093 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3094 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3095 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3096 | echo "${ECHO_T}yes" >&6 |
| 3097 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3098 | #define _ALL_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3099 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3100 | |
| 3101 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3102 | echo "$as_me:$LINENO: result: no" >&5 |
| 3103 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3104 | fi |
| 3105 | rm -f conftest* |
| 3106 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3107 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3108 | |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 3109 | # Check for unsupported systems |
| 3110 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 3111 | Linux*/1*) |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 3112 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 3113 | echo See README for details. |
| 3114 | exit 1;; |
| 3115 | esac |
| 3116 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3117 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3118 | echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 3119 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3120 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3121 | # Check whether --with-suffix or --without-suffix was given. |
| 3122 | if test "${with_suffix+set}" = set; then |
| 3123 | withval="$with_suffix" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3124 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3125 | case $withval in |
| 3126 | no) EXEEXT=;; |
| 3127 | yes) EXEEXT=.exe;; |
| 3128 | *) EXEEXT=$withval;; |
| 3129 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3130 | fi; |
| 3131 | echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 3132 | echo "${ECHO_T}$EXEEXT" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3133 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3134 | # Test whether we're running on a non-case-sensitive system, in which |
| 3135 | # case we give a warning if no ext is given |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3136 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3137 | echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 3138 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6 |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3139 | if test ! -d CaseSensitiveTestDir; then |
| 3140 | mkdir CaseSensitiveTestDir |
| 3141 | fi |
| 3142 | |
| 3143 | if test -d casesensitivetestdir |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3144 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3145 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3146 | echo "${ECHO_T}yes" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3147 | BUILDEXEEXT=.exe |
| 3148 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3149 | echo "$as_me:$LINENO: result: no" >&5 |
| 3150 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3151 | BUILDEXEEXT=$EXEEXT |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3152 | fi |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3153 | rmdir CaseSensitiveTestDir |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 3154 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 3155 | case $MACHDEP in |
| 3156 | bsdos*) |
| 3157 | case $CC in |
| 3158 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 3159 | esac;; |
| 3160 | esac |
| 3161 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3162 | case $ac_sys_system in |
| 3163 | hp*|HP*) |
| 3164 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 3165 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3166 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3167 | Monterey*) |
| 3168 | case $CC in |
| 3169 | cc) CC="$CC -Wl,-Bexport";; |
| 3170 | esac;; |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3171 | SunOS*) |
| 3172 | # 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] | 3173 | |
| 3174 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3175 | #define __EXTENSIONS__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3176 | _ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3177 | |
| 3178 | ;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3179 | esac |
| 3180 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3181 | |
| 3182 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3183 | echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 3184 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3185 | if test -z "$LIBRARY" |
| 3186 | then |
| 3187 | LIBRARY='libpython$(VERSION).a' |
| 3188 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3189 | echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 3190 | echo "${ECHO_T}$LIBRARY" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3191 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3192 | # 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] | 3193 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3194 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3195 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3196 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3197 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3198 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3199 | # DLLLIBRARY is the shared (i.e., DLL) library. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3200 | # |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3201 | # RUNSHARED is used to run shared python without installed libraries |
| 3202 | # |
| 3203 | # INSTSONAME is the name of the shared library that will be use to install |
| 3204 | # on the system - some systems like version suffix, others don't |
| 3205 | |
| 3206 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3207 | |
| 3208 | |
| 3209 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3210 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3211 | LDLIBRARY="$LIBRARY" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3212 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 09bdf72 | 2002-05-08 08:51:29 +0000 | [diff] [blame] | 3213 | INSTSONAME='$(LDLIBRARY)' |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 3214 | DLLLIBRARY='' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3215 | LDLIBRARYDIR='' |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3216 | RUNSHARED='' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3217 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3218 | # 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] | 3219 | # If CXX is set, and if it is needed to link a main function that was |
| 3220 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 3221 | # python might then depend on the C++ runtime |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3222 | # 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] | 3223 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3224 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3225 | echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 3226 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3227 | if test -z "$LINKCC" |
| 3228 | then |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 3229 | if test -z "$CXX"; then |
| 3230 | LINKCC="\$(PURIFY) \$(CC)" |
| 3231 | else |
Martin v. Löwis | 1931ca7 | 2002-06-01 21:39:58 +0000 | [diff] [blame] | 3232 | 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] | 3233 | $CXX -c conftest.$ac_ext 2>&5 |
| 3234 | if $CC -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 3235 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 3236 | then |
| 3237 | LINKCC="\$(PURIFY) \$(CC)" |
| 3238 | else |
| 3239 | LINKCC="\$(PURIFY) \$(CXX)" |
| 3240 | fi |
| 3241 | rm -fr conftest* |
| 3242 | fi |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3243 | case $ac_sys_system in |
| 3244 | AIX*) |
Neal Norwitz | 0b27ff9 | 2003-03-31 15:53:49 +0000 | [diff] [blame] | 3245 | exp_extra="\"\"" |
| 3246 | if test $ac_sys_release -ge 5 -o \ |
| 3247 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 3248 | exp_extra="." |
| 3249 | fi |
| 3250 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3251 | Monterey64*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3252 | LINKCC="$LINKCC -L/usr/lib/ia64l64";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3253 | esac |
| 3254 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3255 | echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 3256 | echo "${ECHO_T}$LINKCC" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3257 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3258 | echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 3259 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3260 | # Check whether --enable-shared or --disable-shared was given. |
| 3261 | if test "${enable_shared+set}" = set; then |
| 3262 | enableval="$enable_shared" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3263 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3264 | fi; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3265 | |
| 3266 | if test -z "$enable_shared" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3267 | then |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3268 | case $ac_sys_system in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3269 | CYGWIN* | atheos*) |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3270 | enable_shared="yes";; |
| 3271 | *) |
| 3272 | enable_shared="no";; |
| 3273 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3274 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3275 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 3276 | echo "${ECHO_T}$enable_shared" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3277 | |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 3278 | echo "$as_me:$LINENO: checking for --enable-profiling" >&5 |
| 3279 | echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6 |
| 3280 | # Check whether --enable-profiling or --disable-profiling was given. |
| 3281 | if test "${enable_profiling+set}" = set; then |
| 3282 | enableval="$enable_profiling" |
| 3283 | ac_save_cc="$CC" |
| 3284 | CC="$CC -pg" |
| 3285 | if test "$cross_compiling" = yes; then |
| 3286 | ac_enable_profiling="no" |
| 3287 | else |
| 3288 | cat >conftest.$ac_ext <<_ACEOF |
| 3289 | /* confdefs.h. */ |
| 3290 | _ACEOF |
| 3291 | cat confdefs.h >>conftest.$ac_ext |
| 3292 | cat >>conftest.$ac_ext <<_ACEOF |
| 3293 | /* end confdefs.h. */ |
| 3294 | int main() { return 0; } |
| 3295 | _ACEOF |
| 3296 | rm -f conftest$ac_exeext |
| 3297 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3298 | (eval $ac_link) 2>&5 |
| 3299 | ac_status=$? |
| 3300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3301 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3303 | (eval $ac_try) 2>&5 |
| 3304 | ac_status=$? |
| 3305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3306 | (exit $ac_status); }; }; then |
| 3307 | ac_enable_profiling="yes" |
| 3308 | else |
| 3309 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3310 | echo "$as_me: failed program was:" >&5 |
| 3311 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3312 | |
| 3313 | ( exit $ac_status ) |
| 3314 | ac_enable_profiling="no" |
| 3315 | fi |
| 3316 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3317 | fi |
| 3318 | CC="$ac_save_cc" |
| 3319 | fi; |
| 3320 | echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5 |
| 3321 | echo "${ECHO_T}$ac_enable_profiling" >&6 |
| 3322 | |
| 3323 | case "$ac_enable_profiling" in |
| 3324 | "yes") |
| 3325 | BASECFLAGS="-pg $BASECFLAGS" |
| 3326 | LDFLAGS="-pg $LDFLAGS" |
| 3327 | ;; |
| 3328 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3329 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3330 | echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 3331 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3332 | |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 3333 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 3334 | # library that we build, but we do not want to link against it (we |
| 3335 | # will find it with a -framework option). For this reason there is an |
| 3336 | # extra variable BLDLIBRARY against which Python and the extension |
| 3337 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 3338 | # LDLIBRARY, but empty for MacOSX framework builds. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3339 | if test "$enable_framework" |
| 3340 | then |
| 3341 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 66b8483 | 2003-07-04 12:14:39 +0000 | [diff] [blame] | 3342 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3343 | BLDLIBRARY='' |
| 3344 | else |
| 3345 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3346 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3347 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3348 | # Other platforms follow |
| 3349 | if test $enable_shared = "yes"; then |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 3350 | |
| 3351 | cat >>confdefs.h <<\_ACEOF |
| 3352 | #define Py_ENABLE_SHARED 1 |
| 3353 | _ACEOF |
| 3354 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3355 | case $ac_sys_system in |
| 3356 | BeOS*) |
| 3357 | LDLIBRARY='libpython$(VERSION).so' |
| 3358 | ;; |
| 3359 | CYGWIN*) |
| 3360 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3361 | DLLLIBRARY='libpython$(VERSION).dll' |
| 3362 | ;; |
| 3363 | SunOS*) |
| 3364 | LDLIBRARY='libpython$(VERSION).so' |
Martin v. Löwis | d141a8c | 2003-06-14 15:20:28 +0000 | [diff] [blame] | 3365 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3366 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 2389c41 | 2003-10-31 15:42:07 +0000 | [diff] [blame] | 3367 | INSTSONAME="$LDLIBRARY".$SOVERSION |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3368 | ;; |
Martin v. Löwis | 96ce805 | 2003-05-31 07:58:45 +0000 | [diff] [blame] | 3369 | Linux*|GNU*|NetBSD*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3370 | LDLIBRARY='libpython$(VERSION).so' |
| 3371 | BLDLIBRARY='-L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3372 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3373 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 3374 | ;; |
| 3375 | hp*|HP*) |
| 3376 | LDLIBRARY='libpython$(VERSION).sl' |
| 3377 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3378 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3379 | ;; |
| 3380 | OSF*) |
| 3381 | LDLIBRARY='libpython$(VERSION).so' |
| 3382 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3383 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3384 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3385 | atheos*) |
| 3386 | LDLIBRARY='libpython$(VERSION).so' |
| 3387 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3388 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 3389 | ;; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3390 | esac |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 3391 | else # shared is disabled |
| 3392 | case $ac_sys_system in |
| 3393 | CYGWIN*) |
| 3394 | BLDLIBRARY='$(LIBRARY)' |
| 3395 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3396 | ;; |
| 3397 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3398 | fi |
| 3399 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3400 | echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 3401 | echo "${ECHO_T}$LDLIBRARY" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3402 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3403 | if test -n "$ac_tool_prefix"; then |
| 3404 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3405 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3406 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3407 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3408 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3409 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3410 | else |
| 3411 | if test -n "$RANLIB"; then |
| 3412 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3413 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3415 | for as_dir in $PATH |
| 3416 | do |
| 3417 | IFS=$as_save_IFS |
| 3418 | test -z "$as_dir" && as_dir=. |
| 3419 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3420 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3421 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3422 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3423 | break 2 |
| 3424 | fi |
| 3425 | done |
| 3426 | done |
| 3427 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3428 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3429 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3430 | RANLIB=$ac_cv_prog_RANLIB |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3431 | if test -n "$RANLIB"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3432 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3433 | echo "${ECHO_T}$RANLIB" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3434 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3435 | echo "$as_me:$LINENO: result: no" >&5 |
| 3436 | echo "${ECHO_T}no" >&6 |
| 3437 | fi |
| 3438 | |
| 3439 | fi |
| 3440 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3441 | ac_ct_RANLIB=$RANLIB |
| 3442 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3443 | set dummy ranlib; ac_word=$2 |
| 3444 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3445 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3446 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3447 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3448 | else |
| 3449 | if test -n "$ac_ct_RANLIB"; then |
| 3450 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3451 | else |
| 3452 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3453 | for as_dir in $PATH |
| 3454 | do |
| 3455 | IFS=$as_save_IFS |
| 3456 | test -z "$as_dir" && as_dir=. |
| 3457 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3458 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3459 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3460 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3461 | break 2 |
| 3462 | fi |
| 3463 | done |
| 3464 | done |
| 3465 | |
| 3466 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3467 | fi |
| 3468 | fi |
| 3469 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3470 | if test -n "$ac_ct_RANLIB"; then |
| 3471 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3472 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3473 | else |
| 3474 | echo "$as_me:$LINENO: result: no" >&5 |
| 3475 | echo "${ECHO_T}no" >&6 |
| 3476 | fi |
| 3477 | |
| 3478 | RANLIB=$ac_ct_RANLIB |
| 3479 | else |
| 3480 | RANLIB="$ac_cv_prog_RANLIB" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3481 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3482 | |
| 3483 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3484 | for ac_prog in ar aal |
| 3485 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3486 | # 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] | 3487 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3488 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3489 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3490 | if test "${ac_cv_prog_AR+set}" = set; then |
| 3491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3492 | else |
| 3493 | if test -n "$AR"; then |
| 3494 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 3495 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3496 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3497 | for as_dir in $PATH |
| 3498 | do |
| 3499 | IFS=$as_save_IFS |
| 3500 | test -z "$as_dir" && as_dir=. |
| 3501 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3502 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3503 | ac_cv_prog_AR="$ac_prog" |
| 3504 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3505 | break 2 |
| 3506 | fi |
| 3507 | done |
| 3508 | done |
| 3509 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3510 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3511 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3512 | AR=$ac_cv_prog_AR |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3513 | if test -n "$AR"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3514 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 3515 | echo "${ECHO_T}$AR" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3516 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3517 | echo "$as_me:$LINENO: result: no" >&5 |
| 3518 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3519 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3520 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3521 | test -n "$AR" && break |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3522 | done |
| 3523 | test -n "$AR" || AR="ar" |
| 3524 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3525 | |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3526 | case $MACHDEP in |
Neil Schemenauer | af5567f | 2001-10-21 22:32:04 +0000 | [diff] [blame] | 3527 | bsdos*|hp*|HP*) |
| 3528 | # install -d does not work on BSDI or HP-UX |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3529 | if test -z "$INSTALL" |
| 3530 | then |
| 3531 | INSTALL="${srcdir}/install-sh -c" |
| 3532 | fi |
| 3533 | esac |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3534 | ac_aux_dir= |
| 3535 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 3536 | if test -f $ac_dir/install-sh; then |
| 3537 | ac_aux_dir=$ac_dir |
| 3538 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3539 | break |
| 3540 | elif test -f $ac_dir/install.sh; then |
| 3541 | ac_aux_dir=$ac_dir |
| 3542 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3543 | break |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3544 | elif test -f $ac_dir/shtool; then |
| 3545 | ac_aux_dir=$ac_dir |
| 3546 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3547 | break |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3548 | fi |
| 3549 | done |
| 3550 | if test -z "$ac_aux_dir"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3551 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 3552 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 3553 | { (exit 1); exit 1; }; } |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3554 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3555 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 3556 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 3557 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3558 | |
| 3559 | # Find a good install program. We prefer a C program (faster), |
| 3560 | # so one script is as good as another. But avoid the broken or |
| 3561 | # incompatible versions: |
| 3562 | # SysV /etc/install, /usr/sbin/install |
| 3563 | # SunOS /usr/etc/install |
| 3564 | # IRIX /sbin/install |
| 3565 | # AIX /bin/install |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3566 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3567 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3568 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3569 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 3570 | # OS/2's system install, which has a completely different semantic |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3571 | # ./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] | 3572 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 3573 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3574 | if test -z "$INSTALL"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3575 | if test "${ac_cv_path_install+set}" = set; then |
| 3576 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3577 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3579 | for as_dir in $PATH |
| 3580 | do |
| 3581 | IFS=$as_save_IFS |
| 3582 | test -z "$as_dir" && as_dir=. |
| 3583 | # Account for people who put trailing slashes in PATH elements. |
| 3584 | case $as_dir/ in |
| 3585 | ./ | .// | /cC/* | \ |
| 3586 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 3587 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3588 | /usr/ucb/* ) ;; |
| 3589 | *) |
| 3590 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3591 | # Don't use installbsd from OSF since it installs stuff as root |
| 3592 | # by default. |
| 3593 | for ac_prog in ginstall scoinst install; do |
| 3594 | for ac_exec_ext in '' $ac_executable_extensions; do |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 3595 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3596 | if test $ac_prog = install && |
| 3597 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3598 | # AIX install. It has an incompatible calling convention. |
| 3599 | : |
| 3600 | elif test $ac_prog = install && |
| 3601 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3602 | # program-specific install script used by HP pwplus--don't use. |
| 3603 | : |
| 3604 | else |
| 3605 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3606 | break 3 |
| 3607 | fi |
| 3608 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3609 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3610 | done |
| 3611 | ;; |
| 3612 | esac |
| 3613 | done |
| 3614 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3615 | |
| 3616 | fi |
| 3617 | if test "${ac_cv_path_install+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3618 | INSTALL=$ac_cv_path_install |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3619 | else |
| 3620 | # As a last resort, use the slow shell script. We don't cache a |
| 3621 | # path for INSTALL within a source directory, because that will |
| 3622 | # break other packages using the cache if that directory is |
| 3623 | # removed, or if the path is relative. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3624 | INSTALL=$ac_install_sh |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3625 | fi |
| 3626 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3627 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 3628 | echo "${ECHO_T}$INSTALL" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3629 | |
| 3630 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3631 | # It thinks the first close brace ends the variable substitution. |
| 3632 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3633 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3634 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3635 | |
| 3636 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3637 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3638 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3639 | # Not every filesystem supports hard links |
| 3640 | |
| 3641 | if test -z "$LN" ; then |
| 3642 | case $ac_sys_system in |
| 3643 | BeOS*) LN="ln -s";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3644 | CYGWIN*) LN="ln -s";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3645 | atheos*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3646 | *) LN=ln;; |
| 3647 | esac |
| 3648 | fi |
| 3649 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3650 | # Check for --with-pydebug |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3651 | echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 3652 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6 |
| 3653 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3654 | # Check whether --with-pydebug or --without-pydebug was given. |
| 3655 | if test "${with_pydebug+set}" = set; then |
| 3656 | withval="$with_pydebug" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3657 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3658 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3659 | then |
| 3660 | |
| 3661 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3662 | #define Py_DEBUG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3663 | _ACEOF |
| 3664 | |
| 3665 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3666 | echo "${ECHO_T}yes" >&6; |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 3667 | Py_DEBUG='true' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3668 | else echo "$as_me:$LINENO: result: no" >&5 |
| 3669 | echo "${ECHO_T}no" >&6; Py_DEBUG='false' |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3670 | fi |
| 3671 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3672 | echo "$as_me:$LINENO: result: no" >&5 |
| 3673 | echo "${ECHO_T}no" >&6 |
| 3674 | fi; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3675 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3676 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 3677 | # merged with this chunk of code? |
| 3678 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3679 | # Optimizer/debugger flags |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3680 | # ------------------------ |
| 3681 | # (The following bit of code is complicated enough - please keep things |
| 3682 | # indented properly. Just pretend you're editing Python code. ;-) |
| 3683 | |
| 3684 | # There are two parallel sets of case statements below, one that checks to |
| 3685 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 3686 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 3687 | # user set OPT. |
| 3688 | |
| 3689 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 3690 | # it on the command line |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3691 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3692 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3693 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3694 | case $GCC in |
| 3695 | yes) |
| 3696 | case $ac_cv_prog_cc_g in |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3697 | yes) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3698 | if test "$Py_DEBUG" = 'true' ; then |
| 3699 | # Optimization messes up debuggers, so turn it off for |
| 3700 | # debug builds. |
| 3701 | OPT="-g -Wall -Wstrict-prototypes" |
| 3702 | else |
| 3703 | OPT="-g -O3 -Wall -Wstrict-prototypes" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3704 | fi |
| 3705 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3706 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3707 | OPT="-O3 -Wall -Wstrict-prototypes" |
| 3708 | ;; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3709 | esac |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3710 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3711 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 3712 | ;; |
| 3713 | esac |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3714 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3715 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3716 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3717 | OPT="-O" |
| 3718 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3719 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3720 | |
| 3721 | # The current (beta) Monterey compiler dies with optimizations |
| 3722 | # 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] | 3723 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3724 | Monterey*) |
| 3725 | OPT="" |
| 3726 | ;; |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3727 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3728 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3729 | fi |
| 3730 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3731 | |
| 3732 | # tweak BASECFLAGS based on compiler and platform |
| 3733 | case $GCC in |
| 3734 | yes) |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3735 | # Python violates C99 rules, by casting between incompatible |
| 3736 | # pointer types. GCC may generate bad code as a result of that, |
| 3737 | # so use -fno-strict-aliasing if supported. |
| 3738 | echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5 |
| 3739 | echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6 |
| 3740 | ac_save_cc="$CC" |
| 3741 | CC="$CC -fno-strict-aliasing" |
| 3742 | if test "$cross_compiling" = yes; then |
| 3743 | ac_cv_no_strict_aliasing_ok=no |
| 3744 | else |
| 3745 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3746 | /* confdefs.h. */ |
| 3747 | _ACEOF |
| 3748 | cat confdefs.h >>conftest.$ac_ext |
| 3749 | cat >>conftest.$ac_ext <<_ACEOF |
| 3750 | /* end confdefs.h. */ |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3751 | int main() { return 0; } |
| 3752 | _ACEOF |
| 3753 | rm -f conftest$ac_exeext |
| 3754 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3755 | (eval $ac_link) 2>&5 |
| 3756 | ac_status=$? |
| 3757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3758 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3760 | (eval $ac_try) 2>&5 |
| 3761 | ac_status=$? |
| 3762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3763 | (exit $ac_status); }; }; then |
| 3764 | ac_cv_no_strict_aliasing_ok=yes |
| 3765 | else |
| 3766 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3767 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3768 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3769 | |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3770 | ( exit $ac_status ) |
| 3771 | ac_cv_no_strict_aliasing_ok=no |
| 3772 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 3773 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3774 | fi |
| 3775 | CC="$ac_save_cc" |
| 3776 | echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5 |
| 3777 | echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6 |
| 3778 | if test $ac_cv_no_strict_aliasing_ok = yes |
| 3779 | then |
| 3780 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 3781 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3782 | case $ac_sys_system in |
| 3783 | SCO_SV*) |
| 3784 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 3785 | ;; |
| 3786 | # is there any other compiler on Darwin besides gcc? |
| 3787 | Darwin*) |
Jack Jansen | e004041 | 2003-07-23 22:17:28 +0000 | [diff] [blame] | 3788 | BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3789 | ;; |
| 3790 | esac |
| 3791 | ;; |
| 3792 | |
| 3793 | *) |
| 3794 | case $ac_sys_system in |
| 3795 | OpenUNIX*|UnixWare*) |
| 3796 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 3797 | ;; |
Neal Norwitz | b44f165 | 2003-05-26 14:11:55 +0000 | [diff] [blame] | 3798 | OSF*) |
| 3799 | BASECFLAGS="$BASECFLAGS -ieee -std" |
| 3800 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3801 | SCO_SV*) |
| 3802 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 3803 | ;; |
| 3804 | esac |
| 3805 | ;; |
| 3806 | esac |
| 3807 | |
Fred Drake | e1ceaa0 | 2001-12-04 20:55:47 +0000 | [diff] [blame] | 3808 | if test "$Py_DEBUG" = 'true'; then |
| 3809 | : |
| 3810 | else |
| 3811 | OPT="-DNDEBUG $OPT" |
| 3812 | fi |
| 3813 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3814 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3815 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3816 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3817 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3818 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3819 | echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 3820 | echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6 |
| 3821 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
| 3822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3823 | else |
| 3824 | ac_save_cc="$CC" |
| 3825 | CC="$CC -OPT:Olimit=0" |
| 3826 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3827 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3828 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3829 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3830 | /* confdefs.h. */ |
| 3831 | _ACEOF |
| 3832 | cat confdefs.h >>conftest.$ac_ext |
| 3833 | cat >>conftest.$ac_ext <<_ACEOF |
| 3834 | /* end confdefs.h. */ |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3835 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3836 | _ACEOF |
| 3837 | rm -f conftest$ac_exeext |
| 3838 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3839 | (eval $ac_link) 2>&5 |
| 3840 | ac_status=$? |
| 3841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3842 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3844 | (eval $ac_try) 2>&5 |
| 3845 | ac_status=$? |
| 3846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3847 | (exit $ac_status); }; }; then |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3848 | ac_cv_opt_olimit_ok=yes |
| 3849 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3850 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3851 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3852 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3853 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3854 | ( exit $ac_status ) |
| 3855 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3856 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 3857 | rm -f 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] | 3858 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3859 | CC="$ac_save_cc" |
| 3860 | fi |
| 3861 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3862 | echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 3863 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 3864 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3865 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3866 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 3867 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 3868 | # environment? |
| 3869 | Darwin*) |
| 3870 | ;; |
| 3871 | *) |
| 3872 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 3873 | ;; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3874 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3875 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3876 | echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 3877 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6 |
| 3878 | if test "${ac_cv_olimit_ok+set}" = set; then |
| 3879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3880 | else |
| 3881 | ac_save_cc="$CC" |
| 3882 | CC="$CC -Olimit 1500" |
| 3883 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3884 | ac_cv_olimit_ok=no |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3885 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3886 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3887 | /* confdefs.h. */ |
| 3888 | _ACEOF |
| 3889 | cat confdefs.h >>conftest.$ac_ext |
| 3890 | cat >>conftest.$ac_ext <<_ACEOF |
| 3891 | /* end confdefs.h. */ |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3892 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3893 | _ACEOF |
| 3894 | rm -f conftest$ac_exeext |
| 3895 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3896 | (eval $ac_link) 2>&5 |
| 3897 | ac_status=$? |
| 3898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3899 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3901 | (eval $ac_try) 2>&5 |
| 3902 | ac_status=$? |
| 3903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3904 | (exit $ac_status); }; }; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3905 | ac_cv_olimit_ok=yes |
| 3906 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3907 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3908 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3909 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3910 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3911 | ( exit $ac_status ) |
| 3912 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 3913 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 3914 | rm -f 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] | 3915 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3916 | CC="$ac_save_cc" |
| 3917 | fi |
| 3918 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3919 | echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 3920 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3921 | if test $ac_cv_olimit_ok = yes; then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3922 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3923 | fi |
| 3924 | fi |
| 3925 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3926 | # On some compilers, pthreads are available without further options |
| 3927 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 3928 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 3929 | # So we have to see first whether pthreads are available without |
| 3930 | # options before we can check whether -Kpthread improves anything. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3931 | echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 3932 | echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6 |
| 3933 | if test "${ac_cv_pthread_is_default+set}" = set; then |
| 3934 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3935 | else |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3936 | if test "$cross_compiling" = yes; then |
| 3937 | ac_cv_pthread_is_default=no |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3938 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3939 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3940 | /* confdefs.h. */ |
| 3941 | _ACEOF |
| 3942 | cat confdefs.h >>conftest.$ac_ext |
| 3943 | cat >>conftest.$ac_ext <<_ACEOF |
| 3944 | /* end confdefs.h. */ |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3945 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3946 | #include <pthread.h> |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3947 | |
| 3948 | void* routine(void* p){return NULL;} |
| 3949 | |
| 3950 | int main(){ |
| 3951 | pthread_t p; |
| 3952 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3953 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3954 | (void)pthread_detach(p); |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3955 | return 0; |
| 3956 | } |
| 3957 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3958 | _ACEOF |
| 3959 | rm -f conftest$ac_exeext |
| 3960 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3961 | (eval $ac_link) 2>&5 |
| 3962 | ac_status=$? |
| 3963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3964 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3966 | (eval $ac_try) 2>&5 |
| 3967 | ac_status=$? |
| 3968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3969 | (exit $ac_status); }; }; then |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 3970 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3971 | ac_cv_pthread_is_default=yes |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 3972 | ac_cv_kthread=no |
| 3973 | ac_cv_pthread=no |
| 3974 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3975 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3976 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3977 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3978 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3979 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3980 | ( exit $ac_status ) |
| 3981 | ac_cv_pthread_is_default=no |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3982 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 3983 | rm -f 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] | 3984 | fi |
| 3985 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3986 | fi |
| 3987 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3988 | echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 3989 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3990 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3991 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3992 | if test $ac_cv_pthread_is_default = yes |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3993 | then |
| 3994 | ac_cv_kpthread=no |
| 3995 | else |
| 3996 | # -Kpthread, if available, provides the right #defines |
| 3997 | # and linker options to make pthread_create available |
| 3998 | # Some compilers won't report that they do not support -Kpthread, |
| 3999 | # so we need to run a program to see whether it really made the |
| 4000 | # function available. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4001 | echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 4002 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6 |
| 4003 | if test "${ac_cv_kpthread+set}" = set; then |
| 4004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4005 | else |
| 4006 | ac_save_cc="$CC" |
| 4007 | CC="$CC -Kpthread" |
| 4008 | if test "$cross_compiling" = yes; then |
| 4009 | ac_cv_kpthread=no |
| 4010 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4011 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4012 | /* confdefs.h. */ |
| 4013 | _ACEOF |
| 4014 | cat confdefs.h >>conftest.$ac_ext |
| 4015 | cat >>conftest.$ac_ext <<_ACEOF |
| 4016 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4017 | |
| 4018 | #include <pthread.h> |
| 4019 | |
| 4020 | void* routine(void* p){return NULL;} |
| 4021 | |
| 4022 | int main(){ |
| 4023 | pthread_t p; |
| 4024 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4025 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 4026 | (void)pthread_detach(p); |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4027 | return 0; |
| 4028 | } |
| 4029 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4030 | _ACEOF |
| 4031 | rm -f conftest$ac_exeext |
| 4032 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4033 | (eval $ac_link) 2>&5 |
| 4034 | ac_status=$? |
| 4035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4036 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4038 | (eval $ac_try) 2>&5 |
| 4039 | ac_status=$? |
| 4040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4041 | (exit $ac_status); }; }; then |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4042 | ac_cv_kpthread=yes |
| 4043 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4044 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4045 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4046 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4047 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4048 | ( exit $ac_status ) |
| 4049 | ac_cv_kpthread=no |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4050 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4051 | rm -f 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] | 4052 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4053 | CC="$ac_save_cc" |
| 4054 | fi |
| 4055 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4056 | echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 4057 | echo "${ECHO_T}$ac_cv_kpthread" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4058 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4059 | |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4060 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4061 | then |
| 4062 | # -Kthread, if available, provides the right #defines |
| 4063 | # and linker options to make pthread_create available |
| 4064 | # Some compilers won't report that they do not support -Kthread, |
| 4065 | # so we need to run a program to see whether it really made the |
| 4066 | # function available. |
| 4067 | echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5 |
| 4068 | echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6 |
| 4069 | if test "${ac_cv_kthread+set}" = set; then |
| 4070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4071 | else |
| 4072 | ac_save_cc="$CC" |
| 4073 | CC="$CC -Kthread" |
| 4074 | if test "$cross_compiling" = yes; then |
| 4075 | ac_cv_kthread=no |
| 4076 | else |
| 4077 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4078 | /* confdefs.h. */ |
| 4079 | _ACEOF |
| 4080 | cat confdefs.h >>conftest.$ac_ext |
| 4081 | cat >>conftest.$ac_ext <<_ACEOF |
| 4082 | /* end confdefs.h. */ |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4083 | |
| 4084 | #include <pthread.h> |
| 4085 | |
| 4086 | void* routine(void* p){return NULL;} |
| 4087 | |
| 4088 | int main(){ |
| 4089 | pthread_t p; |
| 4090 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4091 | return 1; |
| 4092 | (void)pthread_detach(p); |
| 4093 | return 0; |
| 4094 | } |
| 4095 | |
| 4096 | _ACEOF |
| 4097 | rm -f conftest$ac_exeext |
| 4098 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4099 | (eval $ac_link) 2>&5 |
| 4100 | ac_status=$? |
| 4101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4102 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4104 | (eval $ac_try) 2>&5 |
| 4105 | ac_status=$? |
| 4106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4107 | (exit $ac_status); }; }; then |
| 4108 | ac_cv_kthread=yes |
| 4109 | else |
| 4110 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4111 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4112 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4113 | |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4114 | ( exit $ac_status ) |
| 4115 | ac_cv_kthread=no |
| 4116 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4117 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4118 | fi |
| 4119 | CC="$ac_save_cc" |
| 4120 | fi |
| 4121 | |
| 4122 | echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5 |
| 4123 | echo "${ECHO_T}$ac_cv_kthread" >&6 |
| 4124 | fi |
| 4125 | |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4126 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 4127 | then |
| 4128 | # -pthread, if available, provides the right #defines |
| 4129 | # and linker options to make pthread_create available |
| 4130 | # Some compilers won't report that they do not support -pthread, |
| 4131 | # so we need to run a program to see whether it really made the |
| 4132 | # function available. |
| 4133 | echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5 |
| 4134 | echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6 |
| 4135 | if test "${ac_cv_thread+set}" = set; then |
| 4136 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4137 | else |
| 4138 | ac_save_cc="$CC" |
| 4139 | CC="$CC -pthread" |
| 4140 | if test "$cross_compiling" = yes; then |
| 4141 | ac_cv_pthread=no |
| 4142 | else |
| 4143 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4144 | /* confdefs.h. */ |
| 4145 | _ACEOF |
| 4146 | cat confdefs.h >>conftest.$ac_ext |
| 4147 | cat >>conftest.$ac_ext <<_ACEOF |
| 4148 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 4149 | |
| 4150 | #include <pthread.h> |
| 4151 | |
| 4152 | void* routine(void* p){return NULL;} |
| 4153 | |
| 4154 | int main(){ |
| 4155 | pthread_t p; |
| 4156 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4157 | return 1; |
| 4158 | (void)pthread_detach(p); |
| 4159 | return 0; |
| 4160 | } |
| 4161 | |
| 4162 | _ACEOF |
| 4163 | rm -f conftest$ac_exeext |
| 4164 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4165 | (eval $ac_link) 2>&5 |
| 4166 | ac_status=$? |
| 4167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4168 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4170 | (eval $ac_try) 2>&5 |
| 4171 | ac_status=$? |
| 4172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4173 | (exit $ac_status); }; }; then |
| 4174 | ac_cv_pthread=yes |
| 4175 | else |
| 4176 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4177 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4178 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4179 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 4180 | ( exit $ac_status ) |
| 4181 | ac_cv_pthread=no |
| 4182 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4183 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 4184 | fi |
| 4185 | CC="$ac_save_cc" |
| 4186 | fi |
| 4187 | |
| 4188 | echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5 |
| 4189 | echo "${ECHO_T}$ac_cv_pthread" >&6 |
| 4190 | fi |
| 4191 | |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4192 | # If we have set a CC compiler flag for thread support then |
| 4193 | # check if it works for CXX, too. |
| 4194 | ac_cv_cxx_thread=no |
| 4195 | if test ! -z "$CXX" |
| 4196 | then |
| 4197 | echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5 |
| 4198 | echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6 |
| 4199 | ac_save_cxx="$CXX" |
| 4200 | |
| 4201 | if test "$ac_cv_kpthread" = "yes" |
| 4202 | then |
| 4203 | CXX="$CXX -Kpthread" |
| 4204 | ac_cv_cxx_thread=yes |
| 4205 | elif test "$ac_cv_kthread" = "yes" |
| 4206 | then |
| 4207 | CXX="$CXX -Kthread" |
| 4208 | ac_cv_cxx_thread=yes |
| 4209 | elif test "$ac_cv_pthread" = "yes" |
| 4210 | then |
| 4211 | CXX="$CXX -pthread" |
| 4212 | ac_cv_cxx_thread=yes |
| 4213 | fi |
| 4214 | |
| 4215 | if test $ac_cv_cxx_thread = yes |
| 4216 | then |
| 4217 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 4218 | $CXX -c conftest.$ac_ext 2>&5 |
| 4219 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 4220 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 4221 | then |
| 4222 | ac_cv_cxx_thread=yes |
| 4223 | else |
| 4224 | ac_cv_cxx_thread=no |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4225 | fi |
| 4226 | rm -fr conftest* |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4227 | fi |
| 4228 | fi |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 4229 | CXX="$ac_save_cxx" |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4230 | echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5 |
| 4231 | echo "${ECHO_T}$ac_cv_cxx_thread" >&6 |
| 4232 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4233 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4234 | # checks for header files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4235 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4236 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 4237 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4239 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4240 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4241 | /* confdefs.h. */ |
| 4242 | _ACEOF |
| 4243 | cat confdefs.h >>conftest.$ac_ext |
| 4244 | cat >>conftest.$ac_ext <<_ACEOF |
| 4245 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4246 | #include <stdlib.h> |
| 4247 | #include <stdarg.h> |
| 4248 | #include <string.h> |
| 4249 | #include <float.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4250 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4251 | int |
| 4252 | main () |
| 4253 | { |
| 4254 | |
| 4255 | ; |
| 4256 | return 0; |
| 4257 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4258 | _ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4259 | rm -f conftest.$ac_objext |
| 4260 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4261 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4262 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4263 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4264 | rm -f conftest.er1 |
| 4265 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4267 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4268 | { ac_try='test -z "$ac_c_werror_flag" |
| 4269 | || test ! -s conftest.err' |
| 4270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4271 | (eval $ac_try) 2>&5 |
| 4272 | ac_status=$? |
| 4273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4274 | (exit $ac_status); }; } && |
| 4275 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4277 | (eval $ac_try) 2>&5 |
| 4278 | ac_status=$? |
| 4279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4280 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4281 | ac_cv_header_stdc=yes |
| 4282 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4283 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4284 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4285 | |
| 4286 | ac_cv_header_stdc=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4287 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4288 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4289 | |
| 4290 | if test $ac_cv_header_stdc = yes; then |
| 4291 | # 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] | 4292 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4293 | /* confdefs.h. */ |
| 4294 | _ACEOF |
| 4295 | cat confdefs.h >>conftest.$ac_ext |
| 4296 | cat >>conftest.$ac_ext <<_ACEOF |
| 4297 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4298 | #include <string.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4299 | |
| 4300 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4301 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4302 | $EGREP "memchr" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4303 | : |
| 4304 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4305 | ac_cv_header_stdc=no |
| 4306 | fi |
| 4307 | rm -f conftest* |
| 4308 | |
| 4309 | fi |
| 4310 | |
| 4311 | if test $ac_cv_header_stdc = yes; then |
| 4312 | # 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] | 4313 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4314 | /* confdefs.h. */ |
| 4315 | _ACEOF |
| 4316 | cat confdefs.h >>conftest.$ac_ext |
| 4317 | cat >>conftest.$ac_ext <<_ACEOF |
| 4318 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4319 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4320 | |
| 4321 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4322 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4323 | $EGREP "free" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4324 | : |
| 4325 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4326 | ac_cv_header_stdc=no |
| 4327 | fi |
| 4328 | rm -f conftest* |
| 4329 | |
| 4330 | fi |
| 4331 | |
| 4332 | if test $ac_cv_header_stdc = yes; then |
| 4333 | # /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] | 4334 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4335 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4336 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4337 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4338 | /* confdefs.h. */ |
| 4339 | _ACEOF |
| 4340 | cat confdefs.h >>conftest.$ac_ext |
| 4341 | cat >>conftest.$ac_ext <<_ACEOF |
| 4342 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4343 | #include <ctype.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4344 | #if ((' ' & 0x0FF) == 0x020) |
| 4345 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4346 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4347 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4348 | # define ISLOWER(c) \ |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4349 | (('a' <= (c) && (c) <= 'i') \ |
| 4350 | || ('j' <= (c) && (c) <= 'r') \ |
| 4351 | || ('s' <= (c) && (c) <= 'z')) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4352 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4353 | #endif |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4354 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4355 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4356 | int |
| 4357 | main () |
| 4358 | { |
| 4359 | int i; |
| 4360 | for (i = 0; i < 256; i++) |
| 4361 | if (XOR (islower (i), ISLOWER (i)) |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4362 | || toupper (i) != TOUPPER (i)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4363 | exit(2); |
| 4364 | exit (0); |
| 4365 | } |
| 4366 | _ACEOF |
| 4367 | rm -f conftest$ac_exeext |
| 4368 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4369 | (eval $ac_link) 2>&5 |
| 4370 | ac_status=$? |
| 4371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4372 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4374 | (eval $ac_try) 2>&5 |
| 4375 | ac_status=$? |
| 4376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4377 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4378 | : |
| 4379 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4380 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4381 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4382 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4383 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4384 | ( exit $ac_status ) |
| 4385 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4386 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4387 | rm -f 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] | 4388 | fi |
| 4389 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4390 | fi |
| 4391 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4392 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4393 | if test $ac_cv_header_stdc = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4394 | |
| 4395 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4396 | #define STDC_HEADERS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4397 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4398 | |
| 4399 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4400 | |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4401 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4402 | |
| 4403 | |
| 4404 | |
| 4405 | |
| 4406 | |
| 4407 | |
| 4408 | |
| 4409 | |
| 4410 | |
| 4411 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4412 | inttypes.h stdint.h unistd.h |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4413 | do |
| 4414 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4415 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4416 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4417 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4418 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4419 | else |
| 4420 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4421 | /* confdefs.h. */ |
| 4422 | _ACEOF |
| 4423 | cat confdefs.h >>conftest.$ac_ext |
| 4424 | cat >>conftest.$ac_ext <<_ACEOF |
| 4425 | /* end confdefs.h. */ |
| 4426 | $ac_includes_default |
| 4427 | |
| 4428 | #include <$ac_header> |
| 4429 | _ACEOF |
| 4430 | rm -f conftest.$ac_objext |
| 4431 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4432 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4433 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4434 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4435 | rm -f conftest.er1 |
| 4436 | cat conftest.err >&5 |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4438 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4439 | { ac_try='test -z "$ac_c_werror_flag" |
| 4440 | || test ! -s conftest.err' |
| 4441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4442 | (eval $ac_try) 2>&5 |
| 4443 | ac_status=$? |
| 4444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4445 | (exit $ac_status); }; } && |
| 4446 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4448 | (eval $ac_try) 2>&5 |
| 4449 | ac_status=$? |
| 4450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4451 | (exit $ac_status); }; }; then |
| 4452 | eval "$as_ac_Header=yes" |
| 4453 | else |
| 4454 | echo "$as_me: failed program was:" >&5 |
| 4455 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4456 | |
| 4457 | eval "$as_ac_Header=no" |
| 4458 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4459 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4460 | fi |
| 4461 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4462 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4463 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4464 | cat >>confdefs.h <<_ACEOF |
| 4465 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4466 | _ACEOF |
| 4467 | |
| 4468 | fi |
| 4469 | |
| 4470 | done |
| 4471 | |
| 4472 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4473 | |
| 4474 | |
| 4475 | |
| 4476 | |
| 4477 | |
| 4478 | |
| 4479 | |
| 4480 | |
| 4481 | |
| 4482 | |
| 4483 | |
| 4484 | |
| 4485 | |
| 4486 | |
| 4487 | |
| 4488 | |
| 4489 | |
| 4490 | |
| 4491 | |
| 4492 | |
| 4493 | |
| 4494 | |
| 4495 | |
| 4496 | |
| 4497 | |
| 4498 | |
| 4499 | |
| 4500 | |
| 4501 | |
| 4502 | |
| 4503 | |
| 4504 | |
| 4505 | |
| 4506 | |
| 4507 | |
| 4508 | |
Skip Montanaro | 7befb99 | 2004-02-10 16:50:21 +0000 | [diff] [blame] | 4509 | for ac_header in dlfcn.h fcntl.h grp.h langinfo.h \ |
| 4510 | libintl.h ncurses.h poll.h pthread.h \ |
| 4511 | stropts.h termios.h thread.h \ |
Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 4512 | unistd.h utime.h \ |
Neal Norwitz | 8225103 | 2003-05-23 14:35:24 +0000 | [diff] [blame] | 4513 | sys/audioio.h sys/bsdtty.h sys/file.h sys/lock.h sys/mkdev.h sys/modem.h \ |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4514 | 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] | 4515 | sys/un.h sys/utsname.h sys/wait.h pty.h term.h libutil.h \ |
Hye-Shik Chang | 8126860 | 2004-02-02 06:05:24 +0000 | [diff] [blame] | 4516 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
| 4517 | bluetooth/bluetooth.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4518 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4519 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4520 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4521 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4522 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4523 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4524 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4525 | fi |
| 4526 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4527 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4528 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4529 | # Is the header compilable? |
| 4530 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 4531 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 4532 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4533 | /* confdefs.h. */ |
| 4534 | _ACEOF |
| 4535 | cat confdefs.h >>conftest.$ac_ext |
| 4536 | cat >>conftest.$ac_ext <<_ACEOF |
| 4537 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4538 | $ac_includes_default |
| 4539 | #include <$ac_header> |
| 4540 | _ACEOF |
| 4541 | rm -f conftest.$ac_objext |
| 4542 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4543 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4544 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4545 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4546 | rm -f conftest.er1 |
| 4547 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4549 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4550 | { ac_try='test -z "$ac_c_werror_flag" |
| 4551 | || test ! -s conftest.err' |
| 4552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4553 | (eval $ac_try) 2>&5 |
| 4554 | ac_status=$? |
| 4555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4556 | (exit $ac_status); }; } && |
| 4557 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4559 | (eval $ac_try) 2>&5 |
| 4560 | ac_status=$? |
| 4561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4562 | (exit $ac_status); }; }; then |
| 4563 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4564 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4565 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4566 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4567 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4568 | ac_header_compiler=no |
| 4569 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4570 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4571 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4572 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4573 | |
| 4574 | # Is the header present? |
| 4575 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4576 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4577 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4578 | /* confdefs.h. */ |
| 4579 | _ACEOF |
| 4580 | cat confdefs.h >>conftest.$ac_ext |
| 4581 | cat >>conftest.$ac_ext <<_ACEOF |
| 4582 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4583 | #include <$ac_header> |
| 4584 | _ACEOF |
| 4585 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4586 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4587 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4588 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4589 | rm -f conftest.er1 |
| 4590 | cat conftest.err >&5 |
| 4591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4592 | (exit $ac_status); } >/dev/null; then |
| 4593 | if test -s conftest.err; then |
| 4594 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4595 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4596 | else |
| 4597 | ac_cpp_err= |
| 4598 | fi |
| 4599 | else |
| 4600 | ac_cpp_err=yes |
| 4601 | fi |
| 4602 | if test -z "$ac_cpp_err"; then |
| 4603 | ac_header_preproc=yes |
| 4604 | else |
| 4605 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4606 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4607 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4608 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4609 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4610 | rm -f conftest.err conftest.$ac_ext |
| 4611 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4612 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4613 | |
| 4614 | # So? What about this header? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4615 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4616 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4617 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4618 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4619 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 4620 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 4621 | ac_header_preproc=yes |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4622 | ;; |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4623 | no:yes:* ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4624 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4625 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4626 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4627 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4628 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 4629 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 4630 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 4631 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4632 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4633 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4634 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 4635 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4636 | ( |
| 4637 | cat <<\_ASBOX |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4638 | ## --------------------------------- ## |
| 4639 | ## Report this to the python lists. ## |
| 4640 | ## --------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4641 | _ASBOX |
| 4642 | ) | |
| 4643 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4644 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4645 | esac |
| 4646 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4647 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4648 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4650 | else |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4651 | eval "$as_ac_Header=\$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4652 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4653 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4654 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4655 | |
| 4656 | fi |
| 4657 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4658 | cat >>confdefs.h <<_ACEOF |
| 4659 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4660 | _ACEOF |
| 4661 | |
| 4662 | fi |
| 4663 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4664 | done |
| 4665 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4666 | |
| 4667 | |
| 4668 | |
| 4669 | |
| 4670 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4671 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4672 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 4673 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 4674 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 4675 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 4676 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4677 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4678 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4679 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4680 | /* confdefs.h. */ |
| 4681 | _ACEOF |
| 4682 | cat confdefs.h >>conftest.$ac_ext |
| 4683 | cat >>conftest.$ac_ext <<_ACEOF |
| 4684 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4685 | #include <sys/types.h> |
| 4686 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4687 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4688 | int |
| 4689 | main () |
| 4690 | { |
| 4691 | if ((DIR *) 0) |
| 4692 | return 0; |
| 4693 | ; |
| 4694 | return 0; |
| 4695 | } |
| 4696 | _ACEOF |
| 4697 | rm -f conftest.$ac_objext |
| 4698 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4699 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4700 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4701 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4702 | rm -f conftest.er1 |
| 4703 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4705 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4706 | { ac_try='test -z "$ac_c_werror_flag" |
| 4707 | || test ! -s conftest.err' |
| 4708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4709 | (eval $ac_try) 2>&5 |
| 4710 | ac_status=$? |
| 4711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4712 | (exit $ac_status); }; } && |
| 4713 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4715 | (eval $ac_try) 2>&5 |
| 4716 | ac_status=$? |
| 4717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4718 | (exit $ac_status); }; }; then |
| 4719 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4720 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4721 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4722 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4723 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4724 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4725 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4726 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4727 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4728 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4729 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4730 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4731 | cat >>confdefs.h <<_ACEOF |
| 4732 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 4733 | _ACEOF |
| 4734 | |
| 4735 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4736 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4737 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4738 | done |
| 4739 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 4740 | if test $ac_header_dirent = dirent.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4741 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4742 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4743 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4744 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4745 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4746 | ac_func_search_save_LIBS=$LIBS |
| 4747 | ac_cv_search_opendir=no |
| 4748 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4749 | /* confdefs.h. */ |
| 4750 | _ACEOF |
| 4751 | cat confdefs.h >>conftest.$ac_ext |
| 4752 | cat >>conftest.$ac_ext <<_ACEOF |
| 4753 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4754 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4755 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4756 | #ifdef __cplusplus |
| 4757 | extern "C" |
| 4758 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4759 | /* 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] | 4760 | builtin and then its argument prototype would still apply. */ |
| 4761 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4762 | int |
| 4763 | main () |
| 4764 | { |
| 4765 | opendir (); |
| 4766 | ; |
| 4767 | return 0; |
| 4768 | } |
| 4769 | _ACEOF |
| 4770 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4771 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4772 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4773 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4774 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4775 | rm -f conftest.er1 |
| 4776 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4778 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4779 | { ac_try='test -z "$ac_c_werror_flag" |
| 4780 | || test ! -s conftest.err' |
| 4781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4782 | (eval $ac_try) 2>&5 |
| 4783 | ac_status=$? |
| 4784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4785 | (exit $ac_status); }; } && |
| 4786 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4788 | (eval $ac_try) 2>&5 |
| 4789 | ac_status=$? |
| 4790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4791 | (exit $ac_status); }; }; then |
| 4792 | ac_cv_search_opendir="none required" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4793 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4794 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4795 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4796 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4797 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4798 | rm -f conftest.err conftest.$ac_objext \ |
| 4799 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4800 | if test "$ac_cv_search_opendir" = no; then |
| 4801 | for ac_lib in dir; do |
| 4802 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4803 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4804 | /* confdefs.h. */ |
| 4805 | _ACEOF |
| 4806 | cat confdefs.h >>conftest.$ac_ext |
| 4807 | cat >>conftest.$ac_ext <<_ACEOF |
| 4808 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4809 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4810 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4811 | #ifdef __cplusplus |
| 4812 | extern "C" |
| 4813 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4814 | /* 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] | 4815 | builtin and then its argument prototype would still apply. */ |
| 4816 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4817 | int |
| 4818 | main () |
| 4819 | { |
| 4820 | opendir (); |
| 4821 | ; |
| 4822 | return 0; |
| 4823 | } |
| 4824 | _ACEOF |
| 4825 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4826 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4827 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4828 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4829 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4830 | rm -f conftest.er1 |
| 4831 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4833 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4834 | { ac_try='test -z "$ac_c_werror_flag" |
| 4835 | || test ! -s conftest.err' |
| 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); }; } && |
| 4841 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4843 | (eval $ac_try) 2>&5 |
| 4844 | ac_status=$? |
| 4845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4846 | (exit $ac_status); }; }; then |
| 4847 | ac_cv_search_opendir="-l$ac_lib" |
| 4848 | break |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4849 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4850 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4851 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4852 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4853 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4854 | rm -f conftest.err conftest.$ac_objext \ |
| 4855 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4856 | done |
| 4857 | fi |
| 4858 | LIBS=$ac_func_search_save_LIBS |
| 4859 | fi |
| 4860 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4861 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4862 | if test "$ac_cv_search_opendir" != no; then |
| 4863 | 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] | 4864 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4865 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4866 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4867 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4868 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4869 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4870 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4872 | else |
| 4873 | ac_func_search_save_LIBS=$LIBS |
| 4874 | ac_cv_search_opendir=no |
| 4875 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4876 | /* confdefs.h. */ |
| 4877 | _ACEOF |
| 4878 | cat confdefs.h >>conftest.$ac_ext |
| 4879 | cat >>conftest.$ac_ext <<_ACEOF |
| 4880 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4881 | |
| 4882 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4883 | #ifdef __cplusplus |
| 4884 | extern "C" |
| 4885 | #endif |
| 4886 | /* We use char because int might match the return type of a gcc2 |
| 4887 | builtin and then its argument prototype would still apply. */ |
| 4888 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4889 | int |
| 4890 | main () |
| 4891 | { |
| 4892 | opendir (); |
| 4893 | ; |
| 4894 | return 0; |
| 4895 | } |
| 4896 | _ACEOF |
| 4897 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4898 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4899 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4900 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4901 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4902 | rm -f conftest.er1 |
| 4903 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4905 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4906 | { ac_try='test -z "$ac_c_werror_flag" |
| 4907 | || test ! -s conftest.err' |
| 4908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4909 | (eval $ac_try) 2>&5 |
| 4910 | ac_status=$? |
| 4911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4912 | (exit $ac_status); }; } && |
| 4913 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4915 | (eval $ac_try) 2>&5 |
| 4916 | ac_status=$? |
| 4917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4918 | (exit $ac_status); }; }; then |
| 4919 | ac_cv_search_opendir="none required" |
| 4920 | else |
| 4921 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4922 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4923 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4924 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4925 | rm -f conftest.err conftest.$ac_objext \ |
| 4926 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4927 | if test "$ac_cv_search_opendir" = no; then |
| 4928 | for ac_lib in x; do |
| 4929 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4930 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4931 | /* confdefs.h. */ |
| 4932 | _ACEOF |
| 4933 | cat confdefs.h >>conftest.$ac_ext |
| 4934 | cat >>conftest.$ac_ext <<_ACEOF |
| 4935 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4936 | |
| 4937 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4938 | #ifdef __cplusplus |
| 4939 | extern "C" |
| 4940 | #endif |
| 4941 | /* We use char because int might match the return type of a gcc2 |
| 4942 | builtin and then its argument prototype would still apply. */ |
| 4943 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4944 | int |
| 4945 | main () |
| 4946 | { |
| 4947 | opendir (); |
| 4948 | ; |
| 4949 | return 0; |
| 4950 | } |
| 4951 | _ACEOF |
| 4952 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4953 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4954 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4955 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4956 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4957 | rm -f conftest.er1 |
| 4958 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4960 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4961 | { ac_try='test -z "$ac_c_werror_flag" |
| 4962 | || test ! -s conftest.err' |
| 4963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4964 | (eval $ac_try) 2>&5 |
| 4965 | ac_status=$? |
| 4966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4967 | (exit $ac_status); }; } && |
| 4968 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4970 | (eval $ac_try) 2>&5 |
| 4971 | ac_status=$? |
| 4972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4973 | (exit $ac_status); }; }; then |
| 4974 | ac_cv_search_opendir="-l$ac_lib" |
| 4975 | break |
| 4976 | else |
| 4977 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4978 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4979 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4980 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4981 | rm -f conftest.err conftest.$ac_objext \ |
| 4982 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4983 | done |
| 4984 | fi |
| 4985 | LIBS=$ac_func_search_save_LIBS |
| 4986 | fi |
| 4987 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4988 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4989 | if test "$ac_cv_search_opendir" != no; then |
| 4990 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 4991 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4992 | fi |
| 4993 | |
| 4994 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4995 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 4996 | echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 4997 | echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6 |
| 4998 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
| 4999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5000 | else |
| 5001 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5002 | /* confdefs.h. */ |
| 5003 | _ACEOF |
| 5004 | cat confdefs.h >>conftest.$ac_ext |
| 5005 | cat >>conftest.$ac_ext <<_ACEOF |
| 5006 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5007 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5008 | int |
| 5009 | main () |
| 5010 | { |
| 5011 | return makedev(0, 0); |
| 5012 | ; |
| 5013 | return 0; |
| 5014 | } |
| 5015 | _ACEOF |
| 5016 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5017 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5018 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5019 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5020 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5021 | rm -f conftest.er1 |
| 5022 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5024 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5025 | { ac_try='test -z "$ac_c_werror_flag" |
| 5026 | || test ! -s conftest.err' |
| 5027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5028 | (eval $ac_try) 2>&5 |
| 5029 | ac_status=$? |
| 5030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5031 | (exit $ac_status); }; } && |
| 5032 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5034 | (eval $ac_try) 2>&5 |
| 5035 | ac_status=$? |
| 5036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5037 | (exit $ac_status); }; }; then |
| 5038 | ac_cv_header_sys_types_h_makedev=yes |
| 5039 | else |
| 5040 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5041 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5042 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5043 | ac_cv_header_sys_types_h_makedev=no |
| 5044 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5045 | rm -f conftest.err conftest.$ac_objext \ |
| 5046 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5047 | |
| 5048 | fi |
| 5049 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 5050 | echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6 |
| 5051 | |
| 5052 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 5053 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5054 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 5055 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 5056 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5057 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5058 | fi |
| 5059 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 5060 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 5061 | else |
| 5062 | # Is the header compilable? |
| 5063 | echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 5064 | echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6 |
| 5065 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5066 | /* confdefs.h. */ |
| 5067 | _ACEOF |
| 5068 | cat confdefs.h >>conftest.$ac_ext |
| 5069 | cat >>conftest.$ac_ext <<_ACEOF |
| 5070 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5071 | $ac_includes_default |
| 5072 | #include <sys/mkdev.h> |
| 5073 | _ACEOF |
| 5074 | rm -f conftest.$ac_objext |
| 5075 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5076 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5077 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5078 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5079 | rm -f conftest.er1 |
| 5080 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5082 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5083 | { ac_try='test -z "$ac_c_werror_flag" |
| 5084 | || test ! -s conftest.err' |
| 5085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5086 | (eval $ac_try) 2>&5 |
| 5087 | ac_status=$? |
| 5088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5089 | (exit $ac_status); }; } && |
| 5090 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5092 | (eval $ac_try) 2>&5 |
| 5093 | ac_status=$? |
| 5094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5095 | (exit $ac_status); }; }; then |
| 5096 | ac_header_compiler=yes |
| 5097 | else |
| 5098 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5099 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5100 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5101 | ac_header_compiler=no |
| 5102 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5103 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5104 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5105 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5106 | |
| 5107 | # Is the header present? |
| 5108 | echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 5109 | echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6 |
| 5110 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5111 | /* confdefs.h. */ |
| 5112 | _ACEOF |
| 5113 | cat confdefs.h >>conftest.$ac_ext |
| 5114 | cat >>conftest.$ac_ext <<_ACEOF |
| 5115 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5116 | #include <sys/mkdev.h> |
| 5117 | _ACEOF |
| 5118 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5119 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5120 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5121 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5122 | rm -f conftest.er1 |
| 5123 | cat conftest.err >&5 |
| 5124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5125 | (exit $ac_status); } >/dev/null; then |
| 5126 | if test -s conftest.err; then |
| 5127 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5128 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5129 | else |
| 5130 | ac_cpp_err= |
| 5131 | fi |
| 5132 | else |
| 5133 | ac_cpp_err=yes |
| 5134 | fi |
| 5135 | if test -z "$ac_cpp_err"; then |
| 5136 | ac_header_preproc=yes |
| 5137 | else |
| 5138 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5139 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5140 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5141 | ac_header_preproc=no |
| 5142 | fi |
| 5143 | rm -f conftest.err conftest.$ac_ext |
| 5144 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5145 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5146 | |
| 5147 | # So? What about this header? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5148 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5149 | yes:no: ) |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5150 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5151 | echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5152 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5 |
| 5153 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;} |
| 5154 | ac_header_preproc=yes |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5155 | ;; |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5156 | no:yes:* ) |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5157 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 5158 | echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5159 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 5160 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 5161 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5 |
| 5162 | echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;} |
| 5163 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5164 | echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;} |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5165 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5166 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;} |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5167 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5 |
| 5168 | echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;} |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5169 | ( |
| 5170 | cat <<\_ASBOX |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5171 | ## --------------------------------- ## |
| 5172 | ## Report this to the python lists. ## |
| 5173 | ## --------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5174 | _ASBOX |
| 5175 | ) | |
| 5176 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5177 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5178 | esac |
| 5179 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 5180 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 5181 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5182 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5183 | else |
| 5184 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 5185 | fi |
| 5186 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 5187 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 5188 | |
| 5189 | fi |
| 5190 | if test $ac_cv_header_sys_mkdev_h = yes; then |
| 5191 | |
| 5192 | cat >>confdefs.h <<\_ACEOF |
| 5193 | #define MAJOR_IN_MKDEV 1 |
| 5194 | _ACEOF |
| 5195 | |
| 5196 | fi |
| 5197 | |
| 5198 | |
| 5199 | |
| 5200 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 5201 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 5202 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 5203 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 5204 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 5205 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5206 | fi |
| 5207 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 5208 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 5209 | else |
| 5210 | # Is the header compilable? |
| 5211 | echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 5212 | echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6 |
| 5213 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5214 | /* confdefs.h. */ |
| 5215 | _ACEOF |
| 5216 | cat confdefs.h >>conftest.$ac_ext |
| 5217 | cat >>conftest.$ac_ext <<_ACEOF |
| 5218 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5219 | $ac_includes_default |
| 5220 | #include <sys/sysmacros.h> |
| 5221 | _ACEOF |
| 5222 | rm -f conftest.$ac_objext |
| 5223 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5224 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5225 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5226 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5227 | rm -f conftest.er1 |
| 5228 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5230 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5231 | { ac_try='test -z "$ac_c_werror_flag" |
| 5232 | || test ! -s conftest.err' |
| 5233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5234 | (eval $ac_try) 2>&5 |
| 5235 | ac_status=$? |
| 5236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5237 | (exit $ac_status); }; } && |
| 5238 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5240 | (eval $ac_try) 2>&5 |
| 5241 | ac_status=$? |
| 5242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5243 | (exit $ac_status); }; }; then |
| 5244 | ac_header_compiler=yes |
| 5245 | else |
| 5246 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5247 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5248 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5249 | ac_header_compiler=no |
| 5250 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5251 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5252 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5253 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5254 | |
| 5255 | # Is the header present? |
| 5256 | echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 5257 | echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6 |
| 5258 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5259 | /* confdefs.h. */ |
| 5260 | _ACEOF |
| 5261 | cat confdefs.h >>conftest.$ac_ext |
| 5262 | cat >>conftest.$ac_ext <<_ACEOF |
| 5263 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5264 | #include <sys/sysmacros.h> |
| 5265 | _ACEOF |
| 5266 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5267 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5268 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5269 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5270 | rm -f conftest.er1 |
| 5271 | cat conftest.err >&5 |
| 5272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5273 | (exit $ac_status); } >/dev/null; then |
| 5274 | if test -s conftest.err; then |
| 5275 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5276 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5277 | else |
| 5278 | ac_cpp_err= |
| 5279 | fi |
| 5280 | else |
| 5281 | ac_cpp_err=yes |
| 5282 | fi |
| 5283 | if test -z "$ac_cpp_err"; then |
| 5284 | ac_header_preproc=yes |
| 5285 | else |
| 5286 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5287 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5288 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5289 | ac_header_preproc=no |
| 5290 | fi |
| 5291 | rm -f conftest.err conftest.$ac_ext |
| 5292 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5293 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5294 | |
| 5295 | # So? What about this header? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5296 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5297 | yes:no: ) |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5298 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5299 | echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5300 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5 |
| 5301 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;} |
| 5302 | ac_header_preproc=yes |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5303 | ;; |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5304 | no:yes:* ) |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5305 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 5306 | echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5307 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 5308 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 5309 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5 |
| 5310 | echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;} |
| 5311 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5312 | echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;} |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5313 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5314 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;} |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5315 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5 |
| 5316 | echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;} |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5317 | ( |
| 5318 | cat <<\_ASBOX |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5319 | ## --------------------------------- ## |
| 5320 | ## Report this to the python lists. ## |
| 5321 | ## --------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5322 | _ASBOX |
| 5323 | ) | |
| 5324 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5325 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5326 | esac |
| 5327 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 5328 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 5329 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 5330 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5331 | else |
| 5332 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 5333 | fi |
| 5334 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 5335 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 5336 | |
| 5337 | fi |
| 5338 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
| 5339 | |
| 5340 | cat >>confdefs.h <<\_ACEOF |
| 5341 | #define MAJOR_IN_SYSMACROS 1 |
| 5342 | _ACEOF |
| 5343 | |
| 5344 | fi |
| 5345 | |
| 5346 | |
| 5347 | fi |
| 5348 | fi |
| 5349 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5350 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5351 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5352 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5353 | echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 5354 | echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6 |
| 5355 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5356 | /* confdefs.h. */ |
| 5357 | _ACEOF |
| 5358 | cat confdefs.h >>conftest.$ac_ext |
| 5359 | cat >>conftest.$ac_ext <<_ACEOF |
| 5360 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5361 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5362 | |
| 5363 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5364 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5365 | $EGREP "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5366 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5367 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5368 | |
| 5369 | |
| 5370 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5371 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5372 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5373 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 5374 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5375 | fi |
| 5376 | rm -f conftest* |
| 5377 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5378 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 5379 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5380 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5381 | # Check whether using makedev requires defining _OSF_SOURCE |
| 5382 | echo "$as_me:$LINENO: checking for makedev" >&5 |
| 5383 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6 |
| 5384 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5385 | /* confdefs.h. */ |
| 5386 | _ACEOF |
| 5387 | cat confdefs.h >>conftest.$ac_ext |
| 5388 | cat >>conftest.$ac_ext <<_ACEOF |
| 5389 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 5390 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5391 | int |
| 5392 | main () |
| 5393 | { |
| 5394 | makedev(0, 0) |
| 5395 | ; |
| 5396 | return 0; |
| 5397 | } |
| 5398 | _ACEOF |
| 5399 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5400 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5401 | (eval $ac_link) 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5402 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5403 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5404 | rm -f conftest.er1 |
| 5405 | cat conftest.err >&5 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5407 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5408 | { ac_try='test -z "$ac_c_werror_flag" |
| 5409 | || test ! -s conftest.err' |
| 5410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5411 | (eval $ac_try) 2>&5 |
| 5412 | ac_status=$? |
| 5413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5414 | (exit $ac_status); }; } && |
| 5415 | { ac_try='test -s conftest$ac_exeext' |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5417 | (eval $ac_try) 2>&5 |
| 5418 | ac_status=$? |
| 5419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5420 | (exit $ac_status); }; }; then |
| 5421 | ac_cv_has_makedev=yes |
| 5422 | else |
| 5423 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5424 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5425 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5426 | ac_cv_has_makedev=no |
| 5427 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5428 | rm -f conftest.err conftest.$ac_objext \ |
| 5429 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5430 | if test "$ac_cv_has_makedev" = "no"; then |
| 5431 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 5432 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5433 | /* confdefs.h. */ |
| 5434 | _ACEOF |
| 5435 | cat confdefs.h >>conftest.$ac_ext |
| 5436 | cat >>conftest.$ac_ext <<_ACEOF |
| 5437 | /* end confdefs.h. */ |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5438 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 5439 | #define _OSF_SOURCE 1 |
| 5440 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5441 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5442 | int |
| 5443 | main () |
| 5444 | { |
| 5445 | makedev(0, 0) |
| 5446 | ; |
| 5447 | return 0; |
| 5448 | } |
| 5449 | _ACEOF |
| 5450 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5451 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5452 | (eval $ac_link) 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5453 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5454 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5455 | rm -f conftest.er1 |
| 5456 | cat conftest.err >&5 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5458 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5459 | { ac_try='test -z "$ac_c_werror_flag" |
| 5460 | || test ! -s conftest.err' |
| 5461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5462 | (eval $ac_try) 2>&5 |
| 5463 | ac_status=$? |
| 5464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5465 | (exit $ac_status); }; } && |
| 5466 | { ac_try='test -s conftest$ac_exeext' |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5468 | (eval $ac_try) 2>&5 |
| 5469 | ac_status=$? |
| 5470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5471 | (exit $ac_status); }; }; then |
| 5472 | ac_cv_has_makedev=yes |
| 5473 | else |
| 5474 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5475 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5476 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5477 | ac_cv_has_makedev=no |
| 5478 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5479 | rm -f conftest.err conftest.$ac_objext \ |
| 5480 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5481 | if test "$ac_cv_has_makedev" = "yes"; then |
| 5482 | |
| 5483 | cat >>confdefs.h <<\_ACEOF |
| 5484 | #define _OSF_SOURCE 1 |
| 5485 | _ACEOF |
| 5486 | |
| 5487 | fi |
| 5488 | fi |
| 5489 | echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 5490 | echo "${ECHO_T}$ac_cv_has_makedev" >&6 |
| 5491 | if test "$ac_cv_has_makedev" = "yes"; then |
| 5492 | |
| 5493 | cat >>confdefs.h <<\_ACEOF |
| 5494 | #define HAVE_MAKEDEV 1 |
| 5495 | _ACEOF |
| 5496 | |
| 5497 | fi |
| 5498 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5499 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 5500 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 5501 | # defined, but the compiler does not support pragma redefine_extname, |
| 5502 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 5503 | # structures (such as rlimit64) without declaring them. As a |
| 5504 | # work-around, disable LFS on such configurations |
| 5505 | |
| 5506 | use_lfs=yes |
| 5507 | echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 5508 | echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6 |
| 5509 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5510 | /* confdefs.h. */ |
| 5511 | _ACEOF |
| 5512 | cat confdefs.h >>conftest.$ac_ext |
| 5513 | cat >>conftest.$ac_ext <<_ACEOF |
| 5514 | /* end confdefs.h. */ |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5515 | |
| 5516 | #define _LARGEFILE_SOURCE 1 |
| 5517 | #define _FILE_OFFSET_BITS 64 |
| 5518 | #include <sys/resource.h> |
| 5519 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5520 | int |
| 5521 | main () |
| 5522 | { |
| 5523 | struct rlimit foo; |
| 5524 | ; |
| 5525 | return 0; |
| 5526 | } |
| 5527 | _ACEOF |
| 5528 | rm -f conftest.$ac_objext |
| 5529 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5530 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5531 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5532 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5533 | rm -f conftest.er1 |
| 5534 | cat conftest.err >&5 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5536 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5537 | { ac_try='test -z "$ac_c_werror_flag" |
| 5538 | || test ! -s conftest.err' |
| 5539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5540 | (eval $ac_try) 2>&5 |
| 5541 | ac_status=$? |
| 5542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5543 | (exit $ac_status); }; } && |
| 5544 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5546 | (eval $ac_try) 2>&5 |
| 5547 | ac_status=$? |
| 5548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5549 | (exit $ac_status); }; }; then |
| 5550 | sol_lfs_bug=no |
| 5551 | else |
| 5552 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5553 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5554 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5555 | sol_lfs_bug=yes |
| 5556 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5557 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5558 | echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 5559 | echo "${ECHO_T}$sol_lfs_bug" >&6 |
| 5560 | if test "$sol_lfs_bug" = "yes"; then |
| 5561 | use_lfs=no |
| 5562 | fi |
| 5563 | |
| 5564 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5565 | # Two defines needed to enable largefile support on various platforms |
| 5566 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5567 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5568 | cat >>confdefs.h <<\_ACEOF |
| 5569 | #define _LARGEFILE_SOURCE 1 |
| 5570 | _ACEOF |
| 5571 | |
| 5572 | |
| 5573 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5574 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5575 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5576 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5577 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5578 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 5579 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 5580 | cat >> confdefs.h <<\EOF |
| 5581 | #if defined(SCO_DS) |
| 5582 | #undef _OFF_T |
| 5583 | #endif |
| 5584 | EOF |
| 5585 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5586 | # Type availability checks |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5587 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 5588 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 5589 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 5590 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5591 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5592 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5593 | /* confdefs.h. */ |
| 5594 | _ACEOF |
| 5595 | cat confdefs.h >>conftest.$ac_ext |
| 5596 | cat >>conftest.$ac_ext <<_ACEOF |
| 5597 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5598 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5599 | int |
| 5600 | main () |
| 5601 | { |
| 5602 | if ((mode_t *) 0) |
| 5603 | return 0; |
| 5604 | if (sizeof (mode_t)) |
| 5605 | return 0; |
| 5606 | ; |
| 5607 | return 0; |
| 5608 | } |
| 5609 | _ACEOF |
| 5610 | rm -f conftest.$ac_objext |
| 5611 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5612 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5613 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5614 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5615 | rm -f conftest.er1 |
| 5616 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5618 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5619 | { ac_try='test -z "$ac_c_werror_flag" |
| 5620 | || test ! -s conftest.err' |
| 5621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5622 | (eval $ac_try) 2>&5 |
| 5623 | ac_status=$? |
| 5624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5625 | (exit $ac_status); }; } && |
| 5626 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5628 | (eval $ac_try) 2>&5 |
| 5629 | ac_status=$? |
| 5630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5631 | (exit $ac_status); }; }; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5632 | ac_cv_type_mode_t=yes |
| 5633 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5634 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5635 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5636 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5637 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5638 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5639 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5640 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5641 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 5642 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 5643 | if test $ac_cv_type_mode_t = yes; then |
| 5644 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5645 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5646 | |
| 5647 | cat >>confdefs.h <<_ACEOF |
| 5648 | #define mode_t int |
| 5649 | _ACEOF |
| 5650 | |
| 5651 | fi |
| 5652 | |
| 5653 | echo "$as_me:$LINENO: checking for off_t" >&5 |
| 5654 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 5655 | if test "${ac_cv_type_off_t+set}" = set; then |
| 5656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5657 | else |
| 5658 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5659 | /* confdefs.h. */ |
| 5660 | _ACEOF |
| 5661 | cat confdefs.h >>conftest.$ac_ext |
| 5662 | cat >>conftest.$ac_ext <<_ACEOF |
| 5663 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5664 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5665 | int |
| 5666 | main () |
| 5667 | { |
| 5668 | if ((off_t *) 0) |
| 5669 | return 0; |
| 5670 | if (sizeof (off_t)) |
| 5671 | return 0; |
| 5672 | ; |
| 5673 | return 0; |
| 5674 | } |
| 5675 | _ACEOF |
| 5676 | rm -f conftest.$ac_objext |
| 5677 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5678 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5679 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5680 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5681 | rm -f conftest.er1 |
| 5682 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5684 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5685 | { ac_try='test -z "$ac_c_werror_flag" |
| 5686 | || test ! -s conftest.err' |
| 5687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5688 | (eval $ac_try) 2>&5 |
| 5689 | ac_status=$? |
| 5690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5691 | (exit $ac_status); }; } && |
| 5692 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5694 | (eval $ac_try) 2>&5 |
| 5695 | ac_status=$? |
| 5696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5697 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5698 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5699 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5700 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5701 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5702 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5703 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5704 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5705 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5706 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5707 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 5708 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 5709 | if test $ac_cv_type_off_t = yes; then |
| 5710 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5711 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5712 | |
| 5713 | cat >>confdefs.h <<_ACEOF |
| 5714 | #define off_t long |
| 5715 | _ACEOF |
| 5716 | |
| 5717 | fi |
| 5718 | |
| 5719 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 5720 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 5721 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 5722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5723 | else |
| 5724 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5725 | /* confdefs.h. */ |
| 5726 | _ACEOF |
| 5727 | cat confdefs.h >>conftest.$ac_ext |
| 5728 | cat >>conftest.$ac_ext <<_ACEOF |
| 5729 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5730 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5731 | int |
| 5732 | main () |
| 5733 | { |
| 5734 | if ((pid_t *) 0) |
| 5735 | return 0; |
| 5736 | if (sizeof (pid_t)) |
| 5737 | return 0; |
| 5738 | ; |
| 5739 | return 0; |
| 5740 | } |
| 5741 | _ACEOF |
| 5742 | rm -f conftest.$ac_objext |
| 5743 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5744 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5745 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5746 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5747 | rm -f conftest.er1 |
| 5748 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5750 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5751 | { ac_try='test -z "$ac_c_werror_flag" |
| 5752 | || test ! -s conftest.err' |
| 5753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5754 | (eval $ac_try) 2>&5 |
| 5755 | ac_status=$? |
| 5756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5757 | (exit $ac_status); }; } && |
| 5758 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5760 | (eval $ac_try) 2>&5 |
| 5761 | ac_status=$? |
| 5762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5763 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5764 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5765 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5766 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5767 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5768 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5769 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5770 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5771 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5772 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5773 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 5774 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 5775 | if test $ac_cv_type_pid_t = yes; then |
| 5776 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5777 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5778 | |
| 5779 | cat >>confdefs.h <<_ACEOF |
| 5780 | #define pid_t int |
| 5781 | _ACEOF |
| 5782 | |
| 5783 | fi |
| 5784 | |
| 5785 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 5786 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 5787 | if test "${ac_cv_type_signal+set}" = set; then |
| 5788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5789 | else |
| 5790 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5791 | /* confdefs.h. */ |
| 5792 | _ACEOF |
| 5793 | cat confdefs.h >>conftest.$ac_ext |
| 5794 | cat >>conftest.$ac_ext <<_ACEOF |
| 5795 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5796 | #include <sys/types.h> |
| 5797 | #include <signal.h> |
| 5798 | #ifdef signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5799 | # undef signal |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5800 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5801 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5802 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 5803 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5804 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5805 | #endif |
| 5806 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5807 | int |
| 5808 | main () |
| 5809 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5810 | int i; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5811 | ; |
| 5812 | return 0; |
| 5813 | } |
| 5814 | _ACEOF |
| 5815 | rm -f conftest.$ac_objext |
| 5816 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5817 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5818 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5819 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5820 | rm -f conftest.er1 |
| 5821 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5823 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5824 | { ac_try='test -z "$ac_c_werror_flag" |
| 5825 | || test ! -s conftest.err' |
| 5826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5827 | (eval $ac_try) 2>&5 |
| 5828 | ac_status=$? |
| 5829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5830 | (exit $ac_status); }; } && |
| 5831 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5833 | (eval $ac_try) 2>&5 |
| 5834 | ac_status=$? |
| 5835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5836 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5837 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5838 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5839 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5840 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5841 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5842 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5843 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5844 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5845 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5846 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 5847 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5848 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5849 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5850 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5851 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5852 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5853 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5854 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 5855 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 5856 | if test "${ac_cv_type_size_t+set}" = set; then |
| 5857 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5858 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5859 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5860 | /* confdefs.h. */ |
| 5861 | _ACEOF |
| 5862 | cat confdefs.h >>conftest.$ac_ext |
| 5863 | cat >>conftest.$ac_ext <<_ACEOF |
| 5864 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5865 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5866 | int |
| 5867 | main () |
| 5868 | { |
| 5869 | if ((size_t *) 0) |
| 5870 | return 0; |
| 5871 | if (sizeof (size_t)) |
| 5872 | return 0; |
| 5873 | ; |
| 5874 | return 0; |
| 5875 | } |
| 5876 | _ACEOF |
| 5877 | rm -f conftest.$ac_objext |
| 5878 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5879 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5880 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5881 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5882 | rm -f conftest.er1 |
| 5883 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5885 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5886 | { ac_try='test -z "$ac_c_werror_flag" |
| 5887 | || test ! -s conftest.err' |
| 5888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5889 | (eval $ac_try) 2>&5 |
| 5890 | ac_status=$? |
| 5891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5892 | (exit $ac_status); }; } && |
| 5893 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5895 | (eval $ac_try) 2>&5 |
| 5896 | ac_status=$? |
| 5897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5898 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5899 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5900 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5901 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5902 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5903 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5904 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5905 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5906 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5907 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5908 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 5909 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 5910 | if test $ac_cv_type_size_t = yes; then |
| 5911 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5912 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5913 | |
| 5914 | cat >>confdefs.h <<_ACEOF |
| 5915 | #define size_t unsigned |
| 5916 | _ACEOF |
| 5917 | |
| 5918 | fi |
| 5919 | |
| 5920 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 5921 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
| 5922 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 5923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5924 | else |
| 5925 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5926 | /* confdefs.h. */ |
| 5927 | _ACEOF |
| 5928 | cat confdefs.h >>conftest.$ac_ext |
| 5929 | cat >>conftest.$ac_ext <<_ACEOF |
| 5930 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5931 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5932 | |
| 5933 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5934 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5935 | $EGREP "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5936 | ac_cv_type_uid_t=yes |
| 5937 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5938 | ac_cv_type_uid_t=no |
| 5939 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5940 | rm -f conftest* |
| 5941 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5942 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5943 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 5944 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5945 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5946 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5947 | cat >>confdefs.h <<\_ACEOF |
| 5948 | #define uid_t int |
| 5949 | _ACEOF |
| 5950 | |
| 5951 | |
| 5952 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5953 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5954 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5955 | |
| 5956 | fi |
| 5957 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5958 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5959 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5960 | # ANSI C requires sizeof(char) == 1, so no need to check it |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5961 | echo "$as_me:$LINENO: checking for int" >&5 |
| 5962 | echo $ECHO_N "checking for int... $ECHO_C" >&6 |
| 5963 | if test "${ac_cv_type_int+set}" = set; then |
| 5964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5965 | else |
| 5966 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5967 | /* confdefs.h. */ |
| 5968 | _ACEOF |
| 5969 | cat confdefs.h >>conftest.$ac_ext |
| 5970 | cat >>conftest.$ac_ext <<_ACEOF |
| 5971 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5972 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5973 | int |
| 5974 | main () |
| 5975 | { |
| 5976 | if ((int *) 0) |
| 5977 | return 0; |
| 5978 | if (sizeof (int)) |
| 5979 | return 0; |
| 5980 | ; |
| 5981 | return 0; |
| 5982 | } |
| 5983 | _ACEOF |
| 5984 | rm -f conftest.$ac_objext |
| 5985 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5986 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5987 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5988 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5989 | rm -f conftest.er1 |
| 5990 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5992 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 5993 | { ac_try='test -z "$ac_c_werror_flag" |
| 5994 | || test ! -s conftest.err' |
| 5995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5996 | (eval $ac_try) 2>&5 |
| 5997 | ac_status=$? |
| 5998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5999 | (exit $ac_status); }; } && |
| 6000 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6002 | (eval $ac_try) 2>&5 |
| 6003 | ac_status=$? |
| 6004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6005 | (exit $ac_status); }; }; then |
| 6006 | ac_cv_type_int=yes |
| 6007 | else |
| 6008 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6009 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6010 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6011 | ac_cv_type_int=no |
| 6012 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6013 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6014 | fi |
| 6015 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 6016 | echo "${ECHO_T}$ac_cv_type_int" >&6 |
| 6017 | |
| 6018 | echo "$as_me:$LINENO: checking size of int" >&5 |
| 6019 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| 6020 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 6021 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6022 | else |
| 6023 | if test "$ac_cv_type_int" = yes; then |
| 6024 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6025 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6026 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6027 | # This bug is HP SR number 8606223364. |
| 6028 | if test "$cross_compiling" = yes; then |
| 6029 | # Depending upon the size, compute the lo and hi bounds. |
| 6030 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6031 | /* confdefs.h. */ |
| 6032 | _ACEOF |
| 6033 | cat confdefs.h >>conftest.$ac_ext |
| 6034 | cat >>conftest.$ac_ext <<_ACEOF |
| 6035 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6036 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6037 | int |
| 6038 | main () |
| 6039 | { |
| 6040 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
| 6041 | test_array [0] = 0 |
| 6042 | |
| 6043 | ; |
| 6044 | return 0; |
| 6045 | } |
| 6046 | _ACEOF |
| 6047 | rm -f conftest.$ac_objext |
| 6048 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6049 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6050 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6051 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6052 | rm -f conftest.er1 |
| 6053 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6055 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6056 | { ac_try='test -z "$ac_c_werror_flag" |
| 6057 | || test ! -s conftest.err' |
| 6058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6059 | (eval $ac_try) 2>&5 |
| 6060 | ac_status=$? |
| 6061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6062 | (exit $ac_status); }; } && |
| 6063 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6065 | (eval $ac_try) 2>&5 |
| 6066 | ac_status=$? |
| 6067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6068 | (exit $ac_status); }; }; then |
| 6069 | ac_lo=0 ac_mid=0 |
| 6070 | while :; do |
| 6071 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6072 | /* confdefs.h. */ |
| 6073 | _ACEOF |
| 6074 | cat confdefs.h >>conftest.$ac_ext |
| 6075 | cat >>conftest.$ac_ext <<_ACEOF |
| 6076 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6077 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6078 | int |
| 6079 | main () |
| 6080 | { |
| 6081 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 6082 | test_array [0] = 0 |
| 6083 | |
| 6084 | ; |
| 6085 | return 0; |
| 6086 | } |
| 6087 | _ACEOF |
| 6088 | rm -f conftest.$ac_objext |
| 6089 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6090 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6091 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6092 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6093 | rm -f conftest.er1 |
| 6094 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6096 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6097 | { ac_try='test -z "$ac_c_werror_flag" |
| 6098 | || test ! -s conftest.err' |
| 6099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6100 | (eval $ac_try) 2>&5 |
| 6101 | ac_status=$? |
| 6102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6103 | (exit $ac_status); }; } && |
| 6104 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6106 | (eval $ac_try) 2>&5 |
| 6107 | ac_status=$? |
| 6108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6109 | (exit $ac_status); }; }; then |
| 6110 | ac_hi=$ac_mid; break |
| 6111 | else |
| 6112 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6113 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6114 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6115 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6116 | if test $ac_lo -le $ac_mid; then |
| 6117 | ac_lo= ac_hi= |
| 6118 | break |
| 6119 | fi |
| 6120 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6121 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6122 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6123 | done |
| 6124 | else |
| 6125 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6126 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6127 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6128 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6129 | /* confdefs.h. */ |
| 6130 | _ACEOF |
| 6131 | cat confdefs.h >>conftest.$ac_ext |
| 6132 | cat >>conftest.$ac_ext <<_ACEOF |
| 6133 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6134 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6135 | int |
| 6136 | main () |
| 6137 | { |
| 6138 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
| 6139 | test_array [0] = 0 |
| 6140 | |
| 6141 | ; |
| 6142 | return 0; |
| 6143 | } |
| 6144 | _ACEOF |
| 6145 | rm -f conftest.$ac_objext |
| 6146 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6147 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6148 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6149 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6150 | rm -f conftest.er1 |
| 6151 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6153 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6154 | { ac_try='test -z "$ac_c_werror_flag" |
| 6155 | || test ! -s conftest.err' |
| 6156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6157 | (eval $ac_try) 2>&5 |
| 6158 | ac_status=$? |
| 6159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6160 | (exit $ac_status); }; } && |
| 6161 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6163 | (eval $ac_try) 2>&5 |
| 6164 | ac_status=$? |
| 6165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6166 | (exit $ac_status); }; }; then |
| 6167 | ac_hi=-1 ac_mid=-1 |
| 6168 | while :; do |
| 6169 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6170 | /* confdefs.h. */ |
| 6171 | _ACEOF |
| 6172 | cat confdefs.h >>conftest.$ac_ext |
| 6173 | cat >>conftest.$ac_ext <<_ACEOF |
| 6174 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6175 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6176 | int |
| 6177 | main () |
| 6178 | { |
| 6179 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
| 6180 | test_array [0] = 0 |
| 6181 | |
| 6182 | ; |
| 6183 | return 0; |
| 6184 | } |
| 6185 | _ACEOF |
| 6186 | rm -f conftest.$ac_objext |
| 6187 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6188 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6189 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6190 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6191 | rm -f conftest.er1 |
| 6192 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6194 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6195 | { ac_try='test -z "$ac_c_werror_flag" |
| 6196 | || test ! -s conftest.err' |
| 6197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6198 | (eval $ac_try) 2>&5 |
| 6199 | ac_status=$? |
| 6200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6201 | (exit $ac_status); }; } && |
| 6202 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6204 | (eval $ac_try) 2>&5 |
| 6205 | ac_status=$? |
| 6206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6207 | (exit $ac_status); }; }; then |
| 6208 | ac_lo=$ac_mid; break |
| 6209 | else |
| 6210 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6211 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6212 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6213 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6214 | if test $ac_mid -le $ac_hi; then |
| 6215 | ac_lo= ac_hi= |
| 6216 | break |
| 6217 | fi |
| 6218 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6219 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6220 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6221 | done |
| 6222 | else |
| 6223 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6224 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6225 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6226 | ac_lo= ac_hi= |
| 6227 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6228 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6229 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6230 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6231 | # Binary search between lo and hi bounds. |
| 6232 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6233 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6234 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6235 | /* confdefs.h. */ |
| 6236 | _ACEOF |
| 6237 | cat confdefs.h >>conftest.$ac_ext |
| 6238 | cat >>conftest.$ac_ext <<_ACEOF |
| 6239 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6240 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6241 | int |
| 6242 | main () |
| 6243 | { |
| 6244 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 6245 | test_array [0] = 0 |
| 6246 | |
| 6247 | ; |
| 6248 | return 0; |
| 6249 | } |
| 6250 | _ACEOF |
| 6251 | rm -f conftest.$ac_objext |
| 6252 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6253 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6254 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6255 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6256 | rm -f conftest.er1 |
| 6257 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6259 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6260 | { ac_try='test -z "$ac_c_werror_flag" |
| 6261 | || test ! -s conftest.err' |
| 6262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6263 | (eval $ac_try) 2>&5 |
| 6264 | ac_status=$? |
| 6265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6266 | (exit $ac_status); }; } && |
| 6267 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6269 | (eval $ac_try) 2>&5 |
| 6270 | ac_status=$? |
| 6271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6272 | (exit $ac_status); }; }; then |
| 6273 | ac_hi=$ac_mid |
| 6274 | else |
| 6275 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6276 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6277 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6278 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6279 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6280 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6281 | done |
| 6282 | case $ac_lo in |
| 6283 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6284 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
| 6285 | See \`config.log' for more details." >&5 |
| 6286 | echo "$as_me: error: cannot compute sizeof (int), 77 |
| 6287 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6288 | { (exit 1); exit 1; }; } ;; |
| 6289 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6290 | else |
| 6291 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6292 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 6293 | See \`config.log' for more details." >&5 |
| 6294 | echo "$as_me: error: cannot run test program while cross compiling |
| 6295 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6296 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6297 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6298 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6299 | /* confdefs.h. */ |
| 6300 | _ACEOF |
| 6301 | cat confdefs.h >>conftest.$ac_ext |
| 6302 | cat >>conftest.$ac_ext <<_ACEOF |
| 6303 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6304 | $ac_includes_default |
| 6305 | long longval () { return (long) (sizeof (int)); } |
| 6306 | unsigned long ulongval () { return (long) (sizeof (int)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6307 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6308 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6309 | int |
| 6310 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6311 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6312 | |
| 6313 | FILE *f = fopen ("conftest.val", "w"); |
| 6314 | if (! f) |
| 6315 | exit (1); |
| 6316 | if (((long) (sizeof (int))) < 0) |
| 6317 | { |
| 6318 | long i = longval (); |
| 6319 | if (i != ((long) (sizeof (int)))) |
| 6320 | exit (1); |
| 6321 | fprintf (f, "%ld\n", i); |
| 6322 | } |
| 6323 | else |
| 6324 | { |
| 6325 | unsigned long i = ulongval (); |
| 6326 | if (i != ((long) (sizeof (int)))) |
| 6327 | exit (1); |
| 6328 | fprintf (f, "%lu\n", i); |
| 6329 | } |
| 6330 | exit (ferror (f) || fclose (f) != 0); |
| 6331 | |
| 6332 | ; |
| 6333 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6334 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6335 | _ACEOF |
| 6336 | rm -f conftest$ac_exeext |
| 6337 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6338 | (eval $ac_link) 2>&5 |
| 6339 | ac_status=$? |
| 6340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6341 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6343 | (eval $ac_try) 2>&5 |
| 6344 | ac_status=$? |
| 6345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6346 | (exit $ac_status); }; }; then |
| 6347 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6348 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6349 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6350 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6351 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6352 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6353 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6354 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
| 6355 | See \`config.log' for more details." >&5 |
| 6356 | echo "$as_me: error: cannot compute sizeof (int), 77 |
| 6357 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6358 | { (exit 1); exit 1; }; } |
| 6359 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6360 | rm -f 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] | 6361 | fi |
| 6362 | fi |
| 6363 | rm -f conftest.val |
| 6364 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6365 | ac_cv_sizeof_int=0 |
| 6366 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6367 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6368 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 6369 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| 6370 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6371 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6372 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6373 | |
| 6374 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6375 | echo "$as_me:$LINENO: checking for long" >&5 |
| 6376 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
| 6377 | if test "${ac_cv_type_long+set}" = set; then |
| 6378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6379 | else |
| 6380 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6381 | /* confdefs.h. */ |
| 6382 | _ACEOF |
| 6383 | cat confdefs.h >>conftest.$ac_ext |
| 6384 | cat >>conftest.$ac_ext <<_ACEOF |
| 6385 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6386 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6387 | int |
| 6388 | main () |
| 6389 | { |
| 6390 | if ((long *) 0) |
| 6391 | return 0; |
| 6392 | if (sizeof (long)) |
| 6393 | return 0; |
| 6394 | ; |
| 6395 | return 0; |
| 6396 | } |
| 6397 | _ACEOF |
| 6398 | rm -f conftest.$ac_objext |
| 6399 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6400 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6401 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6402 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6403 | rm -f conftest.er1 |
| 6404 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6406 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6407 | { ac_try='test -z "$ac_c_werror_flag" |
| 6408 | || test ! -s conftest.err' |
| 6409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6410 | (eval $ac_try) 2>&5 |
| 6411 | ac_status=$? |
| 6412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6413 | (exit $ac_status); }; } && |
| 6414 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6416 | (eval $ac_try) 2>&5 |
| 6417 | ac_status=$? |
| 6418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6419 | (exit $ac_status); }; }; then |
| 6420 | ac_cv_type_long=yes |
| 6421 | else |
| 6422 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6423 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6424 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6425 | ac_cv_type_long=no |
| 6426 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6427 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6428 | fi |
| 6429 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 6430 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
| 6431 | |
| 6432 | echo "$as_me:$LINENO: checking size of long" >&5 |
| 6433 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
| 6434 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 6435 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6436 | else |
| 6437 | if test "$ac_cv_type_long" = yes; then |
| 6438 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6439 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6440 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6441 | # This bug is HP SR number 8606223364. |
| 6442 | if test "$cross_compiling" = yes; then |
| 6443 | # Depending upon the size, compute the lo and hi bounds. |
| 6444 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6445 | /* confdefs.h. */ |
| 6446 | _ACEOF |
| 6447 | cat confdefs.h >>conftest.$ac_ext |
| 6448 | cat >>conftest.$ac_ext <<_ACEOF |
| 6449 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6450 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6451 | int |
| 6452 | main () |
| 6453 | { |
| 6454 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
| 6455 | test_array [0] = 0 |
| 6456 | |
| 6457 | ; |
| 6458 | return 0; |
| 6459 | } |
| 6460 | _ACEOF |
| 6461 | rm -f conftest.$ac_objext |
| 6462 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6463 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6464 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6465 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6466 | rm -f conftest.er1 |
| 6467 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6469 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6470 | { ac_try='test -z "$ac_c_werror_flag" |
| 6471 | || test ! -s conftest.err' |
| 6472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6473 | (eval $ac_try) 2>&5 |
| 6474 | ac_status=$? |
| 6475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6476 | (exit $ac_status); }; } && |
| 6477 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6479 | (eval $ac_try) 2>&5 |
| 6480 | ac_status=$? |
| 6481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6482 | (exit $ac_status); }; }; then |
| 6483 | ac_lo=0 ac_mid=0 |
| 6484 | while :; do |
| 6485 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6486 | /* confdefs.h. */ |
| 6487 | _ACEOF |
| 6488 | cat confdefs.h >>conftest.$ac_ext |
| 6489 | cat >>conftest.$ac_ext <<_ACEOF |
| 6490 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6491 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6492 | int |
| 6493 | main () |
| 6494 | { |
| 6495 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 6496 | test_array [0] = 0 |
| 6497 | |
| 6498 | ; |
| 6499 | return 0; |
| 6500 | } |
| 6501 | _ACEOF |
| 6502 | rm -f conftest.$ac_objext |
| 6503 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6504 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6505 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6506 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6507 | rm -f conftest.er1 |
| 6508 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6510 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6511 | { ac_try='test -z "$ac_c_werror_flag" |
| 6512 | || test ! -s conftest.err' |
| 6513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6514 | (eval $ac_try) 2>&5 |
| 6515 | ac_status=$? |
| 6516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6517 | (exit $ac_status); }; } && |
| 6518 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6520 | (eval $ac_try) 2>&5 |
| 6521 | ac_status=$? |
| 6522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6523 | (exit $ac_status); }; }; then |
| 6524 | ac_hi=$ac_mid; break |
| 6525 | else |
| 6526 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6527 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6528 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6529 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6530 | if test $ac_lo -le $ac_mid; then |
| 6531 | ac_lo= ac_hi= |
| 6532 | break |
| 6533 | fi |
| 6534 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6535 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6536 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6537 | done |
| 6538 | else |
| 6539 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6540 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6541 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6542 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6543 | /* confdefs.h. */ |
| 6544 | _ACEOF |
| 6545 | cat confdefs.h >>conftest.$ac_ext |
| 6546 | cat >>conftest.$ac_ext <<_ACEOF |
| 6547 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6548 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6549 | int |
| 6550 | main () |
| 6551 | { |
| 6552 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
| 6553 | test_array [0] = 0 |
| 6554 | |
| 6555 | ; |
| 6556 | return 0; |
| 6557 | } |
| 6558 | _ACEOF |
| 6559 | rm -f conftest.$ac_objext |
| 6560 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6561 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6562 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6563 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6564 | rm -f conftest.er1 |
| 6565 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6567 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6568 | { ac_try='test -z "$ac_c_werror_flag" |
| 6569 | || test ! -s conftest.err' |
| 6570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6571 | (eval $ac_try) 2>&5 |
| 6572 | ac_status=$? |
| 6573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6574 | (exit $ac_status); }; } && |
| 6575 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6577 | (eval $ac_try) 2>&5 |
| 6578 | ac_status=$? |
| 6579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6580 | (exit $ac_status); }; }; then |
| 6581 | ac_hi=-1 ac_mid=-1 |
| 6582 | while :; do |
| 6583 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6584 | /* confdefs.h. */ |
| 6585 | _ACEOF |
| 6586 | cat confdefs.h >>conftest.$ac_ext |
| 6587 | cat >>conftest.$ac_ext <<_ACEOF |
| 6588 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6589 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6590 | int |
| 6591 | main () |
| 6592 | { |
| 6593 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
| 6594 | test_array [0] = 0 |
| 6595 | |
| 6596 | ; |
| 6597 | return 0; |
| 6598 | } |
| 6599 | _ACEOF |
| 6600 | rm -f conftest.$ac_objext |
| 6601 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6602 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6603 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6604 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6605 | rm -f conftest.er1 |
| 6606 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6608 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6609 | { ac_try='test -z "$ac_c_werror_flag" |
| 6610 | || test ! -s conftest.err' |
| 6611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6612 | (eval $ac_try) 2>&5 |
| 6613 | ac_status=$? |
| 6614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6615 | (exit $ac_status); }; } && |
| 6616 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6618 | (eval $ac_try) 2>&5 |
| 6619 | ac_status=$? |
| 6620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6621 | (exit $ac_status); }; }; then |
| 6622 | ac_lo=$ac_mid; break |
| 6623 | else |
| 6624 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6625 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6626 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6627 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6628 | if test $ac_mid -le $ac_hi; then |
| 6629 | ac_lo= ac_hi= |
| 6630 | break |
| 6631 | fi |
| 6632 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6633 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6634 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6635 | done |
| 6636 | else |
| 6637 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6638 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6639 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6640 | ac_lo= ac_hi= |
| 6641 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6642 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6643 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6644 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6645 | # Binary search between lo and hi bounds. |
| 6646 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6647 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6648 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6649 | /* confdefs.h. */ |
| 6650 | _ACEOF |
| 6651 | cat confdefs.h >>conftest.$ac_ext |
| 6652 | cat >>conftest.$ac_ext <<_ACEOF |
| 6653 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6654 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6655 | int |
| 6656 | main () |
| 6657 | { |
| 6658 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 6659 | test_array [0] = 0 |
| 6660 | |
| 6661 | ; |
| 6662 | return 0; |
| 6663 | } |
| 6664 | _ACEOF |
| 6665 | rm -f conftest.$ac_objext |
| 6666 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6667 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6668 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6669 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6670 | rm -f conftest.er1 |
| 6671 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6673 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6674 | { ac_try='test -z "$ac_c_werror_flag" |
| 6675 | || test ! -s conftest.err' |
| 6676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6677 | (eval $ac_try) 2>&5 |
| 6678 | ac_status=$? |
| 6679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6680 | (exit $ac_status); }; } && |
| 6681 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6683 | (eval $ac_try) 2>&5 |
| 6684 | ac_status=$? |
| 6685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6686 | (exit $ac_status); }; }; then |
| 6687 | ac_hi=$ac_mid |
| 6688 | else |
| 6689 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6690 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6691 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6692 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6693 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6694 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6695 | done |
| 6696 | case $ac_lo in |
| 6697 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6698 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
| 6699 | See \`config.log' for more details." >&5 |
| 6700 | echo "$as_me: error: cannot compute sizeof (long), 77 |
| 6701 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6702 | { (exit 1); exit 1; }; } ;; |
| 6703 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6704 | else |
| 6705 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6706 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 6707 | See \`config.log' for more details." >&5 |
| 6708 | echo "$as_me: error: cannot run test program while cross compiling |
| 6709 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6710 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6711 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6712 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6713 | /* confdefs.h. */ |
| 6714 | _ACEOF |
| 6715 | cat confdefs.h >>conftest.$ac_ext |
| 6716 | cat >>conftest.$ac_ext <<_ACEOF |
| 6717 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6718 | $ac_includes_default |
| 6719 | long longval () { return (long) (sizeof (long)); } |
| 6720 | unsigned long ulongval () { return (long) (sizeof (long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6721 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6722 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6723 | int |
| 6724 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6725 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6726 | |
| 6727 | FILE *f = fopen ("conftest.val", "w"); |
| 6728 | if (! f) |
| 6729 | exit (1); |
| 6730 | if (((long) (sizeof (long))) < 0) |
| 6731 | { |
| 6732 | long i = longval (); |
| 6733 | if (i != ((long) (sizeof (long)))) |
| 6734 | exit (1); |
| 6735 | fprintf (f, "%ld\n", i); |
| 6736 | } |
| 6737 | else |
| 6738 | { |
| 6739 | unsigned long i = ulongval (); |
| 6740 | if (i != ((long) (sizeof (long)))) |
| 6741 | exit (1); |
| 6742 | fprintf (f, "%lu\n", i); |
| 6743 | } |
| 6744 | exit (ferror (f) || fclose (f) != 0); |
| 6745 | |
| 6746 | ; |
| 6747 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6748 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6749 | _ACEOF |
| 6750 | rm -f conftest$ac_exeext |
| 6751 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6752 | (eval $ac_link) 2>&5 |
| 6753 | ac_status=$? |
| 6754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6755 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6757 | (eval $ac_try) 2>&5 |
| 6758 | ac_status=$? |
| 6759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6760 | (exit $ac_status); }; }; then |
| 6761 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6762 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6763 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6764 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6765 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6766 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6767 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6768 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
| 6769 | See \`config.log' for more details." >&5 |
| 6770 | echo "$as_me: error: cannot compute sizeof (long), 77 |
| 6771 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6772 | { (exit 1); exit 1; }; } |
| 6773 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6774 | rm -f 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] | 6775 | fi |
| 6776 | fi |
| 6777 | rm -f conftest.val |
| 6778 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6779 | ac_cv_sizeof_long=0 |
| 6780 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6781 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6782 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 6783 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
| 6784 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6785 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6786 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6787 | |
| 6788 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6789 | echo "$as_me:$LINENO: checking for void *" >&5 |
| 6790 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 |
| 6791 | if test "${ac_cv_type_void_p+set}" = set; then |
| 6792 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6793 | else |
| 6794 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6795 | /* confdefs.h. */ |
| 6796 | _ACEOF |
| 6797 | cat confdefs.h >>conftest.$ac_ext |
| 6798 | cat >>conftest.$ac_ext <<_ACEOF |
| 6799 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6800 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6801 | int |
| 6802 | main () |
| 6803 | { |
| 6804 | if ((void * *) 0) |
| 6805 | return 0; |
| 6806 | if (sizeof (void *)) |
| 6807 | return 0; |
| 6808 | ; |
| 6809 | return 0; |
| 6810 | } |
| 6811 | _ACEOF |
| 6812 | rm -f conftest.$ac_objext |
| 6813 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6814 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6815 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6816 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6817 | rm -f conftest.er1 |
| 6818 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6820 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6821 | { ac_try='test -z "$ac_c_werror_flag" |
| 6822 | || test ! -s conftest.err' |
| 6823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6824 | (eval $ac_try) 2>&5 |
| 6825 | ac_status=$? |
| 6826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6827 | (exit $ac_status); }; } && |
| 6828 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6830 | (eval $ac_try) 2>&5 |
| 6831 | ac_status=$? |
| 6832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6833 | (exit $ac_status); }; }; then |
| 6834 | ac_cv_type_void_p=yes |
| 6835 | else |
| 6836 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6837 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6838 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6839 | ac_cv_type_void_p=no |
| 6840 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6841 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6842 | fi |
| 6843 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 6844 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 |
| 6845 | |
| 6846 | echo "$as_me:$LINENO: checking size of void *" >&5 |
| 6847 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 |
| 6848 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
| 6849 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6850 | else |
| 6851 | if test "$ac_cv_type_void_p" = yes; then |
| 6852 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6853 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6854 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6855 | # This bug is HP SR number 8606223364. |
| 6856 | if test "$cross_compiling" = yes; then |
| 6857 | # Depending upon the size, compute the lo and hi bounds. |
| 6858 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6859 | /* confdefs.h. */ |
| 6860 | _ACEOF |
| 6861 | cat confdefs.h >>conftest.$ac_ext |
| 6862 | cat >>conftest.$ac_ext <<_ACEOF |
| 6863 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6864 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6865 | int |
| 6866 | main () |
| 6867 | { |
| 6868 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
| 6869 | test_array [0] = 0 |
| 6870 | |
| 6871 | ; |
| 6872 | return 0; |
| 6873 | } |
| 6874 | _ACEOF |
| 6875 | rm -f conftest.$ac_objext |
| 6876 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6877 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6878 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6879 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6880 | rm -f conftest.er1 |
| 6881 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6883 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6884 | { ac_try='test -z "$ac_c_werror_flag" |
| 6885 | || test ! -s conftest.err' |
| 6886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6887 | (eval $ac_try) 2>&5 |
| 6888 | ac_status=$? |
| 6889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6890 | (exit $ac_status); }; } && |
| 6891 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6893 | (eval $ac_try) 2>&5 |
| 6894 | ac_status=$? |
| 6895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6896 | (exit $ac_status); }; }; then |
| 6897 | ac_lo=0 ac_mid=0 |
| 6898 | while :; do |
| 6899 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6900 | /* confdefs.h. */ |
| 6901 | _ACEOF |
| 6902 | cat confdefs.h >>conftest.$ac_ext |
| 6903 | cat >>conftest.$ac_ext <<_ACEOF |
| 6904 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6905 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6906 | int |
| 6907 | main () |
| 6908 | { |
| 6909 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 6910 | test_array [0] = 0 |
| 6911 | |
| 6912 | ; |
| 6913 | return 0; |
| 6914 | } |
| 6915 | _ACEOF |
| 6916 | rm -f conftest.$ac_objext |
| 6917 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6918 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6919 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6920 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6921 | rm -f conftest.er1 |
| 6922 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6924 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6925 | { ac_try='test -z "$ac_c_werror_flag" |
| 6926 | || test ! -s conftest.err' |
| 6927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6928 | (eval $ac_try) 2>&5 |
| 6929 | ac_status=$? |
| 6930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6931 | (exit $ac_status); }; } && |
| 6932 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6934 | (eval $ac_try) 2>&5 |
| 6935 | ac_status=$? |
| 6936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6937 | (exit $ac_status); }; }; then |
| 6938 | ac_hi=$ac_mid; break |
| 6939 | else |
| 6940 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6941 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6942 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6943 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6944 | if test $ac_lo -le $ac_mid; then |
| 6945 | ac_lo= ac_hi= |
| 6946 | break |
| 6947 | fi |
| 6948 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6949 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6950 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6951 | done |
| 6952 | else |
| 6953 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6954 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6955 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6956 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6957 | /* confdefs.h. */ |
| 6958 | _ACEOF |
| 6959 | cat confdefs.h >>conftest.$ac_ext |
| 6960 | cat >>conftest.$ac_ext <<_ACEOF |
| 6961 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 (void *))) < 0)]; |
| 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 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6975 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6976 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6977 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6978 | rm -f conftest.er1 |
| 6979 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6981 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 6982 | { ac_try='test -z "$ac_c_werror_flag" |
| 6983 | || test ! -s conftest.err' |
| 6984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6985 | (eval $ac_try) 2>&5 |
| 6986 | ac_status=$? |
| 6987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6988 | (exit $ac_status); }; } && |
| 6989 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6991 | (eval $ac_try) 2>&5 |
| 6992 | ac_status=$? |
| 6993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6994 | (exit $ac_status); }; }; then |
| 6995 | ac_hi=-1 ac_mid=-1 |
| 6996 | while :; do |
| 6997 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6998 | /* confdefs.h. */ |
| 6999 | _ACEOF |
| 7000 | cat confdefs.h >>conftest.$ac_ext |
| 7001 | cat >>conftest.$ac_ext <<_ACEOF |
| 7002 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7003 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7004 | int |
| 7005 | main () |
| 7006 | { |
| 7007 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
| 7008 | test_array [0] = 0 |
| 7009 | |
| 7010 | ; |
| 7011 | return 0; |
| 7012 | } |
| 7013 | _ACEOF |
| 7014 | rm -f conftest.$ac_objext |
| 7015 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7016 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7017 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7018 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7019 | rm -f conftest.er1 |
| 7020 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7022 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7023 | { ac_try='test -z "$ac_c_werror_flag" |
| 7024 | || test ! -s conftest.err' |
| 7025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7026 | (eval $ac_try) 2>&5 |
| 7027 | ac_status=$? |
| 7028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7029 | (exit $ac_status); }; } && |
| 7030 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7032 | (eval $ac_try) 2>&5 |
| 7033 | ac_status=$? |
| 7034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7035 | (exit $ac_status); }; }; then |
| 7036 | ac_lo=$ac_mid; break |
| 7037 | else |
| 7038 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7039 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7040 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7041 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7042 | if test $ac_mid -le $ac_hi; then |
| 7043 | ac_lo= ac_hi= |
| 7044 | break |
| 7045 | fi |
| 7046 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7047 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7048 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7049 | done |
| 7050 | else |
| 7051 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7052 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7053 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7054 | ac_lo= ac_hi= |
| 7055 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7056 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7057 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7058 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7059 | # Binary search between lo and hi bounds. |
| 7060 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7061 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7062 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7063 | /* confdefs.h. */ |
| 7064 | _ACEOF |
| 7065 | cat confdefs.h >>conftest.$ac_ext |
| 7066 | cat >>conftest.$ac_ext <<_ACEOF |
| 7067 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7068 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7069 | int |
| 7070 | main () |
| 7071 | { |
| 7072 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 7073 | test_array [0] = 0 |
| 7074 | |
| 7075 | ; |
| 7076 | return 0; |
| 7077 | } |
| 7078 | _ACEOF |
| 7079 | rm -f conftest.$ac_objext |
| 7080 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7081 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7082 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7083 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7084 | rm -f conftest.er1 |
| 7085 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7087 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7088 | { ac_try='test -z "$ac_c_werror_flag" |
| 7089 | || test ! -s conftest.err' |
| 7090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7091 | (eval $ac_try) 2>&5 |
| 7092 | ac_status=$? |
| 7093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7094 | (exit $ac_status); }; } && |
| 7095 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7097 | (eval $ac_try) 2>&5 |
| 7098 | ac_status=$? |
| 7099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7100 | (exit $ac_status); }; }; then |
| 7101 | ac_hi=$ac_mid |
| 7102 | else |
| 7103 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7104 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7105 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7106 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7107 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7108 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7109 | done |
| 7110 | case $ac_lo in |
| 7111 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7112 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
| 7113 | See \`config.log' for more details." >&5 |
| 7114 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
| 7115 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7116 | { (exit 1); exit 1; }; } ;; |
| 7117 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7118 | else |
| 7119 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7120 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 7121 | See \`config.log' for more details." >&5 |
| 7122 | echo "$as_me: error: cannot run test program while cross compiling |
| 7123 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7124 | { (exit 1); exit 1; }; } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7125 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7126 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7127 | /* confdefs.h. */ |
| 7128 | _ACEOF |
| 7129 | cat confdefs.h >>conftest.$ac_ext |
| 7130 | cat >>conftest.$ac_ext <<_ACEOF |
| 7131 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7132 | $ac_includes_default |
| 7133 | long longval () { return (long) (sizeof (void *)); } |
| 7134 | unsigned long ulongval () { return (long) (sizeof (void *)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7135 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7136 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7137 | int |
| 7138 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7139 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7140 | |
| 7141 | FILE *f = fopen ("conftest.val", "w"); |
| 7142 | if (! f) |
| 7143 | exit (1); |
| 7144 | if (((long) (sizeof (void *))) < 0) |
| 7145 | { |
| 7146 | long i = longval (); |
| 7147 | if (i != ((long) (sizeof (void *)))) |
| 7148 | exit (1); |
| 7149 | fprintf (f, "%ld\n", i); |
| 7150 | } |
| 7151 | else |
| 7152 | { |
| 7153 | unsigned long i = ulongval (); |
| 7154 | if (i != ((long) (sizeof (void *)))) |
| 7155 | exit (1); |
| 7156 | fprintf (f, "%lu\n", i); |
| 7157 | } |
| 7158 | exit (ferror (f) || fclose (f) != 0); |
| 7159 | |
| 7160 | ; |
| 7161 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7162 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7163 | _ACEOF |
| 7164 | rm -f conftest$ac_exeext |
| 7165 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7166 | (eval $ac_link) 2>&5 |
| 7167 | ac_status=$? |
| 7168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7169 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7171 | (eval $ac_try) 2>&5 |
| 7172 | ac_status=$? |
| 7173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7174 | (exit $ac_status); }; }; then |
| 7175 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7176 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7177 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7178 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7179 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7180 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7181 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7182 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
| 7183 | See \`config.log' for more details." >&5 |
| 7184 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
| 7185 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7186 | { (exit 1); exit 1; }; } |
| 7187 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7188 | rm -f 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] | 7189 | fi |
| 7190 | fi |
| 7191 | rm -f conftest.val |
| 7192 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7193 | ac_cv_sizeof_void_p=0 |
| 7194 | fi |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7195 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7196 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 7197 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 |
| 7198 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7199 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7200 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7201 | |
| 7202 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7203 | echo "$as_me:$LINENO: checking for short" >&5 |
| 7204 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
| 7205 | if test "${ac_cv_type_short+set}" = set; then |
| 7206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7207 | else |
| 7208 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7209 | /* confdefs.h. */ |
| 7210 | _ACEOF |
| 7211 | cat confdefs.h >>conftest.$ac_ext |
| 7212 | cat >>conftest.$ac_ext <<_ACEOF |
| 7213 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7214 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7215 | int |
| 7216 | main () |
| 7217 | { |
| 7218 | if ((short *) 0) |
| 7219 | return 0; |
| 7220 | if (sizeof (short)) |
| 7221 | return 0; |
| 7222 | ; |
| 7223 | return 0; |
| 7224 | } |
| 7225 | _ACEOF |
| 7226 | rm -f conftest.$ac_objext |
| 7227 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7228 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7229 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7230 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7231 | rm -f conftest.er1 |
| 7232 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7234 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7235 | { ac_try='test -z "$ac_c_werror_flag" |
| 7236 | || test ! -s conftest.err' |
| 7237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7238 | (eval $ac_try) 2>&5 |
| 7239 | ac_status=$? |
| 7240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7241 | (exit $ac_status); }; } && |
| 7242 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7244 | (eval $ac_try) 2>&5 |
| 7245 | ac_status=$? |
| 7246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7247 | (exit $ac_status); }; }; then |
| 7248 | ac_cv_type_short=yes |
| 7249 | else |
| 7250 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7251 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7252 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7253 | ac_cv_type_short=no |
| 7254 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7255 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7256 | fi |
| 7257 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 7258 | echo "${ECHO_T}$ac_cv_type_short" >&6 |
| 7259 | |
| 7260 | echo "$as_me:$LINENO: checking size of short" >&5 |
| 7261 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 |
| 7262 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 7263 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7264 | else |
| 7265 | if test "$ac_cv_type_short" = yes; then |
| 7266 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7267 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7268 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7269 | # This bug is HP SR number 8606223364. |
| 7270 | if test "$cross_compiling" = yes; then |
| 7271 | # Depending upon the size, compute the lo and hi bounds. |
| 7272 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7273 | /* confdefs.h. */ |
| 7274 | _ACEOF |
| 7275 | cat confdefs.h >>conftest.$ac_ext |
| 7276 | cat >>conftest.$ac_ext <<_ACEOF |
| 7277 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7278 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7279 | int |
| 7280 | main () |
| 7281 | { |
| 7282 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
| 7283 | test_array [0] = 0 |
| 7284 | |
| 7285 | ; |
| 7286 | return 0; |
| 7287 | } |
| 7288 | _ACEOF |
| 7289 | rm -f conftest.$ac_objext |
| 7290 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7291 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7292 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7293 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7294 | rm -f conftest.er1 |
| 7295 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7297 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7298 | { ac_try='test -z "$ac_c_werror_flag" |
| 7299 | || test ! -s conftest.err' |
| 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); }; } && |
| 7305 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7307 | (eval $ac_try) 2>&5 |
| 7308 | ac_status=$? |
| 7309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7310 | (exit $ac_status); }; }; then |
| 7311 | ac_lo=0 ac_mid=0 |
| 7312 | while :; do |
| 7313 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7314 | /* confdefs.h. */ |
| 7315 | _ACEOF |
| 7316 | cat confdefs.h >>conftest.$ac_ext |
| 7317 | cat >>conftest.$ac_ext <<_ACEOF |
| 7318 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7319 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7320 | int |
| 7321 | main () |
| 7322 | { |
| 7323 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 7324 | test_array [0] = 0 |
| 7325 | |
| 7326 | ; |
| 7327 | return 0; |
| 7328 | } |
| 7329 | _ACEOF |
| 7330 | rm -f conftest.$ac_objext |
| 7331 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7332 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7333 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7334 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7335 | rm -f conftest.er1 |
| 7336 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7338 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7339 | { ac_try='test -z "$ac_c_werror_flag" |
| 7340 | || test ! -s conftest.err' |
| 7341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7342 | (eval $ac_try) 2>&5 |
| 7343 | ac_status=$? |
| 7344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7345 | (exit $ac_status); }; } && |
| 7346 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7348 | (eval $ac_try) 2>&5 |
| 7349 | ac_status=$? |
| 7350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7351 | (exit $ac_status); }; }; then |
| 7352 | ac_hi=$ac_mid; break |
| 7353 | else |
| 7354 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7355 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7356 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7357 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7358 | if test $ac_lo -le $ac_mid; then |
| 7359 | ac_lo= ac_hi= |
| 7360 | break |
| 7361 | fi |
| 7362 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7363 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7364 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7365 | done |
| 7366 | else |
| 7367 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7368 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7369 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7370 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7371 | /* confdefs.h. */ |
| 7372 | _ACEOF |
| 7373 | cat confdefs.h >>conftest.$ac_ext |
| 7374 | cat >>conftest.$ac_ext <<_ACEOF |
| 7375 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7376 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7377 | int |
| 7378 | main () |
| 7379 | { |
| 7380 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
| 7381 | test_array [0] = 0 |
| 7382 | |
| 7383 | ; |
| 7384 | return 0; |
| 7385 | } |
| 7386 | _ACEOF |
| 7387 | rm -f conftest.$ac_objext |
| 7388 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7389 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7390 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7391 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7392 | rm -f conftest.er1 |
| 7393 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7395 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7396 | { ac_try='test -z "$ac_c_werror_flag" |
| 7397 | || test ! -s conftest.err' |
| 7398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7399 | (eval $ac_try) 2>&5 |
| 7400 | ac_status=$? |
| 7401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7402 | (exit $ac_status); }; } && |
| 7403 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7405 | (eval $ac_try) 2>&5 |
| 7406 | ac_status=$? |
| 7407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7408 | (exit $ac_status); }; }; then |
| 7409 | ac_hi=-1 ac_mid=-1 |
| 7410 | while :; do |
| 7411 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7412 | /* confdefs.h. */ |
| 7413 | _ACEOF |
| 7414 | cat confdefs.h >>conftest.$ac_ext |
| 7415 | cat >>conftest.$ac_ext <<_ACEOF |
| 7416 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7417 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7418 | int |
| 7419 | main () |
| 7420 | { |
| 7421 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
| 7422 | test_array [0] = 0 |
| 7423 | |
| 7424 | ; |
| 7425 | return 0; |
| 7426 | } |
| 7427 | _ACEOF |
| 7428 | rm -f conftest.$ac_objext |
| 7429 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7430 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7431 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7432 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7433 | rm -f conftest.er1 |
| 7434 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7436 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7437 | { ac_try='test -z "$ac_c_werror_flag" |
| 7438 | || test ! -s conftest.err' |
| 7439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7440 | (eval $ac_try) 2>&5 |
| 7441 | ac_status=$? |
| 7442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7443 | (exit $ac_status); }; } && |
| 7444 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7446 | (eval $ac_try) 2>&5 |
| 7447 | ac_status=$? |
| 7448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7449 | (exit $ac_status); }; }; then |
| 7450 | ac_lo=$ac_mid; break |
| 7451 | else |
| 7452 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7453 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7454 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7455 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7456 | if test $ac_mid -le $ac_hi; then |
| 7457 | ac_lo= ac_hi= |
| 7458 | break |
| 7459 | fi |
| 7460 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7461 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7462 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7463 | done |
| 7464 | else |
| 7465 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7466 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7467 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7468 | ac_lo= ac_hi= |
| 7469 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7470 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7471 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7472 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7473 | # Binary search between lo and hi bounds. |
| 7474 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7475 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7476 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7477 | /* confdefs.h. */ |
| 7478 | _ACEOF |
| 7479 | cat confdefs.h >>conftest.$ac_ext |
| 7480 | cat >>conftest.$ac_ext <<_ACEOF |
| 7481 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7482 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7483 | int |
| 7484 | main () |
| 7485 | { |
| 7486 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 7487 | test_array [0] = 0 |
| 7488 | |
| 7489 | ; |
| 7490 | return 0; |
| 7491 | } |
| 7492 | _ACEOF |
| 7493 | rm -f conftest.$ac_objext |
| 7494 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7495 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7496 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7497 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7498 | rm -f conftest.er1 |
| 7499 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7501 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7502 | { ac_try='test -z "$ac_c_werror_flag" |
| 7503 | || test ! -s conftest.err' |
| 7504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7505 | (eval $ac_try) 2>&5 |
| 7506 | ac_status=$? |
| 7507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7508 | (exit $ac_status); }; } && |
| 7509 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7511 | (eval $ac_try) 2>&5 |
| 7512 | ac_status=$? |
| 7513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7514 | (exit $ac_status); }; }; then |
| 7515 | ac_hi=$ac_mid |
| 7516 | else |
| 7517 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7518 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7519 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7520 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7521 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7522 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7523 | done |
| 7524 | case $ac_lo in |
| 7525 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7526 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
| 7527 | See \`config.log' for more details." >&5 |
| 7528 | echo "$as_me: error: cannot compute sizeof (short), 77 |
| 7529 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7530 | { (exit 1); exit 1; }; } ;; |
| 7531 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7532 | else |
| 7533 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7534 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 7535 | See \`config.log' for more details." >&5 |
| 7536 | echo "$as_me: error: cannot run test program while cross compiling |
| 7537 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7538 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7539 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7540 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7541 | /* confdefs.h. */ |
| 7542 | _ACEOF |
| 7543 | cat confdefs.h >>conftest.$ac_ext |
| 7544 | cat >>conftest.$ac_ext <<_ACEOF |
| 7545 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7546 | $ac_includes_default |
| 7547 | long longval () { return (long) (sizeof (short)); } |
| 7548 | unsigned long ulongval () { return (long) (sizeof (short)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7549 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7550 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7551 | int |
| 7552 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7553 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7554 | |
| 7555 | FILE *f = fopen ("conftest.val", "w"); |
| 7556 | if (! f) |
| 7557 | exit (1); |
| 7558 | if (((long) (sizeof (short))) < 0) |
| 7559 | { |
| 7560 | long i = longval (); |
| 7561 | if (i != ((long) (sizeof (short)))) |
| 7562 | exit (1); |
| 7563 | fprintf (f, "%ld\n", i); |
| 7564 | } |
| 7565 | else |
| 7566 | { |
| 7567 | unsigned long i = ulongval (); |
| 7568 | if (i != ((long) (sizeof (short)))) |
| 7569 | exit (1); |
| 7570 | fprintf (f, "%lu\n", i); |
| 7571 | } |
| 7572 | exit (ferror (f) || fclose (f) != 0); |
| 7573 | |
| 7574 | ; |
| 7575 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7576 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7577 | _ACEOF |
| 7578 | rm -f conftest$ac_exeext |
| 7579 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7580 | (eval $ac_link) 2>&5 |
| 7581 | ac_status=$? |
| 7582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7583 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7585 | (eval $ac_try) 2>&5 |
| 7586 | ac_status=$? |
| 7587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7588 | (exit $ac_status); }; }; then |
| 7589 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7590 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7591 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7592 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7593 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7594 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7595 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7596 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
| 7597 | See \`config.log' for more details." >&5 |
| 7598 | echo "$as_me: error: cannot compute sizeof (short), 77 |
| 7599 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7600 | { (exit 1); exit 1; }; } |
| 7601 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7602 | rm -f 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] | 7603 | fi |
| 7604 | fi |
| 7605 | rm -f conftest.val |
| 7606 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7607 | ac_cv_sizeof_short=0 |
| 7608 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7609 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7610 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 7611 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 |
| 7612 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7613 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7614 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7615 | |
| 7616 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7617 | echo "$as_me:$LINENO: checking for float" >&5 |
| 7618 | echo $ECHO_N "checking for float... $ECHO_C" >&6 |
| 7619 | if test "${ac_cv_type_float+set}" = set; then |
| 7620 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7621 | else |
| 7622 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7623 | /* confdefs.h. */ |
| 7624 | _ACEOF |
| 7625 | cat confdefs.h >>conftest.$ac_ext |
| 7626 | cat >>conftest.$ac_ext <<_ACEOF |
| 7627 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7628 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7629 | int |
| 7630 | main () |
| 7631 | { |
| 7632 | if ((float *) 0) |
| 7633 | return 0; |
| 7634 | if (sizeof (float)) |
| 7635 | return 0; |
| 7636 | ; |
| 7637 | return 0; |
| 7638 | } |
| 7639 | _ACEOF |
| 7640 | rm -f conftest.$ac_objext |
| 7641 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7642 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7643 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7644 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7645 | rm -f conftest.er1 |
| 7646 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7648 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7649 | { ac_try='test -z "$ac_c_werror_flag" |
| 7650 | || test ! -s conftest.err' |
| 7651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7652 | (eval $ac_try) 2>&5 |
| 7653 | ac_status=$? |
| 7654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7655 | (exit $ac_status); }; } && |
| 7656 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7658 | (eval $ac_try) 2>&5 |
| 7659 | ac_status=$? |
| 7660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7661 | (exit $ac_status); }; }; then |
| 7662 | ac_cv_type_float=yes |
| 7663 | else |
| 7664 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7665 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7666 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7667 | ac_cv_type_float=no |
| 7668 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7669 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7670 | fi |
| 7671 | echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 7672 | echo "${ECHO_T}$ac_cv_type_float" >&6 |
| 7673 | |
| 7674 | echo "$as_me:$LINENO: checking size of float" >&5 |
| 7675 | echo $ECHO_N "checking size of float... $ECHO_C" >&6 |
| 7676 | if test "${ac_cv_sizeof_float+set}" = set; then |
| 7677 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7678 | else |
| 7679 | if test "$ac_cv_type_float" = yes; then |
| 7680 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7681 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7682 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7683 | # This bug is HP SR number 8606223364. |
| 7684 | if test "$cross_compiling" = yes; then |
| 7685 | # Depending upon the size, compute the lo and hi bounds. |
| 7686 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7687 | /* confdefs.h. */ |
| 7688 | _ACEOF |
| 7689 | cat confdefs.h >>conftest.$ac_ext |
| 7690 | cat >>conftest.$ac_ext <<_ACEOF |
| 7691 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7692 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7693 | int |
| 7694 | main () |
| 7695 | { |
| 7696 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)]; |
| 7697 | test_array [0] = 0 |
| 7698 | |
| 7699 | ; |
| 7700 | return 0; |
| 7701 | } |
| 7702 | _ACEOF |
| 7703 | rm -f conftest.$ac_objext |
| 7704 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7705 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7706 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7707 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7708 | rm -f conftest.er1 |
| 7709 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7711 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7712 | { ac_try='test -z "$ac_c_werror_flag" |
| 7713 | || test ! -s conftest.err' |
| 7714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7715 | (eval $ac_try) 2>&5 |
| 7716 | ac_status=$? |
| 7717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7718 | (exit $ac_status); }; } && |
| 7719 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7721 | (eval $ac_try) 2>&5 |
| 7722 | ac_status=$? |
| 7723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7724 | (exit $ac_status); }; }; then |
| 7725 | ac_lo=0 ac_mid=0 |
| 7726 | while :; do |
| 7727 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7728 | /* confdefs.h. */ |
| 7729 | _ACEOF |
| 7730 | cat confdefs.h >>conftest.$ac_ext |
| 7731 | cat >>conftest.$ac_ext <<_ACEOF |
| 7732 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7733 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7734 | int |
| 7735 | main () |
| 7736 | { |
| 7737 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 7738 | test_array [0] = 0 |
| 7739 | |
| 7740 | ; |
| 7741 | return 0; |
| 7742 | } |
| 7743 | _ACEOF |
| 7744 | rm -f conftest.$ac_objext |
| 7745 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7746 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7747 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7748 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7749 | rm -f conftest.er1 |
| 7750 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7752 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7753 | { ac_try='test -z "$ac_c_werror_flag" |
| 7754 | || test ! -s conftest.err' |
| 7755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7756 | (eval $ac_try) 2>&5 |
| 7757 | ac_status=$? |
| 7758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7759 | (exit $ac_status); }; } && |
| 7760 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7762 | (eval $ac_try) 2>&5 |
| 7763 | ac_status=$? |
| 7764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7765 | (exit $ac_status); }; }; then |
| 7766 | ac_hi=$ac_mid; break |
| 7767 | else |
| 7768 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7769 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7770 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7771 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7772 | if test $ac_lo -le $ac_mid; then |
| 7773 | ac_lo= ac_hi= |
| 7774 | break |
| 7775 | fi |
| 7776 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7777 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7778 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7779 | done |
| 7780 | else |
| 7781 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7782 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7783 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7784 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7785 | /* confdefs.h. */ |
| 7786 | _ACEOF |
| 7787 | cat confdefs.h >>conftest.$ac_ext |
| 7788 | cat >>conftest.$ac_ext <<_ACEOF |
| 7789 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7790 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7791 | int |
| 7792 | main () |
| 7793 | { |
| 7794 | static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)]; |
| 7795 | test_array [0] = 0 |
| 7796 | |
| 7797 | ; |
| 7798 | return 0; |
| 7799 | } |
| 7800 | _ACEOF |
| 7801 | rm -f conftest.$ac_objext |
| 7802 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7803 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7804 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7805 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7806 | rm -f conftest.er1 |
| 7807 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7809 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7810 | { ac_try='test -z "$ac_c_werror_flag" |
| 7811 | || test ! -s conftest.err' |
| 7812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7813 | (eval $ac_try) 2>&5 |
| 7814 | ac_status=$? |
| 7815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7816 | (exit $ac_status); }; } && |
| 7817 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7819 | (eval $ac_try) 2>&5 |
| 7820 | ac_status=$? |
| 7821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7822 | (exit $ac_status); }; }; then |
| 7823 | ac_hi=-1 ac_mid=-1 |
| 7824 | while :; do |
| 7825 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7826 | /* confdefs.h. */ |
| 7827 | _ACEOF |
| 7828 | cat confdefs.h >>conftest.$ac_ext |
| 7829 | cat >>conftest.$ac_ext <<_ACEOF |
| 7830 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7831 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7832 | int |
| 7833 | main () |
| 7834 | { |
| 7835 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)]; |
| 7836 | test_array [0] = 0 |
| 7837 | |
| 7838 | ; |
| 7839 | return 0; |
| 7840 | } |
| 7841 | _ACEOF |
| 7842 | rm -f conftest.$ac_objext |
| 7843 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7844 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7845 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7846 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7847 | rm -f conftest.er1 |
| 7848 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7850 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7851 | { ac_try='test -z "$ac_c_werror_flag" |
| 7852 | || test ! -s conftest.err' |
| 7853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7854 | (eval $ac_try) 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' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | ac_lo=$ac_mid; break |
| 7865 | else |
| 7866 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7867 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7868 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7869 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7870 | if test $ac_mid -le $ac_hi; then |
| 7871 | ac_lo= ac_hi= |
| 7872 | break |
| 7873 | fi |
| 7874 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7875 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7876 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7877 | done |
| 7878 | else |
| 7879 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7880 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7881 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7882 | ac_lo= ac_hi= |
| 7883 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7884 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7885 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7886 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7887 | # Binary search between lo and hi bounds. |
| 7888 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7889 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7890 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7891 | /* confdefs.h. */ |
| 7892 | _ACEOF |
| 7893 | cat confdefs.h >>conftest.$ac_ext |
| 7894 | cat >>conftest.$ac_ext <<_ACEOF |
| 7895 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7896 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7897 | int |
| 7898 | main () |
| 7899 | { |
| 7900 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 7901 | test_array [0] = 0 |
| 7902 | |
| 7903 | ; |
| 7904 | return 0; |
| 7905 | } |
| 7906 | _ACEOF |
| 7907 | rm -f conftest.$ac_objext |
| 7908 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7909 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7910 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7911 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7912 | rm -f conftest.er1 |
| 7913 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7915 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7916 | { ac_try='test -z "$ac_c_werror_flag" |
| 7917 | || test ! -s conftest.err' |
| 7918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7919 | (eval $ac_try) 2>&5 |
| 7920 | ac_status=$? |
| 7921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7922 | (exit $ac_status); }; } && |
| 7923 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7925 | (eval $ac_try) 2>&5 |
| 7926 | ac_status=$? |
| 7927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7928 | (exit $ac_status); }; }; then |
| 7929 | ac_hi=$ac_mid |
| 7930 | else |
| 7931 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7932 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7933 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7934 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7935 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 7936 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7937 | done |
| 7938 | case $ac_lo in |
| 7939 | ?*) ac_cv_sizeof_float=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7940 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77 |
| 7941 | See \`config.log' for more details." >&5 |
| 7942 | echo "$as_me: error: cannot compute sizeof (float), 77 |
| 7943 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7944 | { (exit 1); exit 1; }; } ;; |
| 7945 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7946 | else |
| 7947 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7948 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 7949 | See \`config.log' for more details." >&5 |
| 7950 | echo "$as_me: error: cannot run test program while cross compiling |
| 7951 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7952 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7953 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7954 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7955 | /* confdefs.h. */ |
| 7956 | _ACEOF |
| 7957 | cat confdefs.h >>conftest.$ac_ext |
| 7958 | cat >>conftest.$ac_ext <<_ACEOF |
| 7959 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7960 | $ac_includes_default |
| 7961 | long longval () { return (long) (sizeof (float)); } |
| 7962 | unsigned long ulongval () { return (long) (sizeof (float)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7963 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7964 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7965 | int |
| 7966 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7967 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7968 | |
| 7969 | FILE *f = fopen ("conftest.val", "w"); |
| 7970 | if (! f) |
| 7971 | exit (1); |
| 7972 | if (((long) (sizeof (float))) < 0) |
| 7973 | { |
| 7974 | long i = longval (); |
| 7975 | if (i != ((long) (sizeof (float)))) |
| 7976 | exit (1); |
| 7977 | fprintf (f, "%ld\n", i); |
| 7978 | } |
| 7979 | else |
| 7980 | { |
| 7981 | unsigned long i = ulongval (); |
| 7982 | if (i != ((long) (sizeof (float)))) |
| 7983 | exit (1); |
| 7984 | fprintf (f, "%lu\n", i); |
| 7985 | } |
| 7986 | exit (ferror (f) || fclose (f) != 0); |
| 7987 | |
| 7988 | ; |
| 7989 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7990 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7991 | _ACEOF |
| 7992 | rm -f conftest$ac_exeext |
| 7993 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7994 | (eval $ac_link) 2>&5 |
| 7995 | ac_status=$? |
| 7996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7997 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7999 | (eval $ac_try) 2>&5 |
| 8000 | ac_status=$? |
| 8001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8002 | (exit $ac_status); }; }; then |
| 8003 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8004 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8005 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8006 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8007 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8008 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8009 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8010 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77 |
| 8011 | See \`config.log' for more details." >&5 |
| 8012 | echo "$as_me: error: cannot compute sizeof (float), 77 |
| 8013 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8014 | { (exit 1); exit 1; }; } |
| 8015 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8016 | rm -f 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] | 8017 | fi |
| 8018 | fi |
| 8019 | rm -f conftest.val |
| 8020 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8021 | ac_cv_sizeof_float=0 |
| 8022 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8023 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8024 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 8025 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6 |
| 8026 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8027 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8028 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8029 | |
| 8030 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8031 | echo "$as_me:$LINENO: checking for double" >&5 |
| 8032 | echo $ECHO_N "checking for double... $ECHO_C" >&6 |
| 8033 | if test "${ac_cv_type_double+set}" = set; then |
| 8034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8035 | else |
| 8036 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8037 | /* confdefs.h. */ |
| 8038 | _ACEOF |
| 8039 | cat confdefs.h >>conftest.$ac_ext |
| 8040 | cat >>conftest.$ac_ext <<_ACEOF |
| 8041 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8042 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8043 | int |
| 8044 | main () |
| 8045 | { |
| 8046 | if ((double *) 0) |
| 8047 | return 0; |
| 8048 | if (sizeof (double)) |
| 8049 | return 0; |
| 8050 | ; |
| 8051 | return 0; |
| 8052 | } |
| 8053 | _ACEOF |
| 8054 | rm -f conftest.$ac_objext |
| 8055 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8056 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8057 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8058 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8059 | rm -f conftest.er1 |
| 8060 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8062 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8063 | { ac_try='test -z "$ac_c_werror_flag" |
| 8064 | || test ! -s conftest.err' |
| 8065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8066 | (eval $ac_try) 2>&5 |
| 8067 | ac_status=$? |
| 8068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8069 | (exit $ac_status); }; } && |
| 8070 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8072 | (eval $ac_try) 2>&5 |
| 8073 | ac_status=$? |
| 8074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8075 | (exit $ac_status); }; }; then |
| 8076 | ac_cv_type_double=yes |
| 8077 | else |
| 8078 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8079 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8080 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8081 | ac_cv_type_double=no |
| 8082 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8083 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8084 | fi |
| 8085 | echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 8086 | echo "${ECHO_T}$ac_cv_type_double" >&6 |
| 8087 | |
| 8088 | echo "$as_me:$LINENO: checking size of double" >&5 |
| 8089 | echo $ECHO_N "checking size of double... $ECHO_C" >&6 |
| 8090 | if test "${ac_cv_sizeof_double+set}" = set; then |
| 8091 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8092 | else |
| 8093 | if test "$ac_cv_type_double" = yes; then |
| 8094 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8095 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8096 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8097 | # This bug is HP SR number 8606223364. |
| 8098 | if test "$cross_compiling" = yes; then |
| 8099 | # Depending upon the size, compute the lo and hi bounds. |
| 8100 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8101 | /* confdefs.h. */ |
| 8102 | _ACEOF |
| 8103 | cat confdefs.h >>conftest.$ac_ext |
| 8104 | cat >>conftest.$ac_ext <<_ACEOF |
| 8105 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8106 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8107 | int |
| 8108 | main () |
| 8109 | { |
| 8110 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)]; |
| 8111 | test_array [0] = 0 |
| 8112 | |
| 8113 | ; |
| 8114 | return 0; |
| 8115 | } |
| 8116 | _ACEOF |
| 8117 | rm -f conftest.$ac_objext |
| 8118 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8119 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8120 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8121 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8122 | rm -f conftest.er1 |
| 8123 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8125 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8126 | { ac_try='test -z "$ac_c_werror_flag" |
| 8127 | || test ! -s conftest.err' |
| 8128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8129 | (eval $ac_try) 2>&5 |
| 8130 | ac_status=$? |
| 8131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8132 | (exit $ac_status); }; } && |
| 8133 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8135 | (eval $ac_try) 2>&5 |
| 8136 | ac_status=$? |
| 8137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8138 | (exit $ac_status); }; }; then |
| 8139 | ac_lo=0 ac_mid=0 |
| 8140 | while :; do |
| 8141 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8142 | /* confdefs.h. */ |
| 8143 | _ACEOF |
| 8144 | cat confdefs.h >>conftest.$ac_ext |
| 8145 | cat >>conftest.$ac_ext <<_ACEOF |
| 8146 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8147 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8148 | int |
| 8149 | main () |
| 8150 | { |
| 8151 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 8152 | test_array [0] = 0 |
| 8153 | |
| 8154 | ; |
| 8155 | return 0; |
| 8156 | } |
| 8157 | _ACEOF |
| 8158 | rm -f conftest.$ac_objext |
| 8159 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8160 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8161 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8162 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8163 | rm -f conftest.er1 |
| 8164 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8166 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8167 | { ac_try='test -z "$ac_c_werror_flag" |
| 8168 | || test ! -s conftest.err' |
| 8169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8170 | (eval $ac_try) 2>&5 |
| 8171 | ac_status=$? |
| 8172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8173 | (exit $ac_status); }; } && |
| 8174 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8176 | (eval $ac_try) 2>&5 |
| 8177 | ac_status=$? |
| 8178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8179 | (exit $ac_status); }; }; then |
| 8180 | ac_hi=$ac_mid; break |
| 8181 | else |
| 8182 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8183 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8184 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8185 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8186 | if test $ac_lo -le $ac_mid; then |
| 8187 | ac_lo= ac_hi= |
| 8188 | break |
| 8189 | fi |
| 8190 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8191 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8192 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8193 | done |
| 8194 | else |
| 8195 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8196 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8197 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8198 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8199 | /* confdefs.h. */ |
| 8200 | _ACEOF |
| 8201 | cat confdefs.h >>conftest.$ac_ext |
| 8202 | cat >>conftest.$ac_ext <<_ACEOF |
| 8203 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8204 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8205 | int |
| 8206 | main () |
| 8207 | { |
| 8208 | static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)]; |
| 8209 | test_array [0] = 0 |
| 8210 | |
| 8211 | ; |
| 8212 | return 0; |
| 8213 | } |
| 8214 | _ACEOF |
| 8215 | rm -f conftest.$ac_objext |
| 8216 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8217 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8218 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8219 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8220 | rm -f conftest.er1 |
| 8221 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8223 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8224 | { ac_try='test -z "$ac_c_werror_flag" |
| 8225 | || test ! -s conftest.err' |
| 8226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8227 | (eval $ac_try) 2>&5 |
| 8228 | ac_status=$? |
| 8229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8230 | (exit $ac_status); }; } && |
| 8231 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8233 | (eval $ac_try) 2>&5 |
| 8234 | ac_status=$? |
| 8235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8236 | (exit $ac_status); }; }; then |
| 8237 | ac_hi=-1 ac_mid=-1 |
| 8238 | while :; do |
| 8239 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8240 | /* confdefs.h. */ |
| 8241 | _ACEOF |
| 8242 | cat confdefs.h >>conftest.$ac_ext |
| 8243 | cat >>conftest.$ac_ext <<_ACEOF |
| 8244 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8245 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8246 | int |
| 8247 | main () |
| 8248 | { |
| 8249 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)]; |
| 8250 | test_array [0] = 0 |
| 8251 | |
| 8252 | ; |
| 8253 | return 0; |
| 8254 | } |
| 8255 | _ACEOF |
| 8256 | rm -f conftest.$ac_objext |
| 8257 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8258 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8259 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8260 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8261 | rm -f conftest.er1 |
| 8262 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8264 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8265 | { ac_try='test -z "$ac_c_werror_flag" |
| 8266 | || test ! -s conftest.err' |
| 8267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8268 | (eval $ac_try) 2>&5 |
| 8269 | ac_status=$? |
| 8270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8271 | (exit $ac_status); }; } && |
| 8272 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8274 | (eval $ac_try) 2>&5 |
| 8275 | ac_status=$? |
| 8276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8277 | (exit $ac_status); }; }; then |
| 8278 | ac_lo=$ac_mid; break |
| 8279 | else |
| 8280 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8281 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8282 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8283 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8284 | if test $ac_mid -le $ac_hi; then |
| 8285 | ac_lo= ac_hi= |
| 8286 | break |
| 8287 | fi |
| 8288 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8289 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8290 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8291 | done |
| 8292 | else |
| 8293 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8294 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8295 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8296 | ac_lo= ac_hi= |
| 8297 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8298 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8299 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8300 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8301 | # Binary search between lo and hi bounds. |
| 8302 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8303 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8304 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8305 | /* confdefs.h. */ |
| 8306 | _ACEOF |
| 8307 | cat confdefs.h >>conftest.$ac_ext |
| 8308 | cat >>conftest.$ac_ext <<_ACEOF |
| 8309 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8310 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8311 | int |
| 8312 | main () |
| 8313 | { |
| 8314 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 8315 | test_array [0] = 0 |
| 8316 | |
| 8317 | ; |
| 8318 | return 0; |
| 8319 | } |
| 8320 | _ACEOF |
| 8321 | rm -f conftest.$ac_objext |
| 8322 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8323 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8324 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8325 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8326 | rm -f conftest.er1 |
| 8327 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8329 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8330 | { ac_try='test -z "$ac_c_werror_flag" |
| 8331 | || test ! -s conftest.err' |
| 8332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8333 | (eval $ac_try) 2>&5 |
| 8334 | ac_status=$? |
| 8335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8336 | (exit $ac_status); }; } && |
| 8337 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8339 | (eval $ac_try) 2>&5 |
| 8340 | ac_status=$? |
| 8341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8342 | (exit $ac_status); }; }; then |
| 8343 | ac_hi=$ac_mid |
| 8344 | else |
| 8345 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8346 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8347 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8348 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8349 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8350 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8351 | done |
| 8352 | case $ac_lo in |
| 8353 | ?*) ac_cv_sizeof_double=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8354 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77 |
| 8355 | See \`config.log' for more details." >&5 |
| 8356 | echo "$as_me: error: cannot compute sizeof (double), 77 |
| 8357 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8358 | { (exit 1); exit 1; }; } ;; |
| 8359 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8360 | else |
| 8361 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8362 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 8363 | See \`config.log' for more details." >&5 |
| 8364 | echo "$as_me: error: cannot run test program while cross compiling |
| 8365 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8366 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8367 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8368 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8369 | /* confdefs.h. */ |
| 8370 | _ACEOF |
| 8371 | cat confdefs.h >>conftest.$ac_ext |
| 8372 | cat >>conftest.$ac_ext <<_ACEOF |
| 8373 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8374 | $ac_includes_default |
| 8375 | long longval () { return (long) (sizeof (double)); } |
| 8376 | unsigned long ulongval () { return (long) (sizeof (double)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8377 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8378 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8379 | int |
| 8380 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8381 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8382 | |
| 8383 | FILE *f = fopen ("conftest.val", "w"); |
| 8384 | if (! f) |
| 8385 | exit (1); |
| 8386 | if (((long) (sizeof (double))) < 0) |
| 8387 | { |
| 8388 | long i = longval (); |
| 8389 | if (i != ((long) (sizeof (double)))) |
| 8390 | exit (1); |
| 8391 | fprintf (f, "%ld\n", i); |
| 8392 | } |
| 8393 | else |
| 8394 | { |
| 8395 | unsigned long i = ulongval (); |
| 8396 | if (i != ((long) (sizeof (double)))) |
| 8397 | exit (1); |
| 8398 | fprintf (f, "%lu\n", i); |
| 8399 | } |
| 8400 | exit (ferror (f) || fclose (f) != 0); |
| 8401 | |
| 8402 | ; |
| 8403 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8404 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8405 | _ACEOF |
| 8406 | rm -f conftest$ac_exeext |
| 8407 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8408 | (eval $ac_link) 2>&5 |
| 8409 | ac_status=$? |
| 8410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8411 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8413 | (eval $ac_try) 2>&5 |
| 8414 | ac_status=$? |
| 8415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8416 | (exit $ac_status); }; }; then |
| 8417 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8418 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8419 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8420 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8421 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8422 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8423 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8424 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77 |
| 8425 | See \`config.log' for more details." >&5 |
| 8426 | echo "$as_me: error: cannot compute sizeof (double), 77 |
| 8427 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8428 | { (exit 1); exit 1; }; } |
| 8429 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8430 | rm -f 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] | 8431 | fi |
| 8432 | fi |
| 8433 | rm -f conftest.val |
| 8434 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8435 | ac_cv_sizeof_double=0 |
| 8436 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8437 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8438 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 8439 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6 |
| 8440 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8441 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8442 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8443 | |
| 8444 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8445 | echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 8446 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6 |
| 8447 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 8448 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8449 | else |
| 8450 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8451 | /* confdefs.h. */ |
| 8452 | _ACEOF |
| 8453 | cat confdefs.h >>conftest.$ac_ext |
| 8454 | cat >>conftest.$ac_ext <<_ACEOF |
| 8455 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8456 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8457 | int |
| 8458 | main () |
| 8459 | { |
| 8460 | if ((fpos_t *) 0) |
| 8461 | return 0; |
| 8462 | if (sizeof (fpos_t)) |
| 8463 | return 0; |
| 8464 | ; |
| 8465 | return 0; |
| 8466 | } |
| 8467 | _ACEOF |
| 8468 | rm -f conftest.$ac_objext |
| 8469 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8470 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8471 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8472 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8473 | rm -f conftest.er1 |
| 8474 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8476 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8477 | { ac_try='test -z "$ac_c_werror_flag" |
| 8478 | || test ! -s conftest.err' |
| 8479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8480 | (eval $ac_try) 2>&5 |
| 8481 | ac_status=$? |
| 8482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8483 | (exit $ac_status); }; } && |
| 8484 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8486 | (eval $ac_try) 2>&5 |
| 8487 | ac_status=$? |
| 8488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8489 | (exit $ac_status); }; }; then |
| 8490 | ac_cv_type_fpos_t=yes |
| 8491 | else |
| 8492 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8493 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8494 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8495 | ac_cv_type_fpos_t=no |
| 8496 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8497 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8498 | fi |
| 8499 | echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 8500 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6 |
| 8501 | |
| 8502 | echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 8503 | echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6 |
| 8504 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
| 8505 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8506 | else |
| 8507 | if test "$ac_cv_type_fpos_t" = yes; then |
| 8508 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8509 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8510 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8511 | # This bug is HP SR number 8606223364. |
| 8512 | if test "$cross_compiling" = yes; then |
| 8513 | # Depending upon the size, compute the lo and hi bounds. |
| 8514 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8515 | /* confdefs.h. */ |
| 8516 | _ACEOF |
| 8517 | cat confdefs.h >>conftest.$ac_ext |
| 8518 | cat >>conftest.$ac_ext <<_ACEOF |
| 8519 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8520 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8521 | int |
| 8522 | main () |
| 8523 | { |
| 8524 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)]; |
| 8525 | test_array [0] = 0 |
| 8526 | |
| 8527 | ; |
| 8528 | return 0; |
| 8529 | } |
| 8530 | _ACEOF |
| 8531 | rm -f conftest.$ac_objext |
| 8532 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8533 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8534 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8535 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8536 | rm -f conftest.er1 |
| 8537 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8539 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8540 | { ac_try='test -z "$ac_c_werror_flag" |
| 8541 | || test ! -s conftest.err' |
| 8542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8543 | (eval $ac_try) 2>&5 |
| 8544 | ac_status=$? |
| 8545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8546 | (exit $ac_status); }; } && |
| 8547 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8549 | (eval $ac_try) 2>&5 |
| 8550 | ac_status=$? |
| 8551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8552 | (exit $ac_status); }; }; then |
| 8553 | ac_lo=0 ac_mid=0 |
| 8554 | while :; do |
| 8555 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8556 | /* confdefs.h. */ |
| 8557 | _ACEOF |
| 8558 | cat confdefs.h >>conftest.$ac_ext |
| 8559 | cat >>conftest.$ac_ext <<_ACEOF |
| 8560 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8561 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8562 | int |
| 8563 | main () |
| 8564 | { |
| 8565 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 8566 | test_array [0] = 0 |
| 8567 | |
| 8568 | ; |
| 8569 | return 0; |
| 8570 | } |
| 8571 | _ACEOF |
| 8572 | rm -f conftest.$ac_objext |
| 8573 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8574 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8575 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8576 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8577 | rm -f conftest.er1 |
| 8578 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8580 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8581 | { ac_try='test -z "$ac_c_werror_flag" |
| 8582 | || test ! -s conftest.err' |
| 8583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8584 | (eval $ac_try) 2>&5 |
| 8585 | ac_status=$? |
| 8586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8587 | (exit $ac_status); }; } && |
| 8588 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8590 | (eval $ac_try) 2>&5 |
| 8591 | ac_status=$? |
| 8592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8593 | (exit $ac_status); }; }; then |
| 8594 | ac_hi=$ac_mid; break |
| 8595 | else |
| 8596 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8597 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8598 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8599 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8600 | if test $ac_lo -le $ac_mid; then |
| 8601 | ac_lo= ac_hi= |
| 8602 | break |
| 8603 | fi |
| 8604 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8605 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8606 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8607 | done |
| 8608 | else |
| 8609 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8610 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8611 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8612 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8613 | /* confdefs.h. */ |
| 8614 | _ACEOF |
| 8615 | cat confdefs.h >>conftest.$ac_ext |
| 8616 | cat >>conftest.$ac_ext <<_ACEOF |
| 8617 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8618 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8619 | int |
| 8620 | main () |
| 8621 | { |
| 8622 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)]; |
| 8623 | test_array [0] = 0 |
| 8624 | |
| 8625 | ; |
| 8626 | return 0; |
| 8627 | } |
| 8628 | _ACEOF |
| 8629 | rm -f conftest.$ac_objext |
| 8630 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8631 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8632 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8633 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8634 | rm -f conftest.er1 |
| 8635 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8637 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8638 | { ac_try='test -z "$ac_c_werror_flag" |
| 8639 | || test ! -s conftest.err' |
| 8640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8641 | (eval $ac_try) 2>&5 |
| 8642 | ac_status=$? |
| 8643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8644 | (exit $ac_status); }; } && |
| 8645 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8647 | (eval $ac_try) 2>&5 |
| 8648 | ac_status=$? |
| 8649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8650 | (exit $ac_status); }; }; then |
| 8651 | ac_hi=-1 ac_mid=-1 |
| 8652 | while :; do |
| 8653 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8654 | /* confdefs.h. */ |
| 8655 | _ACEOF |
| 8656 | cat confdefs.h >>conftest.$ac_ext |
| 8657 | cat >>conftest.$ac_ext <<_ACEOF |
| 8658 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8659 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8660 | int |
| 8661 | main () |
| 8662 | { |
| 8663 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)]; |
| 8664 | test_array [0] = 0 |
| 8665 | |
| 8666 | ; |
| 8667 | return 0; |
| 8668 | } |
| 8669 | _ACEOF |
| 8670 | rm -f conftest.$ac_objext |
| 8671 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8672 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8673 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8674 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8675 | rm -f conftest.er1 |
| 8676 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8678 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8679 | { ac_try='test -z "$ac_c_werror_flag" |
| 8680 | || test ! -s conftest.err' |
| 8681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8682 | (eval $ac_try) 2>&5 |
| 8683 | ac_status=$? |
| 8684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8685 | (exit $ac_status); }; } && |
| 8686 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8688 | (eval $ac_try) 2>&5 |
| 8689 | ac_status=$? |
| 8690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8691 | (exit $ac_status); }; }; then |
| 8692 | ac_lo=$ac_mid; break |
| 8693 | else |
| 8694 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8695 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8696 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8697 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8698 | if test $ac_mid -le $ac_hi; then |
| 8699 | ac_lo= ac_hi= |
| 8700 | break |
| 8701 | fi |
| 8702 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8703 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8704 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8705 | done |
| 8706 | else |
| 8707 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8708 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8709 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8710 | ac_lo= ac_hi= |
| 8711 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8712 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8713 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8714 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8715 | # Binary search between lo and hi bounds. |
| 8716 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8717 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8718 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8719 | /* confdefs.h. */ |
| 8720 | _ACEOF |
| 8721 | cat confdefs.h >>conftest.$ac_ext |
| 8722 | cat >>conftest.$ac_ext <<_ACEOF |
| 8723 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8724 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8725 | int |
| 8726 | main () |
| 8727 | { |
| 8728 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 8729 | test_array [0] = 0 |
| 8730 | |
| 8731 | ; |
| 8732 | return 0; |
| 8733 | } |
| 8734 | _ACEOF |
| 8735 | rm -f conftest.$ac_objext |
| 8736 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8737 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8738 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8739 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8740 | rm -f conftest.er1 |
| 8741 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8743 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8744 | { ac_try='test -z "$ac_c_werror_flag" |
| 8745 | || test ! -s conftest.err' |
| 8746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8747 | (eval $ac_try) 2>&5 |
| 8748 | ac_status=$? |
| 8749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8750 | (exit $ac_status); }; } && |
| 8751 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8753 | (eval $ac_try) 2>&5 |
| 8754 | ac_status=$? |
| 8755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8756 | (exit $ac_status); }; }; then |
| 8757 | ac_hi=$ac_mid |
| 8758 | else |
| 8759 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8760 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8761 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8762 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8763 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8764 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8765 | done |
| 8766 | case $ac_lo in |
| 8767 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8768 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77 |
| 8769 | See \`config.log' for more details." >&5 |
| 8770 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77 |
| 8771 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8772 | { (exit 1); exit 1; }; } ;; |
| 8773 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8774 | else |
| 8775 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8776 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 8777 | See \`config.log' for more details." >&5 |
| 8778 | echo "$as_me: error: cannot run test program while cross compiling |
| 8779 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8780 | { (exit 1); exit 1; }; } |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8781 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8782 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8783 | /* confdefs.h. */ |
| 8784 | _ACEOF |
| 8785 | cat confdefs.h >>conftest.$ac_ext |
| 8786 | cat >>conftest.$ac_ext <<_ACEOF |
| 8787 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8788 | $ac_includes_default |
| 8789 | long longval () { return (long) (sizeof (fpos_t)); } |
| 8790 | unsigned long ulongval () { return (long) (sizeof (fpos_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8791 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8792 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8793 | int |
| 8794 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8795 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8796 | |
| 8797 | FILE *f = fopen ("conftest.val", "w"); |
| 8798 | if (! f) |
| 8799 | exit (1); |
| 8800 | if (((long) (sizeof (fpos_t))) < 0) |
| 8801 | { |
| 8802 | long i = longval (); |
| 8803 | if (i != ((long) (sizeof (fpos_t)))) |
| 8804 | exit (1); |
| 8805 | fprintf (f, "%ld\n", i); |
| 8806 | } |
| 8807 | else |
| 8808 | { |
| 8809 | unsigned long i = ulongval (); |
| 8810 | if (i != ((long) (sizeof (fpos_t)))) |
| 8811 | exit (1); |
| 8812 | fprintf (f, "%lu\n", i); |
| 8813 | } |
| 8814 | exit (ferror (f) || fclose (f) != 0); |
| 8815 | |
| 8816 | ; |
| 8817 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8818 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8819 | _ACEOF |
| 8820 | rm -f conftest$ac_exeext |
| 8821 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8822 | (eval $ac_link) 2>&5 |
| 8823 | ac_status=$? |
| 8824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8825 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8827 | (eval $ac_try) 2>&5 |
| 8828 | ac_status=$? |
| 8829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8830 | (exit $ac_status); }; }; then |
| 8831 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8832 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8833 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8834 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8835 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8836 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8837 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8838 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77 |
| 8839 | See \`config.log' for more details." >&5 |
| 8840 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77 |
| 8841 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8842 | { (exit 1); exit 1; }; } |
| 8843 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8844 | rm -f 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] | 8845 | fi |
| 8846 | fi |
| 8847 | rm -f conftest.val |
| 8848 | else |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8849 | ac_cv_sizeof_fpos_t=0 |
| 8850 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8851 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8852 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 8853 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6 |
| 8854 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8855 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8856 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8857 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8858 | |
| 8859 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8860 | echo "$as_me:$LINENO: checking for long long support" >&5 |
| 8861 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8862 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8863 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8864 | /* confdefs.h. */ |
| 8865 | _ACEOF |
| 8866 | cat confdefs.h >>conftest.$ac_ext |
| 8867 | cat >>conftest.$ac_ext <<_ACEOF |
| 8868 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8869 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8870 | int |
| 8871 | main () |
| 8872 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8873 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8874 | ; |
| 8875 | return 0; |
| 8876 | } |
| 8877 | _ACEOF |
| 8878 | rm -f conftest.$ac_objext |
| 8879 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8880 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8881 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8882 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8883 | rm -f conftest.er1 |
| 8884 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8886 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8887 | { ac_try='test -z "$ac_c_werror_flag" |
| 8888 | || test ! -s conftest.err' |
| 8889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8890 | (eval $ac_try) 2>&5 |
| 8891 | ac_status=$? |
| 8892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8893 | (exit $ac_status); }; } && |
| 8894 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8896 | (eval $ac_try) 2>&5 |
| 8897 | ac_status=$? |
| 8898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8899 | (exit $ac_status); }; }; then |
| 8900 | |
| 8901 | |
| 8902 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8903 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8904 | _ACEOF |
| 8905 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8906 | have_long_long=yes |
| 8907 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8908 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8909 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8910 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8911 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8912 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8913 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8914 | echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 8915 | echo "${ECHO_T}$have_long_long" >&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 8916 | if test "$have_long_long" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8917 | echo "$as_me:$LINENO: checking for long long" >&5 |
| 8918 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 8919 | if test "${ac_cv_type_long_long+set}" = set; then |
| 8920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8921 | else |
| 8922 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8923 | /* confdefs.h. */ |
| 8924 | _ACEOF |
| 8925 | cat confdefs.h >>conftest.$ac_ext |
| 8926 | cat >>conftest.$ac_ext <<_ACEOF |
| 8927 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8928 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8929 | int |
| 8930 | main () |
| 8931 | { |
| 8932 | if ((long long *) 0) |
| 8933 | return 0; |
| 8934 | if (sizeof (long long)) |
| 8935 | return 0; |
| 8936 | ; |
| 8937 | return 0; |
| 8938 | } |
| 8939 | _ACEOF |
| 8940 | rm -f conftest.$ac_objext |
| 8941 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8942 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8943 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8944 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8945 | rm -f conftest.er1 |
| 8946 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8948 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8949 | { ac_try='test -z "$ac_c_werror_flag" |
| 8950 | || test ! -s conftest.err' |
| 8951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8952 | (eval $ac_try) 2>&5 |
| 8953 | ac_status=$? |
| 8954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8955 | (exit $ac_status); }; } && |
| 8956 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8958 | (eval $ac_try) 2>&5 |
| 8959 | ac_status=$? |
| 8960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8961 | (exit $ac_status); }; }; then |
| 8962 | ac_cv_type_long_long=yes |
| 8963 | else |
| 8964 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8965 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8966 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8967 | ac_cv_type_long_long=no |
| 8968 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 8969 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8970 | fi |
| 8971 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 8972 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
| 8973 | |
| 8974 | echo "$as_me:$LINENO: checking size of long long" >&5 |
| 8975 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 |
| 8976 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 8977 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8978 | else |
| 8979 | if test "$ac_cv_type_long_long" = yes; then |
| 8980 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8981 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8982 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8983 | # This bug is HP SR number 8606223364. |
| 8984 | if test "$cross_compiling" = yes; then |
| 8985 | # Depending upon the size, compute the lo and hi bounds. |
| 8986 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8987 | /* confdefs.h. */ |
| 8988 | _ACEOF |
| 8989 | cat confdefs.h >>conftest.$ac_ext |
| 8990 | cat >>conftest.$ac_ext <<_ACEOF |
| 8991 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8992 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8993 | int |
| 8994 | main () |
| 8995 | { |
| 8996 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; |
| 8997 | test_array [0] = 0 |
| 8998 | |
| 8999 | ; |
| 9000 | return 0; |
| 9001 | } |
| 9002 | _ACEOF |
| 9003 | rm -f conftest.$ac_objext |
| 9004 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9005 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9006 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9007 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9008 | rm -f conftest.er1 |
| 9009 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9011 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9012 | { ac_try='test -z "$ac_c_werror_flag" |
| 9013 | || test ! -s conftest.err' |
| 9014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9015 | (eval $ac_try) 2>&5 |
| 9016 | ac_status=$? |
| 9017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9018 | (exit $ac_status); }; } && |
| 9019 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9021 | (eval $ac_try) 2>&5 |
| 9022 | ac_status=$? |
| 9023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9024 | (exit $ac_status); }; }; then |
| 9025 | ac_lo=0 ac_mid=0 |
| 9026 | while :; do |
| 9027 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9028 | /* confdefs.h. */ |
| 9029 | _ACEOF |
| 9030 | cat confdefs.h >>conftest.$ac_ext |
| 9031 | cat >>conftest.$ac_ext <<_ACEOF |
| 9032 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9033 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9034 | int |
| 9035 | main () |
| 9036 | { |
| 9037 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 9038 | test_array [0] = 0 |
| 9039 | |
| 9040 | ; |
| 9041 | return 0; |
| 9042 | } |
| 9043 | _ACEOF |
| 9044 | rm -f conftest.$ac_objext |
| 9045 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9046 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9047 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9048 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9049 | rm -f conftest.er1 |
| 9050 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9052 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9053 | { ac_try='test -z "$ac_c_werror_flag" |
| 9054 | || test ! -s conftest.err' |
| 9055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9056 | (eval $ac_try) 2>&5 |
| 9057 | ac_status=$? |
| 9058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9059 | (exit $ac_status); }; } && |
| 9060 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9062 | (eval $ac_try) 2>&5 |
| 9063 | ac_status=$? |
| 9064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9065 | (exit $ac_status); }; }; then |
| 9066 | ac_hi=$ac_mid; break |
| 9067 | else |
| 9068 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9069 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9070 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9071 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9072 | if test $ac_lo -le $ac_mid; then |
| 9073 | ac_lo= ac_hi= |
| 9074 | break |
| 9075 | fi |
| 9076 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9077 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9078 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9079 | done |
| 9080 | else |
| 9081 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9082 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9083 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9084 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9085 | /* confdefs.h. */ |
| 9086 | _ACEOF |
| 9087 | cat confdefs.h >>conftest.$ac_ext |
| 9088 | cat >>conftest.$ac_ext <<_ACEOF |
| 9089 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9090 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9091 | int |
| 9092 | main () |
| 9093 | { |
| 9094 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; |
| 9095 | test_array [0] = 0 |
| 9096 | |
| 9097 | ; |
| 9098 | return 0; |
| 9099 | } |
| 9100 | _ACEOF |
| 9101 | rm -f conftest.$ac_objext |
| 9102 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9103 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9104 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9105 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9106 | rm -f conftest.er1 |
| 9107 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9109 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9110 | { ac_try='test -z "$ac_c_werror_flag" |
| 9111 | || test ! -s conftest.err' |
| 9112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9113 | (eval $ac_try) 2>&5 |
| 9114 | ac_status=$? |
| 9115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9116 | (exit $ac_status); }; } && |
| 9117 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9119 | (eval $ac_try) 2>&5 |
| 9120 | ac_status=$? |
| 9121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9122 | (exit $ac_status); }; }; then |
| 9123 | ac_hi=-1 ac_mid=-1 |
| 9124 | while :; do |
| 9125 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9126 | /* confdefs.h. */ |
| 9127 | _ACEOF |
| 9128 | cat confdefs.h >>conftest.$ac_ext |
| 9129 | cat >>conftest.$ac_ext <<_ACEOF |
| 9130 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9131 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9132 | int |
| 9133 | main () |
| 9134 | { |
| 9135 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; |
| 9136 | test_array [0] = 0 |
| 9137 | |
| 9138 | ; |
| 9139 | return 0; |
| 9140 | } |
| 9141 | _ACEOF |
| 9142 | rm -f conftest.$ac_objext |
| 9143 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9144 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9145 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9146 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9147 | rm -f conftest.er1 |
| 9148 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9150 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9151 | { ac_try='test -z "$ac_c_werror_flag" |
| 9152 | || test ! -s conftest.err' |
| 9153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9154 | (eval $ac_try) 2>&5 |
| 9155 | ac_status=$? |
| 9156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9157 | (exit $ac_status); }; } && |
| 9158 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9160 | (eval $ac_try) 2>&5 |
| 9161 | ac_status=$? |
| 9162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9163 | (exit $ac_status); }; }; then |
| 9164 | ac_lo=$ac_mid; break |
| 9165 | else |
| 9166 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9167 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9168 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9169 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9170 | if test $ac_mid -le $ac_hi; then |
| 9171 | ac_lo= ac_hi= |
| 9172 | break |
| 9173 | fi |
| 9174 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9175 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9176 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9177 | done |
| 9178 | else |
| 9179 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9180 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9181 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9182 | ac_lo= ac_hi= |
| 9183 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9184 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9185 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9186 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9187 | # Binary search between lo and hi bounds. |
| 9188 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9189 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9190 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9191 | /* confdefs.h. */ |
| 9192 | _ACEOF |
| 9193 | cat confdefs.h >>conftest.$ac_ext |
| 9194 | cat >>conftest.$ac_ext <<_ACEOF |
| 9195 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9196 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9197 | int |
| 9198 | main () |
| 9199 | { |
| 9200 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 9201 | test_array [0] = 0 |
| 9202 | |
| 9203 | ; |
| 9204 | return 0; |
| 9205 | } |
| 9206 | _ACEOF |
| 9207 | rm -f conftest.$ac_objext |
| 9208 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9209 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9210 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9211 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9212 | rm -f conftest.er1 |
| 9213 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9215 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9216 | { ac_try='test -z "$ac_c_werror_flag" |
| 9217 | || test ! -s conftest.err' |
| 9218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9219 | (eval $ac_try) 2>&5 |
| 9220 | ac_status=$? |
| 9221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9222 | (exit $ac_status); }; } && |
| 9223 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9225 | (eval $ac_try) 2>&5 |
| 9226 | ac_status=$? |
| 9227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9228 | (exit $ac_status); }; }; then |
| 9229 | ac_hi=$ac_mid |
| 9230 | else |
| 9231 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9232 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9233 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9234 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 9235 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9236 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9237 | done |
| 9238 | case $ac_lo in |
| 9239 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9240 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 |
| 9241 | See \`config.log' for more details." >&5 |
| 9242 | echo "$as_me: error: cannot compute sizeof (long long), 77 |
| 9243 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9244 | { (exit 1); exit 1; }; } ;; |
| 9245 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9246 | else |
| 9247 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9248 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 9249 | See \`config.log' for more details." >&5 |
| 9250 | echo "$as_me: error: cannot run test program while cross compiling |
| 9251 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9252 | { (exit 1); exit 1; }; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9253 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9254 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9255 | /* confdefs.h. */ |
| 9256 | _ACEOF |
| 9257 | cat confdefs.h >>conftest.$ac_ext |
| 9258 | cat >>conftest.$ac_ext <<_ACEOF |
| 9259 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9260 | $ac_includes_default |
| 9261 | long longval () { return (long) (sizeof (long long)); } |
| 9262 | unsigned long ulongval () { return (long) (sizeof (long long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9263 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9264 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9265 | int |
| 9266 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9267 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9268 | |
| 9269 | FILE *f = fopen ("conftest.val", "w"); |
| 9270 | if (! f) |
| 9271 | exit (1); |
| 9272 | if (((long) (sizeof (long long))) < 0) |
| 9273 | { |
| 9274 | long i = longval (); |
| 9275 | if (i != ((long) (sizeof (long long)))) |
| 9276 | exit (1); |
| 9277 | fprintf (f, "%ld\n", i); |
| 9278 | } |
| 9279 | else |
| 9280 | { |
| 9281 | unsigned long i = ulongval (); |
| 9282 | if (i != ((long) (sizeof (long long)))) |
| 9283 | exit (1); |
| 9284 | fprintf (f, "%lu\n", i); |
| 9285 | } |
| 9286 | exit (ferror (f) || fclose (f) != 0); |
| 9287 | |
| 9288 | ; |
| 9289 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9290 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9291 | _ACEOF |
| 9292 | rm -f conftest$ac_exeext |
| 9293 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9294 | (eval $ac_link) 2>&5 |
| 9295 | ac_status=$? |
| 9296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9297 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9299 | (eval $ac_try) 2>&5 |
| 9300 | ac_status=$? |
| 9301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9302 | (exit $ac_status); }; }; then |
| 9303 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9304 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9305 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9306 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9307 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9308 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9309 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9310 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 |
| 9311 | See \`config.log' for more details." >&5 |
| 9312 | echo "$as_me: error: cannot compute sizeof (long long), 77 |
| 9313 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9314 | { (exit 1); exit 1; }; } |
| 9315 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9316 | rm -f 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] | 9317 | fi |
| 9318 | fi |
| 9319 | rm -f conftest.val |
| 9320 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9321 | ac_cv_sizeof_long_long=0 |
| 9322 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9323 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9324 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 9325 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 |
| 9326 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9327 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9328 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9329 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9330 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9331 | fi |
| 9332 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9333 | echo "$as_me:$LINENO: checking for uintptr_t support" >&5 |
| 9334 | echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9335 | have_uintptr_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9336 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9337 | /* confdefs.h. */ |
| 9338 | _ACEOF |
| 9339 | cat confdefs.h >>conftest.$ac_ext |
| 9340 | cat >>conftest.$ac_ext <<_ACEOF |
| 9341 | /* end confdefs.h. */ |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9342 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9343 | int |
| 9344 | main () |
| 9345 | { |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9346 | uintptr_t x; x = (uintptr_t)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9347 | ; |
| 9348 | return 0; |
| 9349 | } |
| 9350 | _ACEOF |
| 9351 | rm -f conftest.$ac_objext |
| 9352 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9353 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9354 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9355 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9356 | rm -f conftest.er1 |
| 9357 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9359 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9360 | { ac_try='test -z "$ac_c_werror_flag" |
| 9361 | || test ! -s conftest.err' |
| 9362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9363 | (eval $ac_try) 2>&5 |
| 9364 | ac_status=$? |
| 9365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9366 | (exit $ac_status); }; } && |
| 9367 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9369 | (eval $ac_try) 2>&5 |
| 9370 | ac_status=$? |
| 9371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9372 | (exit $ac_status); }; }; then |
| 9373 | |
| 9374 | |
| 9375 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9376 | #define HAVE_UINTPTR_T 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9377 | _ACEOF |
| 9378 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 9379 | have_uintptr_t=yes |
| 9380 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9381 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9382 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9383 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9384 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9385 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9386 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9387 | echo "$as_me:$LINENO: result: $have_uintptr_t" >&5 |
| 9388 | echo "${ECHO_T}$have_uintptr_t" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9389 | if test "$have_uintptr_t" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9390 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 9391 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| 9392 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 9393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9394 | else |
| 9395 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9396 | /* confdefs.h. */ |
| 9397 | _ACEOF |
| 9398 | cat confdefs.h >>conftest.$ac_ext |
| 9399 | cat >>conftest.$ac_ext <<_ACEOF |
| 9400 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9401 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9402 | int |
| 9403 | main () |
| 9404 | { |
| 9405 | if ((uintptr_t *) 0) |
| 9406 | return 0; |
| 9407 | if (sizeof (uintptr_t)) |
| 9408 | return 0; |
| 9409 | ; |
| 9410 | return 0; |
| 9411 | } |
| 9412 | _ACEOF |
| 9413 | rm -f conftest.$ac_objext |
| 9414 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9415 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9416 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9417 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9418 | rm -f conftest.er1 |
| 9419 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9421 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9422 | { ac_try='test -z "$ac_c_werror_flag" |
| 9423 | || test ! -s conftest.err' |
| 9424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9425 | (eval $ac_try) 2>&5 |
| 9426 | ac_status=$? |
| 9427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9428 | (exit $ac_status); }; } && |
| 9429 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9431 | (eval $ac_try) 2>&5 |
| 9432 | ac_status=$? |
| 9433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9434 | (exit $ac_status); }; }; then |
| 9435 | ac_cv_type_uintptr_t=yes |
| 9436 | else |
| 9437 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9438 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9439 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9440 | ac_cv_type_uintptr_t=no |
| 9441 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9442 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9443 | fi |
| 9444 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 9445 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| 9446 | |
| 9447 | echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 9448 | echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6 |
| 9449 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
| 9450 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9451 | else |
| 9452 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 9453 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 9454 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9455 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9456 | # This bug is HP SR number 8606223364. |
| 9457 | if test "$cross_compiling" = yes; then |
| 9458 | # Depending upon the size, compute the lo and hi bounds. |
| 9459 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9460 | /* confdefs.h. */ |
| 9461 | _ACEOF |
| 9462 | cat confdefs.h >>conftest.$ac_ext |
| 9463 | cat >>conftest.$ac_ext <<_ACEOF |
| 9464 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9465 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9466 | int |
| 9467 | main () |
| 9468 | { |
| 9469 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)]; |
| 9470 | test_array [0] = 0 |
| 9471 | |
| 9472 | ; |
| 9473 | return 0; |
| 9474 | } |
| 9475 | _ACEOF |
| 9476 | rm -f conftest.$ac_objext |
| 9477 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9478 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9479 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9480 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9481 | rm -f conftest.er1 |
| 9482 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9484 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9485 | { ac_try='test -z "$ac_c_werror_flag" |
| 9486 | || test ! -s conftest.err' |
| 9487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9488 | (eval $ac_try) 2>&5 |
| 9489 | ac_status=$? |
| 9490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9491 | (exit $ac_status); }; } && |
| 9492 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9494 | (eval $ac_try) 2>&5 |
| 9495 | ac_status=$? |
| 9496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9497 | (exit $ac_status); }; }; then |
| 9498 | ac_lo=0 ac_mid=0 |
| 9499 | while :; do |
| 9500 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9501 | /* confdefs.h. */ |
| 9502 | _ACEOF |
| 9503 | cat confdefs.h >>conftest.$ac_ext |
| 9504 | cat >>conftest.$ac_ext <<_ACEOF |
| 9505 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9506 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9507 | int |
| 9508 | main () |
| 9509 | { |
| 9510 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 9511 | test_array [0] = 0 |
| 9512 | |
| 9513 | ; |
| 9514 | return 0; |
| 9515 | } |
| 9516 | _ACEOF |
| 9517 | rm -f conftest.$ac_objext |
| 9518 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9519 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9520 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9521 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9522 | rm -f conftest.er1 |
| 9523 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9525 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9526 | { ac_try='test -z "$ac_c_werror_flag" |
| 9527 | || test ! -s conftest.err' |
| 9528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9529 | (eval $ac_try) 2>&5 |
| 9530 | ac_status=$? |
| 9531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9532 | (exit $ac_status); }; } && |
| 9533 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9535 | (eval $ac_try) 2>&5 |
| 9536 | ac_status=$? |
| 9537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9538 | (exit $ac_status); }; }; then |
| 9539 | ac_hi=$ac_mid; break |
| 9540 | else |
| 9541 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9542 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9543 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9544 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9545 | if test $ac_lo -le $ac_mid; then |
| 9546 | ac_lo= ac_hi= |
| 9547 | break |
| 9548 | fi |
| 9549 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9550 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9551 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9552 | done |
| 9553 | else |
| 9554 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9555 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9556 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9557 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9558 | /* confdefs.h. */ |
| 9559 | _ACEOF |
| 9560 | cat confdefs.h >>conftest.$ac_ext |
| 9561 | cat >>conftest.$ac_ext <<_ACEOF |
| 9562 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9563 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9564 | int |
| 9565 | main () |
| 9566 | { |
| 9567 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)]; |
| 9568 | test_array [0] = 0 |
| 9569 | |
| 9570 | ; |
| 9571 | return 0; |
| 9572 | } |
| 9573 | _ACEOF |
| 9574 | rm -f conftest.$ac_objext |
| 9575 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9576 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9577 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9578 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9579 | rm -f conftest.er1 |
| 9580 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9582 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9583 | { ac_try='test -z "$ac_c_werror_flag" |
| 9584 | || test ! -s conftest.err' |
| 9585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9586 | (eval $ac_try) 2>&5 |
| 9587 | ac_status=$? |
| 9588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9589 | (exit $ac_status); }; } && |
| 9590 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9592 | (eval $ac_try) 2>&5 |
| 9593 | ac_status=$? |
| 9594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9595 | (exit $ac_status); }; }; then |
| 9596 | ac_hi=-1 ac_mid=-1 |
| 9597 | while :; do |
| 9598 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9599 | /* confdefs.h. */ |
| 9600 | _ACEOF |
| 9601 | cat confdefs.h >>conftest.$ac_ext |
| 9602 | cat >>conftest.$ac_ext <<_ACEOF |
| 9603 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9604 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9605 | int |
| 9606 | main () |
| 9607 | { |
| 9608 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)]; |
| 9609 | test_array [0] = 0 |
| 9610 | |
| 9611 | ; |
| 9612 | return 0; |
| 9613 | } |
| 9614 | _ACEOF |
| 9615 | rm -f conftest.$ac_objext |
| 9616 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9617 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9618 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9619 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9620 | rm -f conftest.er1 |
| 9621 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9623 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9624 | { ac_try='test -z "$ac_c_werror_flag" |
| 9625 | || test ! -s conftest.err' |
| 9626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9627 | (eval $ac_try) 2>&5 |
| 9628 | ac_status=$? |
| 9629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9630 | (exit $ac_status); }; } && |
| 9631 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9633 | (eval $ac_try) 2>&5 |
| 9634 | ac_status=$? |
| 9635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9636 | (exit $ac_status); }; }; then |
| 9637 | ac_lo=$ac_mid; break |
| 9638 | else |
| 9639 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9640 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9641 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9642 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9643 | if test $ac_mid -le $ac_hi; then |
| 9644 | ac_lo= ac_hi= |
| 9645 | break |
| 9646 | fi |
| 9647 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9648 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9649 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9650 | done |
| 9651 | else |
| 9652 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9653 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9654 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9655 | ac_lo= ac_hi= |
| 9656 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9657 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9658 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9659 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9660 | # Binary search between lo and hi bounds. |
| 9661 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9662 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9663 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9664 | /* confdefs.h. */ |
| 9665 | _ACEOF |
| 9666 | cat confdefs.h >>conftest.$ac_ext |
| 9667 | cat >>conftest.$ac_ext <<_ACEOF |
| 9668 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9669 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9670 | int |
| 9671 | main () |
| 9672 | { |
| 9673 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 9674 | test_array [0] = 0 |
| 9675 | |
| 9676 | ; |
| 9677 | return 0; |
| 9678 | } |
| 9679 | _ACEOF |
| 9680 | rm -f conftest.$ac_objext |
| 9681 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9682 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9683 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9684 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9685 | rm -f conftest.er1 |
| 9686 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9688 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9689 | { ac_try='test -z "$ac_c_werror_flag" |
| 9690 | || test ! -s conftest.err' |
| 9691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9692 | (eval $ac_try) 2>&5 |
| 9693 | ac_status=$? |
| 9694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9695 | (exit $ac_status); }; } && |
| 9696 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9698 | (eval $ac_try) 2>&5 |
| 9699 | ac_status=$? |
| 9700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9701 | (exit $ac_status); }; }; then |
| 9702 | ac_hi=$ac_mid |
| 9703 | else |
| 9704 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9705 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9706 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9707 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 9708 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9709 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9710 | done |
| 9711 | case $ac_lo in |
| 9712 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9713 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77 |
| 9714 | See \`config.log' for more details." >&5 |
| 9715 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77 |
| 9716 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9717 | { (exit 1); exit 1; }; } ;; |
| 9718 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9719 | else |
| 9720 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9721 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 9722 | See \`config.log' for more details." >&5 |
| 9723 | echo "$as_me: error: cannot run test program while cross compiling |
| 9724 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9725 | { (exit 1); exit 1; }; } |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9726 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9727 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9728 | /* confdefs.h. */ |
| 9729 | _ACEOF |
| 9730 | cat confdefs.h >>conftest.$ac_ext |
| 9731 | cat >>conftest.$ac_ext <<_ACEOF |
| 9732 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9733 | $ac_includes_default |
| 9734 | long longval () { return (long) (sizeof (uintptr_t)); } |
| 9735 | unsigned long ulongval () { return (long) (sizeof (uintptr_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9736 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9737 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9738 | int |
| 9739 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9740 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9741 | |
| 9742 | FILE *f = fopen ("conftest.val", "w"); |
| 9743 | if (! f) |
| 9744 | exit (1); |
| 9745 | if (((long) (sizeof (uintptr_t))) < 0) |
| 9746 | { |
| 9747 | long i = longval (); |
| 9748 | if (i != ((long) (sizeof (uintptr_t)))) |
| 9749 | exit (1); |
| 9750 | fprintf (f, "%ld\n", i); |
| 9751 | } |
| 9752 | else |
| 9753 | { |
| 9754 | unsigned long i = ulongval (); |
| 9755 | if (i != ((long) (sizeof (uintptr_t)))) |
| 9756 | exit (1); |
| 9757 | fprintf (f, "%lu\n", i); |
| 9758 | } |
| 9759 | exit (ferror (f) || fclose (f) != 0); |
| 9760 | |
| 9761 | ; |
| 9762 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9763 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9764 | _ACEOF |
| 9765 | rm -f conftest$ac_exeext |
| 9766 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9767 | (eval $ac_link) 2>&5 |
| 9768 | ac_status=$? |
| 9769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9770 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9772 | (eval $ac_try) 2>&5 |
| 9773 | ac_status=$? |
| 9774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9775 | (exit $ac_status); }; }; then |
| 9776 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9777 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9778 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9779 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9780 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9781 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9782 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9783 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77 |
| 9784 | See \`config.log' for more details." >&5 |
| 9785 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77 |
| 9786 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9787 | { (exit 1); exit 1; }; } |
| 9788 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9789 | rm -f 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] | 9790 | fi |
| 9791 | fi |
| 9792 | rm -f conftest.val |
| 9793 | else |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9794 | ac_cv_sizeof_uintptr_t=0 |
| 9795 | fi |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9796 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9797 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 9798 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6 |
| 9799 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9800 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9801 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9802 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9803 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9804 | fi |
| 9805 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9806 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9807 | echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 9808 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6 |
| 9809 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 9810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9811 | else |
| 9812 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 9813 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9814 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9815 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9816 | /* confdefs.h. */ |
| 9817 | _ACEOF |
| 9818 | cat confdefs.h >>conftest.$ac_ext |
| 9819 | cat >>conftest.$ac_ext <<_ACEOF |
| 9820 | /* end confdefs.h. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9821 | #include <stdio.h> |
| 9822 | #include <sys/types.h> |
| 9823 | main() |
| 9824 | { |
| 9825 | FILE *f=fopen("conftestval", "w"); |
| 9826 | if (!f) exit(1); |
| 9827 | fprintf(f, "%d\n", sizeof(off_t)); |
| 9828 | exit(0); |
| 9829 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9830 | _ACEOF |
| 9831 | rm -f conftest$ac_exeext |
| 9832 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9833 | (eval $ac_link) 2>&5 |
| 9834 | ac_status=$? |
| 9835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9836 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9838 | (eval $ac_try) 2>&5 |
| 9839 | ac_status=$? |
| 9840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9841 | (exit $ac_status); }; }; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9842 | ac_cv_sizeof_off_t=`cat conftestval` |
| 9843 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9844 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9845 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9846 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9847 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9848 | ( exit $ac_status ) |
| 9849 | ac_cv_sizeof_off_t=0 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9850 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9851 | rm -f 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] | 9852 | fi |
| 9853 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9854 | fi |
| 9855 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9856 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 9857 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6 |
| 9858 | |
| 9859 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9860 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9861 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9862 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9863 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9864 | echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 9865 | 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] | 9866 | if test "$have_long_long" = yes -a \ |
| 9867 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 9868 | "$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] | 9869 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9870 | cat >>confdefs.h <<\_ACEOF |
| 9871 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 9872 | _ACEOF |
| 9873 | |
| 9874 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9875 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9876 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9877 | echo "$as_me:$LINENO: result: no" >&5 |
| 9878 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9879 | fi |
| 9880 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9881 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9882 | echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 9883 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6 |
| 9884 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 9885 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9886 | else |
| 9887 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 9888 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9889 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9890 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9891 | /* confdefs.h. */ |
| 9892 | _ACEOF |
| 9893 | cat confdefs.h >>conftest.$ac_ext |
| 9894 | cat >>conftest.$ac_ext <<_ACEOF |
| 9895 | /* end confdefs.h. */ |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9896 | #include <stdio.h> |
| 9897 | #include <time.h> |
| 9898 | main() |
| 9899 | { |
| 9900 | FILE *f=fopen("conftestval", "w"); |
| 9901 | if (!f) exit(1); |
| 9902 | fprintf(f, "%d\n", sizeof(time_t)); |
| 9903 | exit(0); |
| 9904 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9905 | _ACEOF |
| 9906 | rm -f conftest$ac_exeext |
| 9907 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9908 | (eval $ac_link) 2>&5 |
| 9909 | ac_status=$? |
| 9910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9911 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9913 | (eval $ac_try) 2>&5 |
| 9914 | ac_status=$? |
| 9915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9916 | (exit $ac_status); }; }; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9917 | ac_cv_sizeof_time_t=`cat conftestval` |
| 9918 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9919 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9920 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9921 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9922 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9923 | ( exit $ac_status ) |
| 9924 | ac_cv_sizeof_time_t=0 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9925 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9926 | rm -f 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] | 9927 | fi |
| 9928 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9929 | fi |
| 9930 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9931 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 9932 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6 |
| 9933 | |
| 9934 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9935 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9936 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9937 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9938 | |
| 9939 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9940 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9941 | ac_save_cc="$CC" |
| 9942 | if test "$ac_cv_kpthread" = "yes" |
| 9943 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 9944 | elif test "$ac_cv_kthread" = "yes" |
| 9945 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9946 | elif test "$ac_cv_pthread" = "yes" |
| 9947 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9948 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9949 | echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 9950 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9951 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9952 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9953 | /* confdefs.h. */ |
| 9954 | _ACEOF |
| 9955 | cat confdefs.h >>conftest.$ac_ext |
| 9956 | cat >>conftest.$ac_ext <<_ACEOF |
| 9957 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9958 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9959 | int |
| 9960 | main () |
| 9961 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 9962 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9963 | ; |
| 9964 | return 0; |
| 9965 | } |
| 9966 | _ACEOF |
| 9967 | rm -f conftest.$ac_objext |
| 9968 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9969 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9970 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9971 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9972 | rm -f conftest.er1 |
| 9973 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9975 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9976 | { ac_try='test -z "$ac_c_werror_flag" |
| 9977 | || test ! -s conftest.err' |
| 9978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9979 | (eval $ac_try) 2>&5 |
| 9980 | ac_status=$? |
| 9981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9982 | (exit $ac_status); }; } && |
| 9983 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9985 | (eval $ac_try) 2>&5 |
| 9986 | ac_status=$? |
| 9987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9988 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9989 | have_pthread_t=yes |
| 9990 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9991 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9992 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9993 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9994 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 9995 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9996 | echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 9997 | echo "${ECHO_T}$have_pthread_t" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9998 | if test "$have_pthread_t" = yes ; then |
| 9999 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10000 | echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 10001 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6 |
| 10002 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 10003 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10004 | else |
| 10005 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 10006 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10007 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10008 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10009 | /* confdefs.h. */ |
| 10010 | _ACEOF |
| 10011 | cat confdefs.h >>conftest.$ac_ext |
| 10012 | cat >>conftest.$ac_ext <<_ACEOF |
| 10013 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10014 | #include <stdio.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10015 | #include <pthread.h> |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10016 | main() |
| 10017 | { |
| 10018 | FILE *f=fopen("conftestval", "w"); |
| 10019 | if (!f) exit(1); |
| 10020 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 10021 | exit(0); |
| 10022 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10023 | _ACEOF |
| 10024 | rm -f conftest$ac_exeext |
| 10025 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10026 | (eval $ac_link) 2>&5 |
| 10027 | ac_status=$? |
| 10028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10029 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10031 | (eval $ac_try) 2>&5 |
| 10032 | ac_status=$? |
| 10033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10034 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10035 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 10036 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10037 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10038 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10039 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10040 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10041 | ( exit $ac_status ) |
| 10042 | ac_cv_sizeof_pthread_t=0 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10043 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 10044 | rm -f 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] | 10045 | fi |
| 10046 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10047 | fi |
| 10048 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10049 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
| 10050 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6 |
| 10051 | |
| 10052 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10053 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10054 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10055 | |
| 10056 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 10057 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10058 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10059 | echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 10060 | echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10061 | # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given. |
| 10062 | if test "${enable_toolbox_glue+set}" = set; then |
| 10063 | enableval="$enable_toolbox_glue" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10064 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10065 | fi; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10066 | |
| 10067 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10068 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10069 | case $ac_sys_system/$ac_sys_release in |
| 10070 | Darwin/*) |
| 10071 | enable_toolbox_glue="yes";; |
| 10072 | *) |
| 10073 | enable_toolbox_glue="no";; |
| 10074 | esac |
| 10075 | fi |
| 10076 | case "$enable_toolbox_glue" in |
| 10077 | yes) |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 10078 | extra_frameworks="-framework CoreServices -framework Foundation" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10079 | extra_machdep_objs="Python/mactoolboxglue.o" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 10080 | extra_undefs="-u __dummy -u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10081 | |
| 10082 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10083 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10084 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10085 | |
| 10086 | ;; |
| 10087 | *) |
| 10088 | extra_frameworks="" |
| 10089 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 10090 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10091 | ;; |
| 10092 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10093 | echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 10094 | echo "${ECHO_T}$enable_toolbox_glue" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10095 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10096 | |
| 10097 | case $ac_sys_system/$ac_sys_release in |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 10098 | Darwin/1.3*) |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 10099 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc" |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 10100 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | 66b8483 | 2003-07-04 12:14:39 +0000 | [diff] [blame] | 10101 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/Python' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10102 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 10103 | Darwin/*) |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 10104 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc" |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 10105 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | 66b8483 | 2003-07-04 12:14:39 +0000 | [diff] [blame] | 10106 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/Python' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10107 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10108 | esac |
| 10109 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10110 | echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 10111 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10112 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10113 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10114 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10115 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10116 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10117 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10118 | cat >>confdefs.h <<\_ACEOF |
| 10119 | #define WITH_NEXT_FRAMEWORK 1 |
| 10120 | _ACEOF |
| 10121 | |
| 10122 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10123 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10124 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10125 | echo "$as_me:$LINENO: result: no" >&5 |
| 10126 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10127 | fi |
| 10128 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10129 | echo "$as_me:$LINENO: checking for dyld" >&5 |
| 10130 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10131 | case $ac_sys_system/$ac_sys_release in |
| 10132 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10133 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10134 | cat >>confdefs.h <<\_ACEOF |
| 10135 | #define WITH_DYLD 1 |
| 10136 | _ACEOF |
| 10137 | |
| 10138 | echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 10139 | echo "${ECHO_T}always on for Darwin" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10140 | ;; |
| 10141 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10142 | echo "$as_me:$LINENO: result: no" >&5 |
| 10143 | echo "${ECHO_T}no" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10144 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10145 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10146 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10147 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10148 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10149 | |
| 10150 | |
| 10151 | |
| 10152 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10153 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 10154 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10155 | echo "$as_me:$LINENO: checking SO" >&5 |
| 10156 | echo $ECHO_N "checking SO... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10157 | if test -z "$SO" |
| 10158 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10159 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 10160 | hp*|HP*) SO=.sl;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 10161 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 10162 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10163 | esac |
Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 10164 | else |
| 10165 | # this might also be a termcap variable, see #610332 |
| 10166 | echo |
| 10167 | echo '=====================================================================' |
| 10168 | echo '+ +' |
| 10169 | echo '+ WARNING: You have set SO in your environment. +' |
| 10170 | echo '+ Do you really mean to change the extension for shared libraries? +' |
| 10171 | echo '+ Continuing in 10 seconds to let you to ponder. +' |
| 10172 | echo '+ +' |
| 10173 | echo '=====================================================================' |
| 10174 | sleep 10 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10175 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10176 | echo "$as_me:$LINENO: result: $SO" >&5 |
| 10177 | echo "${ECHO_T}$SO" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10178 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 10179 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10180 | # (Shared libraries in this instance are shared modules to be loaded into |
| 10181 | # 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] | 10182 | echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 10183 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10184 | if test -z "$LDSHARED" |
| 10185 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10186 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10187 | AIX*) |
| 10188 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 10189 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10190 | ;; |
| 10191 | BeOS*) |
| 10192 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 10193 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10194 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 10195 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 10196 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10197 | SunOS/5*) |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 10198 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 10199 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 10200 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 10201 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10202 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 10203 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 10204 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10205 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 10206 | if test "$enable_framework" ; then |
| 10207 | # Link against the framework. All externals should be defined. |
Jack Jansen | c8607b7 | 2003-12-08 01:10:12 +0000 | [diff] [blame] | 10208 | BLDSHARED="$LDSHARED "'-Wl,-F. -framework $(PYTHONFRAMEWORK)' |
| 10209 | LDSHARED="$LDSHARED "'-Wl,-F$(PYTHONFRAMEWORKPREFIX) -framework $(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10210 | else |
| 10211 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 10212 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10213 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10214 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10215 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 10216 | if test "$enable_framework" ; then |
| 10217 | # Link against the framework. All externals should be defined. |
Jack Jansen | c8607b7 | 2003-12-08 01:10:12 +0000 | [diff] [blame] | 10218 | BLDSHARED="$LDSHARED "'-Wl,-F. -framework $(PYTHONFRAMEWORK)' |
| 10219 | LDSHARED="$LDSHARED "'-Wl,-F$(PYTHONFRAMEWORKPREFIX) -framework $(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10220 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 10221 | # No framework, use the Python app as bundle-loader |
| 10222 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 10223 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10224 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10225 | Darwin/*) |
| 10226 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
| 10227 | # This allows an extension to be used in any Python |
| 10228 | if test ${MACOSX_DEPLOYMENT_TARGET-10.1} '>' 10.2 |
| 10229 | then |
| 10230 | LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup' |
| 10231 | BLDSHARED="$LDSHARED" |
| 10232 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=$MACOSX_DEPLOYMENT_TARGET |
| 10233 | else |
| 10234 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 10235 | if test "$enable_framework" ; then |
| 10236 | # Link against the framework. All externals should be defined. |
| 10237 | BLDSHARED="$LDSHARED "'-Wl,-F. -framework $(PYTHONFRAMEWORK)' |
| 10238 | LDSHARED="$LDSHARED "'-Wl,-F$(PYTHONFRAMEWORKPREFIX) -framework $(PYTHONFRAMEWORK)' |
| 10239 | else |
| 10240 | # No framework, use the Python app as bundle-loader |
| 10241 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 10242 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
| 10243 | fi |
| 10244 | fi |
| 10245 | ;; |
Martin v. Löwis | 3cba5c0 | 2002-09-16 17:50:59 +0000 | [diff] [blame] | 10246 | Linux*|GNU*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 10247 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 10248 | OpenBSD*|FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 10249 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 10250 | then |
| 10251 | LDSHARED="cc -shared ${LDFLAGS}" |
| 10252 | else |
| 10253 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 10254 | fi;; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 10255 | NetBSD*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 10256 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10257 | if test "$GCC" = "yes" |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 10258 | then LDSHARED='$(CC) -shared' |
| 10259 | else LDSHARED='$(CC) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10260 | fi;; |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 10261 | SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10262 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 10263 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10264 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10265 | *) LDSHARED="ld";; |
| 10266 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10267 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10268 | echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 10269 | echo "${ECHO_T}$LDSHARED" >&6 |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10270 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10271 | # 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] | 10272 | # library (module) -- this is only needed for a few systems |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10273 | echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 10274 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10275 | if test -z "$CCSHARED" |
| 10276 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 10277 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 10278 | SunOS*) if test "$GCC" = yes; |
| 10279 | then CCSHARED="-fPIC"; |
| 10280 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 10281 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 10282 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 10283 | else CCSHARED="+z"; |
| 10284 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10285 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 10286 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 10287 | FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 10288 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10289 | if test "$GCC" = "yes" |
| 10290 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10291 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10292 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 10293 | SCO_SV*) |
| 10294 | if test "$GCC" = "yes" |
| 10295 | then CCSHARED="-fPIC" |
| 10296 | else CCSHARED="-Kpic -belf" |
| 10297 | fi;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10298 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10299 | IRIX*/6*) case $CC in |
| 10300 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 10301 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10302 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10303 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10304 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10305 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10306 | echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 10307 | echo "${ECHO_T}$CCSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10308 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10309 | # 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] | 10310 | echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 10311 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10312 | if test -z "$LINKFORSHARED" |
| 10313 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 10314 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10315 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 10316 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10317 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 10318 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 10319 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10320 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10321 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10322 | Darwin/*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10323 | # -u __dummy makes the linker aware of the objc runtime |
| 10324 | # in System.framework; otherwise, __objcInit (referenced in |
| 10325 | # crt1.o) gets erroneously defined as common, which breaks dynamic |
| 10326 | # loading of any modules which reference it in System.framework. |
| 10327 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, which is |
| 10328 | # not used by the core itself but which needs to be in the core so |
| 10329 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 10330 | # -prebind is no longer used, because it actually seems to give a |
| 10331 | # slowdown in stead of a speedup, maybe due to the large number of |
| 10332 | # dynamic loads Python does. |
| 10333 | LINKFORSHARED="$extra_undefs -framework System" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10334 | if test "$enable_framework" |
| 10335 | then |
Jack Jansen | c8607b7 | 2003-12-08 01:10:12 +0000 | [diff] [blame] | 10336 | LINKFORSHARED="$LINKFORSHARED -Wl,-F. -framework Python" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10337 | fi |
| 10338 | LINKFORSHARED="$LINKFORSHARED $extra_frameworks";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 10339 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 10340 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 10341 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10342 | FreeBSD*|NetBSD*|OpenBSD*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 10343 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 10344 | then |
| 10345 | LINKFORSHARED="-Wl,--export-dynamic" |
| 10346 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10347 | SunOS/5*) case $CC in |
| 10348 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 10349 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 10350 | then |
| 10351 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10352 | fi;; |
| 10353 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 10354 | CYGWIN*) |
| 10355 | if test $enable_shared = "no" |
| 10356 | then |
| 10357 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 10358 | fi;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10359 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10360 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10361 | echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 10362 | echo "${ECHO_T}$LINKFORSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10363 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10364 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10365 | echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 10366 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 10367 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 10368 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 10369 | case $ac_sys_system in |
| 10370 | CYGWIN*) |
| 10371 | # Cygwin needs CCSHARED when building extension DLLs |
| 10372 | # but not when building the interpreter DLL. |
| 10373 | CFLAGSFORSHARED='';; |
| 10374 | *) |
| 10375 | CFLAGSFORSHARED='$(CCSHARED)' |
| 10376 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 10377 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10378 | echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 10379 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 10380 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10381 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 10382 | # library (with --enable-shared). |
| 10383 | # 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] | 10384 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 10385 | # if it is not required, since it creates a dependency of the shared library |
| 10386 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 10387 | # don't need to link LIBS explicitly. The default should be only changed |
| 10388 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10389 | |
| 10390 | echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 10391 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6 |
| 10392 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10393 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 10394 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10395 | esac |
| 10396 | echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 10397 | echo "${ECHO_T}$SHLIBS" >&6 |
| 10398 | |
| 10399 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10400 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10401 | |
| 10402 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 10403 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 10404 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 10405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10406 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10407 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10408 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10409 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10410 | /* confdefs.h. */ |
| 10411 | _ACEOF |
| 10412 | cat confdefs.h >>conftest.$ac_ext |
| 10413 | cat >>conftest.$ac_ext <<_ACEOF |
| 10414 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10415 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10416 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10417 | #ifdef __cplusplus |
| 10418 | extern "C" |
| 10419 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10420 | /* 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] | 10421 | builtin and then its argument prototype would still apply. */ |
| 10422 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10423 | int |
| 10424 | main () |
| 10425 | { |
| 10426 | dlopen (); |
| 10427 | ; |
| 10428 | return 0; |
| 10429 | } |
| 10430 | _ACEOF |
| 10431 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10432 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 10433 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10434 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 10435 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10436 | rm -f conftest.er1 |
| 10437 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10439 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 10440 | { ac_try='test -z "$ac_c_werror_flag" |
| 10441 | || test ! -s conftest.err' |
| 10442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10443 | (eval $ac_try) 2>&5 |
| 10444 | ac_status=$? |
| 10445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10446 | (exit $ac_status); }; } && |
| 10447 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10449 | (eval $ac_try) 2>&5 |
| 10450 | ac_status=$? |
| 10451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10452 | (exit $ac_status); }; }; then |
| 10453 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10454 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10455 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10456 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10457 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10458 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10459 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 10460 | rm -f conftest.err conftest.$ac_objext \ |
| 10461 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10462 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10463 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10464 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10465 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 10466 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 10467 | cat >>confdefs.h <<_ACEOF |
| 10468 | #define HAVE_LIBDL 1 |
| 10469 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10470 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10471 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10472 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10473 | fi |
| 10474 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10475 | |
| 10476 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 10477 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 10478 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 10479 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10480 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10481 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10482 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10483 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10484 | /* confdefs.h. */ |
| 10485 | _ACEOF |
| 10486 | cat confdefs.h >>conftest.$ac_ext |
| 10487 | cat >>conftest.$ac_ext <<_ACEOF |
| 10488 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10489 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10490 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10491 | #ifdef __cplusplus |
| 10492 | extern "C" |
| 10493 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10494 | /* 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] | 10495 | builtin and then its argument prototype would still apply. */ |
| 10496 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10497 | int |
| 10498 | main () |
| 10499 | { |
| 10500 | shl_load (); |
| 10501 | ; |
| 10502 | return 0; |
| 10503 | } |
| 10504 | _ACEOF |
| 10505 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10506 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 10507 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10508 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 10509 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10510 | rm -f conftest.er1 |
| 10511 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10513 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 10514 | { ac_try='test -z "$ac_c_werror_flag" |
| 10515 | || test ! -s conftest.err' |
| 10516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10517 | (eval $ac_try) 2>&5 |
| 10518 | ac_status=$? |
| 10519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10520 | (exit $ac_status); }; } && |
| 10521 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10523 | (eval $ac_try) 2>&5 |
| 10524 | ac_status=$? |
| 10525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10526 | (exit $ac_status); }; }; then |
| 10527 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10528 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10529 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10530 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10531 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10532 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10533 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 10534 | rm -f conftest.err conftest.$ac_objext \ |
| 10535 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10536 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10537 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10538 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 10539 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 10540 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 10541 | cat >>confdefs.h <<_ACEOF |
| 10542 | #define HAVE_LIBDLD 1 |
| 10543 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10544 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10545 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10546 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10547 | fi |
| 10548 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10549 | |
| 10550 | # only check for sem_ini if thread support is requested |
| 10551 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
| 10552 | echo "$as_me:$LINENO: checking for library containing sem_init" >&5 |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10553 | echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6 |
| 10554 | if test "${ac_cv_search_sem_init+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10555 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10556 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10557 | ac_func_search_save_LIBS=$LIBS |
| 10558 | ac_cv_search_sem_init=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10559 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10560 | /* confdefs.h. */ |
| 10561 | _ACEOF |
| 10562 | cat confdefs.h >>conftest.$ac_ext |
| 10563 | cat >>conftest.$ac_ext <<_ACEOF |
| 10564 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10565 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10566 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10567 | #ifdef __cplusplus |
| 10568 | extern "C" |
| 10569 | #endif |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10570 | /* 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] | 10571 | builtin and then its argument prototype would still apply. */ |
| 10572 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10573 | int |
| 10574 | main () |
| 10575 | { |
| 10576 | sem_init (); |
| 10577 | ; |
| 10578 | return 0; |
| 10579 | } |
| 10580 | _ACEOF |
| 10581 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10582 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 10583 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10584 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 10585 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10586 | rm -f conftest.er1 |
| 10587 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10589 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 10590 | { ac_try='test -z "$ac_c_werror_flag" |
| 10591 | || test ! -s conftest.err' |
| 10592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10593 | (eval $ac_try) 2>&5 |
| 10594 | ac_status=$? |
| 10595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10596 | (exit $ac_status); }; } && |
| 10597 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10599 | (eval $ac_try) 2>&5 |
| 10600 | ac_status=$? |
| 10601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10602 | (exit $ac_status); }; }; then |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10603 | ac_cv_search_sem_init="none required" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10604 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10605 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10606 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10607 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10608 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 10609 | rm -f conftest.err conftest.$ac_objext \ |
| 10610 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10611 | if test "$ac_cv_search_sem_init" = no; then |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 10612 | for ac_lib in pthread rt posix4; do |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10613 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 10614 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10615 | /* confdefs.h. */ |
| 10616 | _ACEOF |
| 10617 | cat confdefs.h >>conftest.$ac_ext |
| 10618 | cat >>conftest.$ac_ext <<_ACEOF |
| 10619 | /* end confdefs.h. */ |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10620 | |
| 10621 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10622 | #ifdef __cplusplus |
| 10623 | extern "C" |
| 10624 | #endif |
| 10625 | /* We use char because int might match the return type of a gcc2 |
| 10626 | builtin and then its argument prototype would still apply. */ |
| 10627 | char sem_init (); |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10628 | int |
| 10629 | main () |
| 10630 | { |
| 10631 | sem_init (); |
| 10632 | ; |
| 10633 | return 0; |
| 10634 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10635 | _ACEOF |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10636 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10637 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 10638 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10639 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 10640 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10641 | rm -f conftest.er1 |
| 10642 | cat conftest.err >&5 |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10644 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 10645 | { ac_try='test -z "$ac_c_werror_flag" |
| 10646 | || test ! -s conftest.err' |
| 10647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10648 | (eval $ac_try) 2>&5 |
| 10649 | ac_status=$? |
| 10650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10651 | (exit $ac_status); }; } && |
| 10652 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10654 | (eval $ac_try) 2>&5 |
| 10655 | ac_status=$? |
| 10656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10657 | (exit $ac_status); }; }; then |
| 10658 | ac_cv_search_sem_init="-l$ac_lib" |
| 10659 | break |
| 10660 | else |
| 10661 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10662 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10663 | |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10664 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 10665 | rm -f conftest.err conftest.$ac_objext \ |
| 10666 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10667 | done |
| 10668 | fi |
| 10669 | LIBS=$ac_func_search_save_LIBS |
| 10670 | fi |
| 10671 | echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 10672 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6 |
| 10673 | if test "$ac_cv_search_sem_init" != no; then |
| 10674 | 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] | 10675 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10676 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 10677 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10678 | # posix4 on Solaris 2.6 |
| 10679 | # pthread (first!) on Linux |
| 10680 | fi |
| 10681 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10682 | # check if we need libintl for locale functions |
| 10683 | echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5 |
| 10684 | echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6 |
| 10685 | if test "${ac_cv_lib_intl_textdomain+set}" = set; then |
| 10686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10687 | else |
| 10688 | ac_check_lib_save_LIBS=$LIBS |
| 10689 | LIBS="-lintl $LIBS" |
| 10690 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10691 | /* confdefs.h. */ |
| 10692 | _ACEOF |
| 10693 | cat confdefs.h >>conftest.$ac_ext |
| 10694 | cat >>conftest.$ac_ext <<_ACEOF |
| 10695 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10696 | |
| 10697 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10698 | #ifdef __cplusplus |
| 10699 | extern "C" |
| 10700 | #endif |
| 10701 | /* We use char because int might match the return type of a gcc2 |
| 10702 | builtin and then its argument prototype would still apply. */ |
| 10703 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10704 | int |
| 10705 | main () |
| 10706 | { |
| 10707 | textdomain (); |
| 10708 | ; |
| 10709 | return 0; |
| 10710 | } |
| 10711 | _ACEOF |
| 10712 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10713 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 10714 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10715 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 10716 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10717 | rm -f conftest.er1 |
| 10718 | cat conftest.err >&5 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10720 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 10721 | { ac_try='test -z "$ac_c_werror_flag" |
| 10722 | || test ! -s conftest.err' |
| 10723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10724 | (eval $ac_try) 2>&5 |
| 10725 | ac_status=$? |
| 10726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10727 | (exit $ac_status); }; } && |
| 10728 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10730 | (eval $ac_try) 2>&5 |
| 10731 | ac_status=$? |
| 10732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10733 | (exit $ac_status); }; }; then |
| 10734 | ac_cv_lib_intl_textdomain=yes |
| 10735 | else |
| 10736 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10737 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10738 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10739 | ac_cv_lib_intl_textdomain=no |
| 10740 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 10741 | rm -f conftest.err conftest.$ac_objext \ |
| 10742 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10743 | LIBS=$ac_check_lib_save_LIBS |
| 10744 | fi |
| 10745 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5 |
| 10746 | echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6 |
| 10747 | if test $ac_cv_lib_intl_textdomain = yes; then |
| 10748 | |
| 10749 | cat >>confdefs.h <<\_ACEOF |
| 10750 | #define WITH_LIBINTL 1 |
| 10751 | _ACEOF |
| 10752 | |
| 10753 | fi |
| 10754 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10755 | |
| 10756 | # checks for system dependent C++ extensions support |
| 10757 | case "$ac_sys_system" in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10758 | AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 10759 | echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6 |
| 10760 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10761 | /* confdefs.h. */ |
| 10762 | _ACEOF |
| 10763 | cat confdefs.h >>conftest.$ac_ext |
| 10764 | cat >>conftest.$ac_ext <<_ACEOF |
| 10765 | /* end confdefs.h. */ |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10766 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10767 | int |
| 10768 | main () |
| 10769 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10770 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10771 | ; |
| 10772 | return 0; |
| 10773 | } |
| 10774 | _ACEOF |
| 10775 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10776 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 10777 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10778 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 10779 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10780 | rm -f conftest.er1 |
| 10781 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10783 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 10784 | { ac_try='test -z "$ac_c_werror_flag" |
| 10785 | || test ! -s conftest.err' |
| 10786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10787 | (eval $ac_try) 2>&5 |
| 10788 | ac_status=$? |
| 10789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10790 | (exit $ac_status); }; } && |
| 10791 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10793 | (eval $ac_try) 2>&5 |
| 10794 | ac_status=$? |
| 10795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10796 | (exit $ac_status); }; }; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10797 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10798 | cat >>confdefs.h <<\_ACEOF |
| 10799 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 10800 | _ACEOF |
| 10801 | |
| 10802 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10803 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10804 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10805 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10806 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10807 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10808 | echo "$as_me:$LINENO: result: no" >&5 |
| 10809 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10810 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 10811 | rm -f conftest.err conftest.$ac_objext \ |
| 10812 | conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10813 | *) ;; |
| 10814 | esac |
| 10815 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 10816 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10817 | # BeOS' sockets are stashed in libnet. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10818 | echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 10819 | echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6 |
| 10820 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
| 10821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10822 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10823 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10824 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10825 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10826 | /* confdefs.h. */ |
| 10827 | _ACEOF |
| 10828 | cat confdefs.h >>conftest.$ac_ext |
| 10829 | cat >>conftest.$ac_ext <<_ACEOF |
| 10830 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10831 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10832 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10833 | #ifdef __cplusplus |
| 10834 | extern "C" |
| 10835 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10836 | /* 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] | 10837 | builtin and then its argument prototype would still apply. */ |
| 10838 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10839 | int |
| 10840 | main () |
| 10841 | { |
| 10842 | t_open (); |
| 10843 | ; |
| 10844 | return 0; |
| 10845 | } |
| 10846 | _ACEOF |
| 10847 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10848 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 10849 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10850 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 10851 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10852 | rm -f conftest.er1 |
| 10853 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10855 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 10856 | { ac_try='test -z "$ac_c_werror_flag" |
| 10857 | || test ! -s conftest.err' |
| 10858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10859 | (eval $ac_try) 2>&5 |
| 10860 | ac_status=$? |
| 10861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10862 | (exit $ac_status); }; } && |
| 10863 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10865 | (eval $ac_try) 2>&5 |
| 10866 | ac_status=$? |
| 10867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10868 | (exit $ac_status); }; }; then |
| 10869 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10870 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10871 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10872 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10873 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10874 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10875 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 10876 | rm -f conftest.err conftest.$ac_objext \ |
| 10877 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10878 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10879 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10880 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 10881 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6 |
| 10882 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10883 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10884 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 10885 | # SVR4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10886 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 10887 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 10888 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 10889 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10890 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10891 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10892 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10893 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10894 | /* confdefs.h. */ |
| 10895 | _ACEOF |
| 10896 | cat confdefs.h >>conftest.$ac_ext |
| 10897 | cat >>conftest.$ac_ext <<_ACEOF |
| 10898 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10899 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10900 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10901 | #ifdef __cplusplus |
| 10902 | extern "C" |
| 10903 | #endif |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10904 | /* 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] | 10905 | builtin and then its argument prototype would still apply. */ |
| 10906 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10907 | int |
| 10908 | main () |
| 10909 | { |
| 10910 | socket (); |
| 10911 | ; |
| 10912 | return 0; |
| 10913 | } |
| 10914 | _ACEOF |
| 10915 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10916 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 10917 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10918 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 10919 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10920 | rm -f conftest.er1 |
| 10921 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10923 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 10924 | { ac_try='test -z "$ac_c_werror_flag" |
| 10925 | || test ! -s conftest.err' |
| 10926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10927 | (eval $ac_try) 2>&5 |
| 10928 | ac_status=$? |
| 10929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10930 | (exit $ac_status); }; } && |
| 10931 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10933 | (eval $ac_try) 2>&5 |
| 10934 | ac_status=$? |
| 10935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10936 | (exit $ac_status); }; }; then |
| 10937 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10938 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10939 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10940 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10941 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10942 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10943 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 10944 | rm -f conftest.err conftest.$ac_objext \ |
| 10945 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10946 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10947 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10948 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 10949 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 10950 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10951 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10952 | fi |
| 10953 | # SVR4 sockets |
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 10954 | |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 10955 | case "$ac_sys_system" in |
| 10956 | BeOS*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10957 | echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 10958 | echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6 |
| 10959 | if test "${ac_cv_lib_net_socket+set}" = set; then |
| 10960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10961 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10962 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10963 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10964 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10965 | /* confdefs.h. */ |
| 10966 | _ACEOF |
| 10967 | cat confdefs.h >>conftest.$ac_ext |
| 10968 | cat >>conftest.$ac_ext <<_ACEOF |
| 10969 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10970 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10971 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10972 | #ifdef __cplusplus |
| 10973 | extern "C" |
| 10974 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10975 | /* 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] | 10976 | builtin and then its argument prototype would still apply. */ |
| 10977 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10978 | int |
| 10979 | main () |
| 10980 | { |
| 10981 | socket (); |
| 10982 | ; |
| 10983 | return 0; |
| 10984 | } |
| 10985 | _ACEOF |
| 10986 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10987 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 10988 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10989 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 10990 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10991 | rm -f conftest.er1 |
| 10992 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10994 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 10995 | { ac_try='test -z "$ac_c_werror_flag" |
| 10996 | || test ! -s conftest.err' |
| 10997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10998 | (eval $ac_try) 2>&5 |
| 10999 | ac_status=$? |
| 11000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11001 | (exit $ac_status); }; } && |
| 11002 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11004 | (eval $ac_try) 2>&5 |
| 11005 | ac_status=$? |
| 11006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11007 | (exit $ac_status); }; }; then |
| 11008 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11009 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11010 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11011 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11012 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11013 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11014 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11015 | rm -f conftest.err conftest.$ac_objext \ |
| 11016 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11017 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11018 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11019 | echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 11020 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6 |
| 11021 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11022 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11023 | fi |
| 11024 | # BeOS |
| 11025 | ;; |
| 11026 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 11027 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11028 | echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 11029 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6 |
| 11030 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 11031 | # Check whether --with-libs or --without-libs was given. |
| 11032 | if test "${with_libs+set}" = set; then |
| 11033 | withval="$with_libs" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11034 | |
| 11035 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11036 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 11037 | LIBS="$withval $LIBS" |
| 11038 | |
| 11039 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11040 | echo "$as_me:$LINENO: result: no" >&5 |
| 11041 | echo "${ECHO_T}no" >&6 |
| 11042 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11043 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11044 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 11045 | |
| 11046 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11047 | echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 11048 | echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6 |
| 11049 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 11050 | # Check whether --with-signal-module or --without-signal-module was given. |
| 11051 | if test "${with_signal_module+set}" = set; then |
| 11052 | withval="$with_signal_module" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 11053 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11054 | fi; |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 11055 | |
| 11056 | if test -z "$with_signal_module" |
| 11057 | then with_signal_module="yes" |
| 11058 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11059 | echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 11060 | echo "${ECHO_T}$with_signal_module" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 11061 | |
| 11062 | if test "${with_signal_module}" = "yes"; then |
| 11063 | USE_SIGNAL_MODULE="" |
| 11064 | SIGNAL_OBJS="" |
| 11065 | else |
| 11066 | USE_SIGNAL_MODULE="#" |
| 11067 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 11068 | fi |
| 11069 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 11070 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 11071 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 11072 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 11073 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11074 | echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 11075 | echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6 |
| 11076 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11077 | |
| 11078 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 11079 | if test "${with_dec_threads+set}" = set; then |
| 11080 | withval="$with_dec_threads" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11081 | |
| 11082 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11083 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11084 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 11085 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11086 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 11087 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11088 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11089 | echo "$as_me:$LINENO: result: no" >&5 |
| 11090 | echo "${ECHO_T}no" >&6 |
| 11091 | fi; |
| 11092 | |
| 11093 | # Templates for things AC_DEFINEd more than once. |
| 11094 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11095 | |
| 11096 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11097 | |
| 11098 | |
| 11099 | |
| 11100 | |
| 11101 | |
| 11102 | echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 11103 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6 |
| 11104 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11105 | # Check whether --with-threads or --without-threads was given. |
| 11106 | if test "${with_threads+set}" = set; then |
| 11107 | withval="$with_threads" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11108 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11109 | fi; |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11110 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 11111 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11112 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11113 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11114 | if test "${with_thread+set}" = set; then |
| 11115 | withval="$with_thread" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11116 | with_threads=$with_thread |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11117 | fi; |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 11118 | |
| 11119 | if test -z "$with_threads" |
| 11120 | then with_threads="yes" |
| 11121 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11122 | echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 11123 | echo "${ECHO_T}$with_threads" >&6 |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 11124 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11125 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 11126 | if test "$with_threads" = "no" |
| 11127 | then |
| 11128 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11129 | elif test "$ac_cv_pthread_is_default" = yes |
| 11130 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11131 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11132 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11133 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11134 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11135 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11136 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11137 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11138 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11139 | |
| 11140 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11141 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11142 | elif test "$ac_cv_kpthread" = "yes" |
| 11143 | then |
| 11144 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 11145 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 11146 | CXX="$CXX -Kpthread" |
| 11147 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11148 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 11149 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11150 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 11151 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11152 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11153 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 11154 | elif test "$ac_cv_kthread" = "yes" |
| 11155 | then |
| 11156 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 11157 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 11158 | CXX="$CXX -Kthread" |
| 11159 | fi |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 11160 | cat >>confdefs.h <<\_ACEOF |
| 11161 | #define WITH_THREAD 1 |
| 11162 | _ACEOF |
| 11163 | |
| 11164 | posix_threads=yes |
| 11165 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11166 | elif test "$ac_cv_pthread" = "yes" |
| 11167 | then |
| 11168 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 11169 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 11170 | CXX="$CXX -pthread" |
| 11171 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11172 | cat >>confdefs.h <<\_ACEOF |
| 11173 | #define WITH_THREAD 1 |
| 11174 | _ACEOF |
| 11175 | |
| 11176 | posix_threads=yes |
| 11177 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11178 | else |
| 11179 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 11180 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 11181 | fi |
| 11182 | if test ! -z "$withval" -a -d "$withval" |
| 11183 | then LDFLAGS="$LDFLAGS -L$withval" |
| 11184 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11185 | |
| 11186 | # According to the POSIX spec, a pthreads implementation must |
| 11187 | # 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] | 11188 | echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 11189 | echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6 |
| 11190 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11191 | /* confdefs.h. */ |
| 11192 | _ACEOF |
| 11193 | cat confdefs.h >>conftest.$ac_ext |
| 11194 | cat >>conftest.$ac_ext <<_ACEOF |
| 11195 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 11196 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11197 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 11198 | #ifdef _POSIX_THREADS |
| 11199 | yes |
| 11200 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11201 | |
| 11202 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11203 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11204 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11205 | unistd_defines_pthreads=yes |
| 11206 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11207 | unistd_defines_pthreads=no |
| 11208 | fi |
| 11209 | rm -f conftest* |
| 11210 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11211 | echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 11212 | echo "${ECHO_T}$unistd_defines_pthreads" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11213 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11214 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 11215 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11216 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 11217 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11218 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 11219 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 11220 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 11221 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 11222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11223 | fi |
| 11224 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 11225 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11226 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11227 | # Is the header compilable? |
| 11228 | echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 11229 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6 |
| 11230 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11231 | /* confdefs.h. */ |
| 11232 | _ACEOF |
| 11233 | cat confdefs.h >>conftest.$ac_ext |
| 11234 | cat >>conftest.$ac_ext <<_ACEOF |
| 11235 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11236 | $ac_includes_default |
| 11237 | #include <cthreads.h> |
| 11238 | _ACEOF |
| 11239 | rm -f conftest.$ac_objext |
| 11240 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11241 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11242 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11243 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11244 | rm -f conftest.er1 |
| 11245 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11247 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11248 | { ac_try='test -z "$ac_c_werror_flag" |
| 11249 | || test ! -s conftest.err' |
| 11250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11251 | (eval $ac_try) 2>&5 |
| 11252 | ac_status=$? |
| 11253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11254 | (exit $ac_status); }; } && |
| 11255 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11257 | (eval $ac_try) 2>&5 |
| 11258 | ac_status=$? |
| 11259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11260 | (exit $ac_status); }; }; then |
| 11261 | ac_header_compiler=yes |
| 11262 | else |
| 11263 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11264 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11265 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11266 | ac_header_compiler=no |
| 11267 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11268 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11269 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11270 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11271 | |
| 11272 | # Is the header present? |
| 11273 | echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 11274 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6 |
| 11275 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11276 | /* confdefs.h. */ |
| 11277 | _ACEOF |
| 11278 | cat confdefs.h >>conftest.$ac_ext |
| 11279 | cat >>conftest.$ac_ext <<_ACEOF |
| 11280 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11281 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11282 | _ACEOF |
| 11283 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11284 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11285 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11286 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11287 | rm -f conftest.er1 |
| 11288 | cat conftest.err >&5 |
| 11289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11290 | (exit $ac_status); } >/dev/null; then |
| 11291 | if test -s conftest.err; then |
| 11292 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11293 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11294 | else |
| 11295 | ac_cpp_err= |
| 11296 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11297 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11298 | ac_cpp_err=yes |
| 11299 | fi |
| 11300 | if test -z "$ac_cpp_err"; then |
| 11301 | ac_header_preproc=yes |
| 11302 | else |
| 11303 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11304 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11305 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11306 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11307 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11308 | rm -f conftest.err conftest.$ac_ext |
| 11309 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11310 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11311 | |
| 11312 | # So? What about this header? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11313 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11314 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11315 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11316 | echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11317 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5 |
| 11318 | echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;} |
| 11319 | ac_header_preproc=yes |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11320 | ;; |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11321 | no:yes:* ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11322 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 11323 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11324 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 11325 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 11326 | { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5 |
| 11327 | echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;} |
| 11328 | { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 11329 | echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11330 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11331 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;} |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11332 | { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5 |
| 11333 | echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;} |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11334 | ( |
| 11335 | cat <<\_ASBOX |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11336 | ## --------------------------------- ## |
| 11337 | ## Report this to the python lists. ## |
| 11338 | ## --------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11339 | _ASBOX |
| 11340 | ) | |
| 11341 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11342 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11343 | esac |
| 11344 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 11345 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 11346 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 11347 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11348 | else |
| 11349 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11350 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11351 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 11352 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
| 11353 | |
| 11354 | fi |
| 11355 | if test $ac_cv_header_cthreads_h = yes; then |
| 11356 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11357 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11358 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11359 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11360 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11361 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11362 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11363 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11364 | |
| 11365 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11366 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11367 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11368 | |
| 11369 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11370 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11371 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11372 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11373 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 11374 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 11375 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 11376 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 11377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11378 | fi |
| 11379 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 11380 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11381 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11382 | # Is the header compilable? |
| 11383 | echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 11384 | echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6 |
| 11385 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11386 | /* confdefs.h. */ |
| 11387 | _ACEOF |
| 11388 | cat confdefs.h >>conftest.$ac_ext |
| 11389 | cat >>conftest.$ac_ext <<_ACEOF |
| 11390 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11391 | $ac_includes_default |
| 11392 | #include <mach/cthreads.h> |
| 11393 | _ACEOF |
| 11394 | rm -f conftest.$ac_objext |
| 11395 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11396 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11397 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11398 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11399 | rm -f conftest.er1 |
| 11400 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11402 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11403 | { ac_try='test -z "$ac_c_werror_flag" |
| 11404 | || test ! -s conftest.err' |
| 11405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11406 | (eval $ac_try) 2>&5 |
| 11407 | ac_status=$? |
| 11408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11409 | (exit $ac_status); }; } && |
| 11410 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11412 | (eval $ac_try) 2>&5 |
| 11413 | ac_status=$? |
| 11414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11415 | (exit $ac_status); }; }; then |
| 11416 | ac_header_compiler=yes |
| 11417 | else |
| 11418 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11419 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11420 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11421 | ac_header_compiler=no |
| 11422 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11423 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11424 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11425 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11426 | |
| 11427 | # Is the header present? |
| 11428 | echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 11429 | echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6 |
| 11430 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11431 | /* confdefs.h. */ |
| 11432 | _ACEOF |
| 11433 | cat confdefs.h >>conftest.$ac_ext |
| 11434 | cat >>conftest.$ac_ext <<_ACEOF |
| 11435 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11436 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11437 | _ACEOF |
| 11438 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11439 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11440 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11441 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11442 | rm -f conftest.er1 |
| 11443 | cat conftest.err >&5 |
| 11444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11445 | (exit $ac_status); } >/dev/null; then |
| 11446 | if test -s conftest.err; then |
| 11447 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11448 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11449 | else |
| 11450 | ac_cpp_err= |
| 11451 | fi |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11452 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11453 | ac_cpp_err=yes |
| 11454 | fi |
| 11455 | if test -z "$ac_cpp_err"; then |
| 11456 | ac_header_preproc=yes |
| 11457 | else |
| 11458 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11459 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11460 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11461 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11462 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11463 | rm -f conftest.err conftest.$ac_ext |
| 11464 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11465 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11466 | |
| 11467 | # So? What about this header? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11468 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11469 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11470 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11471 | echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11472 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5 |
| 11473 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;} |
| 11474 | ac_header_preproc=yes |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11475 | ;; |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11476 | no:yes:* ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11477 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 11478 | echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11479 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 11480 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 11481 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5 |
| 11482 | echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;} |
| 11483 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 11484 | echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11485 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11486 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;} |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11487 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5 |
| 11488 | echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;} |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11489 | ( |
| 11490 | cat <<\_ASBOX |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11491 | ## --------------------------------- ## |
| 11492 | ## Report this to the python lists. ## |
| 11493 | ## --------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11494 | _ASBOX |
| 11495 | ) | |
| 11496 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11497 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11498 | esac |
| 11499 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 11500 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 11501 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 11502 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11503 | else |
| 11504 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11505 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11506 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 11507 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
| 11508 | |
| 11509 | fi |
| 11510 | if test $ac_cv_header_mach_cthreads_h = yes; then |
| 11511 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11512 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11513 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11514 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11515 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11516 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11517 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11518 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11519 | |
| 11520 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11521 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11522 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11523 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11524 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11525 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11526 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11527 | echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 11528 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6 |
| 11529 | |
| 11530 | # Check whether --with-pth or --without-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 11531 | if test "${with_pth+set}" = set; then |
| 11532 | withval="$with_pth" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11533 | echo "$as_me:$LINENO: result: $withval" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11534 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11535 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11536 | #define WITH_THREAD 1 |
| 11537 | _ACEOF |
| 11538 | |
| 11539 | |
| 11540 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 11541 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11542 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 11543 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11544 | LIBS="-lpth $LIBS" |
| 11545 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 11546 | else |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11547 | echo "$as_me:$LINENO: result: no" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11548 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11549 | |
| 11550 | # Just looking for pthread_create in libpthread is not enough: |
| 11551 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 11552 | # So we really have to include pthread.h, and then link. |
| 11553 | _libs=$LIBS |
| 11554 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11555 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 11556 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| 11557 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11558 | /* confdefs.h. */ |
| 11559 | _ACEOF |
| 11560 | cat confdefs.h >>conftest.$ac_ext |
| 11561 | cat >>conftest.$ac_ext <<_ACEOF |
| 11562 | /* end confdefs.h. */ |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11563 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 11564 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11565 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11566 | int |
| 11567 | main () |
| 11568 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11569 | |
| 11570 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11571 | ; |
| 11572 | return 0; |
| 11573 | } |
| 11574 | _ACEOF |
| 11575 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11576 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11577 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11578 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11579 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11580 | rm -f conftest.er1 |
| 11581 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11583 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11584 | { ac_try='test -z "$ac_c_werror_flag" |
| 11585 | || test ! -s conftest.err' |
| 11586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11587 | (eval $ac_try) 2>&5 |
| 11588 | ac_status=$? |
| 11589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11590 | (exit $ac_status); }; } && |
| 11591 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11593 | (eval $ac_try) 2>&5 |
| 11594 | ac_status=$? |
| 11595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11596 | (exit $ac_status); }; }; then |
| 11597 | |
| 11598 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11599 | echo "${ECHO_T}yes" >&6 |
| 11600 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 11601 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11602 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 11603 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11604 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11605 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 11606 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11607 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11608 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11609 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11610 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11611 | LIBS=$_libs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11612 | echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 11613 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6 |
| 11614 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
| 11615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11616 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11617 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11618 | /* confdefs.h. */ |
| 11619 | _ACEOF |
| 11620 | cat confdefs.h >>conftest.$ac_ext |
| 11621 | cat >>conftest.$ac_ext <<_ACEOF |
| 11622 | /* end confdefs.h. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11623 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11624 | which can conflict with char pthread_detach (); below. |
| 11625 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 11626 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 11627 | including <limits.h> includes <sys/time.h> and causes problems |
| 11628 | checking for functions defined therein. */ |
| 11629 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11630 | # include <limits.h> |
| 11631 | #else |
| 11632 | # include <assert.h> |
| 11633 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11634 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11635 | #ifdef __cplusplus |
| 11636 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11637 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11638 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11639 | /* 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] | 11640 | builtin and then its argument prototype would still apply. */ |
| 11641 | char pthread_detach (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11642 | /* The GNU C library defines this for functions which it implements |
| 11643 | to always fail with ENOSYS. Some functions are actually named |
| 11644 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 11645 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11646 | choke me |
| 11647 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11648 | char (*f) () = pthread_detach; |
| 11649 | #endif |
| 11650 | #ifdef __cplusplus |
| 11651 | } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11652 | #endif |
| 11653 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11654 | int |
| 11655 | main () |
| 11656 | { |
| 11657 | return f != pthread_detach; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11658 | ; |
| 11659 | return 0; |
| 11660 | } |
| 11661 | _ACEOF |
| 11662 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11663 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11664 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11665 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11666 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11667 | rm -f conftest.er1 |
| 11668 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11670 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11671 | { ac_try='test -z "$ac_c_werror_flag" |
| 11672 | || test ! -s conftest.err' |
| 11673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11674 | (eval $ac_try) 2>&5 |
| 11675 | ac_status=$? |
| 11676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11677 | (exit $ac_status); }; } && |
| 11678 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11680 | (eval $ac_try) 2>&5 |
| 11681 | ac_status=$? |
| 11682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11683 | (exit $ac_status); }; }; then |
| 11684 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11685 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11686 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11687 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11688 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11689 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11690 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11691 | rm -f conftest.err conftest.$ac_objext \ |
| 11692 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11693 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11694 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 11695 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6 |
| 11696 | if test $ac_cv_func_pthread_detach = yes; then |
| 11697 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11698 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11699 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11700 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11701 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11702 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11703 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11704 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11705 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 11706 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 11707 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 11708 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 11709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11710 | fi |
| 11711 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 11712 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 11713 | else |
| 11714 | # Is the header compilable? |
| 11715 | echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 11716 | echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6 |
| 11717 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11718 | /* confdefs.h. */ |
| 11719 | _ACEOF |
| 11720 | cat confdefs.h >>conftest.$ac_ext |
| 11721 | cat >>conftest.$ac_ext <<_ACEOF |
| 11722 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11723 | $ac_includes_default |
| 11724 | #include <atheos/threads.h> |
| 11725 | _ACEOF |
| 11726 | rm -f conftest.$ac_objext |
| 11727 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11728 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11729 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11730 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11731 | rm -f conftest.er1 |
| 11732 | cat conftest.err >&5 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11734 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11735 | { ac_try='test -z "$ac_c_werror_flag" |
| 11736 | || test ! -s conftest.err' |
| 11737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11738 | (eval $ac_try) 2>&5 |
| 11739 | ac_status=$? |
| 11740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11741 | (exit $ac_status); }; } && |
| 11742 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11744 | (eval $ac_try) 2>&5 |
| 11745 | ac_status=$? |
| 11746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11747 | (exit $ac_status); }; }; then |
| 11748 | ac_header_compiler=yes |
| 11749 | else |
| 11750 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11751 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11752 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11753 | ac_header_compiler=no |
| 11754 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11755 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11756 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11757 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11758 | |
| 11759 | # Is the header present? |
| 11760 | echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 11761 | echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6 |
| 11762 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11763 | /* confdefs.h. */ |
| 11764 | _ACEOF |
| 11765 | cat confdefs.h >>conftest.$ac_ext |
| 11766 | cat >>conftest.$ac_ext <<_ACEOF |
| 11767 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11768 | #include <atheos/threads.h> |
| 11769 | _ACEOF |
| 11770 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11771 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11772 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11773 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11774 | rm -f conftest.er1 |
| 11775 | cat conftest.err >&5 |
| 11776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11777 | (exit $ac_status); } >/dev/null; then |
| 11778 | if test -s conftest.err; then |
| 11779 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11780 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11781 | else |
| 11782 | ac_cpp_err= |
| 11783 | fi |
| 11784 | else |
| 11785 | ac_cpp_err=yes |
| 11786 | fi |
| 11787 | if test -z "$ac_cpp_err"; then |
| 11788 | ac_header_preproc=yes |
| 11789 | else |
| 11790 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11791 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11792 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11793 | ac_header_preproc=no |
| 11794 | fi |
| 11795 | rm -f conftest.err conftest.$ac_ext |
| 11796 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11797 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11798 | |
| 11799 | # So? What about this header? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11800 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11801 | yes:no: ) |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11802 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11803 | echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11804 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5 |
| 11805 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;} |
| 11806 | ac_header_preproc=yes |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11807 | ;; |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11808 | no:yes:* ) |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11809 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 11810 | echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;} |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11811 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 11812 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 11813 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5 |
| 11814 | echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;} |
| 11815 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 11816 | echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11817 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11818 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;} |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11819 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5 |
| 11820 | echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;} |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11821 | ( |
| 11822 | cat <<\_ASBOX |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11823 | ## --------------------------------- ## |
| 11824 | ## Report this to the python lists. ## |
| 11825 | ## --------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11826 | _ASBOX |
| 11827 | ) | |
| 11828 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11829 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11830 | esac |
| 11831 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 11832 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 11833 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 11834 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11835 | else |
| 11836 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 11837 | fi |
| 11838 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 11839 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 11840 | |
| 11841 | fi |
| 11842 | if test $ac_cv_header_atheos_threads_h = yes; then |
| 11843 | cat >>confdefs.h <<\_ACEOF |
| 11844 | #define WITH_THREAD 1 |
| 11845 | _ACEOF |
| 11846 | |
| 11847 | |
| 11848 | cat >>confdefs.h <<\_ACEOF |
| 11849 | #define ATHEOS_THREADS 1 |
| 11850 | _ACEOF |
| 11851 | |
| 11852 | THREADOBJ="Python/thread.o" |
| 11853 | else |
| 11854 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11855 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 11856 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 11857 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 11858 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 11859 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11860 | fi |
| 11861 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 11862 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11863 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11864 | # Is the header compilable? |
| 11865 | echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 11866 | echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6 |
| 11867 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11868 | /* confdefs.h. */ |
| 11869 | _ACEOF |
| 11870 | cat confdefs.h >>conftest.$ac_ext |
| 11871 | cat >>conftest.$ac_ext <<_ACEOF |
| 11872 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11873 | $ac_includes_default |
| 11874 | #include <kernel/OS.h> |
| 11875 | _ACEOF |
| 11876 | rm -f conftest.$ac_objext |
| 11877 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11878 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11879 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11880 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11881 | rm -f conftest.er1 |
| 11882 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11884 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11885 | { ac_try='test -z "$ac_c_werror_flag" |
| 11886 | || test ! -s conftest.err' |
| 11887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11888 | (eval $ac_try) 2>&5 |
| 11889 | ac_status=$? |
| 11890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11891 | (exit $ac_status); }; } && |
| 11892 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11894 | (eval $ac_try) 2>&5 |
| 11895 | ac_status=$? |
| 11896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11897 | (exit $ac_status); }; }; then |
| 11898 | ac_header_compiler=yes |
| 11899 | else |
| 11900 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11901 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11902 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11903 | ac_header_compiler=no |
| 11904 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11905 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11906 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11907 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11908 | |
| 11909 | # Is the header present? |
| 11910 | echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 11911 | echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6 |
| 11912 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11913 | /* confdefs.h. */ |
| 11914 | _ACEOF |
| 11915 | cat confdefs.h >>conftest.$ac_ext |
| 11916 | cat >>conftest.$ac_ext <<_ACEOF |
| 11917 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11918 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11919 | _ACEOF |
| 11920 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11921 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11922 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11923 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11924 | rm -f conftest.er1 |
| 11925 | cat conftest.err >&5 |
| 11926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11927 | (exit $ac_status); } >/dev/null; then |
| 11928 | if test -s conftest.err; then |
| 11929 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11930 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11931 | else |
| 11932 | ac_cpp_err= |
| 11933 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11934 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11935 | ac_cpp_err=yes |
| 11936 | fi |
| 11937 | if test -z "$ac_cpp_err"; then |
| 11938 | ac_header_preproc=yes |
| 11939 | else |
| 11940 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11941 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11942 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11943 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11944 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11945 | rm -f conftest.err conftest.$ac_ext |
| 11946 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11947 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11948 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11949 | # So? What about this header? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11950 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11951 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11952 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11953 | echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11954 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5 |
| 11955 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;} |
| 11956 | ac_header_preproc=yes |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11957 | ;; |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11958 | no:yes:* ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11959 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 11960 | echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;} |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11961 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 11962 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 11963 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5 |
| 11964 | echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;} |
| 11965 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 11966 | echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11967 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11968 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;} |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11969 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5 |
| 11970 | echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;} |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11971 | ( |
| 11972 | cat <<\_ASBOX |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 11973 | ## --------------------------------- ## |
| 11974 | ## Report this to the python lists. ## |
| 11975 | ## --------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11976 | _ASBOX |
| 11977 | ) | |
| 11978 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11979 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11980 | esac |
| 11981 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 11982 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 11983 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 11984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11985 | else |
| 11986 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 11987 | fi |
| 11988 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 11989 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
| 11990 | |
| 11991 | fi |
| 11992 | if test $ac_cv_header_kernel_OS_h = yes; then |
| 11993 | cat >>confdefs.h <<\_ACEOF |
| 11994 | #define WITH_THREAD 1 |
| 11995 | _ACEOF |
| 11996 | |
| 11997 | |
| 11998 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11999 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12000 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12001 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12002 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12003 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12004 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12005 | echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 12006 | echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6 |
| 12007 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
| 12008 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12009 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12010 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12011 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12012 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12013 | /* confdefs.h. */ |
| 12014 | _ACEOF |
| 12015 | cat confdefs.h >>conftest.$ac_ext |
| 12016 | cat >>conftest.$ac_ext <<_ACEOF |
| 12017 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12018 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12019 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12020 | #ifdef __cplusplus |
| 12021 | extern "C" |
| 12022 | #endif |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12023 | /* 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] | 12024 | builtin and then its argument prototype would still apply. */ |
| 12025 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12026 | int |
| 12027 | main () |
| 12028 | { |
| 12029 | pthread_create (); |
| 12030 | ; |
| 12031 | return 0; |
| 12032 | } |
| 12033 | _ACEOF |
| 12034 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12035 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 12036 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12037 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 12038 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12039 | rm -f conftest.er1 |
| 12040 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12042 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 12043 | { ac_try='test -z "$ac_c_werror_flag" |
| 12044 | || test ! -s conftest.err' |
| 12045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12046 | (eval $ac_try) 2>&5 |
| 12047 | ac_status=$? |
| 12048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12049 | (exit $ac_status); }; } && |
| 12050 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12052 | (eval $ac_try) 2>&5 |
| 12053 | ac_status=$? |
| 12054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12055 | (exit $ac_status); }; }; then |
| 12056 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12057 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12058 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12059 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12060 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12061 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12062 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 12063 | rm -f conftest.err conftest.$ac_objext \ |
| 12064 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12065 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12066 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12067 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 12068 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6 |
| 12069 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
| 12070 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12071 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12072 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12073 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12074 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12075 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12076 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12077 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12078 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12079 | echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 12080 | echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6 |
| 12081 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
| 12082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12083 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12084 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12085 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12086 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12087 | /* confdefs.h. */ |
| 12088 | _ACEOF |
| 12089 | cat confdefs.h >>conftest.$ac_ext |
| 12090 | cat >>conftest.$ac_ext <<_ACEOF |
| 12091 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12092 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12093 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12094 | #ifdef __cplusplus |
| 12095 | extern "C" |
| 12096 | #endif |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12097 | /* 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] | 12098 | builtin and then its argument prototype would still apply. */ |
| 12099 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12100 | int |
| 12101 | main () |
| 12102 | { |
| 12103 | pthread_create (); |
| 12104 | ; |
| 12105 | return 0; |
| 12106 | } |
| 12107 | _ACEOF |
| 12108 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12109 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 12110 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12111 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 12112 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12113 | rm -f conftest.er1 |
| 12114 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12116 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 12117 | { ac_try='test -z "$ac_c_werror_flag" |
| 12118 | || test ! -s conftest.err' |
| 12119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12120 | (eval $ac_try) 2>&5 |
| 12121 | ac_status=$? |
| 12122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12123 | (exit $ac_status); }; } && |
| 12124 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12126 | (eval $ac_try) 2>&5 |
| 12127 | ac_status=$? |
| 12128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12129 | (exit $ac_status); }; }; then |
| 12130 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12131 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12132 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12133 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12134 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12135 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12136 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 12137 | rm -f conftest.err conftest.$ac_objext \ |
| 12138 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12139 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12140 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12141 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 12142 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6 |
| 12143 | if test $ac_cv_lib_c_r_pthread_create = yes; then |
| 12144 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12145 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12146 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12147 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12148 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12149 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12150 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 12151 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 12152 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12153 | echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 12154 | echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6 |
| 12155 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
| 12156 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12157 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12158 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12159 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12160 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12161 | /* confdefs.h. */ |
| 12162 | _ACEOF |
| 12163 | cat confdefs.h >>conftest.$ac_ext |
| 12164 | cat >>conftest.$ac_ext <<_ACEOF |
| 12165 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12166 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12167 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12168 | #ifdef __cplusplus |
| 12169 | extern "C" |
| 12170 | #endif |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12171 | /* 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] | 12172 | builtin and then its argument prototype would still apply. */ |
| 12173 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12174 | int |
| 12175 | main () |
| 12176 | { |
| 12177 | __pthread_create_system (); |
| 12178 | ; |
| 12179 | return 0; |
| 12180 | } |
| 12181 | _ACEOF |
| 12182 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12183 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 12184 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12185 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 12186 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12187 | rm -f conftest.er1 |
| 12188 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12190 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 12191 | { ac_try='test -z "$ac_c_werror_flag" |
| 12192 | || test ! -s conftest.err' |
| 12193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12194 | (eval $ac_try) 2>&5 |
| 12195 | ac_status=$? |
| 12196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12197 | (exit $ac_status); }; } && |
| 12198 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12200 | (eval $ac_try) 2>&5 |
| 12201 | ac_status=$? |
| 12202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12203 | (exit $ac_status); }; }; then |
| 12204 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12205 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12206 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12207 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12208 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12209 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12210 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 12211 | rm -f conftest.err conftest.$ac_objext \ |
| 12212 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12213 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12214 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12215 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 12216 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6 |
| 12217 | if test $ac_cv_lib_pthread___pthread_create_system = yes; then |
| 12218 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12219 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12220 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12221 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12222 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12223 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12224 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12225 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12226 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12227 | echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 12228 | echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6 |
| 12229 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
| 12230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12231 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12232 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12233 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12234 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12235 | /* confdefs.h. */ |
| 12236 | _ACEOF |
| 12237 | cat confdefs.h >>conftest.$ac_ext |
| 12238 | cat >>conftest.$ac_ext <<_ACEOF |
| 12239 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12240 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12241 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12242 | #ifdef __cplusplus |
| 12243 | extern "C" |
| 12244 | #endif |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12245 | /* 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] | 12246 | builtin and then its argument prototype would still apply. */ |
| 12247 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12248 | int |
| 12249 | main () |
| 12250 | { |
| 12251 | pthread_create (); |
| 12252 | ; |
| 12253 | return 0; |
| 12254 | } |
| 12255 | _ACEOF |
| 12256 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12257 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 12258 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12259 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 12260 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12261 | rm -f conftest.er1 |
| 12262 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12264 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 12265 | { ac_try='test -z "$ac_c_werror_flag" |
| 12266 | || test ! -s conftest.err' |
| 12267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12268 | (eval $ac_try) 2>&5 |
| 12269 | ac_status=$? |
| 12270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12271 | (exit $ac_status); }; } && |
| 12272 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12274 | (eval $ac_try) 2>&5 |
| 12275 | ac_status=$? |
| 12276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12277 | (exit $ac_status); }; }; then |
| 12278 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12279 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12280 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12281 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12282 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12283 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12284 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 12285 | rm -f conftest.err conftest.$ac_objext \ |
| 12286 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12287 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12288 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12289 | echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 12290 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6 |
| 12291 | if test $ac_cv_lib_cma_pthread_create = yes; then |
| 12292 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12293 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12294 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12295 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12296 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12297 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12298 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12299 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 12300 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12301 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 12302 | fi |
| 12303 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12304 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 12305 | fi |
| 12306 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 12307 | fi |
| 12308 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12309 | fi |
| 12310 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12311 | fi |
| 12312 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 12313 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12314 | fi |
| 12315 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12316 | |
| 12317 | fi |
| 12318 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12319 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 12320 | rm -f conftest.err conftest.$ac_objext \ |
| 12321 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12322 | fi; |
| 12323 | fi |
| 12324 | |
| 12325 | |
| 12326 | fi |
| 12327 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12328 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12329 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12330 | echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 12331 | echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6 |
| 12332 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
| 12333 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12334 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12335 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12336 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12337 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12338 | /* confdefs.h. */ |
| 12339 | _ACEOF |
| 12340 | cat confdefs.h >>conftest.$ac_ext |
| 12341 | cat >>conftest.$ac_ext <<_ACEOF |
| 12342 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12343 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12344 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12345 | #ifdef __cplusplus |
| 12346 | extern "C" |
| 12347 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12348 | /* 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] | 12349 | builtin and then its argument prototype would still apply. */ |
| 12350 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12351 | int |
| 12352 | main () |
| 12353 | { |
| 12354 | usconfig (); |
| 12355 | ; |
| 12356 | return 0; |
| 12357 | } |
| 12358 | _ACEOF |
| 12359 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12360 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 12361 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12362 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 12363 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12364 | rm -f conftest.er1 |
| 12365 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12367 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 12368 | { ac_try='test -z "$ac_c_werror_flag" |
| 12369 | || test ! -s conftest.err' |
| 12370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12371 | (eval $ac_try) 2>&5 |
| 12372 | ac_status=$? |
| 12373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12374 | (exit $ac_status); }; } && |
| 12375 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12377 | (eval $ac_try) 2>&5 |
| 12378 | ac_status=$? |
| 12379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12380 | (exit $ac_status); }; }; then |
| 12381 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12382 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12383 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12384 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12385 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12386 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12387 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 12388 | rm -f conftest.err conftest.$ac_objext \ |
| 12389 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12390 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12391 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12392 | echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 12393 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6 |
| 12394 | if test $ac_cv_lib_mpc_usconfig = yes; then |
| 12395 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12396 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12397 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12398 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12399 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12400 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12401 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12402 | fi |
| 12403 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 12404 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 12405 | if test "$posix_threads" != "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12406 | echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 12407 | echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6 |
| 12408 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
| 12409 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12410 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12411 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12412 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12413 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12414 | /* confdefs.h. */ |
| 12415 | _ACEOF |
| 12416 | cat confdefs.h >>conftest.$ac_ext |
| 12417 | cat >>conftest.$ac_ext <<_ACEOF |
| 12418 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12419 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12420 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12421 | #ifdef __cplusplus |
| 12422 | extern "C" |
| 12423 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12424 | /* 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] | 12425 | builtin and then its argument prototype would still apply. */ |
| 12426 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12427 | int |
| 12428 | main () |
| 12429 | { |
| 12430 | thr_create (); |
| 12431 | ; |
| 12432 | return 0; |
| 12433 | } |
| 12434 | _ACEOF |
| 12435 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12436 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 12437 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12438 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 12439 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12440 | rm -f conftest.er1 |
| 12441 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12443 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 12444 | { ac_try='test -z "$ac_c_werror_flag" |
| 12445 | || test ! -s conftest.err' |
| 12446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12447 | (eval $ac_try) 2>&5 |
| 12448 | ac_status=$? |
| 12449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12450 | (exit $ac_status); }; } && |
| 12451 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12453 | (eval $ac_try) 2>&5 |
| 12454 | ac_status=$? |
| 12455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12456 | (exit $ac_status); }; }; then |
| 12457 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12458 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12459 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12460 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12461 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12462 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12463 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 12464 | rm -f conftest.err conftest.$ac_objext \ |
| 12465 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12466 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12467 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12468 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 12469 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6 |
| 12470 | if test $ac_cv_lib_thread_thr_create = yes; then |
| 12471 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12472 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12473 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12474 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 12475 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12476 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 12477 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12478 | fi |
| 12479 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 12480 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12481 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12482 | if test "$USE_THREAD_MODULE" != "#" |
| 12483 | then |
| 12484 | # If the above checks didn't disable threads, (at least) OSF1 |
| 12485 | # needs this '-threads' argument during linking. |
| 12486 | case $ac_sys_system in |
| 12487 | OSF1) LDLAST=-threads;; |
| 12488 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 12489 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12490 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12491 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12492 | if test "$posix_threads" = "yes"; then |
| 12493 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12494 | |
| 12495 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12496 | #define _POSIX_THREADS 1 |
| 12497 | _ACEOF |
| 12498 | |
| 12499 | fi |
| 12500 | |
| 12501 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 12502 | case $ac_sys_system/$ac_sys_release in |
| 12503 | SunOS/5.6) |
| 12504 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12505 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 12506 | _ACEOF |
| 12507 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12508 | ;; |
| 12509 | SunOS/5.8) |
| 12510 | cat >>confdefs.h <<\_ACEOF |
| 12511 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 12512 | _ACEOF |
| 12513 | |
| 12514 | ;; |
| 12515 | esac |
| 12516 | |
| 12517 | echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 12518 | echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6 |
| 12519 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
| 12520 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12521 | else |
| 12522 | if test "$cross_compiling" = yes; then |
| 12523 | ac_cv_pthread_system_supported=no |
| 12524 | else |
| 12525 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12526 | /* confdefs.h. */ |
| 12527 | _ACEOF |
| 12528 | cat confdefs.h >>conftest.$ac_ext |
| 12529 | cat >>conftest.$ac_ext <<_ACEOF |
| 12530 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12531 | #include <pthread.h> |
| 12532 | void *foo(void *parm) { |
| 12533 | return NULL; |
| 12534 | } |
| 12535 | main() { |
| 12536 | pthread_attr_t attr; |
| 12537 | pthread_t id; |
| 12538 | if (pthread_attr_init(&attr)) exit(-1); |
| 12539 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 12540 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 12541 | exit(0); |
| 12542 | } |
| 12543 | _ACEOF |
| 12544 | rm -f conftest$ac_exeext |
| 12545 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12546 | (eval $ac_link) 2>&5 |
| 12547 | ac_status=$? |
| 12548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12549 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12551 | (eval $ac_try) 2>&5 |
| 12552 | ac_status=$? |
| 12553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12554 | (exit $ac_status); }; }; then |
| 12555 | ac_cv_pthread_system_supported=yes |
| 12556 | else |
| 12557 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12558 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12559 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12560 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12561 | ( exit $ac_status ) |
| 12562 | ac_cv_pthread_system_supported=no |
| 12563 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 12564 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12565 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12566 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12567 | fi |
| 12568 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12569 | echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 12570 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6 |
| 12571 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 12572 | |
| 12573 | cat >>confdefs.h <<\_ACEOF |
| 12574 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
| 12575 | _ACEOF |
| 12576 | |
| 12577 | fi |
| 12578 | |
| 12579 | for ac_func in pthread_sigmask |
| 12580 | do |
| 12581 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12582 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12583 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12584 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12585 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12586 | else |
| 12587 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12588 | /* confdefs.h. */ |
| 12589 | _ACEOF |
| 12590 | cat confdefs.h >>conftest.$ac_ext |
| 12591 | cat >>conftest.$ac_ext <<_ACEOF |
| 12592 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12593 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12594 | which can conflict with char $ac_func (); below. |
| 12595 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 12596 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 12597 | including <limits.h> includes <sys/time.h> and causes problems |
| 12598 | checking for functions defined therein. */ |
| 12599 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12600 | # include <limits.h> |
| 12601 | #else |
| 12602 | # include <assert.h> |
| 12603 | #endif |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12604 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12605 | #ifdef __cplusplus |
| 12606 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12607 | { |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12608 | #endif |
| 12609 | /* We use char because int might match the return type of a gcc2 |
| 12610 | builtin and then its argument prototype would still apply. */ |
| 12611 | char $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12612 | /* The GNU C library defines this for functions which it implements |
| 12613 | to always fail with ENOSYS. Some functions are actually named |
| 12614 | something starting with __ and the normal name is an alias. */ |
| 12615 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12616 | choke me |
| 12617 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12618 | char (*f) () = $ac_func; |
| 12619 | #endif |
| 12620 | #ifdef __cplusplus |
| 12621 | } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12622 | #endif |
| 12623 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12624 | int |
| 12625 | main () |
| 12626 | { |
| 12627 | return f != $ac_func; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12628 | ; |
| 12629 | return 0; |
| 12630 | } |
| 12631 | _ACEOF |
| 12632 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12633 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 12634 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12635 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 12636 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12637 | rm -f conftest.er1 |
| 12638 | cat conftest.err >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12640 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 12641 | { ac_try='test -z "$ac_c_werror_flag" |
| 12642 | || test ! -s conftest.err' |
| 12643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12644 | (eval $ac_try) 2>&5 |
| 12645 | ac_status=$? |
| 12646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12647 | (exit $ac_status); }; } && |
| 12648 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12650 | (eval $ac_try) 2>&5 |
| 12651 | ac_status=$? |
| 12652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12653 | (exit $ac_status); }; }; then |
| 12654 | eval "$as_ac_var=yes" |
| 12655 | else |
| 12656 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12657 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12658 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12659 | eval "$as_ac_var=no" |
| 12660 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 12661 | rm -f conftest.err conftest.$ac_objext \ |
| 12662 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12663 | fi |
| 12664 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12665 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12666 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12667 | cat >>confdefs.h <<_ACEOF |
| 12668 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12669 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 12670 | case $ac_sys_system in |
| 12671 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12672 | |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 12673 | cat >>confdefs.h <<\_ACEOF |
| 12674 | #define HAVE_BROKEN_PTHREAD_SIGMASK 1 |
| 12675 | _ACEOF |
| 12676 | |
| 12677 | ;; |
| 12678 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12679 | fi |
| 12680 | done |
| 12681 | |
| 12682 | fi |
| 12683 | |
| 12684 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12685 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12686 | |
| 12687 | |
| 12688 | echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 12689 | 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] | 12690 | # Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 12691 | if test "${enable_ipv6+set}" = set; then |
| 12692 | enableval="$enable_ipv6" |
| 12693 | case "$enableval" in |
| 12694 | no) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12695 | echo "$as_me:$LINENO: result: no" >&5 |
| 12696 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12697 | ipv6=no |
| 12698 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12699 | *) echo "$as_me:$LINENO: result: yes" >&5 |
| 12700 | echo "${ECHO_T}yes" >&6 |
| 12701 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12702 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12703 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12704 | |
| 12705 | ipv6=yes |
| 12706 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12707 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12708 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12709 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12710 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12711 | echo "$as_me:$LINENO: result: no" >&5 |
| 12712 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12713 | ipv6=no |
| 12714 | |
| 12715 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12716 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12717 | /* confdefs.h. */ |
| 12718 | _ACEOF |
| 12719 | cat confdefs.h >>conftest.$ac_ext |
| 12720 | cat >>conftest.$ac_ext <<_ACEOF |
| 12721 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12722 | /* AF_INET6 available check */ |
| 12723 | #include <sys/types.h> |
| 12724 | #include <sys/socket.h> |
| 12725 | main() |
| 12726 | { |
| 12727 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 12728 | exit(1); |
| 12729 | else |
| 12730 | exit(0); |
| 12731 | } |
| 12732 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12733 | _ACEOF |
| 12734 | rm -f conftest$ac_exeext |
| 12735 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12736 | (eval $ac_link) 2>&5 |
| 12737 | ac_status=$? |
| 12738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12739 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12741 | (eval $ac_try) 2>&5 |
| 12742 | ac_status=$? |
| 12743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12744 | (exit $ac_status); }; }; then |
| 12745 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12746 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12747 | ipv6=yes |
| 12748 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12749 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12750 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12751 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12752 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12753 | ( exit $ac_status ) |
| 12754 | echo "$as_me:$LINENO: result: no" >&5 |
| 12755 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12756 | ipv6=no |
| 12757 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 12758 | rm -f 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] | 12759 | fi |
| 12760 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12761 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12762 | echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 12763 | echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6 |
| 12764 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12765 | /* confdefs.h. */ |
| 12766 | _ACEOF |
| 12767 | cat confdefs.h >>conftest.$ac_ext |
| 12768 | cat >>conftest.$ac_ext <<_ACEOF |
| 12769 | /* end confdefs.h. */ |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12770 | #include <sys/types.h> |
| 12771 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12772 | int |
| 12773 | main () |
| 12774 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12775 | struct sockaddr_in6 x; |
| 12776 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12777 | ; |
| 12778 | return 0; |
| 12779 | } |
| 12780 | _ACEOF |
| 12781 | rm -f conftest.$ac_objext |
| 12782 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 12783 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12784 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 12785 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12786 | rm -f conftest.er1 |
| 12787 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12789 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 12790 | { ac_try='test -z "$ac_c_werror_flag" |
| 12791 | || test ! -s conftest.err' |
| 12792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12793 | (eval $ac_try) 2>&5 |
| 12794 | ac_status=$? |
| 12795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12796 | (exit $ac_status); }; } && |
| 12797 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12799 | (eval $ac_try) 2>&5 |
| 12800 | ac_status=$? |
| 12801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12802 | (exit $ac_status); }; }; then |
| 12803 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12804 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12805 | ipv6=yes |
| 12806 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12807 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12808 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12809 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12810 | echo "$as_me:$LINENO: result: no" >&5 |
| 12811 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12812 | ipv6=no |
| 12813 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 12814 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12815 | fi |
| 12816 | |
| 12817 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12818 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12819 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12820 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12821 | |
| 12822 | fi |
| 12823 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12824 | fi; |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12825 | |
| 12826 | ipv6type=unknown |
| 12827 | ipv6lib=none |
| 12828 | ipv6trylibc=no |
| 12829 | |
| 12830 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12831 | echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 12832 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 12833 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 12834 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12835 | case $i in |
| 12836 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12837 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12838 | /* confdefs.h. */ |
| 12839 | _ACEOF |
| 12840 | cat confdefs.h >>conftest.$ac_ext |
| 12841 | cat >>conftest.$ac_ext <<_ACEOF |
| 12842 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12843 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12844 | #include <netinet/in.h> |
| 12845 | #ifdef IPV6_INRIA_VERSION |
| 12846 | yes |
| 12847 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12848 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12849 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12850 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 12851 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12852 | fi |
| 12853 | rm -f conftest* |
| 12854 | |
| 12855 | ;; |
| 12856 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12857 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12858 | /* confdefs.h. */ |
| 12859 | _ACEOF |
| 12860 | cat confdefs.h >>conftest.$ac_ext |
| 12861 | cat >>conftest.$ac_ext <<_ACEOF |
| 12862 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12863 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12864 | #include <netinet/in.h> |
| 12865 | #ifdef __KAME__ |
| 12866 | yes |
| 12867 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12868 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12869 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12870 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12871 | ipv6type=$i; |
| 12872 | ipv6lib=inet6 |
| 12873 | ipv6libdir=/usr/local/v6/lib |
| 12874 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12875 | fi |
| 12876 | rm -f conftest* |
| 12877 | |
| 12878 | ;; |
| 12879 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12880 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12881 | /* confdefs.h. */ |
| 12882 | _ACEOF |
| 12883 | cat confdefs.h >>conftest.$ac_ext |
| 12884 | cat >>conftest.$ac_ext <<_ACEOF |
| 12885 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12886 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12887 | #include <features.h> |
| 12888 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 12889 | yes |
| 12890 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12891 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12892 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12893 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12894 | ipv6type=$i; |
| 12895 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12896 | fi |
| 12897 | rm -f conftest* |
| 12898 | |
| 12899 | ;; |
| 12900 | linux-inet6) |
| 12901 | if test -d /usr/inet6; then |
| 12902 | ipv6type=$i |
| 12903 | ipv6lib=inet6 |
| 12904 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 12905 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12906 | fi |
| 12907 | ;; |
| 12908 | solaris) |
| 12909 | if test -f /etc/netconfig; then |
| 12910 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 12911 | ipv6type=$i |
| 12912 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12913 | fi |
| 12914 | fi |
| 12915 | ;; |
| 12916 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12917 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12918 | /* confdefs.h. */ |
| 12919 | _ACEOF |
| 12920 | cat confdefs.h >>conftest.$ac_ext |
| 12921 | cat >>conftest.$ac_ext <<_ACEOF |
| 12922 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12923 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12924 | #include <sys/param.h> |
| 12925 | #ifdef _TOSHIBA_INET6 |
| 12926 | yes |
| 12927 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12928 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12929 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12930 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12931 | ipv6type=$i; |
| 12932 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 12933 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12934 | fi |
| 12935 | rm -f conftest* |
| 12936 | |
| 12937 | ;; |
| 12938 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12939 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12940 | /* confdefs.h. */ |
| 12941 | _ACEOF |
| 12942 | cat confdefs.h >>conftest.$ac_ext |
| 12943 | cat >>conftest.$ac_ext <<_ACEOF |
| 12944 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12945 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12946 | #include </usr/local/v6/include/sys/v6config.h> |
| 12947 | #ifdef __V6D__ |
| 12948 | yes |
| 12949 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12950 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12951 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12952 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12953 | ipv6type=$i; |
| 12954 | ipv6lib=v6; |
| 12955 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 12956 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12957 | fi |
| 12958 | rm -f conftest* |
| 12959 | |
| 12960 | ;; |
| 12961 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12962 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12963 | /* confdefs.h. */ |
| 12964 | _ACEOF |
| 12965 | cat confdefs.h >>conftest.$ac_ext |
| 12966 | cat >>conftest.$ac_ext <<_ACEOF |
| 12967 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12968 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12969 | #include <sys/param.h> |
| 12970 | #ifdef _ZETA_MINAMI_INET6 |
| 12971 | yes |
| 12972 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12973 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12974 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12975 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12976 | ipv6type=$i; |
| 12977 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 12978 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12979 | fi |
| 12980 | rm -f conftest* |
| 12981 | |
| 12982 | ;; |
| 12983 | esac |
| 12984 | if test "$ipv6type" != "unknown"; then |
| 12985 | break |
| 12986 | fi |
| 12987 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12988 | echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 12989 | echo "${ECHO_T}$ipv6type" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12990 | fi |
| 12991 | |
| 12992 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 12993 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 12994 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 12995 | echo "using lib$ipv6lib" |
| 12996 | else |
| 12997 | if test $ipv6trylibc = "yes"; then |
| 12998 | echo "using libc" |
| 12999 | else |
| 13000 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 13001 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 13002 | echo 'ipv6 kit and compile beforehand.' |
| 13003 | exit 1 |
| 13004 | fi |
| 13005 | fi |
| 13006 | fi |
| 13007 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 13008 | # Check for --with-doc-strings |
| 13009 | echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 13010 | echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6 |
| 13011 | |
| 13012 | # Check whether --with-doc-strings or --without-doc-strings was given. |
| 13013 | if test "${with_doc_strings+set}" = set; then |
| 13014 | withval="$with_doc_strings" |
| 13015 | |
| 13016 | fi; |
| 13017 | |
| 13018 | if test -z "$with_doc_strings" |
| 13019 | then with_doc_strings="yes" |
| 13020 | fi |
| 13021 | if test "$with_doc_strings" != "no" |
| 13022 | then |
| 13023 | |
| 13024 | cat >>confdefs.h <<\_ACEOF |
| 13025 | #define WITH_DOC_STRINGS 1 |
| 13026 | _ACEOF |
| 13027 | |
| 13028 | fi |
| 13029 | echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 13030 | echo "${ECHO_T}$with_doc_strings" >&6 |
| 13031 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 13032 | # Check for Python-specific malloc support |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 13033 | echo "$as_me:$LINENO: checking for --with-tsc" >&5 |
| 13034 | echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6 |
| 13035 | |
| 13036 | # Check whether --with-tsc or --without-tsc was given. |
| 13037 | if test "${with_tsc+set}" = set; then |
| 13038 | withval="$with_tsc" |
| 13039 | |
| 13040 | if test "$withval" != no |
| 13041 | then |
| 13042 | |
| 13043 | cat >>confdefs.h <<\_ACEOF |
| 13044 | #define WITH_TSC 1 |
| 13045 | _ACEOF |
| 13046 | |
| 13047 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13048 | echo "${ECHO_T}yes" >&6 |
| 13049 | else echo "$as_me:$LINENO: result: no" >&5 |
| 13050 | echo "${ECHO_T}no" >&6 |
| 13051 | fi |
| 13052 | else |
| 13053 | echo "$as_me:$LINENO: result: no" >&5 |
| 13054 | echo "${ECHO_T}no" >&6 |
| 13055 | fi; |
| 13056 | |
| 13057 | # Check for Python-specific malloc support |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13058 | echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 13059 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6 |
| 13060 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 13061 | # Check whether --with-pymalloc or --without-pymalloc was given. |
| 13062 | if test "${with_pymalloc+set}" = set; then |
| 13063 | withval="$with_pymalloc" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13064 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13065 | fi; |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 13066 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 13067 | if test -z "$with_pymalloc" |
| 13068 | then with_pymalloc="yes" |
| 13069 | fi |
| 13070 | if test "$with_pymalloc" != "no" |
| 13071 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13072 | |
| 13073 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 13074 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13075 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 13076 | |
| 13077 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13078 | echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 13079 | echo "${ECHO_T}$with_pymalloc" >&6 |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 13080 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13081 | # Check for --with-wctype-functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13082 | echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 13083 | echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6 |
| 13084 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13085 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 13086 | if test "${with_wctype_functions+set}" = set; then |
| 13087 | withval="$with_wctype_functions" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13088 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13089 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13090 | then |
| 13091 | |
| 13092 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13093 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13094 | _ACEOF |
| 13095 | |
| 13096 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13097 | echo "${ECHO_T}yes" >&6 |
| 13098 | else echo "$as_me:$LINENO: result: no" >&5 |
| 13099 | echo "${ECHO_T}no" >&6 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13100 | fi |
| 13101 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13102 | echo "$as_me:$LINENO: result: no" >&5 |
| 13103 | echo "${ECHO_T}no" >&6 |
| 13104 | fi; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13105 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13106 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13107 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 13108 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13109 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13110 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 13111 | # 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] | 13112 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13113 | for ac_func in dlopen |
| 13114 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13115 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13116 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13117 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13118 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13119 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13120 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13121 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13122 | /* confdefs.h. */ |
| 13123 | _ACEOF |
| 13124 | cat confdefs.h >>conftest.$ac_ext |
| 13125 | cat >>conftest.$ac_ext <<_ACEOF |
| 13126 | /* end confdefs.h. */ |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13127 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13128 | which can conflict with char $ac_func (); below. |
| 13129 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 13130 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 13131 | including <limits.h> includes <sys/time.h> and causes problems |
| 13132 | checking for functions defined therein. */ |
| 13133 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13134 | # include <limits.h> |
| 13135 | #else |
| 13136 | # include <assert.h> |
| 13137 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13138 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13139 | #ifdef __cplusplus |
| 13140 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13141 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13142 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13143 | /* 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] | 13144 | builtin and then its argument prototype would still apply. */ |
| 13145 | char $ac_func (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13146 | /* The GNU C library defines this for functions which it implements |
| 13147 | to always fail with ENOSYS. Some functions are actually named |
| 13148 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13149 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13150 | choke me |
| 13151 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13152 | char (*f) () = $ac_func; |
| 13153 | #endif |
| 13154 | #ifdef __cplusplus |
| 13155 | } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13156 | #endif |
| 13157 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13158 | int |
| 13159 | main () |
| 13160 | { |
| 13161 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13162 | ; |
| 13163 | return 0; |
| 13164 | } |
| 13165 | _ACEOF |
| 13166 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13167 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 13168 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13169 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 13170 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13171 | rm -f conftest.er1 |
| 13172 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13174 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 13175 | { ac_try='test -z "$ac_c_werror_flag" |
| 13176 | || test ! -s conftest.err' |
| 13177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13178 | (eval $ac_try) 2>&5 |
| 13179 | ac_status=$? |
| 13180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13181 | (exit $ac_status); }; } && |
| 13182 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13184 | (eval $ac_try) 2>&5 |
| 13185 | ac_status=$? |
| 13186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13187 | (exit $ac_status); }; }; then |
| 13188 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13189 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13190 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13191 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13192 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13193 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13194 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 13195 | rm -f conftest.err conftest.$ac_objext \ |
| 13196 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13197 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13198 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13199 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13200 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13201 | cat >>confdefs.h <<_ACEOF |
| 13202 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13203 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13204 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13205 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13206 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13207 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13208 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13209 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 13210 | # loading of modules. |
| 13211 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13212 | echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 13213 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13214 | if test -z "$DYNLOADFILE" |
| 13215 | then |
| 13216 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 13217 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
| 13218 | if test "$ac_cv_func_dlopen" = yes |
| 13219 | then DYNLOADFILE="dynload_shlib.o" |
| 13220 | else DYNLOADFILE="dynload_aix.o" |
| 13221 | fi |
| 13222 | ;; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13223 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 13224 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13225 | Darwin/*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13226 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13227 | *) |
| 13228 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 13229 | # out any dynamic loading |
| 13230 | if test "$ac_cv_func_dlopen" = yes |
| 13231 | then DYNLOADFILE="dynload_shlib.o" |
| 13232 | else DYNLOADFILE="dynload_stub.o" |
| 13233 | fi |
| 13234 | ;; |
| 13235 | esac |
| 13236 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13237 | echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 13238 | echo "${ECHO_T}$DYNLOADFILE" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13239 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 13240 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13241 | |
| 13242 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13243 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13244 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13245 | |
| 13246 | fi |
| 13247 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 13248 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 13249 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13250 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13251 | echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 13252 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 13253 | if test -z "$MACHDEP_OBJS" |
| 13254 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13255 | MACHDEP_OBJS=$extra_machdep_objs |
| 13256 | else |
| 13257 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 13258 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13259 | echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 13260 | echo "${ECHO_T}MACHDEP_OBJS" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 13261 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13262 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13263 | |
| 13264 | |
| 13265 | |
| 13266 | |
| 13267 | |
| 13268 | |
| 13269 | |
| 13270 | |
| 13271 | |
| 13272 | |
| 13273 | |
| 13274 | |
| 13275 | |
| 13276 | |
| 13277 | |
| 13278 | |
| 13279 | |
| 13280 | |
| 13281 | |
| 13282 | |
| 13283 | |
| 13284 | |
| 13285 | |
| 13286 | |
| 13287 | |
| 13288 | |
| 13289 | |
| 13290 | |
| 13291 | |
| 13292 | |
| 13293 | |
| 13294 | |
| 13295 | |
| 13296 | |
| 13297 | |
| 13298 | |
| 13299 | |
| 13300 | |
| 13301 | |
| 13302 | |
| 13303 | |
| 13304 | |
| 13305 | |
| 13306 | |
| 13307 | |
| 13308 | |
| 13309 | |
| 13310 | |
| 13311 | |
| 13312 | |
| 13313 | |
| 13314 | |
| 13315 | |
| 13316 | |
| 13317 | |
| 13318 | |
| 13319 | |
| 13320 | |
| 13321 | |
| 13322 | |
| 13323 | |
| 13324 | |
| 13325 | |
| 13326 | |
| 13327 | |
| 13328 | |
| 13329 | |
| 13330 | |
| 13331 | |
| 13332 | |
| 13333 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13334 | for ac_func in alarm chown clock confstr ctermid execv \ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13335 | fork fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 13336 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | 49ee14d | 2003-11-10 06:35:36 +0000 | [diff] [blame] | 13337 | getpriority getpwent getsid getwd \ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13338 | kill killpg lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 13339 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 13340 | putenv readlink realpath \ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13341 | select setegid seteuid setgid \ |
Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 13342 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
Skip Montanaro | 7e11a01 | 2004-02-07 12:55:46 +0000 | [diff] [blame] | 13343 | sigaction siginterrupt sigrelse strftime \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 13344 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 13345 | truncate uname unsetenv utimes waitpid wcscoll _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13346 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13347 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13348 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13349 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13350 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13351 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13352 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13353 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13354 | /* confdefs.h. */ |
| 13355 | _ACEOF |
| 13356 | cat confdefs.h >>conftest.$ac_ext |
| 13357 | cat >>conftest.$ac_ext <<_ACEOF |
| 13358 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13359 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13360 | which can conflict with char $ac_func (); below. |
| 13361 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 13362 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 13363 | including <limits.h> includes <sys/time.h> and causes problems |
| 13364 | checking for functions defined therein. */ |
| 13365 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13366 | # include <limits.h> |
| 13367 | #else |
| 13368 | # include <assert.h> |
| 13369 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13370 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13371 | #ifdef __cplusplus |
| 13372 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13373 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13374 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13375 | /* 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] | 13376 | builtin and then its argument prototype would still apply. */ |
| 13377 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13378 | /* The GNU C library defines this for functions which it implements |
| 13379 | to always fail with ENOSYS. Some functions are actually named |
| 13380 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13381 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13382 | choke me |
| 13383 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13384 | char (*f) () = $ac_func; |
| 13385 | #endif |
| 13386 | #ifdef __cplusplus |
| 13387 | } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13388 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13389 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13390 | int |
| 13391 | main () |
| 13392 | { |
| 13393 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13394 | ; |
| 13395 | return 0; |
| 13396 | } |
| 13397 | _ACEOF |
| 13398 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13399 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 13400 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13401 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 13402 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13403 | rm -f conftest.er1 |
| 13404 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13406 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 13407 | { ac_try='test -z "$ac_c_werror_flag" |
| 13408 | || test ! -s conftest.err' |
| 13409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13410 | (eval $ac_try) 2>&5 |
| 13411 | ac_status=$? |
| 13412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13413 | (exit $ac_status); }; } && |
| 13414 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13416 | (eval $ac_try) 2>&5 |
| 13417 | ac_status=$? |
| 13418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13419 | (exit $ac_status); }; }; then |
| 13420 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13421 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13422 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13423 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13424 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13425 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13426 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 13427 | rm -f conftest.err conftest.$ac_objext \ |
| 13428 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13429 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13430 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13431 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13432 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13433 | cat >>confdefs.h <<_ACEOF |
| 13434 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13435 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13436 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13437 | fi |
| 13438 | done |
| 13439 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13440 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13441 | # For some functions, having a definition is not sufficient, since |
| 13442 | # we want to take their address. |
| 13443 | echo "$as_me:$LINENO: checking for chroot" >&5 |
| 13444 | echo $ECHO_N "checking for chroot... $ECHO_C" >&6 |
| 13445 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13446 | /* confdefs.h. */ |
| 13447 | _ACEOF |
| 13448 | cat confdefs.h >>conftest.$ac_ext |
| 13449 | cat >>conftest.$ac_ext <<_ACEOF |
| 13450 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13451 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13452 | int |
| 13453 | main () |
| 13454 | { |
| 13455 | void *x=chroot |
| 13456 | ; |
| 13457 | return 0; |
| 13458 | } |
| 13459 | _ACEOF |
| 13460 | rm -f conftest.$ac_objext |
| 13461 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 13462 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13463 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 13464 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13465 | rm -f conftest.er1 |
| 13466 | cat conftest.err >&5 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13468 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 13469 | { ac_try='test -z "$ac_c_werror_flag" |
| 13470 | || test ! -s conftest.err' |
| 13471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13472 | (eval $ac_try) 2>&5 |
| 13473 | ac_status=$? |
| 13474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13475 | (exit $ac_status); }; } && |
| 13476 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13478 | (eval $ac_try) 2>&5 |
| 13479 | ac_status=$? |
| 13480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13481 | (exit $ac_status); }; }; then |
| 13482 | |
| 13483 | cat >>confdefs.h <<\_ACEOF |
| 13484 | #define HAVE_CHROOT 1 |
| 13485 | _ACEOF |
| 13486 | |
| 13487 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13488 | echo "${ECHO_T}yes" >&6 |
| 13489 | else |
| 13490 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13491 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13492 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13493 | echo "$as_me:$LINENO: result: no" >&5 |
| 13494 | echo "${ECHO_T}no" >&6 |
| 13495 | |
| 13496 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 13497 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13498 | echo "$as_me:$LINENO: checking for link" >&5 |
| 13499 | echo $ECHO_N "checking for link... $ECHO_C" >&6 |
| 13500 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13501 | /* confdefs.h. */ |
| 13502 | _ACEOF |
| 13503 | cat confdefs.h >>conftest.$ac_ext |
| 13504 | cat >>conftest.$ac_ext <<_ACEOF |
| 13505 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13506 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13507 | int |
| 13508 | main () |
| 13509 | { |
| 13510 | void *x=link |
| 13511 | ; |
| 13512 | return 0; |
| 13513 | } |
| 13514 | _ACEOF |
| 13515 | rm -f conftest.$ac_objext |
| 13516 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 13517 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13518 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 13519 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13520 | rm -f conftest.er1 |
| 13521 | cat conftest.err >&5 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13523 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 13524 | { ac_try='test -z "$ac_c_werror_flag" |
| 13525 | || test ! -s conftest.err' |
| 13526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13527 | (eval $ac_try) 2>&5 |
| 13528 | ac_status=$? |
| 13529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13530 | (exit $ac_status); }; } && |
| 13531 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13533 | (eval $ac_try) 2>&5 |
| 13534 | ac_status=$? |
| 13535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13536 | (exit $ac_status); }; }; then |
| 13537 | |
| 13538 | cat >>confdefs.h <<\_ACEOF |
| 13539 | #define HAVE_LINK 1 |
| 13540 | _ACEOF |
| 13541 | |
| 13542 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13543 | echo "${ECHO_T}yes" >&6 |
| 13544 | else |
| 13545 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13546 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13547 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13548 | echo "$as_me:$LINENO: result: no" >&5 |
| 13549 | echo "${ECHO_T}no" >&6 |
| 13550 | |
| 13551 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 13552 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13553 | echo "$as_me:$LINENO: checking for symlink" >&5 |
| 13554 | echo $ECHO_N "checking for symlink... $ECHO_C" >&6 |
| 13555 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13556 | /* confdefs.h. */ |
| 13557 | _ACEOF |
| 13558 | cat confdefs.h >>conftest.$ac_ext |
| 13559 | cat >>conftest.$ac_ext <<_ACEOF |
| 13560 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13561 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13562 | int |
| 13563 | main () |
| 13564 | { |
| 13565 | void *x=symlink |
| 13566 | ; |
| 13567 | return 0; |
| 13568 | } |
| 13569 | _ACEOF |
| 13570 | rm -f conftest.$ac_objext |
| 13571 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 13572 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13573 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 13574 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13575 | rm -f conftest.er1 |
| 13576 | cat conftest.err >&5 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13578 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 13579 | { ac_try='test -z "$ac_c_werror_flag" |
| 13580 | || test ! -s conftest.err' |
| 13581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13582 | (eval $ac_try) 2>&5 |
| 13583 | ac_status=$? |
| 13584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13585 | (exit $ac_status); }; } && |
| 13586 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13588 | (eval $ac_try) 2>&5 |
| 13589 | ac_status=$? |
| 13590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13591 | (exit $ac_status); }; }; then |
| 13592 | |
| 13593 | cat >>confdefs.h <<\_ACEOF |
| 13594 | #define HAVE_SYMLINK 1 |
| 13595 | _ACEOF |
| 13596 | |
| 13597 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13598 | echo "${ECHO_T}yes" >&6 |
| 13599 | else |
| 13600 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13601 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13602 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13603 | echo "$as_me:$LINENO: result: no" >&5 |
| 13604 | echo "${ECHO_T}no" >&6 |
| 13605 | |
| 13606 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 13607 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13608 | echo "$as_me:$LINENO: checking for fchdir" >&5 |
| 13609 | echo $ECHO_N "checking for fchdir... $ECHO_C" >&6 |
| 13610 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13611 | /* confdefs.h. */ |
| 13612 | _ACEOF |
| 13613 | cat confdefs.h >>conftest.$ac_ext |
| 13614 | cat >>conftest.$ac_ext <<_ACEOF |
| 13615 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13616 | #include <unistd.h> |
| 13617 | int |
| 13618 | main () |
| 13619 | { |
| 13620 | void *x=fchdir |
| 13621 | ; |
| 13622 | return 0; |
| 13623 | } |
| 13624 | _ACEOF |
| 13625 | rm -f conftest.$ac_objext |
| 13626 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 13627 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13628 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 13629 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13630 | rm -f conftest.er1 |
| 13631 | cat conftest.err >&5 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13633 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 13634 | { ac_try='test -z "$ac_c_werror_flag" |
| 13635 | || test ! -s conftest.err' |
| 13636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13637 | (eval $ac_try) 2>&5 |
| 13638 | ac_status=$? |
| 13639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13640 | (exit $ac_status); }; } && |
| 13641 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13643 | (eval $ac_try) 2>&5 |
| 13644 | ac_status=$? |
| 13645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13646 | (exit $ac_status); }; }; then |
| 13647 | |
| 13648 | cat >>confdefs.h <<\_ACEOF |
| 13649 | #define HAVE_FCHDIR 1 |
| 13650 | _ACEOF |
| 13651 | |
| 13652 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13653 | echo "${ECHO_T}yes" >&6 |
| 13654 | else |
| 13655 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13656 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13657 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13658 | echo "$as_me:$LINENO: result: no" >&5 |
| 13659 | echo "${ECHO_T}no" >&6 |
| 13660 | |
| 13661 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 13662 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13663 | echo "$as_me:$LINENO: checking for fsync" >&5 |
| 13664 | echo $ECHO_N "checking for fsync... $ECHO_C" >&6 |
| 13665 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13666 | /* confdefs.h. */ |
| 13667 | _ACEOF |
| 13668 | cat confdefs.h >>conftest.$ac_ext |
| 13669 | cat >>conftest.$ac_ext <<_ACEOF |
| 13670 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13671 | #include <unistd.h> |
| 13672 | int |
| 13673 | main () |
| 13674 | { |
| 13675 | void *x=fsync |
| 13676 | ; |
| 13677 | return 0; |
| 13678 | } |
| 13679 | _ACEOF |
| 13680 | rm -f conftest.$ac_objext |
| 13681 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 13682 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13683 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 13684 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13685 | rm -f conftest.er1 |
| 13686 | cat conftest.err >&5 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13688 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 13689 | { ac_try='test -z "$ac_c_werror_flag" |
| 13690 | || test ! -s conftest.err' |
| 13691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13692 | (eval $ac_try) 2>&5 |
| 13693 | ac_status=$? |
| 13694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13695 | (exit $ac_status); }; } && |
| 13696 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13698 | (eval $ac_try) 2>&5 |
| 13699 | ac_status=$? |
| 13700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13701 | (exit $ac_status); }; }; then |
| 13702 | |
| 13703 | cat >>confdefs.h <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13704 | #define HAVE_FSYNC 1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13705 | _ACEOF |
| 13706 | |
| 13707 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13708 | echo "${ECHO_T}yes" >&6 |
| 13709 | else |
| 13710 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13711 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13712 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13713 | echo "$as_me:$LINENO: result: no" >&5 |
| 13714 | echo "${ECHO_T}no" >&6 |
| 13715 | |
| 13716 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 13717 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13718 | echo "$as_me:$LINENO: checking for fdatasync" >&5 |
| 13719 | echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6 |
| 13720 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13721 | /* confdefs.h. */ |
| 13722 | _ACEOF |
| 13723 | cat confdefs.h >>conftest.$ac_ext |
| 13724 | cat >>conftest.$ac_ext <<_ACEOF |
| 13725 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13726 | #include <unistd.h> |
| 13727 | int |
| 13728 | main () |
| 13729 | { |
| 13730 | void *x=fdatasync |
| 13731 | ; |
| 13732 | return 0; |
| 13733 | } |
| 13734 | _ACEOF |
| 13735 | rm -f conftest.$ac_objext |
| 13736 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 13737 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13738 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 13739 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13740 | rm -f conftest.er1 |
| 13741 | cat conftest.err >&5 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13743 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 13744 | { ac_try='test -z "$ac_c_werror_flag" |
| 13745 | || test ! -s conftest.err' |
| 13746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13747 | (eval $ac_try) 2>&5 |
| 13748 | ac_status=$? |
| 13749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13750 | (exit $ac_status); }; } && |
| 13751 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13753 | (eval $ac_try) 2>&5 |
| 13754 | ac_status=$? |
| 13755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13756 | (exit $ac_status); }; }; then |
| 13757 | |
| 13758 | cat >>confdefs.h <<\_ACEOF |
| 13759 | #define HAVE_FDATASYNC 1 |
| 13760 | _ACEOF |
| 13761 | |
| 13762 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13763 | echo "${ECHO_T}yes" >&6 |
| 13764 | else |
| 13765 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13766 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13767 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13768 | echo "$as_me:$LINENO: result: no" >&5 |
| 13769 | echo "${ECHO_T}no" >&6 |
| 13770 | |
| 13771 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 13772 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13773 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13774 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 13775 | # functions ctermid_r, setgroups in the library, but no prototype |
| 13776 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 13777 | # address to avoid compiler warnings and potential miscompilations |
| 13778 | # because of the missing prototypes. |
| 13779 | |
| 13780 | echo "$as_me:$LINENO: checking for ctermid_r" >&5 |
| 13781 | echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6 |
| 13782 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13783 | /* confdefs.h. */ |
| 13784 | _ACEOF |
| 13785 | cat confdefs.h >>conftest.$ac_ext |
| 13786 | cat >>conftest.$ac_ext <<_ACEOF |
| 13787 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13788 | |
| 13789 | #include "confdefs.h" |
| 13790 | #include <stdio.h> |
| 13791 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13792 | int |
| 13793 | main () |
| 13794 | { |
| 13795 | void* p = ctermid_r |
| 13796 | ; |
| 13797 | return 0; |
| 13798 | } |
| 13799 | _ACEOF |
| 13800 | rm -f conftest.$ac_objext |
| 13801 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 13802 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13803 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 13804 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13805 | rm -f conftest.er1 |
| 13806 | cat conftest.err >&5 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13808 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 13809 | { ac_try='test -z "$ac_c_werror_flag" |
| 13810 | || test ! -s conftest.err' |
| 13811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13812 | (eval $ac_try) 2>&5 |
| 13813 | ac_status=$? |
| 13814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13815 | (exit $ac_status); }; } && |
| 13816 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13818 | (eval $ac_try) 2>&5 |
| 13819 | ac_status=$? |
| 13820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13821 | (exit $ac_status); }; }; then |
| 13822 | |
| 13823 | cat >>confdefs.h <<\_ACEOF |
| 13824 | #define HAVE_CTERMID_R 1 |
| 13825 | _ACEOF |
| 13826 | |
| 13827 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13828 | echo "${ECHO_T}yes" >&6 |
| 13829 | else |
| 13830 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13831 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13832 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13833 | echo "$as_me:$LINENO: result: no" >&5 |
| 13834 | echo "${ECHO_T}no" >&6 |
| 13835 | |
| 13836 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 13837 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13838 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13839 | echo "$as_me:$LINENO: checking for flock" >&5 |
| 13840 | echo $ECHO_N "checking for flock... $ECHO_C" >&6 |
| 13841 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13842 | /* confdefs.h. */ |
| 13843 | _ACEOF |
| 13844 | cat confdefs.h >>conftest.$ac_ext |
| 13845 | cat >>conftest.$ac_ext <<_ACEOF |
| 13846 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13847 | |
| 13848 | #include "confdefs.h" |
| 13849 | #include <sys/file.h> |
| 13850 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13851 | int |
| 13852 | main () |
| 13853 | { |
| 13854 | void* p = flock |
| 13855 | ; |
| 13856 | return 0; |
| 13857 | } |
| 13858 | _ACEOF |
| 13859 | rm -f conftest.$ac_objext |
| 13860 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 13861 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13862 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 13863 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13864 | rm -f conftest.er1 |
| 13865 | cat conftest.err >&5 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13867 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 13868 | { ac_try='test -z "$ac_c_werror_flag" |
| 13869 | || test ! -s conftest.err' |
| 13870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13871 | (eval $ac_try) 2>&5 |
| 13872 | ac_status=$? |
| 13873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13874 | (exit $ac_status); }; } && |
| 13875 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13877 | (eval $ac_try) 2>&5 |
| 13878 | ac_status=$? |
| 13879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13880 | (exit $ac_status); }; }; then |
| 13881 | |
| 13882 | cat >>confdefs.h <<\_ACEOF |
| 13883 | #define HAVE_FLOCK 1 |
| 13884 | _ACEOF |
| 13885 | |
| 13886 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13887 | echo "${ECHO_T}yes" >&6 |
| 13888 | else |
| 13889 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13890 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13891 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13892 | echo "$as_me:$LINENO: result: no" >&5 |
| 13893 | echo "${ECHO_T}no" >&6 |
| 13894 | |
| 13895 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 13896 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13897 | |
| 13898 | echo "$as_me:$LINENO: checking for getpagesize" >&5 |
| 13899 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6 |
| 13900 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13901 | /* confdefs.h. */ |
| 13902 | _ACEOF |
| 13903 | cat confdefs.h >>conftest.$ac_ext |
| 13904 | cat >>conftest.$ac_ext <<_ACEOF |
| 13905 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13906 | |
| 13907 | #include "confdefs.h" |
| 13908 | #include <unistd.h> |
| 13909 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13910 | int |
| 13911 | main () |
| 13912 | { |
| 13913 | void* p = getpagesize |
| 13914 | ; |
| 13915 | return 0; |
| 13916 | } |
| 13917 | _ACEOF |
| 13918 | rm -f conftest.$ac_objext |
| 13919 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 13920 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13921 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 13922 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13923 | rm -f conftest.er1 |
| 13924 | cat conftest.err >&5 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13926 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 13927 | { ac_try='test -z "$ac_c_werror_flag" |
| 13928 | || test ! -s conftest.err' |
| 13929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13930 | (eval $ac_try) 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' |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 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 | |
| 13941 | cat >>confdefs.h <<\_ACEOF |
| 13942 | #define HAVE_GETPAGESIZE 1 |
| 13943 | _ACEOF |
| 13944 | |
| 13945 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13946 | echo "${ECHO_T}yes" >&6 |
| 13947 | else |
| 13948 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13949 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13950 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13951 | echo "$as_me:$LINENO: result: no" >&5 |
| 13952 | echo "${ECHO_T}no" >&6 |
| 13953 | |
| 13954 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 13955 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13956 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13957 | for ac_prog in true |
| 13958 | do |
| 13959 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 13960 | set dummy $ac_prog; ac_word=$2 |
| 13961 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13962 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 13963 | if test "${ac_cv_prog_TRUE+set}" = set; then |
| 13964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13965 | else |
| 13966 | if test -n "$TRUE"; then |
| 13967 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 13968 | else |
| 13969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13970 | for as_dir in $PATH |
| 13971 | do |
| 13972 | IFS=$as_save_IFS |
| 13973 | test -z "$as_dir" && as_dir=. |
| 13974 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13975 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 13976 | ac_cv_prog_TRUE="$ac_prog" |
| 13977 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13978 | break 2 |
| 13979 | fi |
| 13980 | done |
| 13981 | done |
| 13982 | |
| 13983 | fi |
| 13984 | fi |
| 13985 | TRUE=$ac_cv_prog_TRUE |
| 13986 | if test -n "$TRUE"; then |
| 13987 | echo "$as_me:$LINENO: result: $TRUE" >&5 |
| 13988 | echo "${ECHO_T}$TRUE" >&6 |
| 13989 | else |
| 13990 | echo "$as_me:$LINENO: result: no" >&5 |
| 13991 | echo "${ECHO_T}no" >&6 |
| 13992 | fi |
| 13993 | |
| 13994 | test -n "$TRUE" && break |
| 13995 | done |
| 13996 | test -n "$TRUE" || TRUE="/bin/true" |
| 13997 | |
| 13998 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13999 | echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5 |
| 14000 | echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6 |
| 14001 | if test "${ac_cv_lib_c_inet_aton+set}" = set; then |
| 14002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14003 | else |
| 14004 | ac_check_lib_save_LIBS=$LIBS |
| 14005 | LIBS="-lc $LIBS" |
| 14006 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14007 | /* confdefs.h. */ |
| 14008 | _ACEOF |
| 14009 | cat confdefs.h >>conftest.$ac_ext |
| 14010 | cat >>conftest.$ac_ext <<_ACEOF |
| 14011 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14012 | |
| 14013 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14014 | #ifdef __cplusplus |
| 14015 | extern "C" |
| 14016 | #endif |
| 14017 | /* We use char because int might match the return type of a gcc2 |
| 14018 | builtin and then its argument prototype would still apply. */ |
| 14019 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14020 | int |
| 14021 | main () |
| 14022 | { |
| 14023 | inet_aton (); |
| 14024 | ; |
| 14025 | return 0; |
| 14026 | } |
| 14027 | _ACEOF |
| 14028 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14029 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14030 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14031 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14032 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14033 | rm -f conftest.er1 |
| 14034 | cat conftest.err >&5 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14036 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14037 | { ac_try='test -z "$ac_c_werror_flag" |
| 14038 | || test ! -s conftest.err' |
| 14039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14040 | (eval $ac_try) 2>&5 |
| 14041 | ac_status=$? |
| 14042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14043 | (exit $ac_status); }; } && |
| 14044 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14046 | (eval $ac_try) 2>&5 |
| 14047 | ac_status=$? |
| 14048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14049 | (exit $ac_status); }; }; then |
| 14050 | ac_cv_lib_c_inet_aton=yes |
| 14051 | else |
| 14052 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14053 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14054 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14055 | ac_cv_lib_c_inet_aton=no |
| 14056 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14057 | rm -f conftest.err conftest.$ac_objext \ |
| 14058 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14059 | LIBS=$ac_check_lib_save_LIBS |
| 14060 | fi |
| 14061 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5 |
| 14062 | echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6 |
| 14063 | if test $ac_cv_lib_c_inet_aton = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14064 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14065 | else |
| 14066 | |
| 14067 | echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
| 14068 | echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6 |
| 14069 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
| 14070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14071 | else |
| 14072 | ac_check_lib_save_LIBS=$LIBS |
| 14073 | LIBS="-lresolv $LIBS" |
| 14074 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14075 | /* confdefs.h. */ |
| 14076 | _ACEOF |
| 14077 | cat confdefs.h >>conftest.$ac_ext |
| 14078 | cat >>conftest.$ac_ext <<_ACEOF |
| 14079 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14080 | |
| 14081 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14082 | #ifdef __cplusplus |
| 14083 | extern "C" |
| 14084 | #endif |
| 14085 | /* We use char because int might match the return type of a gcc2 |
| 14086 | builtin and then its argument prototype would still apply. */ |
| 14087 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14088 | int |
| 14089 | main () |
| 14090 | { |
| 14091 | inet_aton (); |
| 14092 | ; |
| 14093 | return 0; |
| 14094 | } |
| 14095 | _ACEOF |
| 14096 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14097 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14098 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14099 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14100 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14101 | rm -f conftest.er1 |
| 14102 | cat conftest.err >&5 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14104 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14105 | { ac_try='test -z "$ac_c_werror_flag" |
| 14106 | || test ! -s conftest.err' |
| 14107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14108 | (eval $ac_try) 2>&5 |
| 14109 | ac_status=$? |
| 14110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14111 | (exit $ac_status); }; } && |
| 14112 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14114 | (eval $ac_try) 2>&5 |
| 14115 | ac_status=$? |
| 14116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14117 | (exit $ac_status); }; }; then |
| 14118 | ac_cv_lib_resolv_inet_aton=yes |
| 14119 | else |
| 14120 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14121 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14122 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14123 | ac_cv_lib_resolv_inet_aton=no |
| 14124 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14125 | rm -f conftest.err conftest.$ac_objext \ |
| 14126 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14127 | LIBS=$ac_check_lib_save_LIBS |
| 14128 | fi |
| 14129 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 14130 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6 |
| 14131 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
| 14132 | cat >>confdefs.h <<_ACEOF |
| 14133 | #define HAVE_LIBRESOLV 1 |
| 14134 | _ACEOF |
| 14135 | |
| 14136 | LIBS="-lresolv $LIBS" |
| 14137 | |
| 14138 | fi |
| 14139 | |
| 14140 | |
| 14141 | fi |
| 14142 | |
| 14143 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14144 | echo "$as_me:$LINENO: checking for hstrerror" >&5 |
| 14145 | echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6 |
| 14146 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14147 | /* confdefs.h. */ |
| 14148 | _ACEOF |
| 14149 | cat confdefs.h >>conftest.$ac_ext |
| 14150 | cat >>conftest.$ac_ext <<_ACEOF |
| 14151 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14152 | |
| 14153 | #include "confdefs.h" |
| 14154 | #include <netdb.h> |
| 14155 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14156 | int |
| 14157 | main () |
| 14158 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14159 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14160 | ; |
| 14161 | return 0; |
| 14162 | } |
| 14163 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14164 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14165 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14166 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14167 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14168 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14169 | rm -f conftest.er1 |
| 14170 | cat conftest.err >&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14172 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14173 | { ac_try='test -z "$ac_c_werror_flag" |
| 14174 | || test ! -s conftest.err' |
| 14175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14176 | (eval $ac_try) 2>&5 |
| 14177 | ac_status=$? |
| 14178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14179 | (exit $ac_status); }; } && |
| 14180 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14182 | (eval $ac_try) 2>&5 |
| 14183 | ac_status=$? |
| 14184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14185 | (exit $ac_status); }; }; then |
| 14186 | |
| 14187 | cat >>confdefs.h <<\_ACEOF |
| 14188 | #define HAVE_HSTRERROR 1 |
| 14189 | _ACEOF |
| 14190 | |
| 14191 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14192 | echo "${ECHO_T}yes" >&6 |
| 14193 | else |
| 14194 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14195 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14196 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14197 | echo "$as_me:$LINENO: result: no" >&5 |
| 14198 | echo "${ECHO_T}no" >&6 |
| 14199 | |
| 14200 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14201 | rm -f conftest.err conftest.$ac_objext \ |
| 14202 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14203 | |
| 14204 | echo "$as_me:$LINENO: checking for inet_aton" >&5 |
| 14205 | echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6 |
| 14206 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14207 | /* confdefs.h. */ |
| 14208 | _ACEOF |
| 14209 | cat confdefs.h >>conftest.$ac_ext |
| 14210 | cat >>conftest.$ac_ext <<_ACEOF |
| 14211 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14212 | |
| 14213 | #include "confdefs.h" |
| 14214 | #include <sys/socket.h> |
| 14215 | #include <netinet/in.h> |
| 14216 | #include <arpa/inet.h> |
| 14217 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14218 | int |
| 14219 | main () |
| 14220 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14221 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14222 | ; |
| 14223 | return 0; |
| 14224 | } |
| 14225 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14226 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14227 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14228 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14229 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14230 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14231 | rm -f conftest.er1 |
| 14232 | cat conftest.err >&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14234 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14235 | { ac_try='test -z "$ac_c_werror_flag" |
| 14236 | || test ! -s conftest.err' |
| 14237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14238 | (eval $ac_try) 2>&5 |
| 14239 | ac_status=$? |
| 14240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14241 | (exit $ac_status); }; } && |
| 14242 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14244 | (eval $ac_try) 2>&5 |
| 14245 | ac_status=$? |
| 14246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14247 | (exit $ac_status); }; }; then |
| 14248 | |
| 14249 | cat >>confdefs.h <<\_ACEOF |
| 14250 | #define HAVE_INET_ATON 1 |
| 14251 | _ACEOF |
| 14252 | |
| 14253 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14254 | echo "${ECHO_T}yes" >&6 |
| 14255 | else |
| 14256 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14257 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14258 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14259 | echo "$as_me:$LINENO: result: no" >&5 |
| 14260 | echo "${ECHO_T}no" >&6 |
| 14261 | |
| 14262 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14263 | rm -f conftest.err conftest.$ac_objext \ |
| 14264 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14265 | |
| 14266 | echo "$as_me:$LINENO: checking for inet_pton" >&5 |
| 14267 | echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6 |
| 14268 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14269 | /* confdefs.h. */ |
| 14270 | _ACEOF |
| 14271 | cat confdefs.h >>conftest.$ac_ext |
| 14272 | cat >>conftest.$ac_ext <<_ACEOF |
| 14273 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14274 | |
| 14275 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 14276 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14277 | #include <sys/socket.h> |
| 14278 | #include <netinet/in.h> |
| 14279 | #include <arpa/inet.h> |
| 14280 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14281 | int |
| 14282 | main () |
| 14283 | { |
| 14284 | void* p = inet_pton |
| 14285 | ; |
| 14286 | return 0; |
| 14287 | } |
| 14288 | _ACEOF |
| 14289 | rm -f conftest.$ac_objext |
| 14290 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14291 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14292 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14293 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14294 | rm -f conftest.er1 |
| 14295 | cat conftest.err >&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14297 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14298 | { ac_try='test -z "$ac_c_werror_flag" |
| 14299 | || test ! -s conftest.err' |
| 14300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14301 | (eval $ac_try) 2>&5 |
| 14302 | ac_status=$? |
| 14303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14304 | (exit $ac_status); }; } && |
| 14305 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14307 | (eval $ac_try) 2>&5 |
| 14308 | ac_status=$? |
| 14309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14310 | (exit $ac_status); }; }; then |
| 14311 | |
| 14312 | cat >>confdefs.h <<\_ACEOF |
| 14313 | #define HAVE_INET_PTON 1 |
| 14314 | _ACEOF |
| 14315 | |
| 14316 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14317 | echo "${ECHO_T}yes" >&6 |
| 14318 | else |
| 14319 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14320 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14321 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14322 | echo "$as_me:$LINENO: result: no" >&5 |
| 14323 | echo "${ECHO_T}no" >&6 |
| 14324 | |
| 14325 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14326 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14327 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 14328 | # On some systems, setgroups is in unistd.h, on others, in grp.h |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14329 | echo "$as_me:$LINENO: checking for setgroups" >&5 |
| 14330 | echo $ECHO_N "checking for setgroups... $ECHO_C" >&6 |
| 14331 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14332 | /* confdefs.h. */ |
| 14333 | _ACEOF |
| 14334 | cat confdefs.h >>conftest.$ac_ext |
| 14335 | cat >>conftest.$ac_ext <<_ACEOF |
| 14336 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14337 | |
| 14338 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 14339 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 14340 | #ifdef HAVE_GRP_H |
| 14341 | #include <grp.h> |
| 14342 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14343 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14344 | int |
| 14345 | main () |
| 14346 | { |
| 14347 | void* p = setgroups |
| 14348 | ; |
| 14349 | return 0; |
| 14350 | } |
| 14351 | _ACEOF |
| 14352 | rm -f conftest.$ac_objext |
| 14353 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14354 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14355 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14356 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14357 | rm -f conftest.er1 |
| 14358 | cat conftest.err >&5 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14360 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14361 | { ac_try='test -z "$ac_c_werror_flag" |
| 14362 | || test ! -s conftest.err' |
| 14363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14364 | (eval $ac_try) 2>&5 |
| 14365 | ac_status=$? |
| 14366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14367 | (exit $ac_status); }; } && |
| 14368 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14370 | (eval $ac_try) 2>&5 |
| 14371 | ac_status=$? |
| 14372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14373 | (exit $ac_status); }; }; then |
| 14374 | |
| 14375 | cat >>confdefs.h <<\_ACEOF |
| 14376 | #define HAVE_SETGROUPS 1 |
| 14377 | _ACEOF |
| 14378 | |
| 14379 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14380 | echo "${ECHO_T}yes" >&6 |
| 14381 | else |
| 14382 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14383 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14384 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14385 | echo "$as_me:$LINENO: result: no" >&5 |
| 14386 | echo "${ECHO_T}no" >&6 |
| 14387 | |
| 14388 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14389 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14390 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14391 | # check for openpty and forkpty |
| 14392 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14393 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14394 | for ac_func in openpty |
| 14395 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14396 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14397 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14398 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14399 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14401 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14402 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14403 | /* confdefs.h. */ |
| 14404 | _ACEOF |
| 14405 | cat confdefs.h >>conftest.$ac_ext |
| 14406 | cat >>conftest.$ac_ext <<_ACEOF |
| 14407 | /* end confdefs.h. */ |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14408 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14409 | which can conflict with char $ac_func (); below. |
| 14410 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14411 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14412 | including <limits.h> includes <sys/time.h> and causes problems |
| 14413 | checking for functions defined therein. */ |
| 14414 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14415 | # include <limits.h> |
| 14416 | #else |
| 14417 | # include <assert.h> |
| 14418 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14419 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14420 | #ifdef __cplusplus |
| 14421 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14422 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14423 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14424 | /* 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] | 14425 | builtin and then its argument prototype would still apply. */ |
| 14426 | char $ac_func (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14427 | /* The GNU C library defines this for functions which it implements |
| 14428 | to always fail with ENOSYS. Some functions are actually named |
| 14429 | something starting with __ and the normal name is an alias. */ |
| 14430 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14431 | choke me |
| 14432 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14433 | char (*f) () = $ac_func; |
| 14434 | #endif |
| 14435 | #ifdef __cplusplus |
| 14436 | } |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14437 | #endif |
| 14438 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14439 | int |
| 14440 | main () |
| 14441 | { |
| 14442 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14443 | ; |
| 14444 | return 0; |
| 14445 | } |
| 14446 | _ACEOF |
| 14447 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14448 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14449 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14450 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14451 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14452 | rm -f conftest.er1 |
| 14453 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14455 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14456 | { ac_try='test -z "$ac_c_werror_flag" |
| 14457 | || test ! -s conftest.err' |
| 14458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14459 | (eval $ac_try) 2>&5 |
| 14460 | ac_status=$? |
| 14461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14462 | (exit $ac_status); }; } && |
| 14463 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14465 | (eval $ac_try) 2>&5 |
| 14466 | ac_status=$? |
| 14467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14468 | (exit $ac_status); }; }; then |
| 14469 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14470 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14471 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14472 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14473 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14474 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14475 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14476 | rm -f conftest.err conftest.$ac_objext \ |
| 14477 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14478 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14479 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14480 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14481 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14482 | cat >>confdefs.h <<_ACEOF |
| 14483 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14484 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14485 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14486 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14487 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 14488 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
| 14489 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
| 14490 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14491 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14492 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14493 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14494 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14495 | /* confdefs.h. */ |
| 14496 | _ACEOF |
| 14497 | cat confdefs.h >>conftest.$ac_ext |
| 14498 | cat >>conftest.$ac_ext <<_ACEOF |
| 14499 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14500 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14501 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14502 | #ifdef __cplusplus |
| 14503 | extern "C" |
| 14504 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14505 | /* 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] | 14506 | builtin and then its argument prototype would still apply. */ |
| 14507 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14508 | int |
| 14509 | main () |
| 14510 | { |
| 14511 | openpty (); |
| 14512 | ; |
| 14513 | return 0; |
| 14514 | } |
| 14515 | _ACEOF |
| 14516 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14517 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14518 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14519 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14520 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14521 | rm -f conftest.er1 |
| 14522 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14524 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14525 | { ac_try='test -z "$ac_c_werror_flag" |
| 14526 | || test ! -s conftest.err' |
| 14527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14528 | (eval $ac_try) 2>&5 |
| 14529 | ac_status=$? |
| 14530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14531 | (exit $ac_status); }; } && |
| 14532 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14534 | (eval $ac_try) 2>&5 |
| 14535 | ac_status=$? |
| 14536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14537 | (exit $ac_status); }; }; then |
| 14538 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14539 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14540 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14541 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14542 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14543 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14544 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14545 | rm -f conftest.err conftest.$ac_objext \ |
| 14546 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14547 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14548 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14549 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 14550 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
| 14551 | if test $ac_cv_lib_util_openpty = yes; then |
| 14552 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14553 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14554 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14555 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14556 | fi |
| 14557 | |
| 14558 | fi |
| 14559 | done |
| 14560 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14561 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14562 | for ac_func in forkpty |
| 14563 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14564 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14565 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14566 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14567 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14569 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14570 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14571 | /* confdefs.h. */ |
| 14572 | _ACEOF |
| 14573 | cat confdefs.h >>conftest.$ac_ext |
| 14574 | cat >>conftest.$ac_ext <<_ACEOF |
| 14575 | /* end confdefs.h. */ |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14576 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14577 | which can conflict with char $ac_func (); below. |
| 14578 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14579 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14580 | including <limits.h> includes <sys/time.h> and causes problems |
| 14581 | checking for functions defined therein. */ |
| 14582 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14583 | # include <limits.h> |
| 14584 | #else |
| 14585 | # include <assert.h> |
| 14586 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14587 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14588 | #ifdef __cplusplus |
| 14589 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14590 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14591 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14592 | /* 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] | 14593 | builtin and then its argument prototype would still apply. */ |
| 14594 | char $ac_func (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14595 | /* The GNU C library defines this for functions which it implements |
| 14596 | to always fail with ENOSYS. Some functions are actually named |
| 14597 | something starting with __ and the normal name is an alias. */ |
| 14598 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14599 | choke me |
| 14600 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14601 | char (*f) () = $ac_func; |
| 14602 | #endif |
| 14603 | #ifdef __cplusplus |
| 14604 | } |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14605 | #endif |
| 14606 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14607 | int |
| 14608 | main () |
| 14609 | { |
| 14610 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14611 | ; |
| 14612 | return 0; |
| 14613 | } |
| 14614 | _ACEOF |
| 14615 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14616 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14617 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14618 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14619 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14620 | rm -f conftest.er1 |
| 14621 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14623 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14624 | { ac_try='test -z "$ac_c_werror_flag" |
| 14625 | || test ! -s conftest.err' |
| 14626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14627 | (eval $ac_try) 2>&5 |
| 14628 | ac_status=$? |
| 14629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14630 | (exit $ac_status); }; } && |
| 14631 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14633 | (eval $ac_try) 2>&5 |
| 14634 | ac_status=$? |
| 14635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14636 | (exit $ac_status); }; }; then |
| 14637 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14638 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14639 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14640 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14641 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14642 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14643 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14644 | rm -f conftest.err conftest.$ac_objext \ |
| 14645 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14646 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14647 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14648 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14649 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14650 | cat >>confdefs.h <<_ACEOF |
| 14651 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14652 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14653 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14654 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14655 | echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 14656 | echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6 |
| 14657 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
| 14658 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14659 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14660 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14661 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14662 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14663 | /* confdefs.h. */ |
| 14664 | _ACEOF |
| 14665 | cat confdefs.h >>conftest.$ac_ext |
| 14666 | cat >>conftest.$ac_ext <<_ACEOF |
| 14667 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14668 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14669 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14670 | #ifdef __cplusplus |
| 14671 | extern "C" |
| 14672 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14673 | /* 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] | 14674 | builtin and then its argument prototype would still apply. */ |
| 14675 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14676 | int |
| 14677 | main () |
| 14678 | { |
| 14679 | forkpty (); |
| 14680 | ; |
| 14681 | return 0; |
| 14682 | } |
| 14683 | _ACEOF |
| 14684 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14685 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14686 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14687 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14688 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14689 | rm -f conftest.er1 |
| 14690 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14692 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14693 | { ac_try='test -z "$ac_c_werror_flag" |
| 14694 | || test ! -s conftest.err' |
| 14695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14696 | (eval $ac_try) 2>&5 |
| 14697 | ac_status=$? |
| 14698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14699 | (exit $ac_status); }; } && |
| 14700 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14702 | (eval $ac_try) 2>&5 |
| 14703 | ac_status=$? |
| 14704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14705 | (exit $ac_status); }; }; then |
| 14706 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14707 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14708 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14709 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14710 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14711 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14712 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14713 | rm -f conftest.err conftest.$ac_objext \ |
| 14714 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14715 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14716 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14717 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 14718 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6 |
| 14719 | if test $ac_cv_lib_util_forkpty = yes; then |
| 14720 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14721 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14722 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14723 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14724 | fi |
| 14725 | |
| 14726 | fi |
| 14727 | done |
| 14728 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14729 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14730 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14731 | |
| 14732 | |
| 14733 | |
| 14734 | |
| 14735 | |
| 14736 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14737 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 14738 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14739 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14740 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14741 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14742 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14743 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14744 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14745 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14746 | /* confdefs.h. */ |
| 14747 | _ACEOF |
| 14748 | cat confdefs.h >>conftest.$ac_ext |
| 14749 | cat >>conftest.$ac_ext <<_ACEOF |
| 14750 | /* end confdefs.h. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14751 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14752 | which can conflict with char $ac_func (); below. |
| 14753 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14754 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14755 | including <limits.h> includes <sys/time.h> and causes problems |
| 14756 | checking for functions defined therein. */ |
| 14757 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14758 | # include <limits.h> |
| 14759 | #else |
| 14760 | # include <assert.h> |
| 14761 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14762 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14763 | #ifdef __cplusplus |
| 14764 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14765 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14766 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14767 | /* 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] | 14768 | builtin and then its argument prototype would still apply. */ |
| 14769 | char $ac_func (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14770 | /* The GNU C library defines this for functions which it implements |
| 14771 | to always fail with ENOSYS. Some functions are actually named |
| 14772 | something starting with __ and the normal name is an alias. */ |
| 14773 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14774 | choke me |
| 14775 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14776 | char (*f) () = $ac_func; |
| 14777 | #endif |
| 14778 | #ifdef __cplusplus |
| 14779 | } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14780 | #endif |
| 14781 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14782 | int |
| 14783 | main () |
| 14784 | { |
| 14785 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14786 | ; |
| 14787 | return 0; |
| 14788 | } |
| 14789 | _ACEOF |
| 14790 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14791 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14792 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14793 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14794 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14795 | rm -f conftest.er1 |
| 14796 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14798 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14799 | { ac_try='test -z "$ac_c_werror_flag" |
| 14800 | || test ! -s conftest.err' |
| 14801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14802 | (eval $ac_try) 2>&5 |
| 14803 | ac_status=$? |
| 14804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14805 | (exit $ac_status); }; } && |
| 14806 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14808 | (eval $ac_try) 2>&5 |
| 14809 | ac_status=$? |
| 14810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14811 | (exit $ac_status); }; }; then |
| 14812 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14813 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14814 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14815 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14816 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14817 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14818 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14819 | rm -f conftest.err conftest.$ac_objext \ |
| 14820 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14821 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14822 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14823 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14824 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14825 | cat >>confdefs.h <<_ACEOF |
| 14826 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14827 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14828 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14829 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14830 | done |
| 14831 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14832 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14833 | |
| 14834 | |
| 14835 | |
| 14836 | |
| 14837 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14838 | for ac_func in dup2 getcwd strdup strerror memmove |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14839 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14840 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14841 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14842 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14843 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14844 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14845 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14846 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14847 | /* confdefs.h. */ |
| 14848 | _ACEOF |
| 14849 | cat confdefs.h >>conftest.$ac_ext |
| 14850 | cat >>conftest.$ac_ext <<_ACEOF |
| 14851 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14852 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14853 | which can conflict with char $ac_func (); below. |
| 14854 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14855 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14856 | including <limits.h> includes <sys/time.h> and causes problems |
| 14857 | checking for functions defined therein. */ |
| 14858 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14859 | # include <limits.h> |
| 14860 | #else |
| 14861 | # include <assert.h> |
| 14862 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14863 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14864 | #ifdef __cplusplus |
| 14865 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14866 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14867 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14868 | /* 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] | 14869 | builtin and then its argument prototype would still apply. */ |
| 14870 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14871 | /* The GNU C library defines this for functions which it implements |
| 14872 | to always fail with ENOSYS. Some functions are actually named |
| 14873 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14874 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14875 | choke me |
| 14876 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14877 | char (*f) () = $ac_func; |
| 14878 | #endif |
| 14879 | #ifdef __cplusplus |
| 14880 | } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14881 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14882 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14883 | int |
| 14884 | main () |
| 14885 | { |
| 14886 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14887 | ; |
| 14888 | return 0; |
| 14889 | } |
| 14890 | _ACEOF |
| 14891 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14892 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14893 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14894 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14895 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14896 | rm -f conftest.er1 |
| 14897 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14899 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14900 | { ac_try='test -z "$ac_c_werror_flag" |
| 14901 | || test ! -s conftest.err' |
| 14902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14903 | (eval $ac_try) 2>&5 |
| 14904 | ac_status=$? |
| 14905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14906 | (exit $ac_status); }; } && |
| 14907 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14909 | (eval $ac_try) 2>&5 |
| 14910 | ac_status=$? |
| 14911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14912 | (exit $ac_status); }; }; then |
| 14913 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14914 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14915 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14916 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14917 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14918 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14919 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14920 | rm -f conftest.err conftest.$ac_objext \ |
| 14921 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14922 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14923 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14924 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14925 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14926 | cat >>confdefs.h <<_ACEOF |
| 14927 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14928 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14929 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14930 | else |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14931 | case $LIBOBJS in |
| 14932 | "$ac_func.$ac_objext" | \ |
| 14933 | *" $ac_func.$ac_objext" | \ |
| 14934 | "$ac_func.$ac_objext "* | \ |
| 14935 | *" $ac_func.$ac_objext "* ) ;; |
| 14936 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; |
| 14937 | esac |
| 14938 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14939 | fi |
| 14940 | done |
| 14941 | |
| 14942 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14943 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14944 | for ac_func in getpgrp |
| 14945 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14946 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14947 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14948 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14949 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14951 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14952 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14953 | /* confdefs.h. */ |
| 14954 | _ACEOF |
| 14955 | cat confdefs.h >>conftest.$ac_ext |
| 14956 | cat >>conftest.$ac_ext <<_ACEOF |
| 14957 | /* end confdefs.h. */ |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14958 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14959 | which can conflict with char $ac_func (); below. |
| 14960 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14961 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14962 | including <limits.h> includes <sys/time.h> and causes problems |
| 14963 | checking for functions defined therein. */ |
| 14964 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14965 | # include <limits.h> |
| 14966 | #else |
| 14967 | # include <assert.h> |
| 14968 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14969 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14970 | #ifdef __cplusplus |
| 14971 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14972 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14973 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14974 | /* 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] | 14975 | builtin and then its argument prototype would still apply. */ |
| 14976 | char $ac_func (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14977 | /* The GNU C library defines this for functions which it implements |
| 14978 | to always fail with ENOSYS. Some functions are actually named |
| 14979 | something starting with __ and the normal name is an alias. */ |
| 14980 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14981 | choke me |
| 14982 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14983 | char (*f) () = $ac_func; |
| 14984 | #endif |
| 14985 | #ifdef __cplusplus |
| 14986 | } |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14987 | #endif |
| 14988 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14989 | int |
| 14990 | main () |
| 14991 | { |
| 14992 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14993 | ; |
| 14994 | return 0; |
| 14995 | } |
| 14996 | _ACEOF |
| 14997 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14998 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 14999 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15000 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15001 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15002 | rm -f conftest.er1 |
| 15003 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15005 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15006 | { ac_try='test -z "$ac_c_werror_flag" |
| 15007 | || test ! -s conftest.err' |
| 15008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15009 | (eval $ac_try) 2>&5 |
| 15010 | ac_status=$? |
| 15011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15012 | (exit $ac_status); }; } && |
| 15013 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15015 | (eval $ac_try) 2>&5 |
| 15016 | ac_status=$? |
| 15017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15018 | (exit $ac_status); }; }; then |
| 15019 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15020 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15021 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15022 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15023 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15024 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15025 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15026 | rm -f conftest.err conftest.$ac_objext \ |
| 15027 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15028 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15029 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15030 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15031 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15032 | cat >>confdefs.h <<_ACEOF |
| 15033 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15034 | _ACEOF |
| 15035 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15036 | /* confdefs.h. */ |
| 15037 | _ACEOF |
| 15038 | cat confdefs.h >>conftest.$ac_ext |
| 15039 | cat >>conftest.$ac_ext <<_ACEOF |
| 15040 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15041 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15042 | int |
| 15043 | main () |
| 15044 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15045 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15046 | ; |
| 15047 | return 0; |
| 15048 | } |
| 15049 | _ACEOF |
| 15050 | rm -f conftest.$ac_objext |
| 15051 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15052 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15053 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15054 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15055 | rm -f conftest.er1 |
| 15056 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15058 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15059 | { ac_try='test -z "$ac_c_werror_flag" |
| 15060 | || test ! -s conftest.err' |
| 15061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15062 | (eval $ac_try) 2>&5 |
| 15063 | ac_status=$? |
| 15064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15065 | (exit $ac_status); }; } && |
| 15066 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15068 | (eval $ac_try) 2>&5 |
| 15069 | ac_status=$? |
| 15070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15071 | (exit $ac_status); }; }; then |
| 15072 | |
| 15073 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15074 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15075 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15076 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15077 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15078 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15079 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15080 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15081 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15082 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15083 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15084 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15085 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15086 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15087 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15088 | |
| 15089 | for ac_func in setpgrp |
| 15090 | do |
| 15091 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15092 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15093 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15094 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15095 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15096 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15097 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15098 | /* confdefs.h. */ |
| 15099 | _ACEOF |
| 15100 | cat confdefs.h >>conftest.$ac_ext |
| 15101 | cat >>conftest.$ac_ext <<_ACEOF |
| 15102 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15103 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15104 | which can conflict with char $ac_func (); below. |
| 15105 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 15106 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 15107 | including <limits.h> includes <sys/time.h> and causes problems |
| 15108 | checking for functions defined therein. */ |
| 15109 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15110 | # include <limits.h> |
| 15111 | #else |
| 15112 | # include <assert.h> |
| 15113 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15114 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15115 | #ifdef __cplusplus |
| 15116 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15117 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15118 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15119 | /* We use char because int might match the return type of a gcc2 |
| 15120 | builtin and then its argument prototype would still apply. */ |
| 15121 | char $ac_func (); |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15122 | /* The GNU C library defines this for functions which it implements |
| 15123 | to always fail with ENOSYS. Some functions are actually named |
| 15124 | something starting with __ and the normal name is an alias. */ |
| 15125 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15126 | choke me |
| 15127 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15128 | char (*f) () = $ac_func; |
| 15129 | #endif |
| 15130 | #ifdef __cplusplus |
| 15131 | } |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15132 | #endif |
| 15133 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15134 | int |
| 15135 | main () |
| 15136 | { |
| 15137 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15138 | ; |
| 15139 | return 0; |
| 15140 | } |
| 15141 | _ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15142 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15143 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15144 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15145 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15146 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15147 | rm -f conftest.er1 |
| 15148 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15150 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15151 | { ac_try='test -z "$ac_c_werror_flag" |
| 15152 | || test ! -s conftest.err' |
| 15153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15154 | (eval $ac_try) 2>&5 |
| 15155 | ac_status=$? |
| 15156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15157 | (exit $ac_status); }; } && |
| 15158 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15160 | (eval $ac_try) 2>&5 |
| 15161 | ac_status=$? |
| 15162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15163 | (exit $ac_status); }; }; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15164 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15165 | else |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15166 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15167 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15168 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15169 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15170 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15171 | rm -f conftest.err conftest.$ac_objext \ |
| 15172 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15173 | fi |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15174 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15175 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15176 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15177 | cat >>confdefs.h <<_ACEOF |
| 15178 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15179 | _ACEOF |
| 15180 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15181 | /* confdefs.h. */ |
| 15182 | _ACEOF |
| 15183 | cat confdefs.h >>conftest.$ac_ext |
| 15184 | cat >>conftest.$ac_ext <<_ACEOF |
| 15185 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15186 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15187 | int |
| 15188 | main () |
| 15189 | { |
| 15190 | setpgrp(0,0); |
| 15191 | ; |
| 15192 | return 0; |
| 15193 | } |
| 15194 | _ACEOF |
| 15195 | rm -f conftest.$ac_objext |
| 15196 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15197 | (eval $ac_compile) 2>conftest.er1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15198 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15199 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15200 | rm -f conftest.er1 |
| 15201 | cat conftest.err >&5 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15203 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15204 | { ac_try='test -z "$ac_c_werror_flag" |
| 15205 | || test ! -s conftest.err' |
| 15206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15207 | (eval $ac_try) 2>&5 |
| 15208 | ac_status=$? |
| 15209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15210 | (exit $ac_status); }; } && |
| 15211 | { ac_try='test -s conftest.$ac_objext' |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15213 | (eval $ac_try) 2>&5 |
| 15214 | ac_status=$? |
| 15215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15216 | (exit $ac_status); }; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15217 | |
| 15218 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15219 | #define SETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15220 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 15221 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15222 | |
| 15223 | else |
| 15224 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15225 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15226 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 15227 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15228 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15229 | |
| 15230 | fi |
| 15231 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 15232 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15233 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15234 | for ac_func in gettimeofday |
| 15235 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15236 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15237 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15238 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15239 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15241 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15242 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15243 | /* confdefs.h. */ |
| 15244 | _ACEOF |
| 15245 | cat confdefs.h >>conftest.$ac_ext |
| 15246 | cat >>conftest.$ac_ext <<_ACEOF |
| 15247 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15248 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15249 | which can conflict with char $ac_func (); below. |
| 15250 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 15251 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 15252 | including <limits.h> includes <sys/time.h> and causes problems |
| 15253 | checking for functions defined therein. */ |
| 15254 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15255 | # include <limits.h> |
| 15256 | #else |
| 15257 | # include <assert.h> |
| 15258 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15259 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15260 | #ifdef __cplusplus |
| 15261 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15262 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15263 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15264 | /* 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] | 15265 | builtin and then its argument prototype would still apply. */ |
| 15266 | char $ac_func (); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15267 | /* The GNU C library defines this for functions which it implements |
| 15268 | to always fail with ENOSYS. Some functions are actually named |
| 15269 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15270 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15271 | choke me |
| 15272 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15273 | char (*f) () = $ac_func; |
| 15274 | #endif |
| 15275 | #ifdef __cplusplus |
| 15276 | } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15277 | #endif |
| 15278 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15279 | int |
| 15280 | main () |
| 15281 | { |
| 15282 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15283 | ; |
| 15284 | return 0; |
| 15285 | } |
| 15286 | _ACEOF |
| 15287 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15288 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15289 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15290 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15291 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15292 | rm -f conftest.er1 |
| 15293 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15295 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15296 | { ac_try='test -z "$ac_c_werror_flag" |
| 15297 | || test ! -s conftest.err' |
| 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); }; } && |
| 15303 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15305 | (eval $ac_try) 2>&5 |
| 15306 | ac_status=$? |
| 15307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15308 | (exit $ac_status); }; }; then |
| 15309 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15310 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15311 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15312 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15313 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15314 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15315 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15316 | rm -f conftest.err conftest.$ac_objext \ |
| 15317 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15318 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15319 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15320 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15321 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15322 | cat >>confdefs.h <<_ACEOF |
| 15323 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15324 | _ACEOF |
| 15325 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15326 | /* confdefs.h. */ |
| 15327 | _ACEOF |
| 15328 | cat confdefs.h >>conftest.$ac_ext |
| 15329 | cat >>conftest.$ac_ext <<_ACEOF |
| 15330 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15331 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15332 | int |
| 15333 | main () |
| 15334 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15335 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15336 | ; |
| 15337 | return 0; |
| 15338 | } |
| 15339 | _ACEOF |
| 15340 | rm -f conftest.$ac_objext |
| 15341 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15342 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15343 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15344 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15345 | rm -f conftest.er1 |
| 15346 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15348 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15349 | { ac_try='test -z "$ac_c_werror_flag" |
| 15350 | || test ! -s conftest.err' |
| 15351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15352 | (eval $ac_try) 2>&5 |
| 15353 | ac_status=$? |
| 15354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15355 | (exit $ac_status); }; } && |
| 15356 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15358 | (eval $ac_try) 2>&5 |
| 15359 | ac_status=$? |
| 15360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15361 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15362 | : |
| 15363 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15364 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15365 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15366 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15367 | |
| 15368 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15369 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15370 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15371 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15372 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15373 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15374 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15375 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15376 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15377 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15378 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15379 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15380 | echo "$as_me:$LINENO: checking for major" >&5 |
| 15381 | echo $ECHO_N "checking for major... $ECHO_C" >&6 |
| 15382 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15383 | /* confdefs.h. */ |
| 15384 | _ACEOF |
| 15385 | cat confdefs.h >>conftest.$ac_ext |
| 15386 | cat >>conftest.$ac_ext <<_ACEOF |
| 15387 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15388 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 15389 | #if defined(MAJOR_IN_MKDEV) |
| 15390 | #include <sys/mkdev.h> |
| 15391 | #elif defined(MAJOR_IN_SYSMACROS) |
| 15392 | #include <sys/sysmacros.h> |
| 15393 | #else |
| 15394 | #include <sys/types.h> |
| 15395 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15396 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15397 | int |
| 15398 | main () |
| 15399 | { |
| 15400 | |
| 15401 | makedev(major(0),minor(0)); |
| 15402 | |
| 15403 | ; |
| 15404 | return 0; |
| 15405 | } |
| 15406 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 15407 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15408 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15409 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15410 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15411 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15412 | rm -f conftest.er1 |
| 15413 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15415 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15416 | { ac_try='test -z "$ac_c_werror_flag" |
| 15417 | || test ! -s conftest.err' |
| 15418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15419 | (eval $ac_try) 2>&5 |
| 15420 | ac_status=$? |
| 15421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15422 | (exit $ac_status); }; } && |
| 15423 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15425 | (eval $ac_try) 2>&5 |
| 15426 | ac_status=$? |
| 15427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15428 | (exit $ac_status); }; }; then |
| 15429 | |
| 15430 | |
| 15431 | cat >>confdefs.h <<\_ACEOF |
| 15432 | #define HAVE_DEVICE_MACROS 1 |
| 15433 | _ACEOF |
| 15434 | |
| 15435 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15436 | echo "${ECHO_T}yes" >&6 |
| 15437 | |
| 15438 | else |
| 15439 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15440 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15441 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15442 | |
| 15443 | echo "$as_me:$LINENO: result: no" >&5 |
| 15444 | echo "${ECHO_T}no" >&6 |
| 15445 | |
| 15446 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15447 | rm -f conftest.err conftest.$ac_objext \ |
| 15448 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15449 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15450 | # 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] | 15451 | # for [no]getaddrinfo in netdb.h. |
| 15452 | echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 15453 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6 |
| 15454 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15455 | /* confdefs.h. */ |
| 15456 | _ACEOF |
| 15457 | cat confdefs.h >>conftest.$ac_ext |
| 15458 | cat >>conftest.$ac_ext <<_ACEOF |
| 15459 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15460 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 15461 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15462 | #include <sys/socket.h> |
| 15463 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 15464 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15465 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15466 | int |
| 15467 | main () |
| 15468 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15469 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15470 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15471 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15472 | ; |
| 15473 | return 0; |
| 15474 | } |
| 15475 | _ACEOF |
| 15476 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15477 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15478 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15479 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15480 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15481 | rm -f conftest.er1 |
| 15482 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15484 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15485 | { ac_try='test -z "$ac_c_werror_flag" |
| 15486 | || test ! -s conftest.err' |
| 15487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15488 | (eval $ac_try) 2>&5 |
| 15489 | ac_status=$? |
| 15490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15491 | (exit $ac_status); }; } && |
| 15492 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15494 | (eval $ac_try) 2>&5 |
| 15495 | ac_status=$? |
| 15496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15497 | (exit $ac_status); }; }; then |
| 15498 | |
| 15499 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15500 | echo "${ECHO_T}yes" >&6 |
| 15501 | echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| 15502 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15503 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15504 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 15505 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15506 | buggygetaddrinfo=yes |
| 15507 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15508 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15509 | /* confdefs.h. */ |
| 15510 | _ACEOF |
| 15511 | cat confdefs.h >>conftest.$ac_ext |
| 15512 | cat >>conftest.$ac_ext <<_ACEOF |
| 15513 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15514 | |
| 15515 | #include <sys/types.h> |
| 15516 | #include <netdb.h> |
| 15517 | #include <string.h> |
| 15518 | #include <sys/socket.h> |
| 15519 | #include <netinet/in.h> |
| 15520 | |
| 15521 | main() |
| 15522 | { |
| 15523 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 15524 | struct addrinfo hints, *ai, *aitop; |
| 15525 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 15526 | |
| 15527 | for (passive = 0; passive <= 1; passive++) { |
| 15528 | memset(&hints, 0, sizeof(hints)); |
| 15529 | hints.ai_family = AF_UNSPEC; |
| 15530 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 15531 | hints.ai_socktype = SOCK_STREAM; |
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 15532 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15533 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 15534 | (void)gai_strerror(gaierr); |
| 15535 | goto bad; |
| 15536 | } |
| 15537 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 15538 | if (ai->ai_addr == NULL || |
| 15539 | ai->ai_addrlen == 0 || |
| 15540 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 15541 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 15542 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 15543 | goto bad; |
| 15544 | } |
| 15545 | switch (ai->ai_family) { |
| 15546 | case AF_INET: |
| 15547 | if (strcmp(strport, "54321") != 0) { |
| 15548 | goto bad; |
| 15549 | } |
| 15550 | if (passive) { |
| 15551 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 15552 | goto bad; |
| 15553 | } |
| 15554 | } else { |
| 15555 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 15556 | goto bad; |
| 15557 | } |
| 15558 | } |
| 15559 | inet4++; |
| 15560 | break; |
| 15561 | case AF_INET6: |
| 15562 | if (strcmp(strport, "54321") != 0) { |
| 15563 | goto bad; |
| 15564 | } |
| 15565 | if (passive) { |
| 15566 | if (strcmp(straddr, "::") != 0) { |
| 15567 | goto bad; |
| 15568 | } |
| 15569 | } else { |
| 15570 | if (strcmp(straddr, "::1") != 0) { |
| 15571 | goto bad; |
| 15572 | } |
| 15573 | } |
| 15574 | inet6++; |
| 15575 | break; |
| 15576 | case AF_UNSPEC: |
| 15577 | goto bad; |
| 15578 | break; |
| 15579 | default: |
| 15580 | /* another family support? */ |
| 15581 | break; |
| 15582 | } |
| 15583 | } |
| 15584 | } |
| 15585 | |
| 15586 | if (!(inet4 == 0 || inet4 == 2)) |
| 15587 | goto bad; |
| 15588 | if (!(inet6 == 0 || inet6 == 2)) |
| 15589 | goto bad; |
| 15590 | |
| 15591 | if (aitop) |
| 15592 | freeaddrinfo(aitop); |
| 15593 | exit(0); |
| 15594 | |
| 15595 | bad: |
| 15596 | if (aitop) |
| 15597 | freeaddrinfo(aitop); |
| 15598 | exit(1); |
| 15599 | } |
| 15600 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15601 | _ACEOF |
| 15602 | rm -f conftest$ac_exeext |
| 15603 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15604 | (eval $ac_link) 2>&5 |
| 15605 | ac_status=$? |
| 15606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15607 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15609 | (eval $ac_try) 2>&5 |
| 15610 | ac_status=$? |
| 15611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15612 | (exit $ac_status); }; }; then |
| 15613 | echo "$as_me:$LINENO: result: good" >&5 |
| 15614 | echo "${ECHO_T}good" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15615 | buggygetaddrinfo=no |
| 15616 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15617 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15618 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15619 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15620 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15621 | ( exit $ac_status ) |
| 15622 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 15623 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15624 | buggygetaddrinfo=yes |
| 15625 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15626 | rm -f 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] | 15627 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15628 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15629 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15630 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15631 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15632 | |
| 15633 | echo "$as_me:$LINENO: result: no" >&5 |
| 15634 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15635 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15636 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15637 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15638 | rm -f conftest.err conftest.$ac_objext \ |
| 15639 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15640 | |
| 15641 | if test "$buggygetaddrinfo" = "yes"; then |
| 15642 | if test "$ipv6" = "yes"; then |
| 15643 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 15644 | echo ' or you can specify "--disable-ipv6"'. |
| 15645 | exit 1 |
| 15646 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15647 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15648 | |
| 15649 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15650 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15651 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15652 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15653 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15654 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 15655 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15656 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15657 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15658 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15659 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15660 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15661 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15662 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15663 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15664 | /* confdefs.h. */ |
| 15665 | _ACEOF |
| 15666 | cat confdefs.h >>conftest.$ac_ext |
| 15667 | cat >>conftest.$ac_ext <<_ACEOF |
| 15668 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15669 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15670 | which can conflict with char $ac_func (); below. |
| 15671 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 15672 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 15673 | including <limits.h> includes <sys/time.h> and causes problems |
| 15674 | checking for functions defined therein. */ |
| 15675 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15676 | # include <limits.h> |
| 15677 | #else |
| 15678 | # include <assert.h> |
| 15679 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15680 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15681 | #ifdef __cplusplus |
| 15682 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15683 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15684 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15685 | /* 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] | 15686 | builtin and then its argument prototype would still apply. */ |
| 15687 | char $ac_func (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15688 | /* The GNU C library defines this for functions which it implements |
| 15689 | to always fail with ENOSYS. Some functions are actually named |
| 15690 | something starting with __ and the normal name is an alias. */ |
| 15691 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15692 | choke me |
| 15693 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15694 | char (*f) () = $ac_func; |
| 15695 | #endif |
| 15696 | #ifdef __cplusplus |
| 15697 | } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15698 | #endif |
| 15699 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15700 | int |
| 15701 | main () |
| 15702 | { |
| 15703 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15704 | ; |
| 15705 | return 0; |
| 15706 | } |
| 15707 | _ACEOF |
| 15708 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15709 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15710 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15711 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15712 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15713 | rm -f conftest.er1 |
| 15714 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15716 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15717 | { ac_try='test -z "$ac_c_werror_flag" |
| 15718 | || test ! -s conftest.err' |
| 15719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15720 | (eval $ac_try) 2>&5 |
| 15721 | ac_status=$? |
| 15722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15723 | (exit $ac_status); }; } && |
| 15724 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15726 | (eval $ac_try) 2>&5 |
| 15727 | ac_status=$? |
| 15728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15729 | (exit $ac_status); }; }; then |
| 15730 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15731 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15732 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15733 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15734 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15735 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15736 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15737 | rm -f conftest.err conftest.$ac_objext \ |
| 15738 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15739 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15740 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15741 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15742 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15743 | cat >>confdefs.h <<_ACEOF |
| 15744 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15745 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15746 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15747 | fi |
| 15748 | done |
| 15749 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15750 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15751 | # checks for structures |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15752 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 15753 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 15754 | if test "${ac_cv_header_time+set}" = set; then |
| 15755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15756 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15757 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15758 | /* confdefs.h. */ |
| 15759 | _ACEOF |
| 15760 | cat confdefs.h >>conftest.$ac_ext |
| 15761 | cat >>conftest.$ac_ext <<_ACEOF |
| 15762 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15763 | #include <sys/types.h> |
| 15764 | #include <sys/time.h> |
| 15765 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15766 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15767 | int |
| 15768 | main () |
| 15769 | { |
| 15770 | if ((struct tm *) 0) |
| 15771 | return 0; |
| 15772 | ; |
| 15773 | return 0; |
| 15774 | } |
| 15775 | _ACEOF |
| 15776 | rm -f conftest.$ac_objext |
| 15777 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15778 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15779 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15780 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15781 | rm -f conftest.er1 |
| 15782 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15784 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15785 | { ac_try='test -z "$ac_c_werror_flag" |
| 15786 | || test ! -s conftest.err' |
| 15787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15788 | (eval $ac_try) 2>&5 |
| 15789 | ac_status=$? |
| 15790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15791 | (exit $ac_status); }; } && |
| 15792 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15794 | (eval $ac_try) 2>&5 |
| 15795 | ac_status=$? |
| 15796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15797 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15798 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15799 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15800 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15801 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15802 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15803 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15804 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15805 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15806 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15807 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 15808 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15809 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15810 | |
| 15811 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15812 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15813 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15814 | |
| 15815 | fi |
| 15816 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15817 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 15818 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 15819 | if test "${ac_cv_struct_tm+set}" = set; then |
| 15820 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15821 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15822 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15823 | /* confdefs.h. */ |
| 15824 | _ACEOF |
| 15825 | cat confdefs.h >>conftest.$ac_ext |
| 15826 | cat >>conftest.$ac_ext <<_ACEOF |
| 15827 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15828 | #include <sys/types.h> |
| 15829 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15830 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15831 | int |
| 15832 | main () |
| 15833 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15834 | struct tm *tp; tp->tm_sec; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15835 | ; |
| 15836 | return 0; |
| 15837 | } |
| 15838 | _ACEOF |
| 15839 | rm -f conftest.$ac_objext |
| 15840 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15841 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15842 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15843 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15844 | rm -f conftest.er1 |
| 15845 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15847 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15848 | { ac_try='test -z "$ac_c_werror_flag" |
| 15849 | || test ! -s conftest.err' |
| 15850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15851 | (eval $ac_try) 2>&5 |
| 15852 | ac_status=$? |
| 15853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15854 | (exit $ac_status); }; } && |
| 15855 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15857 | (eval $ac_try) 2>&5 |
| 15858 | ac_status=$? |
| 15859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15860 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15861 | ac_cv_struct_tm=time.h |
| 15862 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15863 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15864 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15865 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15866 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15867 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15868 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15869 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15870 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 15871 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15872 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15873 | |
| 15874 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15875 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15876 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15877 | |
| 15878 | fi |
| 15879 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15880 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 15881 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 15882 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 15883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15884 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15885 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15886 | /* confdefs.h. */ |
| 15887 | _ACEOF |
| 15888 | cat confdefs.h >>conftest.$ac_ext |
| 15889 | cat >>conftest.$ac_ext <<_ACEOF |
| 15890 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15891 | #include <sys/types.h> |
| 15892 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15893 | |
| 15894 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15895 | int |
| 15896 | main () |
| 15897 | { |
| 15898 | static struct tm ac_aggr; |
| 15899 | if (ac_aggr.tm_zone) |
| 15900 | return 0; |
| 15901 | ; |
| 15902 | return 0; |
| 15903 | } |
| 15904 | _ACEOF |
| 15905 | rm -f conftest.$ac_objext |
| 15906 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15907 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15908 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15909 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15910 | rm -f conftest.er1 |
| 15911 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15913 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15914 | { ac_try='test -z "$ac_c_werror_flag" |
| 15915 | || test ! -s conftest.err' |
| 15916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15917 | (eval $ac_try) 2>&5 |
| 15918 | ac_status=$? |
| 15919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15920 | (exit $ac_status); }; } && |
| 15921 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15923 | (eval $ac_try) 2>&5 |
| 15924 | ac_status=$? |
| 15925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15926 | (exit $ac_status); }; }; then |
| 15927 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15928 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15929 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15930 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15931 | |
| 15932 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15933 | /* confdefs.h. */ |
| 15934 | _ACEOF |
| 15935 | cat confdefs.h >>conftest.$ac_ext |
| 15936 | cat >>conftest.$ac_ext <<_ACEOF |
| 15937 | /* end confdefs.h. */ |
| 15938 | #include <sys/types.h> |
| 15939 | #include <$ac_cv_struct_tm> |
| 15940 | |
| 15941 | |
| 15942 | int |
| 15943 | main () |
| 15944 | { |
| 15945 | static struct tm ac_aggr; |
| 15946 | if (sizeof ac_aggr.tm_zone) |
| 15947 | return 0; |
| 15948 | ; |
| 15949 | return 0; |
| 15950 | } |
| 15951 | _ACEOF |
| 15952 | rm -f conftest.$ac_objext |
| 15953 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15954 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15955 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15956 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15957 | rm -f conftest.er1 |
| 15958 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15960 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15961 | { ac_try='test -z "$ac_c_werror_flag" |
| 15962 | || test ! -s conftest.err' |
| 15963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15964 | (eval $ac_try) 2>&5 |
| 15965 | ac_status=$? |
| 15966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15967 | (exit $ac_status); }; } && |
| 15968 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15970 | (eval $ac_try) 2>&5 |
| 15971 | ac_status=$? |
| 15972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15973 | (exit $ac_status); }; }; then |
| 15974 | ac_cv_member_struct_tm_tm_zone=yes |
| 15975 | else |
| 15976 | echo "$as_me: failed program was:" >&5 |
| 15977 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15978 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15979 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15980 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15981 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15982 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 15983 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15984 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15985 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 15986 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 15987 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 15988 | |
| 15989 | cat >>confdefs.h <<_ACEOF |
| 15990 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 15991 | _ACEOF |
| 15992 | |
| 15993 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15994 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15995 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15996 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 15997 | |
| 15998 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15999 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16000 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16001 | |
| 16002 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16003 | echo "$as_me:$LINENO: checking for tzname" >&5 |
| 16004 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 16005 | if test "${ac_cv_var_tzname+set}" = set; then |
| 16006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16007 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16008 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16009 | /* confdefs.h. */ |
| 16010 | _ACEOF |
| 16011 | cat confdefs.h >>conftest.$ac_ext |
| 16012 | cat >>conftest.$ac_ext <<_ACEOF |
| 16013 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16014 | #include <time.h> |
| 16015 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16016 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16017 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16018 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16019 | int |
| 16020 | main () |
| 16021 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16022 | atoi(*tzname); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16023 | ; |
| 16024 | return 0; |
| 16025 | } |
| 16026 | _ACEOF |
| 16027 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16028 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16029 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16030 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16031 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16032 | rm -f conftest.er1 |
| 16033 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16035 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16036 | { ac_try='test -z "$ac_c_werror_flag" |
| 16037 | || test ! -s conftest.err' |
| 16038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16039 | (eval $ac_try) 2>&5 |
| 16040 | ac_status=$? |
| 16041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16042 | (exit $ac_status); }; } && |
| 16043 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16045 | (eval $ac_try) 2>&5 |
| 16046 | ac_status=$? |
| 16047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16048 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16049 | ac_cv_var_tzname=yes |
| 16050 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16051 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16052 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16053 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16054 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16055 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16056 | rm -f conftest.err conftest.$ac_objext \ |
| 16057 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16058 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16059 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 16060 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16061 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16062 | |
| 16063 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16064 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16065 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16066 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16067 | fi |
| 16068 | fi |
| 16069 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16070 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 16071 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 |
| 16072 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
| 16073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16074 | else |
| 16075 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16076 | /* confdefs.h. */ |
| 16077 | _ACEOF |
| 16078 | cat confdefs.h >>conftest.$ac_ext |
| 16079 | cat >>conftest.$ac_ext <<_ACEOF |
| 16080 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16081 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16082 | int |
| 16083 | main () |
| 16084 | { |
| 16085 | static struct stat ac_aggr; |
| 16086 | if (ac_aggr.st_rdev) |
| 16087 | return 0; |
| 16088 | ; |
| 16089 | return 0; |
| 16090 | } |
| 16091 | _ACEOF |
| 16092 | rm -f conftest.$ac_objext |
| 16093 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16094 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16095 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16096 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16097 | rm -f conftest.er1 |
| 16098 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16100 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16101 | { ac_try='test -z "$ac_c_werror_flag" |
| 16102 | || test ! -s conftest.err' |
| 16103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16104 | (eval $ac_try) 2>&5 |
| 16105 | ac_status=$? |
| 16106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16107 | (exit $ac_status); }; } && |
| 16108 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16110 | (eval $ac_try) 2>&5 |
| 16111 | ac_status=$? |
| 16112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16113 | (exit $ac_status); }; }; then |
| 16114 | ac_cv_member_struct_stat_st_rdev=yes |
| 16115 | else |
| 16116 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16117 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16118 | |
| 16119 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16120 | /* confdefs.h. */ |
| 16121 | _ACEOF |
| 16122 | cat confdefs.h >>conftest.$ac_ext |
| 16123 | cat >>conftest.$ac_ext <<_ACEOF |
| 16124 | /* end confdefs.h. */ |
| 16125 | $ac_includes_default |
| 16126 | int |
| 16127 | main () |
| 16128 | { |
| 16129 | static struct stat ac_aggr; |
| 16130 | if (sizeof ac_aggr.st_rdev) |
| 16131 | return 0; |
| 16132 | ; |
| 16133 | return 0; |
| 16134 | } |
| 16135 | _ACEOF |
| 16136 | rm -f conftest.$ac_objext |
| 16137 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16138 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16139 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16140 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16141 | rm -f conftest.er1 |
| 16142 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16144 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16145 | { ac_try='test -z "$ac_c_werror_flag" |
| 16146 | || test ! -s conftest.err' |
| 16147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16148 | (eval $ac_try) 2>&5 |
| 16149 | ac_status=$? |
| 16150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16151 | (exit $ac_status); }; } && |
| 16152 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16154 | (eval $ac_try) 2>&5 |
| 16155 | ac_status=$? |
| 16156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16157 | (exit $ac_status); }; }; then |
| 16158 | ac_cv_member_struct_stat_st_rdev=yes |
| 16159 | else |
| 16160 | echo "$as_me: failed program was:" >&5 |
| 16161 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16162 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16163 | ac_cv_member_struct_stat_st_rdev=no |
| 16164 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16165 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16166 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16167 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16168 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16169 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 16170 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 |
| 16171 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
| 16172 | |
| 16173 | cat >>confdefs.h <<_ACEOF |
| 16174 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 16175 | _ACEOF |
| 16176 | |
| 16177 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 16178 | fi |
| 16179 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16180 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 16181 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 |
| 16182 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
| 16183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 16184 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16185 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16186 | /* confdefs.h. */ |
| 16187 | _ACEOF |
| 16188 | cat confdefs.h >>conftest.$ac_ext |
| 16189 | cat >>conftest.$ac_ext <<_ACEOF |
| 16190 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16191 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16192 | int |
| 16193 | main () |
| 16194 | { |
| 16195 | static struct stat ac_aggr; |
| 16196 | if (ac_aggr.st_blksize) |
| 16197 | return 0; |
| 16198 | ; |
| 16199 | return 0; |
| 16200 | } |
| 16201 | _ACEOF |
| 16202 | rm -f conftest.$ac_objext |
| 16203 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16204 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16205 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16206 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16207 | rm -f conftest.er1 |
| 16208 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16210 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16211 | { ac_try='test -z "$ac_c_werror_flag" |
| 16212 | || test ! -s conftest.err' |
| 16213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16214 | (eval $ac_try) 2>&5 |
| 16215 | ac_status=$? |
| 16216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16217 | (exit $ac_status); }; } && |
| 16218 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16220 | (eval $ac_try) 2>&5 |
| 16221 | ac_status=$? |
| 16222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16223 | (exit $ac_status); }; }; then |
| 16224 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16225 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16226 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16227 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16228 | |
| 16229 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16230 | /* confdefs.h. */ |
| 16231 | _ACEOF |
| 16232 | cat confdefs.h >>conftest.$ac_ext |
| 16233 | cat >>conftest.$ac_ext <<_ACEOF |
| 16234 | /* end confdefs.h. */ |
| 16235 | $ac_includes_default |
| 16236 | int |
| 16237 | main () |
| 16238 | { |
| 16239 | static struct stat ac_aggr; |
| 16240 | if (sizeof ac_aggr.st_blksize) |
| 16241 | return 0; |
| 16242 | ; |
| 16243 | return 0; |
| 16244 | } |
| 16245 | _ACEOF |
| 16246 | rm -f conftest.$ac_objext |
| 16247 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16248 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16249 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16250 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16251 | rm -f conftest.er1 |
| 16252 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16254 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16255 | { ac_try='test -z "$ac_c_werror_flag" |
| 16256 | || test ! -s conftest.err' |
| 16257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16258 | (eval $ac_try) 2>&5 |
| 16259 | ac_status=$? |
| 16260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16261 | (exit $ac_status); }; } && |
| 16262 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16264 | (eval $ac_try) 2>&5 |
| 16265 | ac_status=$? |
| 16266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16267 | (exit $ac_status); }; }; then |
| 16268 | ac_cv_member_struct_stat_st_blksize=yes |
| 16269 | else |
| 16270 | echo "$as_me: failed program was:" >&5 |
| 16271 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16272 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16273 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16274 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16275 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16276 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16277 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16278 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16279 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 16280 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 |
| 16281 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16282 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16283 | cat >>confdefs.h <<_ACEOF |
| 16284 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 16285 | _ACEOF |
| 16286 | |
| 16287 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 16288 | fi |
| 16289 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16290 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 16291 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 |
| 16292 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 16293 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 16294 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16295 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16296 | /* confdefs.h. */ |
| 16297 | _ACEOF |
| 16298 | cat confdefs.h >>conftest.$ac_ext |
| 16299 | cat >>conftest.$ac_ext <<_ACEOF |
| 16300 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16301 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16302 | int |
| 16303 | main () |
| 16304 | { |
| 16305 | static struct stat ac_aggr; |
| 16306 | if (ac_aggr.st_blocks) |
| 16307 | return 0; |
| 16308 | ; |
| 16309 | return 0; |
| 16310 | } |
| 16311 | _ACEOF |
| 16312 | rm -f conftest.$ac_objext |
| 16313 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16314 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16315 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16316 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16317 | rm -f conftest.er1 |
| 16318 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16320 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16321 | { ac_try='test -z "$ac_c_werror_flag" |
| 16322 | || test ! -s conftest.err' |
| 16323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16324 | (eval $ac_try) 2>&5 |
| 16325 | ac_status=$? |
| 16326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16327 | (exit $ac_status); }; } && |
| 16328 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16330 | (eval $ac_try) 2>&5 |
| 16331 | ac_status=$? |
| 16332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16333 | (exit $ac_status); }; }; then |
| 16334 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16335 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16336 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16337 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16338 | |
| 16339 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16340 | /* confdefs.h. */ |
| 16341 | _ACEOF |
| 16342 | cat confdefs.h >>conftest.$ac_ext |
| 16343 | cat >>conftest.$ac_ext <<_ACEOF |
| 16344 | /* end confdefs.h. */ |
| 16345 | $ac_includes_default |
| 16346 | int |
| 16347 | main () |
| 16348 | { |
| 16349 | static struct stat ac_aggr; |
| 16350 | if (sizeof ac_aggr.st_blocks) |
| 16351 | return 0; |
| 16352 | ; |
| 16353 | return 0; |
| 16354 | } |
| 16355 | _ACEOF |
| 16356 | rm -f conftest.$ac_objext |
| 16357 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16358 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16359 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16360 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16361 | rm -f conftest.er1 |
| 16362 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16364 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16365 | { ac_try='test -z "$ac_c_werror_flag" |
| 16366 | || test ! -s conftest.err' |
| 16367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16368 | (eval $ac_try) 2>&5 |
| 16369 | ac_status=$? |
| 16370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16371 | (exit $ac_status); }; } && |
| 16372 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16374 | (eval $ac_try) 2>&5 |
| 16375 | ac_status=$? |
| 16376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16377 | (exit $ac_status); }; }; then |
| 16378 | ac_cv_member_struct_stat_st_blocks=yes |
| 16379 | else |
| 16380 | echo "$as_me: failed program was:" >&5 |
| 16381 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16382 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16383 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16384 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16385 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16386 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16387 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16388 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16389 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 16390 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 |
| 16391 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16392 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16393 | cat >>confdefs.h <<_ACEOF |
| 16394 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 16395 | _ACEOF |
| 16396 | |
| 16397 | |
| 16398 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 16399 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16400 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 16401 | |
| 16402 | else |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16403 | case $LIBOBJS in |
| 16404 | "fileblocks.$ac_objext" | \ |
| 16405 | *" fileblocks.$ac_objext" | \ |
| 16406 | "fileblocks.$ac_objext "* | \ |
| 16407 | *" fileblocks.$ac_objext "* ) ;; |
| 16408 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;; |
| 16409 | esac |
| 16410 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 16411 | fi |
| 16412 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16413 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16414 | |
| 16415 | echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 16416 | echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6 |
| 16417 | if test "${ac_cv_header_time_altzone+set}" = set; then |
| 16418 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16419 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16420 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16421 | /* confdefs.h. */ |
| 16422 | _ACEOF |
| 16423 | cat confdefs.h >>conftest.$ac_ext |
| 16424 | cat >>conftest.$ac_ext <<_ACEOF |
| 16425 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16426 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16427 | int |
| 16428 | main () |
| 16429 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16430 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16431 | ; |
| 16432 | return 0; |
| 16433 | } |
| 16434 | _ACEOF |
| 16435 | rm -f conftest.$ac_objext |
| 16436 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16437 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16438 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16439 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16440 | rm -f conftest.er1 |
| 16441 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16443 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16444 | { ac_try='test -z "$ac_c_werror_flag" |
| 16445 | || test ! -s conftest.err' |
| 16446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16447 | (eval $ac_try) 2>&5 |
| 16448 | ac_status=$? |
| 16449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16450 | (exit $ac_status); }; } && |
| 16451 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16453 | (eval $ac_try) 2>&5 |
| 16454 | ac_status=$? |
| 16455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16456 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16457 | ac_cv_header_time_altzone=yes |
| 16458 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16459 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16460 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16461 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16462 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16463 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16464 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16465 | fi |
| 16466 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16467 | echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 16468 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16469 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16470 | |
| 16471 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16472 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16473 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16474 | |
| 16475 | fi |
| 16476 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16477 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16478 | echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 16479 | echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 16480 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16481 | /* confdefs.h. */ |
| 16482 | _ACEOF |
| 16483 | cat confdefs.h >>conftest.$ac_ext |
| 16484 | cat >>conftest.$ac_ext <<_ACEOF |
| 16485 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16486 | |
| 16487 | #include <sys/types.h> |
| 16488 | #include <sys/select.h> |
| 16489 | #include <sys/time.h> |
| 16490 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16491 | int |
| 16492 | main () |
| 16493 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16494 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16495 | ; |
| 16496 | return 0; |
| 16497 | } |
| 16498 | _ACEOF |
| 16499 | rm -f conftest.$ac_objext |
| 16500 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16501 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16502 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16503 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16504 | rm -f conftest.er1 |
| 16505 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16507 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16508 | { ac_try='test -z "$ac_c_werror_flag" |
| 16509 | || test ! -s conftest.err' |
| 16510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16511 | (eval $ac_try) 2>&5 |
| 16512 | ac_status=$? |
| 16513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16514 | (exit $ac_status); }; } && |
| 16515 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16517 | (eval $ac_try) 2>&5 |
| 16518 | ac_status=$? |
| 16519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16520 | (exit $ac_status); }; }; then |
| 16521 | |
| 16522 | |
| 16523 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16524 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16525 | _ACEOF |
| 16526 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16527 | was_it_defined=yes |
| 16528 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 16529 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16530 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16531 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16532 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16533 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16534 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16535 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 16536 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16537 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16538 | echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 16539 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6 |
| 16540 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
| 16541 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16542 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16543 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16544 | /* confdefs.h. */ |
| 16545 | _ACEOF |
| 16546 | cat confdefs.h >>conftest.$ac_ext |
| 16547 | cat >>conftest.$ac_ext <<_ACEOF |
| 16548 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16549 | |
| 16550 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16551 | int |
| 16552 | main () |
| 16553 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16554 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16555 | ; |
| 16556 | return 0; |
| 16557 | } |
| 16558 | _ACEOF |
| 16559 | rm -f conftest.$ac_objext |
| 16560 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16561 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16562 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16563 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16564 | rm -f conftest.er1 |
| 16565 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16567 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16568 | { ac_try='test -z "$ac_c_werror_flag" |
| 16569 | || test ! -s conftest.err' |
| 16570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16571 | (eval $ac_try) 2>&5 |
| 16572 | ac_status=$? |
| 16573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16574 | (exit $ac_status); }; } && |
| 16575 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16577 | (eval $ac_try) 2>&5 |
| 16578 | ac_status=$? |
| 16579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16580 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16581 | ac_cv_struct_addrinfo=yes |
| 16582 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16583 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16584 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16585 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16586 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16587 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16588 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16589 | fi |
| 16590 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16591 | echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 16592 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16593 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16594 | |
| 16595 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16596 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16597 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16598 | |
| 16599 | fi |
| 16600 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16601 | echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 16602 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6 |
| 16603 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
| 16604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16605 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16606 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16607 | /* confdefs.h. */ |
| 16608 | _ACEOF |
| 16609 | cat confdefs.h >>conftest.$ac_ext |
| 16610 | cat >>conftest.$ac_ext <<_ACEOF |
| 16611 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16612 | |
| 16613 | # include <sys/types.h> |
| 16614 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16615 | int |
| 16616 | main () |
| 16617 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16618 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16619 | ; |
| 16620 | return 0; |
| 16621 | } |
| 16622 | _ACEOF |
| 16623 | rm -f conftest.$ac_objext |
| 16624 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16625 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16626 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16627 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16628 | rm -f conftest.er1 |
| 16629 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16631 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16632 | { ac_try='test -z "$ac_c_werror_flag" |
| 16633 | || test ! -s conftest.err' |
| 16634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16635 | (eval $ac_try) 2>&5 |
| 16636 | ac_status=$? |
| 16637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16638 | (exit $ac_status); }; } && |
| 16639 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16641 | (eval $ac_try) 2>&5 |
| 16642 | ac_status=$? |
| 16643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16644 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16645 | ac_cv_struct_sockaddr_storage=yes |
| 16646 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16647 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16648 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16649 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16650 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16651 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16652 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16653 | fi |
| 16654 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16655 | echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 16656 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16657 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16658 | |
| 16659 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16660 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16661 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16662 | |
| 16663 | fi |
| 16664 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16665 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16666 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16667 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16668 | echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 16669 | echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 |
| 16670 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
| 16671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16672 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16673 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16674 | /* confdefs.h. */ |
| 16675 | _ACEOF |
| 16676 | cat confdefs.h >>conftest.$ac_ext |
| 16677 | cat >>conftest.$ac_ext <<_ACEOF |
| 16678 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16679 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16680 | int |
| 16681 | main () |
| 16682 | { |
| 16683 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 16684 | test_array [0] = 0 |
| 16685 | |
| 16686 | ; |
| 16687 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16688 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16689 | _ACEOF |
| 16690 | rm -f conftest.$ac_objext |
| 16691 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16692 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16693 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16694 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16695 | rm -f conftest.er1 |
| 16696 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16698 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16699 | { ac_try='test -z "$ac_c_werror_flag" |
| 16700 | || test ! -s conftest.err' |
| 16701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16702 | (eval $ac_try) 2>&5 |
| 16703 | ac_status=$? |
| 16704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16705 | (exit $ac_status); }; } && |
| 16706 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16708 | (eval $ac_try) 2>&5 |
| 16709 | ac_status=$? |
| 16710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16711 | (exit $ac_status); }; }; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16712 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16713 | else |
| 16714 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16715 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16716 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16717 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16718 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16719 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16720 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16721 | echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 16722 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16723 | 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] | 16724 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16725 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16726 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16727 | |
| 16728 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16729 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16730 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 16731 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 16732 | if test "${ac_cv_c_const+set}" = set; then |
| 16733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16734 | else |
| 16735 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16736 | /* confdefs.h. */ |
| 16737 | _ACEOF |
| 16738 | cat confdefs.h >>conftest.$ac_ext |
| 16739 | cat >>conftest.$ac_ext <<_ACEOF |
| 16740 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16741 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16742 | int |
| 16743 | main () |
| 16744 | { |
| 16745 | /* FIXME: Include the comments suggested by Paul. */ |
| 16746 | #ifndef __cplusplus |
| 16747 | /* Ultrix mips cc rejects this. */ |
| 16748 | typedef int charset[2]; |
| 16749 | const charset x; |
| 16750 | /* SunOS 4.1.1 cc rejects this. */ |
| 16751 | char const *const *ccp; |
| 16752 | char **p; |
| 16753 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 16754 | struct point {int x, y;}; |
| 16755 | static struct point const zero = {0,0}; |
| 16756 | /* AIX XL C 1.02.0.0 rejects this. |
| 16757 | It does not let you subtract one const X* pointer from another in |
| 16758 | an arm of an if-expression whose if-part is not a constant |
| 16759 | expression */ |
| 16760 | const char *g = "string"; |
| 16761 | ccp = &g + (g ? g-g : 0); |
| 16762 | /* HPUX 7.0 cc rejects these. */ |
| 16763 | ++ccp; |
| 16764 | p = (char**) ccp; |
| 16765 | ccp = (char const *const *) p; |
| 16766 | { /* SCO 3.2v4 cc rejects this. */ |
| 16767 | char *t; |
| 16768 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16769 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16770 | *t++ = 0; |
| 16771 | } |
| 16772 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 16773 | int x[] = {25, 17}; |
| 16774 | const int *foo = &x[0]; |
| 16775 | ++foo; |
| 16776 | } |
| 16777 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 16778 | typedef const int *iptr; |
| 16779 | iptr p = 0; |
| 16780 | ++p; |
| 16781 | } |
| 16782 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 16783 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 16784 | struct s { int j; const int *ap[3]; }; |
| 16785 | struct s *b; b->j = 5; |
| 16786 | } |
| 16787 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 16788 | const int foo = 10; |
| 16789 | } |
| 16790 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16791 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16792 | ; |
| 16793 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16794 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16795 | _ACEOF |
| 16796 | rm -f conftest.$ac_objext |
| 16797 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16798 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16799 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16800 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16801 | rm -f conftest.er1 |
| 16802 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16804 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16805 | { ac_try='test -z "$ac_c_werror_flag" |
| 16806 | || test ! -s conftest.err' |
| 16807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16808 | (eval $ac_try) 2>&5 |
| 16809 | ac_status=$? |
| 16810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16811 | (exit $ac_status); }; } && |
| 16812 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16814 | (eval $ac_try) 2>&5 |
| 16815 | ac_status=$? |
| 16816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16817 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16818 | ac_cv_c_const=yes |
| 16819 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16820 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16821 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16822 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16823 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16824 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16825 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16826 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16827 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 16828 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16829 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16830 | |
| 16831 | cat >>confdefs.h <<\_ACEOF |
| 16832 | #define const |
| 16833 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16834 | |
| 16835 | fi |
| 16836 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16837 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16838 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16839 | echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 16840 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
| 16841 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16842 | /* confdefs.h. */ |
| 16843 | _ACEOF |
| 16844 | cat confdefs.h >>conftest.$ac_ext |
| 16845 | cat >>conftest.$ac_ext <<_ACEOF |
| 16846 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16847 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16848 | int |
| 16849 | main () |
| 16850 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16851 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16852 | ; |
| 16853 | return 0; |
| 16854 | } |
| 16855 | _ACEOF |
| 16856 | rm -f conftest.$ac_objext |
| 16857 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16858 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16859 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16860 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16861 | rm -f conftest.er1 |
| 16862 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16864 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16865 | { ac_try='test -z "$ac_c_werror_flag" |
| 16866 | || test ! -s conftest.err' |
| 16867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16868 | (eval $ac_try) 2>&5 |
| 16869 | ac_status=$? |
| 16870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16871 | (exit $ac_status); }; } && |
| 16872 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16874 | (eval $ac_try) 2>&5 |
| 16875 | ac_status=$? |
| 16876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16877 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16878 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16879 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16880 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16881 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16882 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16883 | |
| 16884 | cat >>confdefs.h <<\_ACEOF |
| 16885 | #define volatile |
| 16886 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16887 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16888 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16889 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16890 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16891 | echo "$as_me:$LINENO: result: $works" >&5 |
| 16892 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16893 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16894 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16895 | echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 16896 | echo $ECHO_N "checking for working signed char... $ECHO_C" >&6 |
| 16897 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16898 | /* confdefs.h. */ |
| 16899 | _ACEOF |
| 16900 | cat confdefs.h >>conftest.$ac_ext |
| 16901 | cat >>conftest.$ac_ext <<_ACEOF |
| 16902 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 16903 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16904 | int |
| 16905 | main () |
| 16906 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16907 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16908 | ; |
| 16909 | return 0; |
| 16910 | } |
| 16911 | _ACEOF |
| 16912 | rm -f conftest.$ac_objext |
| 16913 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16914 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16915 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16916 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16917 | rm -f conftest.er1 |
| 16918 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16920 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16921 | { ac_try='test -z "$ac_c_werror_flag" |
| 16922 | || test ! -s conftest.err' |
| 16923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16924 | (eval $ac_try) 2>&5 |
| 16925 | ac_status=$? |
| 16926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16927 | (exit $ac_status); }; } && |
| 16928 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16930 | (eval $ac_try) 2>&5 |
| 16931 | ac_status=$? |
| 16932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16933 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16934 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 16935 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16936 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16937 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16938 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16939 | |
| 16940 | cat >>confdefs.h <<\_ACEOF |
| 16941 | #define signed |
| 16942 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16943 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16944 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16945 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16946 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16947 | echo "$as_me:$LINENO: result: $works" >&5 |
| 16948 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16949 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16950 | have_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16951 | echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 16952 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6 |
| 16953 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16954 | /* confdefs.h. */ |
| 16955 | _ACEOF |
| 16956 | cat confdefs.h >>conftest.$ac_ext |
| 16957 | cat >>conftest.$ac_ext <<_ACEOF |
| 16958 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16959 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16960 | int |
| 16961 | main () |
| 16962 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16963 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16964 | ; |
| 16965 | return 0; |
| 16966 | } |
| 16967 | _ACEOF |
| 16968 | rm -f conftest.$ac_objext |
| 16969 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16970 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16971 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16972 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16973 | rm -f conftest.er1 |
| 16974 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16976 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 16977 | { ac_try='test -z "$ac_c_werror_flag" |
| 16978 | || test ! -s conftest.err' |
| 16979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16980 | (eval $ac_try) 2>&5 |
| 16981 | ac_status=$? |
| 16982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16983 | (exit $ac_status); }; } && |
| 16984 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16986 | (eval $ac_try) 2>&5 |
| 16987 | ac_status=$? |
| 16988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16989 | (exit $ac_status); }; }; then |
| 16990 | |
| 16991 | |
| 16992 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16993 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16994 | _ACEOF |
| 16995 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16996 | have_prototypes=yes |
| 16997 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 16998 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16999 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17000 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17001 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17002 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 17003 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17004 | echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 17005 | echo "${ECHO_T}$have_prototypes" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17006 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17007 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17008 | echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 17009 | echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6 |
| 17010 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17011 | /* confdefs.h. */ |
| 17012 | _ACEOF |
| 17013 | cat confdefs.h >>conftest.$ac_ext |
| 17014 | cat >>conftest.$ac_ext <<_ACEOF |
| 17015 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17016 | |
| 17017 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 17018 | int foo(int x, ...) { |
| 17019 | va_list va; |
| 17020 | va_start(va, x); |
| 17021 | va_arg(va, int); |
| 17022 | va_arg(va, char *); |
| 17023 | va_arg(va, double); |
| 17024 | return 0; |
| 17025 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17026 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17027 | int |
| 17028 | main () |
| 17029 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 17030 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17031 | ; |
| 17032 | return 0; |
| 17033 | } |
| 17034 | _ACEOF |
| 17035 | rm -f conftest.$ac_objext |
| 17036 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 17037 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17038 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 17039 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17040 | rm -f conftest.er1 |
| 17041 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17043 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 17044 | { ac_try='test -z "$ac_c_werror_flag" |
| 17045 | || test ! -s conftest.err' |
| 17046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17047 | (eval $ac_try) 2>&5 |
| 17048 | ac_status=$? |
| 17049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17050 | (exit $ac_status); }; } && |
| 17051 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17053 | (eval $ac_try) 2>&5 |
| 17054 | ac_status=$? |
| 17055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17056 | (exit $ac_status); }; }; then |
| 17057 | |
| 17058 | |
| 17059 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17060 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17061 | _ACEOF |
| 17062 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 17063 | works=yes |
| 17064 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 17065 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17066 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17067 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17068 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17069 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 17070 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17071 | echo "$as_me:$LINENO: result: $works" >&5 |
| 17072 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17073 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17074 | # check if sockaddr has sa_len member |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17075 | echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 17076 | echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6 |
| 17077 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17078 | /* confdefs.h. */ |
| 17079 | _ACEOF |
| 17080 | cat confdefs.h >>conftest.$ac_ext |
| 17081 | cat >>conftest.$ac_ext <<_ACEOF |
| 17082 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17083 | #include <sys/types.h> |
| 17084 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17085 | int |
| 17086 | main () |
| 17087 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17088 | struct sockaddr x; |
| 17089 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17090 | ; |
| 17091 | return 0; |
| 17092 | } |
| 17093 | _ACEOF |
| 17094 | rm -f conftest.$ac_objext |
| 17095 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 17096 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17097 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 17098 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17099 | rm -f conftest.er1 |
| 17100 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17102 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 17103 | { ac_try='test -z "$ac_c_werror_flag" |
| 17104 | || test ! -s conftest.err' |
| 17105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17106 | (eval $ac_try) 2>&5 |
| 17107 | ac_status=$? |
| 17108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17109 | (exit $ac_status); }; } && |
| 17110 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17112 | (eval $ac_try) 2>&5 |
| 17113 | ac_status=$? |
| 17114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17115 | (exit $ac_status); }; }; then |
| 17116 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17117 | echo "${ECHO_T}yes" >&6 |
| 17118 | |
| 17119 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17120 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17121 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17122 | |
| 17123 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17124 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17125 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17126 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17127 | echo "$as_me:$LINENO: result: no" >&5 |
| 17128 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17129 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 17130 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17131 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17132 | va_list_is_array=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17133 | echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 17134 | echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6 |
| 17135 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17136 | /* confdefs.h. */ |
| 17137 | _ACEOF |
| 17138 | cat confdefs.h >>conftest.$ac_ext |
| 17139 | cat >>conftest.$ac_ext <<_ACEOF |
| 17140 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17141 | |
| 17142 | #ifdef HAVE_STDARG_PROTOTYPES |
| 17143 | #include <stdarg.h> |
| 17144 | #else |
| 17145 | #include <varargs.h> |
| 17146 | #endif |
| 17147 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17148 | int |
| 17149 | main () |
| 17150 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17151 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17152 | ; |
| 17153 | return 0; |
| 17154 | } |
| 17155 | _ACEOF |
| 17156 | rm -f conftest.$ac_objext |
| 17157 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 17158 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17159 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 17160 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17161 | rm -f conftest.er1 |
| 17162 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17164 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 17165 | { ac_try='test -z "$ac_c_werror_flag" |
| 17166 | || test ! -s conftest.err' |
| 17167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17168 | (eval $ac_try) 2>&5 |
| 17169 | ac_status=$? |
| 17170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17171 | (exit $ac_status); }; } && |
| 17172 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17174 | (eval $ac_try) 2>&5 |
| 17175 | ac_status=$? |
| 17176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17177 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17178 | : |
| 17179 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17180 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17181 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17182 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17183 | |
| 17184 | |
| 17185 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17186 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17187 | _ACEOF |
| 17188 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17189 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 17190 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17191 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 17192 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17193 | echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 17194 | echo "${ECHO_T}$va_list_is_array" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17195 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17196 | # 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] | 17197 | |
| 17198 | |
| 17199 | |
| 17200 | echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 17201 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6 |
| 17202 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
| 17203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17204 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17205 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17206 | /* confdefs.h. */ |
| 17207 | _ACEOF |
| 17208 | cat confdefs.h >>conftest.$ac_ext |
| 17209 | cat >>conftest.$ac_ext <<_ACEOF |
| 17210 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17211 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17212 | which can conflict with char gethostbyname_r (); below. |
| 17213 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 17214 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 17215 | including <limits.h> includes <sys/time.h> and causes problems |
| 17216 | checking for functions defined therein. */ |
| 17217 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17218 | # include <limits.h> |
| 17219 | #else |
| 17220 | # include <assert.h> |
| 17221 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17222 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17223 | #ifdef __cplusplus |
| 17224 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17225 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17226 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17227 | /* 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] | 17228 | builtin and then its argument prototype would still apply. */ |
| 17229 | char gethostbyname_r (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17230 | /* The GNU C library defines this for functions which it implements |
| 17231 | to always fail with ENOSYS. Some functions are actually named |
| 17232 | something starting with __ and the normal name is an alias. */ |
| 17233 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 17234 | choke me |
| 17235 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17236 | char (*f) () = gethostbyname_r; |
| 17237 | #endif |
| 17238 | #ifdef __cplusplus |
| 17239 | } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17240 | #endif |
| 17241 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17242 | int |
| 17243 | main () |
| 17244 | { |
| 17245 | return f != gethostbyname_r; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17246 | ; |
| 17247 | return 0; |
| 17248 | } |
| 17249 | _ACEOF |
| 17250 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17251 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 17252 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17253 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 17254 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17255 | rm -f conftest.er1 |
| 17256 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17258 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 17259 | { ac_try='test -z "$ac_c_werror_flag" |
| 17260 | || test ! -s conftest.err' |
| 17261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17262 | (eval $ac_try) 2>&5 |
| 17263 | ac_status=$? |
| 17264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17265 | (exit $ac_status); }; } && |
| 17266 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17268 | (eval $ac_try) 2>&5 |
| 17269 | ac_status=$? |
| 17270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17271 | (exit $ac_status); }; }; then |
| 17272 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17273 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17274 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17275 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17276 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17277 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17278 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 17279 | rm -f conftest.err conftest.$ac_objext \ |
| 17280 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17281 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17282 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 17283 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6 |
| 17284 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17285 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17286 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17287 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17288 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17289 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17290 | echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 17291 | 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] | 17292 | OLD_CFLAGS=$CFLAGS |
| 17293 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17294 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17295 | /* confdefs.h. */ |
| 17296 | _ACEOF |
| 17297 | cat confdefs.h >>conftest.$ac_ext |
| 17298 | cat >>conftest.$ac_ext <<_ACEOF |
| 17299 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17300 | |
| 17301 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17302 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17303 | int |
| 17304 | main () |
| 17305 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17306 | |
| 17307 | char *name; |
| 17308 | struct hostent *he, *res; |
| 17309 | char buffer[2048]; |
| 17310 | int buflen = 2048; |
| 17311 | int h_errnop; |
| 17312 | |
| 17313 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17314 | |
| 17315 | ; |
| 17316 | return 0; |
| 17317 | } |
| 17318 | _ACEOF |
| 17319 | rm -f conftest.$ac_objext |
| 17320 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 17321 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17322 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 17323 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17324 | rm -f conftest.er1 |
| 17325 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17327 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 17328 | { ac_try='test -z "$ac_c_werror_flag" |
| 17329 | || test ! -s conftest.err' |
| 17330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17331 | (eval $ac_try) 2>&5 |
| 17332 | ac_status=$? |
| 17333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17334 | (exit $ac_status); }; } && |
| 17335 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17337 | (eval $ac_try) 2>&5 |
| 17338 | ac_status=$? |
| 17339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17340 | (exit $ac_status); }; }; then |
| 17341 | |
| 17342 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 17343 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17344 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 17345 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17346 | |
| 17347 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17348 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17349 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17350 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17351 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17352 | echo "${ECHO_T}yes" >&6 |
| 17353 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17354 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17355 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17356 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17357 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17358 | |
| 17359 | echo "$as_me:$LINENO: result: no" >&5 |
| 17360 | echo "${ECHO_T}no" >&6 |
| 17361 | echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 17362 | echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6 |
| 17363 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17364 | /* confdefs.h. */ |
| 17365 | _ACEOF |
| 17366 | cat confdefs.h >>conftest.$ac_ext |
| 17367 | cat >>conftest.$ac_ext <<_ACEOF |
| 17368 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17369 | |
| 17370 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17371 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17372 | int |
| 17373 | main () |
| 17374 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17375 | |
| 17376 | char *name; |
| 17377 | struct hostent *he; |
| 17378 | char buffer[2048]; |
| 17379 | int buflen = 2048; |
| 17380 | int h_errnop; |
| 17381 | |
| 17382 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17383 | |
| 17384 | ; |
| 17385 | return 0; |
| 17386 | } |
| 17387 | _ACEOF |
| 17388 | rm -f conftest.$ac_objext |
| 17389 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 17390 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17391 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 17392 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17393 | rm -f conftest.er1 |
| 17394 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17396 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 17397 | { ac_try='test -z "$ac_c_werror_flag" |
| 17398 | || test ! -s conftest.err' |
| 17399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17400 | (eval $ac_try) 2>&5 |
| 17401 | ac_status=$? |
| 17402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17403 | (exit $ac_status); }; } && |
| 17404 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17406 | (eval $ac_try) 2>&5 |
| 17407 | ac_status=$? |
| 17408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17409 | (exit $ac_status); }; }; then |
| 17410 | |
| 17411 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 17412 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17413 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 17414 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17415 | |
| 17416 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17417 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17418 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17419 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17420 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17421 | echo "${ECHO_T}yes" >&6 |
| 17422 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17423 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17424 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17425 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17426 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17427 | |
| 17428 | echo "$as_me:$LINENO: result: no" >&5 |
| 17429 | echo "${ECHO_T}no" >&6 |
| 17430 | echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 17431 | echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6 |
| 17432 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17433 | /* confdefs.h. */ |
| 17434 | _ACEOF |
| 17435 | cat confdefs.h >>conftest.$ac_ext |
| 17436 | cat >>conftest.$ac_ext <<_ACEOF |
| 17437 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17438 | |
| 17439 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17440 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17441 | int |
| 17442 | main () |
| 17443 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17444 | |
| 17445 | char *name; |
| 17446 | struct hostent *he; |
| 17447 | struct hostent_data data; |
| 17448 | |
| 17449 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17450 | |
| 17451 | ; |
| 17452 | return 0; |
| 17453 | } |
| 17454 | _ACEOF |
| 17455 | rm -f conftest.$ac_objext |
| 17456 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 17457 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17458 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 17459 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17460 | rm -f conftest.er1 |
| 17461 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17463 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 17464 | { ac_try='test -z "$ac_c_werror_flag" |
| 17465 | || test ! -s conftest.err' |
| 17466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17467 | (eval $ac_try) 2>&5 |
| 17468 | ac_status=$? |
| 17469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17470 | (exit $ac_status); }; } && |
| 17471 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17473 | (eval $ac_try) 2>&5 |
| 17474 | ac_status=$? |
| 17475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17476 | (exit $ac_status); }; }; then |
| 17477 | |
| 17478 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 17479 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17480 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 17481 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17482 | |
| 17483 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17484 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17485 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17486 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17487 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17488 | echo "${ECHO_T}yes" >&6 |
| 17489 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17490 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17491 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17492 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17493 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17494 | |
| 17495 | echo "$as_me:$LINENO: result: no" >&5 |
| 17496 | echo "${ECHO_T}no" >&6 |
| 17497 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17498 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 17499 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17500 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17501 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 17502 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17503 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17504 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 17505 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17506 | CFLAGS=$OLD_CFLAGS |
| 17507 | |
| 17508 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17509 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17510 | |
| 17511 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 17512 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17513 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17514 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17515 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 17516 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 17517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17518 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17519 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17520 | /* confdefs.h. */ |
| 17521 | _ACEOF |
| 17522 | cat confdefs.h >>conftest.$ac_ext |
| 17523 | cat >>conftest.$ac_ext <<_ACEOF |
| 17524 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17525 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17526 | which can conflict with char $ac_func (); below. |
| 17527 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 17528 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 17529 | including <limits.h> includes <sys/time.h> and causes problems |
| 17530 | checking for functions defined therein. */ |
| 17531 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17532 | # include <limits.h> |
| 17533 | #else |
| 17534 | # include <assert.h> |
| 17535 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17536 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17537 | #ifdef __cplusplus |
| 17538 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17539 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17540 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17541 | /* 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] | 17542 | builtin and then its argument prototype would still apply. */ |
| 17543 | char $ac_func (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17544 | /* The GNU C library defines this for functions which it implements |
| 17545 | to always fail with ENOSYS. Some functions are actually named |
| 17546 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 17547 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17548 | choke me |
| 17549 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17550 | char (*f) () = $ac_func; |
| 17551 | #endif |
| 17552 | #ifdef __cplusplus |
| 17553 | } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17554 | #endif |
| 17555 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17556 | int |
| 17557 | main () |
| 17558 | { |
| 17559 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17560 | ; |
| 17561 | return 0; |
| 17562 | } |
| 17563 | _ACEOF |
| 17564 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17565 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 17566 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17567 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 17568 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17569 | rm -f conftest.er1 |
| 17570 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17572 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 17573 | { ac_try='test -z "$ac_c_werror_flag" |
| 17574 | || test ! -s conftest.err' |
| 17575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17576 | (eval $ac_try) 2>&5 |
| 17577 | ac_status=$? |
| 17578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17579 | (exit $ac_status); }; } && |
| 17580 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17582 | (eval $ac_try) 2>&5 |
| 17583 | ac_status=$? |
| 17584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17585 | (exit $ac_status); }; }; then |
| 17586 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17587 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17588 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17589 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17590 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17591 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17592 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 17593 | rm -f conftest.err conftest.$ac_objext \ |
| 17594 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17595 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17596 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 17597 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 17598 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17599 | cat >>confdefs.h <<_ACEOF |
| 17600 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17601 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17602 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17603 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 17604 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17605 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17606 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17607 | fi |
| 17608 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17609 | |
| 17610 | |
| 17611 | |
| 17612 | |
| 17613 | |
| 17614 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17615 | # checks for system services |
| 17616 | # (none yet) |
| 17617 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17618 | # Linux requires this for correct f.p. operations |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17619 | echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 17620 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6 |
| 17621 | if test "${ac_cv_func___fpu_control+set}" = set; then |
| 17622 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17623 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17624 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17625 | /* confdefs.h. */ |
| 17626 | _ACEOF |
| 17627 | cat confdefs.h >>conftest.$ac_ext |
| 17628 | cat >>conftest.$ac_ext <<_ACEOF |
| 17629 | /* end confdefs.h. */ |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17630 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17631 | which can conflict with char __fpu_control (); below. |
| 17632 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 17633 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 17634 | including <limits.h> includes <sys/time.h> and causes problems |
| 17635 | checking for functions defined therein. */ |
| 17636 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17637 | # include <limits.h> |
| 17638 | #else |
| 17639 | # include <assert.h> |
| 17640 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17641 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17642 | #ifdef __cplusplus |
| 17643 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17644 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17645 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17646 | /* 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] | 17647 | builtin and then its argument prototype would still apply. */ |
| 17648 | char __fpu_control (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17649 | /* The GNU C library defines this for functions which it implements |
| 17650 | to always fail with ENOSYS. Some functions are actually named |
| 17651 | something starting with __ and the normal name is an alias. */ |
| 17652 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 17653 | choke me |
| 17654 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17655 | char (*f) () = __fpu_control; |
| 17656 | #endif |
| 17657 | #ifdef __cplusplus |
| 17658 | } |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17659 | #endif |
| 17660 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17661 | int |
| 17662 | main () |
| 17663 | { |
| 17664 | return f != __fpu_control; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17665 | ; |
| 17666 | return 0; |
| 17667 | } |
| 17668 | _ACEOF |
| 17669 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17670 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 17671 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17672 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 17673 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17674 | rm -f conftest.er1 |
| 17675 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17677 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 17678 | { ac_try='test -z "$ac_c_werror_flag" |
| 17679 | || test ! -s conftest.err' |
| 17680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17681 | (eval $ac_try) 2>&5 |
| 17682 | ac_status=$? |
| 17683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17684 | (exit $ac_status); }; } && |
| 17685 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17687 | (eval $ac_try) 2>&5 |
| 17688 | ac_status=$? |
| 17689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17690 | (exit $ac_status); }; }; then |
| 17691 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17692 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17693 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17694 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17695 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17696 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17697 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 17698 | rm -f conftest.err conftest.$ac_objext \ |
| 17699 | conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17700 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17701 | echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 17702 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6 |
| 17703 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17704 | : |
| 17705 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17706 | |
| 17707 | echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 17708 | echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6 |
| 17709 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
| 17710 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17711 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17712 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17713 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17714 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17715 | /* confdefs.h. */ |
| 17716 | _ACEOF |
| 17717 | cat confdefs.h >>conftest.$ac_ext |
| 17718 | cat >>conftest.$ac_ext <<_ACEOF |
| 17719 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17720 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 17721 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17722 | #ifdef __cplusplus |
| 17723 | extern "C" |
| 17724 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 17725 | /* 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] | 17726 | builtin and then its argument prototype would still apply. */ |
| 17727 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17728 | int |
| 17729 | main () |
| 17730 | { |
| 17731 | __fpu_control (); |
| 17732 | ; |
| 17733 | return 0; |
| 17734 | } |
| 17735 | _ACEOF |
| 17736 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17737 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 17738 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17739 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 17740 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17741 | rm -f conftest.er1 |
| 17742 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17744 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 17745 | { ac_try='test -z "$ac_c_werror_flag" |
| 17746 | || test ! -s conftest.err' |
| 17747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17748 | (eval $ac_try) 2>&5 |
| 17749 | ac_status=$? |
| 17750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17751 | (exit $ac_status); }; } && |
| 17752 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17754 | (eval $ac_try) 2>&5 |
| 17755 | ac_status=$? |
| 17756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17757 | (exit $ac_status); }; }; then |
| 17758 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17759 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17760 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17761 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17762 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17763 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17764 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 17765 | rm -f conftest.err conftest.$ac_objext \ |
| 17766 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17767 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17768 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17769 | echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 17770 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6 |
| 17771 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
| 17772 | cat >>confdefs.h <<_ACEOF |
| 17773 | #define HAVE_LIBIEEE 1 |
| 17774 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17775 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17776 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17777 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17778 | fi |
| 17779 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17780 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17781 | fi |
| 17782 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17783 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17784 | # Check for --with-fpectl |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17785 | echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 17786 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6 |
| 17787 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17788 | # Check whether --with-fpectl or --without-fpectl was given. |
| 17789 | if test "${with_fpectl+set}" = set; then |
| 17790 | withval="$with_fpectl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17791 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17792 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17793 | then |
| 17794 | |
| 17795 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17796 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17797 | _ACEOF |
| 17798 | |
| 17799 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17800 | echo "${ECHO_T}yes" >&6 |
| 17801 | else echo "$as_me:$LINENO: result: no" >&5 |
| 17802 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17803 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17804 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17805 | echo "$as_me:$LINENO: result: no" >&5 |
| 17806 | echo "${ECHO_T}no" >&6 |
| 17807 | fi; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17808 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17809 | # check for --with-libm=... |
| 17810 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 17811 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 17812 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 17813 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 17814 | *) LIBM=-lm |
| 17815 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17816 | echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 17817 | echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6 |
| 17818 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17819 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 17820 | if test "${with_libm+set}" = set; then |
| 17821 | withval="$with_libm" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17822 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17823 | if test "$withval" = no |
| 17824 | then LIBM= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17825 | echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 17826 | echo "${ECHO_T}force LIBM empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17827 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17828 | then LIBM=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17829 | echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 17830 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6 |
| 17831 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 17832 | echo "$as_me: error: proper usage is --with-libm=STRING" >&2;} |
| 17833 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17834 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17835 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17836 | echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 17837 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6 |
| 17838 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17839 | |
| 17840 | # check for --with-libc=... |
| 17841 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17842 | echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 17843 | echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6 |
| 17844 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17845 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 17846 | if test "${with_libc+set}" = set; then |
| 17847 | withval="$with_libc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17848 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17849 | if test "$withval" = no |
| 17850 | then LIBC= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17851 | echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 17852 | echo "${ECHO_T}force LIBC empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17853 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17854 | then LIBC=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17855 | echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 17856 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6 |
| 17857 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 17858 | echo "$as_me: error: proper usage is --with-libc=STRING" >&2;} |
| 17859 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17860 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17861 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17862 | echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 17863 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6 |
| 17864 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17865 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 17866 | # check for hypot() in math library |
| 17867 | LIBS_SAVE=$LIBS |
| 17868 | LIBS="$LIBS $LIBM" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17869 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 17870 | for ac_func in hypot |
| 17871 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17872 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17873 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17874 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 17875 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 17876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 17877 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17878 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17879 | /* confdefs.h. */ |
| 17880 | _ACEOF |
| 17881 | cat confdefs.h >>conftest.$ac_ext |
| 17882 | cat >>conftest.$ac_ext <<_ACEOF |
| 17883 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17884 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17885 | which can conflict with char $ac_func (); below. |
| 17886 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 17887 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 17888 | including <limits.h> includes <sys/time.h> and causes problems |
| 17889 | checking for functions defined therein. */ |
| 17890 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17891 | # include <limits.h> |
| 17892 | #else |
| 17893 | # include <assert.h> |
| 17894 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17895 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17896 | #ifdef __cplusplus |
| 17897 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17898 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17899 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 17900 | /* 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] | 17901 | builtin and then its argument prototype would still apply. */ |
| 17902 | char $ac_func (); |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 17903 | /* The GNU C library defines this for functions which it implements |
| 17904 | to always fail with ENOSYS. Some functions are actually named |
| 17905 | something starting with __ and the normal name is an alias. */ |
| 17906 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 17907 | choke me |
| 17908 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17909 | char (*f) () = $ac_func; |
| 17910 | #endif |
| 17911 | #ifdef __cplusplus |
| 17912 | } |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 17913 | #endif |
| 17914 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17915 | int |
| 17916 | main () |
| 17917 | { |
| 17918 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17919 | ; |
| 17920 | return 0; |
| 17921 | } |
| 17922 | _ACEOF |
| 17923 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17924 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 17925 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17926 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 17927 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17928 | rm -f conftest.er1 |
| 17929 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17931 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 17932 | { ac_try='test -z "$ac_c_werror_flag" |
| 17933 | || test ! -s conftest.err' |
| 17934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17935 | (eval $ac_try) 2>&5 |
| 17936 | ac_status=$? |
| 17937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17938 | (exit $ac_status); }; } && |
| 17939 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17941 | (eval $ac_try) 2>&5 |
| 17942 | ac_status=$? |
| 17943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17944 | (exit $ac_status); }; }; then |
| 17945 | eval "$as_ac_var=yes" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 17946 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17947 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17948 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17949 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17950 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17951 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 17952 | rm -f conftest.err conftest.$ac_objext \ |
| 17953 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17954 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17955 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 17956 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 17957 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17958 | cat >>confdefs.h <<_ACEOF |
| 17959 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17960 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17961 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17962 | else |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 17963 | case $LIBOBJS in |
| 17964 | "$ac_func.$ac_objext" | \ |
| 17965 | *" $ac_func.$ac_objext" | \ |
| 17966 | "$ac_func.$ac_objext "* | \ |
| 17967 | *" $ac_func.$ac_objext "* ) ;; |
| 17968 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; |
| 17969 | esac |
| 17970 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 17971 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 17972 | done |
| 17973 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17974 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 17975 | LIBS=$LIBS_SAVE |
| 17976 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17977 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17978 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 17979 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 17980 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 17981 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 17982 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17983 | fi |
| 17984 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 17985 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17986 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17987 | # Is the header compilable? |
| 17988 | echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 17989 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6 |
| 17990 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17991 | /* confdefs.h. */ |
| 17992 | _ACEOF |
| 17993 | cat confdefs.h >>conftest.$ac_ext |
| 17994 | cat >>conftest.$ac_ext <<_ACEOF |
| 17995 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17996 | $ac_includes_default |
| 17997 | #include <wchar.h> |
| 17998 | _ACEOF |
| 17999 | rm -f conftest.$ac_objext |
| 18000 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18001 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18002 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18003 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18004 | rm -f conftest.er1 |
| 18005 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18007 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18008 | { ac_try='test -z "$ac_c_werror_flag" |
| 18009 | || test ! -s conftest.err' |
| 18010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18011 | (eval $ac_try) 2>&5 |
| 18012 | ac_status=$? |
| 18013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18014 | (exit $ac_status); }; } && |
| 18015 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18017 | (eval $ac_try) 2>&5 |
| 18018 | ac_status=$? |
| 18019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18020 | (exit $ac_status); }; }; then |
| 18021 | ac_header_compiler=yes |
| 18022 | else |
| 18023 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18024 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18025 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18026 | ac_header_compiler=no |
| 18027 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18028 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18029 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 18030 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 18031 | |
| 18032 | # Is the header present? |
| 18033 | echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 18034 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6 |
| 18035 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18036 | /* confdefs.h. */ |
| 18037 | _ACEOF |
| 18038 | cat confdefs.h >>conftest.$ac_ext |
| 18039 | cat >>conftest.$ac_ext <<_ACEOF |
| 18040 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18041 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18042 | _ACEOF |
| 18043 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 18044 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 18045 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18046 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18047 | rm -f conftest.er1 |
| 18048 | cat conftest.err >&5 |
| 18049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18050 | (exit $ac_status); } >/dev/null; then |
| 18051 | if test -s conftest.err; then |
| 18052 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18053 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18054 | else |
| 18055 | ac_cpp_err= |
| 18056 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18057 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18058 | ac_cpp_err=yes |
| 18059 | fi |
| 18060 | if test -z "$ac_cpp_err"; then |
| 18061 | ac_header_preproc=yes |
| 18062 | else |
| 18063 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18064 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18065 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18066 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18067 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18068 | rm -f conftest.err conftest.$ac_ext |
| 18069 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 18070 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 18071 | |
| 18072 | # So? What about this header? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18073 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 18074 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18075 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 18076 | echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18077 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5 |
| 18078 | echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;} |
| 18079 | ac_header_preproc=yes |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18080 | ;; |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18081 | no:yes:* ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18082 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 18083 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18084 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 18085 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 18086 | { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5 |
| 18087 | echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;} |
| 18088 | { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 18089 | echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18090 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18091 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;} |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18092 | { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5 |
| 18093 | echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;} |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18094 | ( |
| 18095 | cat <<\_ASBOX |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18096 | ## --------------------------------- ## |
| 18097 | ## Report this to the python lists. ## |
| 18098 | ## --------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18099 | _ASBOX |
| 18100 | ) | |
| 18101 | sed "s/^/$as_me: WARNING: /" >&2 |
| 18102 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18103 | esac |
| 18104 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 18105 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 18106 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 18107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18108 | else |
| 18109 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18110 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18111 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 18112 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
| 18113 | |
| 18114 | fi |
| 18115 | if test $ac_cv_header_wchar_h = yes; then |
| 18116 | |
| 18117 | |
| 18118 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18119 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18120 | _ACEOF |
| 18121 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 18122 | wchar_h="yes" |
| 18123 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18124 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18125 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18126 | |
| 18127 | fi |
| 18128 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18129 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18130 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18131 | # determine wchar_t size |
| 18132 | if test "$wchar_h" = yes |
| 18133 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18134 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 18135 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 |
| 18136 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 18137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18138 | else |
| 18139 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18140 | /* confdefs.h. */ |
| 18141 | _ACEOF |
| 18142 | cat confdefs.h >>conftest.$ac_ext |
| 18143 | cat >>conftest.$ac_ext <<_ACEOF |
| 18144 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18145 | #include <wchar.h> |
| 18146 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18147 | int |
| 18148 | main () |
| 18149 | { |
| 18150 | if ((wchar_t *) 0) |
| 18151 | return 0; |
| 18152 | if (sizeof (wchar_t)) |
| 18153 | return 0; |
| 18154 | ; |
| 18155 | return 0; |
| 18156 | } |
| 18157 | _ACEOF |
| 18158 | rm -f conftest.$ac_objext |
| 18159 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18160 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18161 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18162 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18163 | rm -f conftest.er1 |
| 18164 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18166 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18167 | { ac_try='test -z "$ac_c_werror_flag" |
| 18168 | || test ! -s conftest.err' |
| 18169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18170 | (eval $ac_try) 2>&5 |
| 18171 | ac_status=$? |
| 18172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18173 | (exit $ac_status); }; } && |
| 18174 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18176 | (eval $ac_try) 2>&5 |
| 18177 | ac_status=$? |
| 18178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18179 | (exit $ac_status); }; }; then |
| 18180 | ac_cv_type_wchar_t=yes |
| 18181 | else |
| 18182 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18183 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18184 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18185 | ac_cv_type_wchar_t=no |
| 18186 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18187 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18188 | fi |
| 18189 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 18190 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 |
| 18191 | |
| 18192 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 18193 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 |
| 18194 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
| 18195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18196 | else |
| 18197 | if test "$ac_cv_type_wchar_t" = yes; then |
| 18198 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 18199 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 18200 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 18201 | # This bug is HP SR number 8606223364. |
| 18202 | if test "$cross_compiling" = yes; then |
| 18203 | # Depending upon the size, compute the lo and hi bounds. |
| 18204 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18205 | /* confdefs.h. */ |
| 18206 | _ACEOF |
| 18207 | cat confdefs.h >>conftest.$ac_ext |
| 18208 | cat >>conftest.$ac_ext <<_ACEOF |
| 18209 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18210 | #include <wchar.h> |
| 18211 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18212 | int |
| 18213 | main () |
| 18214 | { |
| 18215 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; |
| 18216 | test_array [0] = 0 |
| 18217 | |
| 18218 | ; |
| 18219 | return 0; |
| 18220 | } |
| 18221 | _ACEOF |
| 18222 | rm -f conftest.$ac_objext |
| 18223 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18224 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18225 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18226 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18227 | rm -f conftest.er1 |
| 18228 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18230 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18231 | { ac_try='test -z "$ac_c_werror_flag" |
| 18232 | || test ! -s conftest.err' |
| 18233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18234 | (eval $ac_try) 2>&5 |
| 18235 | ac_status=$? |
| 18236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18237 | (exit $ac_status); }; } && |
| 18238 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18240 | (eval $ac_try) 2>&5 |
| 18241 | ac_status=$? |
| 18242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18243 | (exit $ac_status); }; }; then |
| 18244 | ac_lo=0 ac_mid=0 |
| 18245 | while :; do |
| 18246 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18247 | /* confdefs.h. */ |
| 18248 | _ACEOF |
| 18249 | cat confdefs.h >>conftest.$ac_ext |
| 18250 | cat >>conftest.$ac_ext <<_ACEOF |
| 18251 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18252 | #include <wchar.h> |
| 18253 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18254 | int |
| 18255 | main () |
| 18256 | { |
| 18257 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 18258 | test_array [0] = 0 |
| 18259 | |
| 18260 | ; |
| 18261 | return 0; |
| 18262 | } |
| 18263 | _ACEOF |
| 18264 | rm -f conftest.$ac_objext |
| 18265 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18266 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18267 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18268 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18269 | rm -f conftest.er1 |
| 18270 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18272 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18273 | { ac_try='test -z "$ac_c_werror_flag" |
| 18274 | || test ! -s conftest.err' |
| 18275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18276 | (eval $ac_try) 2>&5 |
| 18277 | ac_status=$? |
| 18278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18279 | (exit $ac_status); }; } && |
| 18280 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18282 | (eval $ac_try) 2>&5 |
| 18283 | ac_status=$? |
| 18284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18285 | (exit $ac_status); }; }; then |
| 18286 | ac_hi=$ac_mid; break |
| 18287 | else |
| 18288 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18289 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18290 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18291 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18292 | if test $ac_lo -le $ac_mid; then |
| 18293 | ac_lo= ac_hi= |
| 18294 | break |
| 18295 | fi |
| 18296 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18297 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18298 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18299 | done |
| 18300 | else |
| 18301 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18302 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18303 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18304 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18305 | /* confdefs.h. */ |
| 18306 | _ACEOF |
| 18307 | cat confdefs.h >>conftest.$ac_ext |
| 18308 | cat >>conftest.$ac_ext <<_ACEOF |
| 18309 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18310 | #include <wchar.h> |
| 18311 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18312 | int |
| 18313 | main () |
| 18314 | { |
| 18315 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; |
| 18316 | test_array [0] = 0 |
| 18317 | |
| 18318 | ; |
| 18319 | return 0; |
| 18320 | } |
| 18321 | _ACEOF |
| 18322 | rm -f conftest.$ac_objext |
| 18323 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18324 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18325 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18326 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18327 | rm -f conftest.er1 |
| 18328 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18330 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18331 | { ac_try='test -z "$ac_c_werror_flag" |
| 18332 | || test ! -s conftest.err' |
| 18333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18334 | (eval $ac_try) 2>&5 |
| 18335 | ac_status=$? |
| 18336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18337 | (exit $ac_status); }; } && |
| 18338 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18340 | (eval $ac_try) 2>&5 |
| 18341 | ac_status=$? |
| 18342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18343 | (exit $ac_status); }; }; then |
| 18344 | ac_hi=-1 ac_mid=-1 |
| 18345 | while :; do |
| 18346 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18347 | /* confdefs.h. */ |
| 18348 | _ACEOF |
| 18349 | cat confdefs.h >>conftest.$ac_ext |
| 18350 | cat >>conftest.$ac_ext <<_ACEOF |
| 18351 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18352 | #include <wchar.h> |
| 18353 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18354 | int |
| 18355 | main () |
| 18356 | { |
| 18357 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; |
| 18358 | test_array [0] = 0 |
| 18359 | |
| 18360 | ; |
| 18361 | return 0; |
| 18362 | } |
| 18363 | _ACEOF |
| 18364 | rm -f conftest.$ac_objext |
| 18365 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18366 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18367 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18368 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18369 | rm -f conftest.er1 |
| 18370 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18372 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18373 | { ac_try='test -z "$ac_c_werror_flag" |
| 18374 | || test ! -s conftest.err' |
| 18375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18376 | (eval $ac_try) 2>&5 |
| 18377 | ac_status=$? |
| 18378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18379 | (exit $ac_status); }; } && |
| 18380 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18382 | (eval $ac_try) 2>&5 |
| 18383 | ac_status=$? |
| 18384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18385 | (exit $ac_status); }; }; then |
| 18386 | ac_lo=$ac_mid; break |
| 18387 | else |
| 18388 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18389 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18390 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18391 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18392 | if test $ac_mid -le $ac_hi; then |
| 18393 | ac_lo= ac_hi= |
| 18394 | break |
| 18395 | fi |
| 18396 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18397 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18398 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18399 | done |
| 18400 | else |
| 18401 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18402 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18403 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18404 | ac_lo= ac_hi= |
| 18405 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18406 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18407 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18408 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18409 | # Binary search between lo and hi bounds. |
| 18410 | while test "x$ac_lo" != "x$ac_hi"; do |
| 18411 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 18412 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18413 | /* confdefs.h. */ |
| 18414 | _ACEOF |
| 18415 | cat confdefs.h >>conftest.$ac_ext |
| 18416 | cat >>conftest.$ac_ext <<_ACEOF |
| 18417 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18418 | #include <wchar.h> |
| 18419 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18420 | int |
| 18421 | main () |
| 18422 | { |
| 18423 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 18424 | test_array [0] = 0 |
| 18425 | |
| 18426 | ; |
| 18427 | return 0; |
| 18428 | } |
| 18429 | _ACEOF |
| 18430 | rm -f conftest.$ac_objext |
| 18431 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18432 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18433 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18434 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18435 | rm -f conftest.er1 |
| 18436 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18438 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18439 | { ac_try='test -z "$ac_c_werror_flag" |
| 18440 | || test ! -s conftest.err' |
| 18441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18442 | (eval $ac_try) 2>&5 |
| 18443 | ac_status=$? |
| 18444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18445 | (exit $ac_status); }; } && |
| 18446 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18448 | (eval $ac_try) 2>&5 |
| 18449 | ac_status=$? |
| 18450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18451 | (exit $ac_status); }; }; then |
| 18452 | ac_hi=$ac_mid |
| 18453 | else |
| 18454 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18455 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18456 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18457 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 18458 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18459 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18460 | done |
| 18461 | case $ac_lo in |
| 18462 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18463 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
| 18464 | See \`config.log' for more details." >&5 |
| 18465 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 |
| 18466 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18467 | { (exit 1); exit 1; }; } ;; |
| 18468 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18469 | else |
| 18470 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18471 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 18472 | See \`config.log' for more details." >&5 |
| 18473 | echo "$as_me: error: cannot run test program while cross compiling |
| 18474 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18475 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18476 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18477 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18478 | /* confdefs.h. */ |
| 18479 | _ACEOF |
| 18480 | cat confdefs.h >>conftest.$ac_ext |
| 18481 | cat >>conftest.$ac_ext <<_ACEOF |
| 18482 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18483 | #include <wchar.h> |
| 18484 | |
| 18485 | long longval () { return (long) (sizeof (wchar_t)); } |
| 18486 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18487 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18488 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18489 | int |
| 18490 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18491 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18492 | |
| 18493 | FILE *f = fopen ("conftest.val", "w"); |
| 18494 | if (! f) |
| 18495 | exit (1); |
| 18496 | if (((long) (sizeof (wchar_t))) < 0) |
| 18497 | { |
| 18498 | long i = longval (); |
| 18499 | if (i != ((long) (sizeof (wchar_t)))) |
| 18500 | exit (1); |
| 18501 | fprintf (f, "%ld\n", i); |
| 18502 | } |
| 18503 | else |
| 18504 | { |
| 18505 | unsigned long i = ulongval (); |
| 18506 | if (i != ((long) (sizeof (wchar_t)))) |
| 18507 | exit (1); |
| 18508 | fprintf (f, "%lu\n", i); |
| 18509 | } |
| 18510 | exit (ferror (f) || fclose (f) != 0); |
| 18511 | |
| 18512 | ; |
| 18513 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18514 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18515 | _ACEOF |
| 18516 | rm -f conftest$ac_exeext |
| 18517 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18518 | (eval $ac_link) 2>&5 |
| 18519 | ac_status=$? |
| 18520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18521 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18523 | (eval $ac_try) 2>&5 |
| 18524 | ac_status=$? |
| 18525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18526 | (exit $ac_status); }; }; then |
| 18527 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18528 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18529 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18530 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18531 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18532 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18533 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18534 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
| 18535 | See \`config.log' for more details." >&5 |
| 18536 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 |
| 18537 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18538 | { (exit 1); exit 1; }; } |
| 18539 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18540 | rm -f 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] | 18541 | fi |
| 18542 | fi |
| 18543 | rm -f conftest.val |
| 18544 | else |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18545 | ac_cv_sizeof_wchar_t=0 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18546 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18547 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18548 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 18549 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 |
| 18550 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18551 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18552 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18553 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18554 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18555 | fi |
| 18556 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 18557 | echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5 |
| 18558 | echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6 |
| 18559 | have_ucs4_tcl=no |
| 18560 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18561 | /* confdefs.h. */ |
| 18562 | _ACEOF |
| 18563 | cat confdefs.h >>conftest.$ac_ext |
| 18564 | cat >>conftest.$ac_ext <<_ACEOF |
| 18565 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 18566 | |
| 18567 | #include <tcl.h> |
| 18568 | #if TCL_UTF_MAX != 6 |
| 18569 | # error "NOT UCS4_TCL" |
| 18570 | #endif |
| 18571 | int |
| 18572 | main () |
| 18573 | { |
| 18574 | |
| 18575 | ; |
| 18576 | return 0; |
| 18577 | } |
| 18578 | _ACEOF |
| 18579 | rm -f conftest.$ac_objext |
| 18580 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18581 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 18582 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18583 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18584 | rm -f conftest.er1 |
| 18585 | cat conftest.err >&5 |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 18586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18587 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18588 | { ac_try='test -z "$ac_c_werror_flag" |
| 18589 | || test ! -s conftest.err' |
| 18590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18591 | (eval $ac_try) 2>&5 |
| 18592 | ac_status=$? |
| 18593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18594 | (exit $ac_status); }; } && |
| 18595 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 18596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18597 | (eval $ac_try) 2>&5 |
| 18598 | ac_status=$? |
| 18599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18600 | (exit $ac_status); }; }; then |
| 18601 | |
| 18602 | |
| 18603 | cat >>confdefs.h <<\_ACEOF |
| 18604 | #define HAVE_UCS4_TCL 1 |
| 18605 | _ACEOF |
| 18606 | |
| 18607 | have_ucs4_tcl=yes |
| 18608 | |
| 18609 | else |
| 18610 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18611 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18612 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 18613 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18614 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 18615 | echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5 |
| 18616 | echo "${ECHO_T}$have_ucs4_tcl" >&6 |
| 18617 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18618 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 18619 | if test "$wchar_h" = yes |
| 18620 | then |
| 18621 | # check whether wchar_t is signed or not |
| 18622 | echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5 |
| 18623 | echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6 |
| 18624 | if test "${ac_cv_wchar_t_signed+set}" = set; then |
| 18625 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18626 | else |
| 18627 | |
| 18628 | if test "$cross_compiling" = yes; then |
| 18629 | ac_cv_wchar_t_signed=yes |
| 18630 | else |
| 18631 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18632 | /* confdefs.h. */ |
| 18633 | _ACEOF |
| 18634 | cat confdefs.h >>conftest.$ac_ext |
| 18635 | cat >>conftest.$ac_ext <<_ACEOF |
| 18636 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 18637 | |
| 18638 | #include <wchar.h> |
| 18639 | int main() |
| 18640 | { |
| 18641 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 1 : 0); |
| 18642 | } |
| 18643 | |
| 18644 | _ACEOF |
| 18645 | rm -f conftest$ac_exeext |
| 18646 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18647 | (eval $ac_link) 2>&5 |
| 18648 | ac_status=$? |
| 18649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18650 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18652 | (eval $ac_try) 2>&5 |
| 18653 | ac_status=$? |
| 18654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18655 | (exit $ac_status); }; }; then |
| 18656 | ac_cv_wchar_t_signed=yes |
| 18657 | else |
| 18658 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18659 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18660 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18661 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 18662 | ( exit $ac_status ) |
| 18663 | ac_cv_wchar_t_signed=no |
| 18664 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18665 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 18666 | fi |
| 18667 | fi |
| 18668 | |
| 18669 | echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5 |
| 18670 | echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6 |
| 18671 | fi |
| 18672 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18673 | echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 18674 | 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] | 18675 | # Check whether --enable-unicode or --disable-unicode was given. |
| 18676 | if test "${enable_unicode+set}" = set; then |
| 18677 | enableval="$enable_unicode" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18678 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18679 | else |
| 18680 | enable_unicode=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18681 | fi; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18682 | |
| 18683 | if test $enable_unicode = yes |
| 18684 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 18685 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 18686 | case "$have_ucs4_tcl" in |
| 18687 | yes) enable_unicode="ucs4" |
| 18688 | ;; |
| 18689 | *) enable_unicode="ucs2" |
| 18690 | ;; |
| 18691 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18692 | fi |
| 18693 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 18694 | |
| 18695 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18696 | case "$enable_unicode" in |
| 18697 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18698 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18699 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18700 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18701 | |
| 18702 | ;; |
| 18703 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18704 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18705 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18706 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18707 | |
| 18708 | ;; |
| 18709 | esac |
| 18710 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18711 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18712 | |
| 18713 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 18714 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18715 | if test "$enable_unicode" = "no" |
| 18716 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 18717 | UNICODE_OBJS="" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18718 | echo "$as_me:$LINENO: result: not used" >&5 |
| 18719 | echo "${ECHO_T}not used" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18720 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 18721 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18722 | |
| 18723 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18724 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18725 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18726 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 18727 | |
| 18728 | # wchar_t is only usable if it maps to an unsigned type |
| 18729 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ |
| 18730 | -a "$ac_cv_wchar_t_signed" == "no" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18731 | then |
| 18732 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18733 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18734 | cat >>confdefs.h <<\_ACEOF |
| 18735 | #define HAVE_USABLE_WCHAR_T 1 |
| 18736 | _ACEOF |
| 18737 | |
| 18738 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18739 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18740 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18741 | |
| 18742 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 18743 | then |
| 18744 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18745 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18746 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18747 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18748 | |
| 18749 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 18750 | then |
| 18751 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18752 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18753 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18754 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18755 | |
| 18756 | else |
| 18757 | PY_UNICODE_TYPE="no type found" |
| 18758 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18759 | echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 18760 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18761 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18762 | |
| 18763 | # check for endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18764 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 18765 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 18766 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 18767 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18768 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18769 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 18770 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18771 | /* confdefs.h. */ |
| 18772 | _ACEOF |
| 18773 | cat confdefs.h >>conftest.$ac_ext |
| 18774 | cat >>conftest.$ac_ext <<_ACEOF |
| 18775 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18776 | #include <sys/types.h> |
| 18777 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18778 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18779 | int |
| 18780 | main () |
| 18781 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18782 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 18783 | bogus endian macros |
| 18784 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18785 | |
| 18786 | ; |
| 18787 | return 0; |
| 18788 | } |
| 18789 | _ACEOF |
| 18790 | rm -f conftest.$ac_objext |
| 18791 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18792 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18793 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18794 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18795 | rm -f conftest.er1 |
| 18796 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18798 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18799 | { ac_try='test -z "$ac_c_werror_flag" |
| 18800 | || test ! -s conftest.err' |
| 18801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18802 | (eval $ac_try) 2>&5 |
| 18803 | ac_status=$? |
| 18804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18805 | (exit $ac_status); }; } && |
| 18806 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18808 | (eval $ac_try) 2>&5 |
| 18809 | ac_status=$? |
| 18810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18811 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18812 | # 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] | 18813 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18814 | /* confdefs.h. */ |
| 18815 | _ACEOF |
| 18816 | cat confdefs.h >>conftest.$ac_ext |
| 18817 | cat >>conftest.$ac_ext <<_ACEOF |
| 18818 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18819 | #include <sys/types.h> |
| 18820 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18821 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18822 | int |
| 18823 | main () |
| 18824 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18825 | #if BYTE_ORDER != BIG_ENDIAN |
| 18826 | not big endian |
| 18827 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18828 | |
| 18829 | ; |
| 18830 | return 0; |
| 18831 | } |
| 18832 | _ACEOF |
| 18833 | rm -f conftest.$ac_objext |
| 18834 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18835 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18836 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18837 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18838 | rm -f conftest.er1 |
| 18839 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18841 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18842 | { ac_try='test -z "$ac_c_werror_flag" |
| 18843 | || test ! -s conftest.err' |
| 18844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18845 | (eval $ac_try) 2>&5 |
| 18846 | ac_status=$? |
| 18847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18848 | (exit $ac_status); }; } && |
| 18849 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18851 | (eval $ac_try) 2>&5 |
| 18852 | ac_status=$? |
| 18853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18854 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18855 | ac_cv_c_bigendian=yes |
| 18856 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18857 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18858 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18859 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18860 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18861 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18862 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18863 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18864 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18865 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18866 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18867 | # It does not; compile a test program. |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18868 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18869 | # 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] | 18870 | ac_cv_c_bigendian=unknown |
| 18871 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18872 | /* confdefs.h. */ |
| 18873 | _ACEOF |
| 18874 | cat confdefs.h >>conftest.$ac_ext |
| 18875 | cat >>conftest.$ac_ext <<_ACEOF |
| 18876 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18877 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 18878 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 18879 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 18880 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 18881 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 18882 | 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] | 18883 | int |
| 18884 | main () |
| 18885 | { |
| 18886 | _ascii (); _ebcdic (); |
| 18887 | ; |
| 18888 | return 0; |
| 18889 | } |
| 18890 | _ACEOF |
| 18891 | rm -f conftest.$ac_objext |
| 18892 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18893 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18894 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18895 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18896 | rm -f conftest.er1 |
| 18897 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18899 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18900 | { ac_try='test -z "$ac_c_werror_flag" |
| 18901 | || test ! -s conftest.err' |
| 18902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18903 | (eval $ac_try) 2>&5 |
| 18904 | ac_status=$? |
| 18905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18906 | (exit $ac_status); }; } && |
| 18907 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18909 | (eval $ac_try) 2>&5 |
| 18910 | ac_status=$? |
| 18911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18912 | (exit $ac_status); }; }; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18913 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18914 | ac_cv_c_bigendian=yes |
| 18915 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18916 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18917 | if test "$ac_cv_c_bigendian" = unknown; then |
| 18918 | ac_cv_c_bigendian=no |
| 18919 | else |
| 18920 | # finding both strings is unlikely to happen, but who knows? |
| 18921 | ac_cv_c_bigendian=unknown |
| 18922 | fi |
| 18923 | fi |
| 18924 | else |
| 18925 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18926 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18927 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18928 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18929 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18930 | else |
| 18931 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18932 | /* confdefs.h. */ |
| 18933 | _ACEOF |
| 18934 | cat confdefs.h >>conftest.$ac_ext |
| 18935 | cat >>conftest.$ac_ext <<_ACEOF |
| 18936 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18937 | int |
| 18938 | main () |
| 18939 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18940 | /* Are we little or big endian? From Harbison&Steele. */ |
| 18941 | union |
| 18942 | { |
| 18943 | long l; |
| 18944 | char c[sizeof (long)]; |
| 18945 | } u; |
| 18946 | u.l = 1; |
| 18947 | exit (u.c[sizeof (long) - 1] == 1); |
| 18948 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18949 | _ACEOF |
| 18950 | rm -f conftest$ac_exeext |
| 18951 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18952 | (eval $ac_link) 2>&5 |
| 18953 | ac_status=$? |
| 18954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18955 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18957 | (eval $ac_try) 2>&5 |
| 18958 | ac_status=$? |
| 18959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18960 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18961 | ac_cv_c_bigendian=no |
| 18962 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18963 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18964 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18965 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18966 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18967 | ( exit $ac_status ) |
| 18968 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18969 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18970 | rm -f 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] | 18971 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18972 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 18973 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18974 | fi |
| 18975 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 18976 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 18977 | case $ac_cv_c_bigendian in |
| 18978 | yes) |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18979 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18980 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18981 | #define WORDS_BIGENDIAN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18982 | _ACEOF |
| 18983 | ;; |
| 18984 | no) |
| 18985 | ;; |
| 18986 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18987 | { { echo "$as_me:$LINENO: error: unknown endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18988 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18989 | echo "$as_me: error: unknown endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18990 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 18991 | { (exit 1); exit 1; }; } ;; |
| 18992 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18993 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18994 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 18995 | # Check whether right shifting a negative integer extends the sign bit |
| 18996 | # 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] | 18997 | echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 18998 | echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6 |
| 18999 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
| 19000 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 19001 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19002 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19003 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 19004 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19005 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19006 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19007 | /* confdefs.h. */ |
| 19008 | _ACEOF |
| 19009 | cat confdefs.h >>conftest.$ac_ext |
| 19010 | cat >>conftest.$ac_ext <<_ACEOF |
| 19011 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19012 | |
| 19013 | int main() |
| 19014 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 19015 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19016 | } |
| 19017 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19018 | _ACEOF |
| 19019 | rm -f conftest$ac_exeext |
| 19020 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19021 | (eval $ac_link) 2>&5 |
| 19022 | ac_status=$? |
| 19023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19024 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19026 | (eval $ac_try) 2>&5 |
| 19027 | ac_status=$? |
| 19028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19029 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 19030 | ac_cv_rshift_extends_sign=yes |
| 19031 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19032 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19033 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19034 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19035 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19036 | ( exit $ac_status ) |
| 19037 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 19038 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 19039 | rm -f 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] | 19040 | fi |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 19041 | fi |
| 19042 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19043 | echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 19044 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 19045 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19046 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19047 | |
| 19048 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19049 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19050 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19051 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19052 | fi |
| 19053 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19054 | # check for getc_unlocked and related locking functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19055 | echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 19056 | echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6 |
| 19057 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
| 19058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19059 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19060 | |
| 19061 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19062 | /* confdefs.h. */ |
| 19063 | _ACEOF |
| 19064 | cat confdefs.h >>conftest.$ac_ext |
| 19065 | cat >>conftest.$ac_ext <<_ACEOF |
| 19066 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19067 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19068 | int |
| 19069 | main () |
| 19070 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19071 | |
| 19072 | FILE *f = fopen("/dev/null", "r"); |
| 19073 | flockfile(f); |
| 19074 | getc_unlocked(f); |
| 19075 | funlockfile(f); |
| 19076 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19077 | ; |
| 19078 | return 0; |
| 19079 | } |
| 19080 | _ACEOF |
| 19081 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19082 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 19083 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19084 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 19085 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19086 | rm -f conftest.er1 |
| 19087 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19089 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 19090 | { ac_try='test -z "$ac_c_werror_flag" |
| 19091 | || test ! -s conftest.err' |
| 19092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19093 | (eval $ac_try) 2>&5 |
| 19094 | ac_status=$? |
| 19095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19096 | (exit $ac_status); }; } && |
| 19097 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19099 | (eval $ac_try) 2>&5 |
| 19100 | ac_status=$? |
| 19101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19102 | (exit $ac_status); }; }; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19103 | ac_cv_have_getc_unlocked=yes |
| 19104 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19105 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19106 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19107 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19108 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19109 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 19110 | rm -f conftest.err conftest.$ac_objext \ |
| 19111 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19112 | fi |
| 19113 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19114 | echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 19115 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19116 | if test "$ac_cv_have_getc_unlocked" = yes |
| 19117 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19118 | |
| 19119 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19120 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19121 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19122 | |
| 19123 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19124 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 19125 | # check for readline 2.2 |
| 19126 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19127 | /* confdefs.h. */ |
| 19128 | _ACEOF |
| 19129 | cat confdefs.h >>conftest.$ac_ext |
| 19130 | cat >>conftest.$ac_ext <<_ACEOF |
| 19131 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 19132 | #include <readline/readline.h> |
| 19133 | _ACEOF |
| 19134 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 19135 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 19136 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19137 | grep -v '^ *+' conftest.er1 >conftest.err |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 19138 | rm -f conftest.er1 |
| 19139 | cat conftest.err >&5 |
| 19140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19141 | (exit $ac_status); } >/dev/null; then |
| 19142 | if test -s conftest.err; then |
| 19143 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 19144 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 19145 | else |
| 19146 | ac_cpp_err= |
| 19147 | fi |
| 19148 | else |
| 19149 | ac_cpp_err=yes |
| 19150 | fi |
| 19151 | if test -z "$ac_cpp_err"; then |
| 19152 | have_readline=yes |
| 19153 | else |
| 19154 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19155 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19156 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 19157 | have_readline=no |
| 19158 | fi |
| 19159 | rm -f conftest.err conftest.$ac_ext |
| 19160 | if test $have_readline = yes |
| 19161 | then |
| 19162 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19163 | /* confdefs.h. */ |
| 19164 | _ACEOF |
| 19165 | cat confdefs.h >>conftest.$ac_ext |
| 19166 | cat >>conftest.$ac_ext <<_ACEOF |
| 19167 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 19168 | #include <readline/readline.h> |
| 19169 | |
| 19170 | _ACEOF |
| 19171 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19172 | $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] | 19173 | |
| 19174 | cat >>confdefs.h <<\_ACEOF |
| 19175 | #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1 |
| 19176 | _ACEOF |
| 19177 | |
| 19178 | fi |
| 19179 | rm -f conftest* |
| 19180 | |
| 19181 | fi |
| 19182 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19183 | # check for readline 4.0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19184 | echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 19185 | echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6 |
| 19186 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
| 19187 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 19188 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19189 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 19190 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19191 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19192 | /* confdefs.h. */ |
| 19193 | _ACEOF |
| 19194 | cat confdefs.h >>conftest.$ac_ext |
| 19195 | cat >>conftest.$ac_ext <<_ACEOF |
| 19196 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19197 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 19198 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19199 | #ifdef __cplusplus |
| 19200 | extern "C" |
| 19201 | #endif |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 19202 | /* 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] | 19203 | builtin and then its argument prototype would still apply. */ |
| 19204 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19205 | int |
| 19206 | main () |
| 19207 | { |
| 19208 | rl_pre_input_hook (); |
| 19209 | ; |
| 19210 | return 0; |
| 19211 | } |
| 19212 | _ACEOF |
| 19213 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19214 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 19215 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19216 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 19217 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19218 | rm -f conftest.er1 |
| 19219 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19221 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 19222 | { ac_try='test -z "$ac_c_werror_flag" |
| 19223 | || test ! -s conftest.err' |
| 19224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19225 | (eval $ac_try) 2>&5 |
| 19226 | ac_status=$? |
| 19227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19228 | (exit $ac_status); }; } && |
| 19229 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19231 | (eval $ac_try) 2>&5 |
| 19232 | ac_status=$? |
| 19233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19234 | (exit $ac_status); }; }; then |
| 19235 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19236 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19237 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19238 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19239 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19240 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19241 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 19242 | rm -f conftest.err conftest.$ac_objext \ |
| 19243 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19244 | LIBS=$ac_check_lib_save_LIBS |
| 19245 | fi |
| 19246 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 19247 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6 |
| 19248 | 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] | 19249 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19250 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19251 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19252 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19253 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19254 | fi |
| 19255 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19256 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19257 | # check for readline 4.2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19258 | echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 19259 | echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6 |
| 19260 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
| 19261 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19262 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19263 | ac_check_lib_save_LIBS=$LIBS |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19264 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19265 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19266 | /* confdefs.h. */ |
| 19267 | _ACEOF |
| 19268 | cat confdefs.h >>conftest.$ac_ext |
| 19269 | cat >>conftest.$ac_ext <<_ACEOF |
| 19270 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19271 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19272 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19273 | #ifdef __cplusplus |
| 19274 | extern "C" |
| 19275 | #endif |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19276 | /* 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] | 19277 | builtin and then its argument prototype would still apply. */ |
| 19278 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19279 | int |
| 19280 | main () |
| 19281 | { |
| 19282 | rl_completion_matches (); |
| 19283 | ; |
| 19284 | return 0; |
| 19285 | } |
| 19286 | _ACEOF |
| 19287 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19288 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 19289 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19290 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 19291 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19292 | rm -f conftest.er1 |
| 19293 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19295 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 19296 | { ac_try='test -z "$ac_c_werror_flag" |
| 19297 | || test ! -s conftest.err' |
| 19298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19299 | (eval $ac_try) 2>&5 |
| 19300 | ac_status=$? |
| 19301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19302 | (exit $ac_status); }; } && |
| 19303 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19305 | (eval $ac_try) 2>&5 |
| 19306 | ac_status=$? |
| 19307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19308 | (exit $ac_status); }; }; then |
| 19309 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 19310 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19311 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19312 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19313 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19314 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 19315 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 19316 | rm -f conftest.err conftest.$ac_objext \ |
| 19317 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19318 | LIBS=$ac_check_lib_save_LIBS |
| 19319 | fi |
| 19320 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 19321 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6 |
| 19322 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19323 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19324 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 19325 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19326 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 19327 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 19328 | fi |
| 19329 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19330 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19331 | echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 19332 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6 |
| 19333 | if test "${ac_cv_broken_nice+set}" = set; then |
| 19334 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19335 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19336 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 19337 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 19338 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 19339 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19340 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19341 | /* confdefs.h. */ |
| 19342 | _ACEOF |
| 19343 | cat confdefs.h >>conftest.$ac_ext |
| 19344 | cat >>conftest.$ac_ext <<_ACEOF |
| 19345 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 19346 | |
| 19347 | int main() |
| 19348 | { |
| 19349 | int val1 = nice(1); |
| 19350 | if (val1 != -1 && val1 == nice(2)) |
| 19351 | exit(0); |
| 19352 | exit(1); |
| 19353 | } |
| 19354 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19355 | _ACEOF |
| 19356 | rm -f conftest$ac_exeext |
| 19357 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19358 | (eval $ac_link) 2>&5 |
| 19359 | ac_status=$? |
| 19360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19361 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19363 | (eval $ac_try) 2>&5 |
| 19364 | ac_status=$? |
| 19365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19366 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 19367 | ac_cv_broken_nice=yes |
| 19368 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19369 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19370 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19371 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19372 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19373 | ( exit $ac_status ) |
| 19374 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 19375 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 19376 | rm -f 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] | 19377 | fi |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 19378 | fi |
| 19379 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19380 | echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 19381 | echo "${ECHO_T}$ac_cv_broken_nice" >&6 |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 19382 | if test "$ac_cv_broken_nice" = yes |
| 19383 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19384 | |
| 19385 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 19386 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19387 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 19388 | |
| 19389 | fi |
| 19390 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 19391 | echo "$as_me:$LINENO: checking for broken poll()" >&5 |
| 19392 | echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6 |
| 19393 | if test "$cross_compiling" = yes; then |
| 19394 | ac_cv_broken_poll=no |
| 19395 | else |
| 19396 | cat >conftest.$ac_ext <<_ACEOF |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 19397 | /* confdefs.h. */ |
| 19398 | _ACEOF |
| 19399 | cat confdefs.h >>conftest.$ac_ext |
| 19400 | cat >>conftest.$ac_ext <<_ACEOF |
| 19401 | /* end confdefs.h. */ |
| 19402 | |
| 19403 | #include <poll.h> |
| 19404 | |
| 19405 | int main (void) |
| 19406 | { |
| 19407 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
| 19408 | |
| 19409 | close (42); |
| 19410 | |
| 19411 | int poll_test = poll (&poll_struct, 1, 0); |
| 19412 | |
| 19413 | if (poll_test < 0) |
| 19414 | { |
| 19415 | exit(0); |
| 19416 | } |
| 19417 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
| 19418 | { |
| 19419 | exit(0); |
| 19420 | } |
| 19421 | else |
| 19422 | { |
| 19423 | exit(1); |
| 19424 | } |
| 19425 | } |
| 19426 | |
| 19427 | _ACEOF |
| 19428 | rm -f conftest$ac_exeext |
| 19429 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19430 | (eval $ac_link) 2>&5 |
| 19431 | ac_status=$? |
| 19432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19433 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19435 | (eval $ac_try) 2>&5 |
| 19436 | ac_status=$? |
| 19437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19438 | (exit $ac_status); }; }; then |
| 19439 | ac_cv_broken_poll=yes |
| 19440 | else |
| 19441 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19442 | echo "$as_me: failed program was:" >&5 |
| 19443 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19444 | |
| 19445 | ( exit $ac_status ) |
| 19446 | ac_cv_broken_poll=no |
| 19447 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 19448 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 19449 | fi |
| 19450 | echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5 |
| 19451 | echo "${ECHO_T}$ac_cv_broken_poll" >&6 |
| 19452 | if test "$ac_cv_broken_poll" = yes |
| 19453 | then |
| 19454 | |
| 19455 | cat >>confdefs.h <<\_ACEOF |
| 19456 | #define HAVE_BROKEN_POLL 1 |
| 19457 | _ACEOF |
| 19458 | |
| 19459 | fi |
| 19460 | |
| 19461 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 19462 | # tzset(3) exists and works like we expect it to |
| 19463 | echo "$as_me:$LINENO: checking for working tzset()" >&5 |
| 19464 | echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6 |
| 19465 | if test "${ac_cv_working_tzset+set}" = set; then |
| 19466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19467 | else |
| 19468 | |
| 19469 | if test "$cross_compiling" = yes; then |
| 19470 | ac_cv_working_tzset=no |
| 19471 | else |
| 19472 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19473 | /* confdefs.h. */ |
| 19474 | _ACEOF |
| 19475 | cat confdefs.h >>conftest.$ac_ext |
| 19476 | cat >>conftest.$ac_ext <<_ACEOF |
| 19477 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 19478 | |
| 19479 | #include <stdlib.h> |
| 19480 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 19481 | #include <string.h> |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 19482 | int main() |
| 19483 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 19484 | /* Note that we need to ensure that not only does tzset(3) |
| 19485 | do 'something' with localtime, but it works as documented |
| 19486 | in the library reference and as expected by the test suite. |
| 19487 | |
| 19488 | Red Hat 6.2 doesn't understand the southern hemisphere |
| 19489 | after New Year's Day; it thinks swaps on that day. |
| 19490 | */ |
| 19491 | |
| 19492 | time_t groundhogday = 1044144000; /* GMT-based; well, it's a colony */ |
| 19493 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 19494 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 19495 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 19496 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 19497 | if (localtime(&groundhogday)->tm_hour != 0) |
| 19498 | exit(1); |
| 19499 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 19500 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 19501 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 19502 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 19503 | exit(1); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 19504 | |
| 19505 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 19506 | tzset(); |
| 19507 | if (localtime(&groundhogday)->tm_hour != 11) |
| 19508 | exit(1); |
| 19509 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 19510 | exit(1); |
| 19511 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 19512 | exit(1); |
| 19513 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 19514 | exit(0); |
| 19515 | } |
| 19516 | |
| 19517 | _ACEOF |
| 19518 | rm -f conftest$ac_exeext |
| 19519 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19520 | (eval $ac_link) 2>&5 |
| 19521 | ac_status=$? |
| 19522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19523 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19525 | (eval $ac_try) 2>&5 |
| 19526 | ac_status=$? |
| 19527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19528 | (exit $ac_status); }; }; then |
| 19529 | ac_cv_working_tzset=yes |
| 19530 | else |
| 19531 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19532 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19533 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19534 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 19535 | ( exit $ac_status ) |
| 19536 | ac_cv_working_tzset=no |
| 19537 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 19538 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 19539 | fi |
| 19540 | fi |
| 19541 | |
| 19542 | echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5 |
| 19543 | echo "${ECHO_T}$ac_cv_working_tzset" >&6 |
| 19544 | if test "$ac_cv_working_tzset" = yes |
| 19545 | then |
| 19546 | |
| 19547 | cat >>confdefs.h <<\_ACEOF |
| 19548 | #define HAVE_WORKING_TZSET 1 |
| 19549 | _ACEOF |
| 19550 | |
| 19551 | fi |
| 19552 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 19553 | # Look for subsecond timestamps in struct stat |
| 19554 | echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 19555 | echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6 |
| 19556 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
| 19557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19558 | else |
| 19559 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19560 | /* confdefs.h. */ |
| 19561 | _ACEOF |
| 19562 | cat confdefs.h >>conftest.$ac_ext |
| 19563 | cat >>conftest.$ac_ext <<_ACEOF |
| 19564 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 19565 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 19566 | int |
| 19567 | main () |
| 19568 | { |
| 19569 | |
| 19570 | struct stat st; |
| 19571 | st.st_mtim.tv_nsec = 1; |
| 19572 | |
| 19573 | ; |
| 19574 | return 0; |
| 19575 | } |
| 19576 | _ACEOF |
| 19577 | rm -f conftest.$ac_objext |
| 19578 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 19579 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 19580 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 19581 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19582 | rm -f conftest.er1 |
| 19583 | cat conftest.err >&5 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 19584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19585 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 19586 | { ac_try='test -z "$ac_c_werror_flag" |
| 19587 | || test ! -s conftest.err' |
| 19588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19589 | (eval $ac_try) 2>&5 |
| 19590 | ac_status=$? |
| 19591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19592 | (exit $ac_status); }; } && |
| 19593 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 19594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19595 | (eval $ac_try) 2>&5 |
| 19596 | ac_status=$? |
| 19597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19598 | (exit $ac_status); }; }; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 19599 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 19600 | else |
| 19601 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19602 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19603 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 19604 | ac_cv_stat_tv_nsec=no |
| 19605 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 19606 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 19607 | fi |
| 19608 | |
| 19609 | echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 19610 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6 |
| 19611 | if test "$ac_cv_stat_tv_nsec" = yes |
| 19612 | then |
| 19613 | |
| 19614 | cat >>confdefs.h <<\_ACEOF |
| 19615 | #define HAVE_STAT_TV_NSEC 1 |
| 19616 | _ACEOF |
| 19617 | |
| 19618 | fi |
| 19619 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 19620 | # 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] | 19621 | echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 19622 | echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6 |
| 19623 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
| 19624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 19625 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19626 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19627 | /* confdefs.h. */ |
| 19628 | _ACEOF |
| 19629 | cat confdefs.h >>conftest.$ac_ext |
| 19630 | cat >>conftest.$ac_ext <<_ACEOF |
| 19631 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 19632 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19633 | int |
| 19634 | main () |
| 19635 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 19636 | |
| 19637 | int rtn; |
| 19638 | rtn = mvwdelch(0,0,0); |
| 19639 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19640 | ; |
| 19641 | return 0; |
| 19642 | } |
| 19643 | _ACEOF |
| 19644 | rm -f conftest.$ac_objext |
| 19645 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 19646 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19647 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 19648 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19649 | rm -f conftest.er1 |
| 19650 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19652 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 19653 | { ac_try='test -z "$ac_c_werror_flag" |
| 19654 | || test ! -s conftest.err' |
| 19655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19656 | (eval $ac_try) 2>&5 |
| 19657 | ac_status=$? |
| 19658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19659 | (exit $ac_status); }; } && |
| 19660 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19662 | (eval $ac_try) 2>&5 |
| 19663 | ac_status=$? |
| 19664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19665 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 19666 | ac_cv_mvwdelch_is_expression=yes |
| 19667 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19668 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19669 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19670 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19671 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 19672 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 19673 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 19674 | fi |
| 19675 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19676 | echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 19677 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 19678 | |
| 19679 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 19680 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19681 | |
| 19682 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 19683 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19684 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 19685 | |
| 19686 | fi |
| 19687 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19688 | echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 19689 | echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6 |
| 19690 | if test "${ac_cv_window_has_flags+set}" = set; then |
| 19691 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 19692 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19693 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19694 | /* confdefs.h. */ |
| 19695 | _ACEOF |
| 19696 | cat confdefs.h >>conftest.$ac_ext |
| 19697 | cat >>conftest.$ac_ext <<_ACEOF |
| 19698 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 19699 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19700 | int |
| 19701 | main () |
| 19702 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 19703 | |
| 19704 | WINDOW *w; |
| 19705 | w->_flags = 0; |
| 19706 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19707 | ; |
| 19708 | return 0; |
| 19709 | } |
| 19710 | _ACEOF |
| 19711 | rm -f conftest.$ac_objext |
| 19712 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 19713 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19714 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 19715 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19716 | rm -f conftest.er1 |
| 19717 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19719 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 19720 | { ac_try='test -z "$ac_c_werror_flag" |
| 19721 | || test ! -s conftest.err' |
| 19722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19723 | (eval $ac_try) 2>&5 |
| 19724 | ac_status=$? |
| 19725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19726 | (exit $ac_status); }; } && |
| 19727 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19729 | (eval $ac_try) 2>&5 |
| 19730 | ac_status=$? |
| 19731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19732 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 19733 | ac_cv_window_has_flags=yes |
| 19734 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19735 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19736 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19737 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19738 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 19739 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 19740 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 19741 | fi |
| 19742 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19743 | echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 19744 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19745 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 19746 | |
| 19747 | if test "$ac_cv_window_has_flags" = yes |
| 19748 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19749 | |
| 19750 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 19751 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19752 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 19753 | |
| 19754 | fi |
| 19755 | |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 19756 | echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
| 19757 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6 |
| 19758 | |
| 19759 | if test -e /dev/ptmx |
| 19760 | then |
| 19761 | echo "$as_me:$LINENO: result: yes" >&5 |
| 19762 | echo "${ECHO_T}yes" >&6 |
| 19763 | |
| 19764 | cat >>confdefs.h <<\_ACEOF |
| 19765 | #define HAVE_DEV_PTMX 1 |
| 19766 | _ACEOF |
| 19767 | |
| 19768 | else |
| 19769 | echo "$as_me:$LINENO: result: no" >&5 |
| 19770 | echo "${ECHO_T}no" >&6 |
| 19771 | fi |
| 19772 | |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 19773 | echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 19774 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6 |
| 19775 | |
| 19776 | if test -e /dev/ptc |
| 19777 | then |
| 19778 | echo "$as_me:$LINENO: result: yes" >&5 |
| 19779 | echo "${ECHO_T}yes" >&6 |
| 19780 | |
| 19781 | cat >>confdefs.h <<\_ACEOF |
| 19782 | #define HAVE_DEV_PTC 1 |
| 19783 | _ACEOF |
| 19784 | |
| 19785 | else |
| 19786 | echo "$as_me:$LINENO: result: no" >&5 |
| 19787 | echo "${ECHO_T}no" >&6 |
| 19788 | fi |
| 19789 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19790 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 19791 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
| 19792 | if test "${ac_cv_type_socklen_t+set}" = set; then |
| 19793 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 19794 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19795 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19796 | /* confdefs.h. */ |
| 19797 | _ACEOF |
| 19798 | cat confdefs.h >>conftest.$ac_ext |
| 19799 | cat >>conftest.$ac_ext <<_ACEOF |
| 19800 | /* end confdefs.h. */ |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 19801 | |
| 19802 | #ifdef HAVE_SYS_TYPES_H |
| 19803 | #include <sys/types.h> |
| 19804 | #endif |
| 19805 | #ifdef HAVE_SYS_SOCKET_H |
| 19806 | #include <sys/socket.h> |
| 19807 | #endif |
| 19808 | |
| 19809 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19810 | int |
| 19811 | main () |
| 19812 | { |
| 19813 | if ((socklen_t *) 0) |
| 19814 | return 0; |
| 19815 | if (sizeof (socklen_t)) |
| 19816 | return 0; |
| 19817 | ; |
| 19818 | return 0; |
| 19819 | } |
| 19820 | _ACEOF |
| 19821 | rm -f conftest.$ac_objext |
| 19822 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 19823 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19824 | ac_status=$? |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 19825 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19826 | rm -f conftest.er1 |
| 19827 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19829 | (exit $ac_status); } && |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 19830 | { ac_try='test -z "$ac_c_werror_flag" |
| 19831 | || test ! -s conftest.err' |
| 19832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19833 | (eval $ac_try) 2>&5 |
| 19834 | ac_status=$? |
| 19835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19836 | (exit $ac_status); }; } && |
| 19837 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19839 | (eval $ac_try) 2>&5 |
| 19840 | ac_status=$? |
| 19841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19842 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 19843 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 19844 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19845 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19846 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19847 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19848 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 19849 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 19850 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19851 | fi |
| 19852 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 19853 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 |
| 19854 | if test $ac_cv_type_socklen_t = yes; then |
| 19855 | : |
| 19856 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 19857 | |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 19858 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 19859 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19860 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 19861 | |
| 19862 | fi |
| 19863 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19864 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19865 | |
| 19866 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 19867 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 19868 | do |
| 19869 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 19870 | done |
| 19871 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19872 | |
Jack Jansen | 0b06be7 | 2002-06-21 14:48:38 +0000 | [diff] [blame] | 19873 | SRCDIRS="Parser Grammar Objects Python Modules Mac Mac/Python" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19874 | echo "$as_me:$LINENO: checking for build directories" >&5 |
| 19875 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 19876 | for dir in $SRCDIRS; do |
| 19877 | if test ! -d $dir; then |
| 19878 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 19879 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 19880 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19881 | echo "$as_me:$LINENO: result: done" >&5 |
| 19882 | echo "${ECHO_T}done" >&6 |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 19883 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19884 | # generate output files |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19885 | 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] | 19886 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19887 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19888 | # This file is a shell script that caches the results of configure |
| 19889 | # 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] | 19890 | # scripts and configure runs, see configure's option --config-cache. |
| 19891 | # It is not useful on other systems. If it contains results you don't |
| 19892 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19893 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19894 | # config.status only pays attention to the cache file if you give it |
| 19895 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19896 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19897 | # `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] | 19898 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 19899 | # following values. |
| 19900 | |
| 19901 | _ACEOF |
| 19902 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 19903 | # The following way of writing the cache mishandles newlines in values, |
| 19904 | # but we know of no workaround that is simple, portable, and efficient. |
| 19905 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 19906 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 19907 | # 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] | 19908 | { |
| 19909 | (set) 2>&1 | |
| 19910 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 19911 | *ac_space=\ *) |
| 19912 | # `set' does not quote correctly, so add quotes (double-quote |
| 19913 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 19914 | sed -n \ |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 19915 | "s/'/'\\\\''/g; |
| 19916 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19917 | ;; |
| 19918 | *) |
| 19919 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 19920 | sed -n \ |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 19921 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19922 | ;; |
| 19923 | esac; |
| 19924 | } | |
| 19925 | sed ' |
| 19926 | t clear |
| 19927 | : clear |
| 19928 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 19929 | t end |
| 19930 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 19931 | : end' >>confcache |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19932 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 19933 | if test -w $cache_file; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19934 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 19935 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 19936 | else |
| 19937 | echo "not updating unwritable cache $cache_file" |
| 19938 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19939 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 19940 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 19941 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19942 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 19943 | # Let make expand exec_prefix. |
| 19944 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 19945 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19946 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 19947 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 19948 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 19949 | # (actually we leave an empty line to preserve line numbers). |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19950 | if test "x$srcdir" = x.; then |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 19951 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19952 | s/:*\$(srcdir):*/:/; |
| 19953 | s/:*\${srcdir}:*/:/; |
| 19954 | s/:*@srcdir@:*/:/; |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 19955 | s/^\([^=]*=[ ]*\):*/\1/; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19956 | s/:*$//; |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 19957 | s/^[^=]*=[ ]*$//; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19958 | }' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19959 | fi |
| 19960 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19961 | DEFS=-DHAVE_CONFIG_H |
| 19962 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19963 | ac_libobjs= |
| 19964 | ac_ltlibobjs= |
| 19965 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 19966 | # 1. Remove the extension, and $U if already installed. |
| 19967 | ac_i=`echo "$ac_i" | |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 19968 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19969 | # 2. Add them. |
| 19970 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 19971 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 19972 | done |
| 19973 | LIBOBJS=$ac_libobjs |
| 19974 | |
| 19975 | LTLIBOBJS=$ac_ltlibobjs |
| 19976 | |
| 19977 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19978 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19979 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19980 | ac_clean_files_save=$ac_clean_files |
| 19981 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 19982 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 19983 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 19984 | cat >$CONFIG_STATUS <<_ACEOF |
| 19985 | #! $SHELL |
| 19986 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19987 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19988 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19989 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19990 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19991 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19992 | ac_cs_recheck=false |
| 19993 | ac_cs_silent=false |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19994 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 19995 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19996 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19997 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19998 | ## --------------------- ## |
| 19999 | ## M4sh Initialization. ## |
| 20000 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20001 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20002 | # Be Bourne compatible |
| 20003 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 20004 | emulate sh |
| 20005 | NULLCMD=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20006 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 20007 | # is contrary to our usage. Disable this feature. |
| 20008 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20009 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 20010 | set -o posix |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20011 | fi |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 20012 | DUALCASE=1; export DUALCASE # for MKS sh |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20013 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20014 | # Support unset when possible. |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 20015 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20016 | as_unset=unset |
| 20017 | else |
| 20018 | as_unset=false |
| 20019 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20020 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20021 | |
| 20022 | # Work around bugs in pre-3.0 UWIN ksh. |
| 20023 | $as_unset ENV MAIL MAILPATH |
| 20024 | PS1='$ ' |
| 20025 | PS2='> ' |
| 20026 | PS4='+ ' |
| 20027 | |
| 20028 | # NLS nuisances. |
| 20029 | for as_var in \ |
| 20030 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 20031 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 20032 | LC_TELEPHONE LC_TIME |
| 20033 | do |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 20034 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20035 | eval $as_var=C; export $as_var |
| 20036 | else |
| 20037 | $as_unset $as_var |
| 20038 | fi |
| 20039 | done |
| 20040 | |
| 20041 | # Required to use basename. |
| 20042 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 20043 | as_expr=expr |
| 20044 | else |
| 20045 | as_expr=false |
| 20046 | fi |
| 20047 | |
| 20048 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 20049 | as_basename=basename |
| 20050 | else |
| 20051 | as_basename=false |
| 20052 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20053 | |
| 20054 | |
| 20055 | # Name of the executable. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20056 | as_me=`$as_basename "$0" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20057 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 20058 | X"$0" : 'X\(//\)$' \| \ |
| 20059 | X"$0" : 'X\(/\)$' \| \ |
| 20060 | . : '\(.\)' 2>/dev/null || |
| 20061 | echo X/"$0" | |
| 20062 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 20063 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 20064 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 20065 | s/.*/./; q'` |
| 20066 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20067 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20068 | # PATH needs CR, and LINENO needs CR and PATH. |
| 20069 | # Avoid depending upon Character Ranges. |
| 20070 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 20071 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 20072 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 20073 | as_cr_digits='0123456789' |
| 20074 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 20075 | |
| 20076 | # The user is always right. |
| 20077 | if test "${PATH_SEPARATOR+set}" != set; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20078 | echo "#! /bin/sh" >conf$$.sh |
| 20079 | echo "exit 0" >>conf$$.sh |
| 20080 | chmod +x conf$$.sh |
| 20081 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20082 | PATH_SEPARATOR=';' |
| 20083 | else |
| 20084 | PATH_SEPARATOR=: |
| 20085 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20086 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20087 | fi |
| 20088 | |
| 20089 | |
| 20090 | as_lineno_1=$LINENO |
| 20091 | as_lineno_2=$LINENO |
| 20092 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 20093 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 20094 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 20095 | # Find who we are. Look in the path if we contain no path at all |
| 20096 | # relative or not. |
| 20097 | case $0 in |
| 20098 | *[\\/]* ) as_myself=$0 ;; |
| 20099 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20100 | for as_dir in $PATH |
| 20101 | do |
| 20102 | IFS=$as_save_IFS |
| 20103 | test -z "$as_dir" && as_dir=. |
| 20104 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 20105 | done |
| 20106 | |
| 20107 | ;; |
| 20108 | esac |
| 20109 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 20110 | # in which case we are not to be found in the path. |
| 20111 | if test "x$as_myself" = x; then |
| 20112 | as_myself=$0 |
| 20113 | fi |
| 20114 | if test ! -f "$as_myself"; then |
| 20115 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 20116 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 20117 | { (exit 1); exit 1; }; } |
| 20118 | fi |
| 20119 | case $CONFIG_SHELL in |
| 20120 | '') |
| 20121 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20122 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 20123 | do |
| 20124 | IFS=$as_save_IFS |
| 20125 | test -z "$as_dir" && as_dir=. |
| 20126 | for as_base in sh bash ksh sh5; do |
| 20127 | case $as_dir in |
| 20128 | /*) |
| 20129 | if ("$as_dir/$as_base" -c ' |
| 20130 | as_lineno_1=$LINENO |
| 20131 | as_lineno_2=$LINENO |
| 20132 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 20133 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 20134 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20135 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 20136 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20137 | CONFIG_SHELL=$as_dir/$as_base |
| 20138 | export CONFIG_SHELL |
| 20139 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 20140 | fi;; |
| 20141 | esac |
| 20142 | done |
| 20143 | done |
| 20144 | ;; |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20145 | esac |
| 20146 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20147 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 20148 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 20149 | # line-number line before each line; the second 'sed' does the real |
| 20150 | # work. The second script uses 'N' to pair each line-number line |
| 20151 | # with the numbered line, and appends trailing '-' during |
| 20152 | # substitution so that $LINENO is not a special case at line end. |
| 20153 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 20154 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 20155 | sed '=' <$as_myself | |
| 20156 | sed ' |
| 20157 | N |
| 20158 | s,$,-, |
| 20159 | : loop |
| 20160 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 20161 | t loop |
| 20162 | s,-$,, |
| 20163 | s,^['$as_cr_digits']*\n,, |
| 20164 | ' >$as_me.lineno && |
| 20165 | chmod +x $as_me.lineno || |
| 20166 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 20167 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 20168 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20169 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20170 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 20171 | # (the dirname of $[0] is not the place where we might find the |
| 20172 | # original and so on. Autoconf is especially sensible to this). |
| 20173 | . ./$as_me.lineno |
| 20174 | # Exit status is that of the last command. |
| 20175 | exit |
| 20176 | } |
| 20177 | |
| 20178 | |
| 20179 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 20180 | *c*,-n*) ECHO_N= ECHO_C=' |
| 20181 | ' ECHO_T=' ' ;; |
| 20182 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 20183 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 20184 | esac |
| 20185 | |
| 20186 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 20187 | as_expr=expr |
| 20188 | else |
| 20189 | as_expr=false |
| 20190 | fi |
| 20191 | |
| 20192 | rm -f conf$$ conf$$.exe conf$$.file |
| 20193 | echo >conf$$.file |
| 20194 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 20195 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 20196 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 20197 | if test -f conf$$.exe; then |
| 20198 | # Don't use ln at all; we don't have any links |
| 20199 | as_ln_s='cp -p' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20200 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20201 | as_ln_s='ln -s' |
| 20202 | fi |
| 20203 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 20204 | as_ln_s=ln |
| 20205 | else |
| 20206 | as_ln_s='cp -p' |
| 20207 | fi |
| 20208 | rm -f conf$$ conf$$.exe conf$$.file |
| 20209 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20210 | if mkdir -p . 2>/dev/null; then |
| 20211 | as_mkdir_p=: |
| 20212 | else |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 20213 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20214 | as_mkdir_p=false |
| 20215 | fi |
| 20216 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20217 | as_executable_p="test -f" |
| 20218 | |
| 20219 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 20220 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20221 | |
| 20222 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 20223 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20224 | |
| 20225 | |
| 20226 | # IFS |
| 20227 | # We need space, tab and new line, in precisely that order. |
| 20228 | as_nl=' |
| 20229 | ' |
| 20230 | IFS=" $as_nl" |
| 20231 | |
| 20232 | # CDPATH. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20233 | $as_unset CDPATH |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20234 | |
| 20235 | exec 6>&1 |
| 20236 | |
| 20237 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 20238 | # report actual input values of CONFIG_FILES etc. instead of their |
| 20239 | # values after options handling. Logging --version etc. is OK. |
| 20240 | exec 5>>config.log |
| 20241 | { |
| 20242 | echo |
| 20243 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 20244 | ## Running $as_me. ## |
| 20245 | _ASBOX |
| 20246 | } >&5 |
| 20247 | cat >&5 <<_CSEOF |
| 20248 | |
Fred Drake | 9bd4462 | 2003-07-30 17:39:48 +0000 | [diff] [blame] | 20249 | This file was extended by python $as_me 2.4, which was |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 20250 | generated by GNU Autoconf 2.59. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20251 | |
| 20252 | CONFIG_FILES = $CONFIG_FILES |
| 20253 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 20254 | CONFIG_LINKS = $CONFIG_LINKS |
| 20255 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 20256 | $ $0 $@ |
| 20257 | |
| 20258 | _CSEOF |
| 20259 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 20260 | echo >&5 |
| 20261 | _ACEOF |
| 20262 | |
| 20263 | # Files that config.status was made for. |
| 20264 | if test -n "$ac_config_files"; then |
| 20265 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 20266 | fi |
| 20267 | |
| 20268 | if test -n "$ac_config_headers"; then |
| 20269 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 20270 | fi |
| 20271 | |
| 20272 | if test -n "$ac_config_links"; then |
| 20273 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 20274 | fi |
| 20275 | |
| 20276 | if test -n "$ac_config_commands"; then |
| 20277 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 20278 | fi |
| 20279 | |
| 20280 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20281 | |
| 20282 | ac_cs_usage="\ |
| 20283 | \`$as_me' instantiates files from templates according to the |
| 20284 | current configuration. |
| 20285 | |
| 20286 | Usage: $0 [OPTIONS] [FILE]... |
| 20287 | |
| 20288 | -h, --help print this help, then exit |
| 20289 | -V, --version print version number, then exit |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20290 | -q, --quiet do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20291 | -d, --debug don't remove temporary files |
| 20292 | --recheck update $as_me by reconfiguring in the same conditions |
| 20293 | --file=FILE[:TEMPLATE] |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 20294 | instantiate the configuration file FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20295 | --header=FILE[:TEMPLATE] |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 20296 | instantiate the configuration header FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20297 | |
| 20298 | Configuration files: |
| 20299 | $config_files |
| 20300 | |
| 20301 | Configuration headers: |
| 20302 | $config_headers |
| 20303 | |
| 20304 | Report bugs to <bug-autoconf@gnu.org>." |
| 20305 | _ACEOF |
| 20306 | |
| 20307 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20308 | ac_cs_version="\\ |
Fred Drake | 9bd4462 | 2003-07-30 17:39:48 +0000 | [diff] [blame] | 20309 | python config.status 2.4 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 20310 | configured by $0, generated by GNU Autoconf 2.59, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20311 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 20312 | |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 20313 | Copyright (C) 2003 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20314 | This config.status script is free software; the Free Software Foundation |
| 20315 | gives unlimited permission to copy, distribute and modify it." |
| 20316 | srcdir=$srcdir |
| 20317 | INSTALL="$INSTALL" |
| 20318 | _ACEOF |
| 20319 | |
| 20320 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20321 | # If no file are specified by the user, then we need to provide default |
| 20322 | # value. By we need to know if files were specified by the user. |
| 20323 | ac_need_defaults=: |
| 20324 | while test $# != 0 |
| 20325 | do |
| 20326 | case $1 in |
| 20327 | --*=*) |
| 20328 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 20329 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20330 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20331 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20332 | -*) |
| 20333 | ac_option=$1 |
| 20334 | ac_optarg=$2 |
| 20335 | ac_shift=shift |
| 20336 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20337 | *) # This is not an option, so the user has probably given explicit |
| 20338 | # arguments. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20339 | ac_option=$1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20340 | ac_need_defaults=false;; |
| 20341 | esac |
| 20342 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20343 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20344 | # Handling of the options. |
| 20345 | _ACEOF |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 20346 | cat >>$CONFIG_STATUS <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20347 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 20348 | ac_cs_recheck=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20349 | --version | --vers* | -V ) |
| 20350 | echo "$ac_cs_version"; exit 0 ;; |
| 20351 | --he | --h) |
| 20352 | # Conflict between --help and --header |
| 20353 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 20354 | Try \`$0 --help' for more information." >&5 |
| 20355 | echo "$as_me: error: ambiguous option: $1 |
| 20356 | Try \`$0 --help' for more information." >&2;} |
| 20357 | { (exit 1); exit 1; }; };; |
| 20358 | --help | --hel | -h ) |
| 20359 | echo "$ac_cs_usage"; exit 0 ;; |
| 20360 | --debug | --d* | -d ) |
| 20361 | debug=: ;; |
| 20362 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20363 | $ac_shift |
| 20364 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20365 | ac_need_defaults=false;; |
| 20366 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20367 | $ac_shift |
| 20368 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20369 | ac_need_defaults=false;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20370 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 20371 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 20372 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20373 | |
| 20374 | # This is an error. |
| 20375 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 20376 | Try \`$0 --help' for more information." >&5 |
| 20377 | echo "$as_me: error: unrecognized option: $1 |
| 20378 | Try \`$0 --help' for more information." >&2;} |
| 20379 | { (exit 1); exit 1; }; } ;; |
| 20380 | |
| 20381 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 20382 | |
| 20383 | esac |
| 20384 | shift |
| 20385 | done |
| 20386 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20387 | ac_configure_extra_args= |
| 20388 | |
| 20389 | if $ac_cs_silent; then |
| 20390 | exec 6>/dev/null |
| 20391 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 20392 | fi |
| 20393 | |
| 20394 | _ACEOF |
| 20395 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20396 | if \$ac_cs_recheck; then |
| 20397 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 20398 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 20399 | fi |
| 20400 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20401 | _ACEOF |
| 20402 | |
| 20403 | |
| 20404 | |
| 20405 | |
| 20406 | |
| 20407 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20408 | for ac_config_target in $ac_config_targets |
| 20409 | do |
| 20410 | case "$ac_config_target" in |
| 20411 | # Handling of arguments. |
| 20412 | "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 20413 | "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
| 20414 | "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 20415 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 20416 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 20417 | { (exit 1); exit 1; }; };; |
| 20418 | esac |
| 20419 | done |
| 20420 | |
| 20421 | # If the user did not use the arguments to specify the items to instantiate, |
| 20422 | # then the envvar interface is used. Set only those that are not. |
| 20423 | # We use the long form for the default assignment because of an extremely |
| 20424 | # bizarre bug on SunOS 4.1.3. |
| 20425 | if $ac_need_defaults; then |
| 20426 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 20427 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 20428 | fi |
| 20429 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20430 | # Have a temporary directory for convenience. Make it in the build tree |
| 20431 | # simply because there is no reason to put it here, and in addition, |
| 20432 | # creating and moving files from /tmp can sometimes cause problems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20433 | # Create a temporary directory, and hook for its removal unless debugging. |
| 20434 | $debug || |
| 20435 | { |
| 20436 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 20437 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 20438 | } |
| 20439 | |
| 20440 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20441 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20442 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20443 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20444 | test -n "$tmp" && test -d "$tmp" |
| 20445 | } || |
| 20446 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20447 | tmp=./confstat$$-$RANDOM |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20448 | (umask 077 && mkdir $tmp) |
| 20449 | } || |
| 20450 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20451 | echo "$me: cannot create a temporary directory in ." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20452 | { (exit 1); exit 1; } |
| 20453 | } |
| 20454 | |
| 20455 | _ACEOF |
| 20456 | |
| 20457 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20458 | |
| 20459 | # |
| 20460 | # CONFIG_FILES section. |
| 20461 | # |
| 20462 | |
| 20463 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 20464 | # This happens for instance when ./config.status config.h |
| 20465 | if test -n "\$CONFIG_FILES"; then |
| 20466 | # Protect against being on the right side of a sed subst in config.status. |
| 20467 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 20468 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 20469 | s,@SHELL@,$SHELL,;t t |
| 20470 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 20471 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 20472 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 20473 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 20474 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 20475 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 20476 | s,@exec_prefix@,$exec_prefix,;t t |
| 20477 | s,@prefix@,$prefix,;t t |
| 20478 | s,@program_transform_name@,$program_transform_name,;t t |
| 20479 | s,@bindir@,$bindir,;t t |
| 20480 | s,@sbindir@,$sbindir,;t t |
| 20481 | s,@libexecdir@,$libexecdir,;t t |
| 20482 | s,@datadir@,$datadir,;t t |
| 20483 | s,@sysconfdir@,$sysconfdir,;t t |
| 20484 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 20485 | s,@localstatedir@,$localstatedir,;t t |
| 20486 | s,@libdir@,$libdir,;t t |
| 20487 | s,@includedir@,$includedir,;t t |
| 20488 | s,@oldincludedir@,$oldincludedir,;t t |
| 20489 | s,@infodir@,$infodir,;t t |
| 20490 | s,@mandir@,$mandir,;t t |
| 20491 | s,@build_alias@,$build_alias,;t t |
| 20492 | s,@host_alias@,$host_alias,;t t |
| 20493 | s,@target_alias@,$target_alias,;t t |
| 20494 | s,@DEFS@,$DEFS,;t t |
| 20495 | s,@ECHO_C@,$ECHO_C,;t t |
| 20496 | s,@ECHO_N@,$ECHO_N,;t t |
| 20497 | s,@ECHO_T@,$ECHO_T,;t t |
| 20498 | s,@LIBS@,$LIBS,;t t |
| 20499 | s,@VERSION@,$VERSION,;t t |
| 20500 | s,@SOVERSION@,$SOVERSION,;t t |
| 20501 | s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t |
| 20502 | s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t |
| 20503 | s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t |
| 20504 | s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t |
| 20505 | s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t |
| 20506 | s,@MACHDEP@,$MACHDEP,;t t |
| 20507 | s,@SGI_ABI@,$SGI_ABI,;t t |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 20508 | s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 20509 | s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 20510 | s,@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@,$CONFIGURE_MACOSX_DEPLOYMENT_TARGET,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20511 | s,@CXX@,$CXX,;t t |
| 20512 | s,@MAINOBJ@,$MAINOBJ,;t t |
| 20513 | s,@EXEEXT@,$EXEEXT,;t t |
| 20514 | s,@CC@,$CC,;t t |
| 20515 | s,@CFLAGS@,$CFLAGS,;t t |
| 20516 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 20517 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 20518 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 20519 | s,@OBJEXT@,$OBJEXT,;t t |
| 20520 | s,@CPP@,$CPP,;t t |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20521 | s,@EGREP@,$EGREP,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20522 | s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t |
| 20523 | s,@LIBRARY@,$LIBRARY,;t t |
| 20524 | s,@LDLIBRARY@,$LDLIBRARY,;t t |
| 20525 | s,@DLLLIBRARY@,$DLLLIBRARY,;t t |
| 20526 | s,@BLDLIBRARY@,$BLDLIBRARY,;t t |
| 20527 | s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t |
| 20528 | s,@INSTSONAME@,$INSTSONAME,;t t |
| 20529 | s,@RUNSHARED@,$RUNSHARED,;t t |
| 20530 | s,@LINKCC@,$LINKCC,;t t |
| 20531 | s,@RANLIB@,$RANLIB,;t t |
| 20532 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 20533 | s,@AR@,$AR,;t t |
| 20534 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 20535 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 20536 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 20537 | s,@LN@,$LN,;t t |
| 20538 | s,@OPT@,$OPT,;t t |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 20539 | s,@BASECFLAGS@,$BASECFLAGS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20540 | s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t |
| 20541 | s,@SO@,$SO,;t t |
| 20542 | s,@LDSHARED@,$LDSHARED,;t t |
| 20543 | s,@BLDSHARED@,$BLDSHARED,;t t |
| 20544 | s,@CCSHARED@,$CCSHARED,;t t |
| 20545 | s,@LINKFORSHARED@,$LINKFORSHARED,;t t |
| 20546 | s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 20547 | s,@SHLIBS@,$SHLIBS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20548 | s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t |
| 20549 | s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t |
| 20550 | s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t |
| 20551 | s,@LDLAST@,$LDLAST,;t t |
| 20552 | s,@THREADOBJ@,$THREADOBJ,;t t |
| 20553 | s,@DLINCLDIR@,$DLINCLDIR,;t t |
| 20554 | s,@DYNLOADFILE@,$DYNLOADFILE,;t t |
| 20555 | s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 20556 | s,@TRUE@,$TRUE,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20557 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 20558 | s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t |
| 20559 | s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t |
| 20560 | s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t |
| 20561 | s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t |
| 20562 | s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t |
| 20563 | s,@LIBM@,$LIBM,;t t |
| 20564 | s,@LIBC@,$LIBC,;t t |
| 20565 | s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t |
| 20566 | s,@THREADHEADERS@,$THREADHEADERS,;t t |
| 20567 | s,@SRCDIRS@,$SRCDIRS,;t t |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20568 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20569 | CEOF |
| 20570 | |
| 20571 | _ACEOF |
| 20572 | |
| 20573 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20574 | # Split the substitutions into bite-sized pieces for seds with |
| 20575 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 20576 | ac_max_sed_lines=48 |
| 20577 | ac_sed_frag=1 # Number of current file. |
| 20578 | ac_beg=1 # First line for current file. |
| 20579 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 20580 | ac_more_lines=: |
| 20581 | ac_sed_cmds= |
| 20582 | while $ac_more_lines; do |
| 20583 | if test $ac_beg -gt 1; then |
| 20584 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 20585 | else |
| 20586 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 20587 | fi |
| 20588 | if test ! -s $tmp/subs.frag; then |
| 20589 | ac_more_lines=false |
| 20590 | else |
| 20591 | # The purpose of the label and of the branching condition is to |
| 20592 | # speed up the sed processing (if there are no `@' at all, there |
| 20593 | # is no need to browse any of the substitutions). |
| 20594 | # These are the two extra sed commands mentioned above. |
| 20595 | (echo ':t |
| 20596 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 20597 | if test -z "$ac_sed_cmds"; then |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 20598 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20599 | else |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 20600 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20601 | fi |
| 20602 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 20603 | ac_beg=$ac_end |
| 20604 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 20605 | fi |
| 20606 | done |
| 20607 | if test -z "$ac_sed_cmds"; then |
| 20608 | ac_sed_cmds=cat |
| 20609 | fi |
| 20610 | fi # test -n "$CONFIG_FILES" |
| 20611 | |
| 20612 | _ACEOF |
| 20613 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20614 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 20615 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 20616 | case $ac_file in |
| 20617 | - | *:- | *:-:* ) # input from stdin |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 20618 | cat >$tmp/stdin |
| 20619 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 20620 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20621 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 20622 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20623 | * ) ac_file_in=$ac_file.in ;; |
| 20624 | esac |
| 20625 | |
| 20626 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 20627 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 20628 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 20629 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 20630 | X"$ac_file" : 'X\(//\)$' \| \ |
| 20631 | X"$ac_file" : 'X\(/\)' \| \ |
| 20632 | . : '\(.\)' 2>/dev/null || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20633 | echo X"$ac_file" | |
| 20634 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 20635 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 20636 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 20637 | /^X\(\/\).*/{ s//\1/; q; } |
| 20638 | s/.*/./; q'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20639 | { if $as_mkdir_p; then |
| 20640 | mkdir -p "$ac_dir" |
| 20641 | else |
| 20642 | as_dir="$ac_dir" |
| 20643 | as_dirs= |
| 20644 | while test ! -d "$as_dir"; do |
| 20645 | as_dirs="$as_dir $as_dirs" |
| 20646 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 20647 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 20648 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 20649 | X"$as_dir" : 'X\(//\)$' \| \ |
| 20650 | X"$as_dir" : 'X\(/\)' \| \ |
| 20651 | . : '\(.\)' 2>/dev/null || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20652 | echo X"$as_dir" | |
| 20653 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 20654 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 20655 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 20656 | /^X\(\/\).*/{ s//\1/; q; } |
| 20657 | s/.*/./; q'` |
| 20658 | done |
| 20659 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 20660 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 20661 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 20662 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20663 | |
| 20664 | ac_builddir=. |
| 20665 | |
| 20666 | if test "$ac_dir" != .; then |
| 20667 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 20668 | # A "../" for each directory in $ac_dir_suffix. |
| 20669 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 20670 | else |
| 20671 | ac_dir_suffix= ac_top_builddir= |
| 20672 | fi |
| 20673 | |
| 20674 | case $srcdir in |
| 20675 | .) # No --srcdir option. We are building in place. |
| 20676 | ac_srcdir=. |
| 20677 | if test -z "$ac_top_builddir"; then |
| 20678 | ac_top_srcdir=. |
| 20679 | else |
| 20680 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 20681 | fi ;; |
| 20682 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 20683 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 20684 | ac_top_srcdir=$srcdir ;; |
| 20685 | *) # Relative path. |
| 20686 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 20687 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 20688 | esac |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 20689 | |
| 20690 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 20691 | # the directories may not exist. |
| 20692 | case `pwd` in |
| 20693 | .) ac_abs_builddir="$ac_dir";; |
| 20694 | *) |
| 20695 | case "$ac_dir" in |
| 20696 | .) ac_abs_builddir=`pwd`;; |
| 20697 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 20698 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 20699 | esac;; |
| 20700 | esac |
| 20701 | case $ac_abs_builddir in |
| 20702 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 20703 | *) |
| 20704 | case ${ac_top_builddir}. in |
| 20705 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 20706 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 20707 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 20708 | esac;; |
| 20709 | esac |
| 20710 | case $ac_abs_builddir in |
| 20711 | .) ac_abs_srcdir=$ac_srcdir;; |
| 20712 | *) |
| 20713 | case $ac_srcdir in |
| 20714 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 20715 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 20716 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 20717 | esac;; |
| 20718 | esac |
| 20719 | case $ac_abs_builddir in |
| 20720 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 20721 | *) |
| 20722 | case $ac_top_srcdir in |
| 20723 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 20724 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 20725 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 20726 | esac;; |
| 20727 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20728 | |
| 20729 | |
| 20730 | case $INSTALL in |
| 20731 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 20732 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 20733 | esac |
| 20734 | |
| 20735 | if test x"$ac_file" != x-; then |
| 20736 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 20737 | echo "$as_me: creating $ac_file" >&6;} |
| 20738 | rm -f "$ac_file" |
| 20739 | fi |
| 20740 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 20741 | # use $as_me), people would be surprised to read: |
| 20742 | # /* config.h. Generated by config.status. */ |
| 20743 | if test x"$ac_file" = x-; then |
| 20744 | configure_input= |
| 20745 | else |
| 20746 | configure_input="$ac_file. " |
| 20747 | fi |
| 20748 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 20749 | sed 's,.*/,,'` by configure." |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20750 | |
| 20751 | # First look for the input files in the build tree, otherwise in the |
| 20752 | # src tree. |
| 20753 | ac_file_inputs=`IFS=: |
| 20754 | for f in $ac_file_in; do |
| 20755 | case $f in |
| 20756 | -) echo $tmp/stdin ;; |
| 20757 | [\\/$]*) |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 20758 | # Absolute (can't be DOS-style, as IFS=:) |
| 20759 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20760 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 20761 | { (exit 1); exit 1; }; } |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 20762 | echo "$f";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20763 | *) # Relative |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 20764 | if test -f "$f"; then |
| 20765 | # Build tree |
| 20766 | echo "$f" |
| 20767 | elif test -f "$srcdir/$f"; then |
| 20768 | # Source tree |
| 20769 | echo "$srcdir/$f" |
| 20770 | else |
| 20771 | # /dev/null tree |
| 20772 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20773 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 20774 | { (exit 1); exit 1; }; } |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 20775 | fi;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20776 | esac |
| 20777 | done` || { (exit 1); exit 1; } |
| 20778 | _ACEOF |
| 20779 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20780 | sed "$ac_vpsub |
| 20781 | $extrasub |
| 20782 | _ACEOF |
| 20783 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20784 | :t |
| 20785 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 20786 | s,@configure_input@,$configure_input,;t t |
| 20787 | s,@srcdir@,$ac_srcdir,;t t |
| 20788 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 20789 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 20790 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 20791 | s,@builddir@,$ac_builddir,;t t |
| 20792 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 20793 | s,@top_builddir@,$ac_top_builddir,;t t |
| 20794 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 20795 | s,@INSTALL@,$ac_INSTALL,;t t |
| 20796 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 20797 | rm -f $tmp/stdin |
| 20798 | if test x"$ac_file" != x-; then |
| 20799 | mv $tmp/out $ac_file |
| 20800 | else |
| 20801 | cat $tmp/out |
| 20802 | rm -f $tmp/out |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20803 | fi |
| 20804 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20805 | done |
| 20806 | _ACEOF |
| 20807 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20808 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20809 | # |
| 20810 | # CONFIG_HEADER section. |
| 20811 | # |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20812 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20813 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 20814 | # 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] | 20815 | # |
| 20816 | # ac_d sets the value in "#define NAME VALUE" lines. |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 20817 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 20818 | ac_dB='[ ].*$,\1#\2' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20819 | ac_dC=' ' |
| 20820 | ac_dD=',;t' |
| 20821 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 20822 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20823 | ac_uB='$,\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20824 | ac_uC=' ' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20825 | ac_uD=',;t' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20826 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20827 | 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] | 20828 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20829 | case $ac_file in |
| 20830 | - | *:- | *:-:* ) # input from stdin |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 20831 | cat >$tmp/stdin |
| 20832 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 20833 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20834 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 20835 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20836 | * ) ac_file_in=$ac_file.in ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20837 | esac |
| 20838 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20839 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 20840 | echo "$as_me: creating $ac_file" >&6;} |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20841 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20842 | # First look for the input files in the build tree, otherwise in the |
| 20843 | # src tree. |
| 20844 | ac_file_inputs=`IFS=: |
| 20845 | for f in $ac_file_in; do |
| 20846 | case $f in |
| 20847 | -) echo $tmp/stdin ;; |
| 20848 | [\\/$]*) |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 20849 | # Absolute (can't be DOS-style, as IFS=:) |
| 20850 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20851 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 20852 | { (exit 1); exit 1; }; } |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 20853 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 20854 | echo "$f";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20855 | *) # Relative |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 20856 | if test -f "$f"; then |
| 20857 | # Build tree |
| 20858 | echo "$f" |
| 20859 | elif test -f "$srcdir/$f"; then |
| 20860 | # Source tree |
| 20861 | echo "$srcdir/$f" |
| 20862 | else |
| 20863 | # /dev/null tree |
| 20864 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20865 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 20866 | { (exit 1); exit 1; }; } |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 20867 | fi;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20868 | esac |
| 20869 | done` || { (exit 1); exit 1; } |
| 20870 | # Remove the trailing spaces. |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 20871 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20872 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20873 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20874 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20875 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 20876 | # `conftest.undefs', that substitutes the proper values into |
| 20877 | # config.h.in to produce config.h. The first handles `#define' |
| 20878 | # templates, and the second `#undef' templates. |
| 20879 | # And first: Protect against being on the right side of a sed subst in |
| 20880 | # config.status. Protect against being in an unquoted here document |
| 20881 | # in config.status. |
| 20882 | rm -f conftest.defines conftest.undefs |
| 20883 | # Using a here document instead of a string reduces the quoting nightmare. |
| 20884 | # Putting comments in sed scripts is not portable. |
| 20885 | # |
| 20886 | # `end' is used to avoid that the second main sed command (meant for |
| 20887 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 20888 | # See the Autoconf documentation for `clear'. |
| 20889 | cat >confdef2sed.sed <<\_ACEOF |
| 20890 | s/[\\&,]/\\&/g |
| 20891 | s,[\\$`],\\&,g |
| 20892 | t clear |
| 20893 | : clear |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 20894 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20895 | t end |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 20896 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20897 | : end |
| 20898 | _ACEOF |
| 20899 | # If some macros were called several times there might be several times |
| 20900 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 20901 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 20902 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 20903 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 20904 | rm -f confdef2sed.sed |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20905 | |
| 20906 | # This sed command replaces #undef with comments. This is necessary, for |
| 20907 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 20908 | # 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] | 20909 | cat >>conftest.undefs <<\_ACEOF |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 20910 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20911 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20912 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20913 | # Break up conftest.defines because some shells have a limit on the size |
| 20914 | # of here documents, and old seds have small limits too (100 cmds). |
| 20915 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 20916 | 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] | 20917 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 20918 | echo ' :' >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20919 | rm -f conftest.tail |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20920 | while grep . conftest.defines >/dev/null |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20921 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20922 | # Write a limited-size here document to $tmp/defines.sed. |
| 20923 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 20924 | # Speed up: don't consider the non `#define' lines. |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 20925 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20926 | # Work around the forget-to-reset-the-flag bug. |
| 20927 | echo 't clr' >>$CONFIG_STATUS |
| 20928 | echo ': clr' >>$CONFIG_STATUS |
| 20929 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20930 | echo 'CEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20931 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 20932 | rm -f $tmp/in |
| 20933 | mv $tmp/out $tmp/in |
| 20934 | ' >>$CONFIG_STATUS |
| 20935 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 20936 | rm -f conftest.defines |
| 20937 | mv conftest.tail conftest.defines |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20938 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20939 | rm -f conftest.defines |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20940 | echo ' fi # grep' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20941 | echo >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20942 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20943 | # Break up conftest.undefs because some shells have a limit on the size |
| 20944 | # of here documents, and old seds have small limits too (100 cmds). |
| 20945 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 20946 | rm -f conftest.tail |
| 20947 | while grep . conftest.undefs >/dev/null |
| 20948 | do |
| 20949 | # Write a limited-size here document to $tmp/undefs.sed. |
| 20950 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 20951 | # Speed up: don't consider the non `#undef' |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 20952 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20953 | # Work around the forget-to-reset-the-flag bug. |
| 20954 | echo 't clr' >>$CONFIG_STATUS |
| 20955 | echo ': clr' >>$CONFIG_STATUS |
| 20956 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 20957 | echo 'CEOF |
| 20958 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 20959 | rm -f $tmp/in |
| 20960 | mv $tmp/out $tmp/in |
| 20961 | ' >>$CONFIG_STATUS |
| 20962 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 20963 | rm -f conftest.undefs |
| 20964 | mv conftest.tail conftest.undefs |
| 20965 | done |
| 20966 | rm -f conftest.undefs |
| 20967 | |
| 20968 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20969 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 20970 | # use $as_me), people would be surprised to read: |
| 20971 | # /* config.h. Generated by config.status. */ |
| 20972 | if test x"$ac_file" = x-; then |
| 20973 | echo "/* Generated by configure. */" >$tmp/config.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20974 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20975 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20976 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20977 | cat $tmp/in >>$tmp/config.h |
| 20978 | rm -f $tmp/in |
| 20979 | if test x"$ac_file" != x-; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20980 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20981 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 20982 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 20983 | else |
| 20984 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 20985 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 20986 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 20987 | X"$ac_file" : 'X\(//\)$' \| \ |
| 20988 | X"$ac_file" : 'X\(/\)' \| \ |
| 20989 | . : '\(.\)' 2>/dev/null || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20990 | echo X"$ac_file" | |
| 20991 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 20992 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 20993 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 20994 | /^X\(\/\).*/{ s//\1/; q; } |
| 20995 | s/.*/./; q'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20996 | { if $as_mkdir_p; then |
| 20997 | mkdir -p "$ac_dir" |
| 20998 | else |
| 20999 | as_dir="$ac_dir" |
| 21000 | as_dirs= |
| 21001 | while test ! -d "$as_dir"; do |
| 21002 | as_dirs="$as_dir $as_dirs" |
| 21003 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 21004 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 21005 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 21006 | X"$as_dir" : 'X\(//\)$' \| \ |
| 21007 | X"$as_dir" : 'X\(/\)' \| \ |
| 21008 | . : '\(.\)' 2>/dev/null || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21009 | echo X"$as_dir" | |
| 21010 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 21011 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 21012 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 21013 | /^X\(\/\).*/{ s//\1/; q; } |
| 21014 | s/.*/./; q'` |
| 21015 | done |
| 21016 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 21017 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 21018 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 21019 | { (exit 1); exit 1; }; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21020 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21021 | rm -f $ac_file |
| 21022 | mv $tmp/config.h $ac_file |
| 21023 | fi |
| 21024 | else |
| 21025 | cat $tmp/config.h |
| 21026 | rm -f $tmp/config.h |
| 21027 | fi |
| 21028 | done |
| 21029 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21030 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21031 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21032 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21033 | { (exit 0); exit 0; } |
| 21034 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21035 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21036 | ac_clean_files=$ac_clean_files_save |
| 21037 | |
| 21038 | |
| 21039 | # configure is writing to config.log, and then calls config.status. |
| 21040 | # config.status does its own redirection, appending to config.log. |
| 21041 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 21042 | # by configure, so config.status won't be able to write to it; its |
| 21043 | # output is simply discarded. So we exec the FD to /dev/null, |
| 21044 | # effectively closing config.log, so it can be properly (re)opened and |
| 21045 | # appended to by config.status. When coming back to configure, we |
| 21046 | # need to make the FD available again. |
| 21047 | if test "$no_create" != yes; then |
| 21048 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21049 | ac_config_status_args= |
| 21050 | test "$silent" = yes && |
| 21051 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21052 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21053 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21054 | exec 5>>config.log |
| 21055 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 21056 | # would make configure fail if this is the last instruction. |
| 21057 | $ac_cs_success || { (exit 1); exit 1; } |
| 21058 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21059 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 21060 | |
| 21061 | echo "creating Setup" |
| 21062 | if test ! -f Modules/Setup |
| 21063 | then |
| 21064 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 21065 | fi |
| 21066 | |
| 21067 | echo "creating Setup.local" |
| 21068 | if test ! -f Modules/Setup.local |
| 21069 | then |
| 21070 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 21071 | fi |
| 21072 | |
| 21073 | echo "creating Makefile" |
| 21074 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 21075 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 21076 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 21077 | mv config.c Modules |