Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame^] | 2 | # From configure.in Revision: 41984 . |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.59 for python 2.5. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5 | # |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 6 | # Report bugs to <http://www.python.org/python-bugs>. |
| 7 | # |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8 | # Copyright (C) 2003 Free Software Foundation, Inc. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11 | ## --------------------- ## |
| 12 | ## M4sh Initialization. ## |
| 13 | ## --------------------- ## |
| 14 | |
| 15 | # Be Bourne compatible |
| 16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 17 | emulate sh |
| 18 | NULLCMD=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 20 | # is contrary to our usage. Disable this feature. |
| 21 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 23 | set -o posix |
| 24 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25 | DUALCASE=1; export DUALCASE # for MKS sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27 | # Support unset when possible. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28 | 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] | 29 | as_unset=unset |
| 30 | else |
| 31 | as_unset=false |
| 32 | fi |
| 33 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 34 | |
| 35 | # Work around bugs in pre-3.0 UWIN ksh. |
| 36 | $as_unset ENV MAIL MAILPATH |
| 37 | PS1='$ ' |
| 38 | PS2='> ' |
| 39 | PS4='+ ' |
| 40 | |
| 41 | # NLS nuisances. |
| 42 | for as_var in \ |
| 43 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 44 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 45 | LC_TELEPHONE LC_TIME |
| 46 | do |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 47 | 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] | 48 | eval $as_var=C; export $as_var |
| 49 | else |
| 50 | $as_unset $as_var |
| 51 | fi |
| 52 | done |
| 53 | |
| 54 | # Required to use basename. |
| 55 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 56 | as_expr=expr |
| 57 | else |
| 58 | as_expr=false |
| 59 | fi |
| 60 | |
| 61 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 62 | as_basename=basename |
| 63 | else |
| 64 | as_basename=false |
| 65 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 66 | |
| 67 | |
| 68 | # Name of the executable. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 69 | as_me=`$as_basename "$0" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 70 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 71 | X"$0" : 'X\(//\)$' \| \ |
| 72 | X"$0" : 'X\(/\)$' \| \ |
| 73 | . : '\(.\)' 2>/dev/null || |
| 74 | echo X/"$0" | |
| 75 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 76 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 77 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 78 | s/.*/./; q'` |
| 79 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 80 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 81 | # PATH needs CR, and LINENO needs CR and PATH. |
| 82 | # Avoid depending upon Character Ranges. |
| 83 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 84 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 85 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 86 | as_cr_digits='0123456789' |
| 87 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 88 | |
| 89 | # The user is always right. |
| 90 | if test "${PATH_SEPARATOR+set}" != set; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 91 | echo "#! /bin/sh" >conf$$.sh |
| 92 | echo "exit 0" >>conf$$.sh |
| 93 | chmod +x conf$$.sh |
| 94 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 95 | PATH_SEPARATOR=';' |
| 96 | else |
| 97 | PATH_SEPARATOR=: |
| 98 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 99 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 100 | fi |
| 101 | |
| 102 | |
| 103 | as_lineno_1=$LINENO |
| 104 | as_lineno_2=$LINENO |
| 105 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 106 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 107 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 108 | # Find who we are. Look in the path if we contain no path at all |
| 109 | # relative or not. |
| 110 | case $0 in |
| 111 | *[\\/]* ) as_myself=$0 ;; |
| 112 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 113 | for as_dir in $PATH |
| 114 | do |
| 115 | IFS=$as_save_IFS |
| 116 | test -z "$as_dir" && as_dir=. |
| 117 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 118 | done |
| 119 | |
| 120 | ;; |
| 121 | esac |
| 122 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 123 | # in which case we are not to be found in the path. |
| 124 | if test "x$as_myself" = x; then |
| 125 | as_myself=$0 |
| 126 | fi |
| 127 | if test ! -f "$as_myself"; then |
| 128 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 129 | { (exit 1); exit 1; }; } |
| 130 | fi |
| 131 | case $CONFIG_SHELL in |
| 132 | '') |
| 133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 134 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 135 | do |
| 136 | IFS=$as_save_IFS |
| 137 | test -z "$as_dir" && as_dir=. |
| 138 | for as_base in sh bash ksh sh5; do |
| 139 | case $as_dir in |
| 140 | /*) |
| 141 | if ("$as_dir/$as_base" -c ' |
| 142 | as_lineno_1=$LINENO |
| 143 | as_lineno_2=$LINENO |
| 144 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 145 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 146 | 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] | 147 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 148 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 149 | CONFIG_SHELL=$as_dir/$as_base |
| 150 | export CONFIG_SHELL |
| 151 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 152 | fi;; |
| 153 | esac |
| 154 | done |
| 155 | done |
| 156 | ;; |
| 157 | esac |
| 158 | |
| 159 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 160 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 161 | # line-number line before each line; the second 'sed' does the real |
| 162 | # work. The second script uses 'N' to pair each line-number line |
| 163 | # with the numbered line, and appends trailing '-' during |
| 164 | # substitution so that $LINENO is not a special case at line end. |
| 165 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 166 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 167 | sed '=' <$as_myself | |
| 168 | sed ' |
| 169 | N |
| 170 | s,$,-, |
| 171 | : loop |
| 172 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 173 | t loop |
| 174 | s,-$,, |
| 175 | s,^['$as_cr_digits']*\n,, |
| 176 | ' >$as_me.lineno && |
| 177 | chmod +x $as_me.lineno || |
| 178 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 179 | { (exit 1); exit 1; }; } |
| 180 | |
| 181 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 182 | # (the dirname of $[0] is not the place where we might find the |
| 183 | # original and so on. Autoconf is especially sensible to this). |
| 184 | . ./$as_me.lineno |
| 185 | # Exit status is that of the last command. |
| 186 | exit |
| 187 | } |
| 188 | |
| 189 | |
| 190 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 191 | *c*,-n*) ECHO_N= ECHO_C=' |
| 192 | ' ECHO_T=' ' ;; |
| 193 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 194 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 195 | esac |
| 196 | |
| 197 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 198 | as_expr=expr |
| 199 | else |
| 200 | as_expr=false |
| 201 | fi |
| 202 | |
| 203 | rm -f conf$$ conf$$.exe conf$$.file |
| 204 | echo >conf$$.file |
| 205 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 206 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 207 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 208 | if test -f conf$$.exe; then |
| 209 | # Don't use ln at all; we don't have any links |
| 210 | as_ln_s='cp -p' |
| 211 | else |
| 212 | as_ln_s='ln -s' |
| 213 | fi |
| 214 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 215 | as_ln_s=ln |
| 216 | else |
| 217 | as_ln_s='cp -p' |
| 218 | fi |
| 219 | rm -f conf$$ conf$$.exe conf$$.file |
| 220 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 221 | if mkdir -p . 2>/dev/null; then |
| 222 | as_mkdir_p=: |
| 223 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 224 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 225 | as_mkdir_p=false |
| 226 | fi |
| 227 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 228 | as_executable_p="test -f" |
| 229 | |
| 230 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 231 | 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] | 232 | |
| 233 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 234 | 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] | 235 | |
| 236 | |
| 237 | # IFS |
| 238 | # We need space, tab and new line, in precisely that order. |
| 239 | as_nl=' |
| 240 | ' |
| 241 | IFS=" $as_nl" |
| 242 | |
| 243 | # CDPATH. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 244 | $as_unset CDPATH |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 245 | |
| 246 | |
| 247 | # Name of the host. |
| 248 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 249 | # so uname gets run too. |
| 250 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 251 | |
| 252 | exec 6>&1 |
| 253 | |
| 254 | # |
| 255 | # Initializations. |
| 256 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 257 | ac_default_prefix=/usr/local |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 258 | ac_config_libobj_dir=. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 259 | cross_compiling=no |
| 260 | subdirs= |
| 261 | MFLAGS= |
| 262 | MAKEFLAGS= |
| 263 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 264 | |
| 265 | # Maximum number of lines to put in a shell here document. |
| 266 | # This variable seems obsolete. It should probably be removed, and |
| 267 | # only ac_max_sed_lines should be used. |
| 268 | : ${ac_max_here_lines=38} |
| 269 | |
| 270 | # Identity of this package. |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 271 | PACKAGE_NAME='python' |
| 272 | PACKAGE_TARNAME='python' |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 273 | PACKAGE_VERSION='2.5' |
| 274 | PACKAGE_STRING='python 2.5' |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 275 | PACKAGE_BUGREPORT='http://www.python.org/python-bugs' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 276 | |
| 277 | ac_unique_file="Include/object.h" |
| 278 | # Factoring default headers for most tests. |
| 279 | ac_includes_default="\ |
| 280 | #include <stdio.h> |
| 281 | #if HAVE_SYS_TYPES_H |
| 282 | # include <sys/types.h> |
| 283 | #endif |
| 284 | #if HAVE_SYS_STAT_H |
| 285 | # include <sys/stat.h> |
| 286 | #endif |
| 287 | #if STDC_HEADERS |
| 288 | # include <stdlib.h> |
| 289 | # include <stddef.h> |
| 290 | #else |
| 291 | # if HAVE_STDLIB_H |
| 292 | # include <stdlib.h> |
| 293 | # endif |
| 294 | #endif |
| 295 | #if HAVE_STRING_H |
| 296 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 297 | # include <memory.h> |
| 298 | # endif |
| 299 | # include <string.h> |
| 300 | #endif |
| 301 | #if HAVE_STRINGS_H |
| 302 | # include <strings.h> |
| 303 | #endif |
| 304 | #if HAVE_INTTYPES_H |
| 305 | # include <inttypes.h> |
| 306 | #else |
| 307 | # if HAVE_STDINT_H |
| 308 | # include <stdint.h> |
| 309 | # endif |
| 310 | #endif |
| 311 | #if HAVE_UNISTD_H |
| 312 | # include <unistd.h> |
| 313 | #endif" |
| 314 | |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 315 | 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 SVNVERSION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN OPT BASECFLAGS OTHER_LIBTOOL_OPT 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] | 316 | ac_subst_files='' |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 317 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 318 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 319 | ac_init_help= |
| 320 | ac_init_version=false |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 321 | # The variables have the same names as the options, with |
| 322 | # dashes changed to underlines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 323 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 324 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 325 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 326 | no_recursion= |
| 327 | prefix=NONE |
| 328 | program_prefix=NONE |
| 329 | program_suffix=NONE |
| 330 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 331 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 332 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 333 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 334 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 335 | x_includes=NONE |
| 336 | x_libraries=NONE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 337 | |
| 338 | # Installation directory options. |
| 339 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 340 | # and all the variables that are supposed to be based on exec_prefix |
| 341 | # by default will actually change. |
| 342 | # 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] | 343 | bindir='${exec_prefix}/bin' |
| 344 | sbindir='${exec_prefix}/sbin' |
| 345 | libexecdir='${exec_prefix}/libexec' |
| 346 | datadir='${prefix}/share' |
| 347 | sysconfdir='${prefix}/etc' |
| 348 | sharedstatedir='${prefix}/com' |
| 349 | localstatedir='${prefix}/var' |
| 350 | libdir='${exec_prefix}/lib' |
| 351 | includedir='${prefix}/include' |
| 352 | oldincludedir='/usr/include' |
| 353 | infodir='${prefix}/info' |
| 354 | mandir='${prefix}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 355 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 356 | ac_prev= |
| 357 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 358 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 359 | # If the previous option needs an argument, assign it. |
| 360 | if test -n "$ac_prev"; then |
| 361 | eval "$ac_prev=\$ac_option" |
| 362 | ac_prev= |
| 363 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 364 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 365 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 366 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 367 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 368 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 369 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 370 | case $ac_option in |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 371 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 372 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 373 | ac_prev=bindir ;; |
| 374 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 375 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 376 | |
| 377 | -build | --build | --buil | --bui | --bu) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 378 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 379 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 380 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 381 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 382 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 383 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 384 | ac_prev=cache_file ;; |
| 385 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 386 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 387 | cache_file=$ac_optarg ;; |
| 388 | |
| 389 | --config-cache | -C) |
| 390 | cache_file=config.cache ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 391 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 392 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 393 | ac_prev=datadir ;; |
| 394 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 395 | | --da=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 396 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 397 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 398 | -disable-* | --disable-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 399 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 400 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 401 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 402 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 403 | { (exit 1); exit 1; }; } |
| 404 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 405 | eval "enable_$ac_feature=no" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 406 | |
| 407 | -enable-* | --enable-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 408 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 409 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 410 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 411 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 412 | { (exit 1); exit 1; }; } |
| 413 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 414 | case $ac_option in |
| 415 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 416 | *) ac_optarg=yes ;; |
| 417 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 418 | eval "enable_$ac_feature='$ac_optarg'" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 419 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 420 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 421 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 422 | | --exec | --exe | --ex) |
| 423 | ac_prev=exec_prefix ;; |
| 424 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 425 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 426 | | --exec=* | --exe=* | --ex=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 427 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 428 | |
| 429 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 430 | # Obsolete; use --with-gas. |
| 431 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 432 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 433 | -help | --help | --hel | --he | -h) |
| 434 | ac_init_help=long ;; |
| 435 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 436 | ac_init_help=recursive ;; |
| 437 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 438 | ac_init_help=short ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 439 | |
| 440 | -host | --host | --hos | --ho) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 441 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 442 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 443 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 444 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 445 | -includedir | --includedir | --includedi | --included | --include \ |
| 446 | | --includ | --inclu | --incl | --inc) |
| 447 | ac_prev=includedir ;; |
| 448 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 449 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 450 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 451 | |
| 452 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 453 | ac_prev=infodir ;; |
| 454 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 455 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 456 | |
| 457 | -libdir | --libdir | --libdi | --libd) |
| 458 | ac_prev=libdir ;; |
| 459 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 460 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 461 | |
| 462 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 463 | | --libexe | --libex | --libe) |
| 464 | ac_prev=libexecdir ;; |
| 465 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 466 | | --libexe=* | --libex=* | --libe=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 467 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 468 | |
| 469 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 470 | | --localstate | --localstat | --localsta | --localst \ |
| 471 | | --locals | --local | --loca | --loc | --lo) |
| 472 | ac_prev=localstatedir ;; |
| 473 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 474 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 475 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 476 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 477 | |
| 478 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 479 | ac_prev=mandir ;; |
| 480 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 481 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 482 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 483 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 484 | # Obsolete; use --without-fp. |
| 485 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 486 | |
| 487 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 488 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 489 | no_create=yes ;; |
| 490 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 491 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 492 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 493 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 494 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 495 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 496 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 497 | | --oldin | --oldi | --old | --ol | --o) |
| 498 | ac_prev=oldincludedir ;; |
| 499 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 500 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 501 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 502 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 503 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 504 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 505 | ac_prev=prefix ;; |
| 506 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 507 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 508 | |
| 509 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 510 | | --program-pre | --program-pr | --program-p) |
| 511 | ac_prev=program_prefix ;; |
| 512 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 513 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 514 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 515 | |
| 516 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 517 | | --program-suf | --program-su | --program-s) |
| 518 | ac_prev=program_suffix ;; |
| 519 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 520 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 521 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 522 | |
| 523 | -program-transform-name | --program-transform-name \ |
| 524 | | --program-transform-nam | --program-transform-na \ |
| 525 | | --program-transform-n | --program-transform- \ |
| 526 | | --program-transform | --program-transfor \ |
| 527 | | --program-transfo | --program-transf \ |
| 528 | | --program-trans | --program-tran \ |
| 529 | | --progr-tra | --program-tr | --program-t) |
| 530 | ac_prev=program_transform_name ;; |
| 531 | -program-transform-name=* | --program-transform-name=* \ |
| 532 | | --program-transform-nam=* | --program-transform-na=* \ |
| 533 | | --program-transform-n=* | --program-transform-=* \ |
| 534 | | --program-transform=* | --program-transfor=* \ |
| 535 | | --program-transfo=* | --program-transf=* \ |
| 536 | | --program-trans=* | --program-tran=* \ |
| 537 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 538 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 539 | |
| 540 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 541 | | -silent | --silent | --silen | --sile | --sil) |
| 542 | silent=yes ;; |
| 543 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 544 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 545 | ac_prev=sbindir ;; |
| 546 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 547 | | --sbi=* | --sb=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 548 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 549 | |
| 550 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 551 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 552 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 553 | | --sha | --sh) |
| 554 | ac_prev=sharedstatedir ;; |
| 555 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 556 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 557 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 558 | | --sha=* | --sh=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 559 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 560 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 561 | -site | --site | --sit) |
| 562 | ac_prev=site ;; |
| 563 | -site=* | --site=* | --sit=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 564 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 565 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 566 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 567 | ac_prev=srcdir ;; |
| 568 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 569 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 570 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 571 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 572 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 573 | ac_prev=sysconfdir ;; |
| 574 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 575 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 576 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 577 | |
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 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 580 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 581 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 582 | |
| 583 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 584 | verbose=yes ;; |
| 585 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 586 | -version | --version | --versio | --versi | --vers | -V) |
| 587 | ac_init_version=: ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 588 | |
| 589 | -with-* | --with-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 590 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 591 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 592 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 593 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 594 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 595 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 596 | case $ac_option in |
| 597 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 598 | *) ac_optarg=yes ;; |
| 599 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 600 | eval "with_$ac_package='$ac_optarg'" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 601 | |
| 602 | -without-* | --without-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 603 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 604 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 605 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 606 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 607 | { (exit 1); exit 1; }; } |
| 608 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 609 | eval "with_$ac_package=no" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 610 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 611 | --x) |
| 612 | # Obsolete; use --with-x. |
| 613 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 614 | |
| 615 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 616 | | --x-incl | --x-inc | --x-in | --x-i) |
| 617 | ac_prev=x_includes ;; |
| 618 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 619 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 620 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 621 | |
| 622 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 623 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 624 | ac_prev=x_libraries ;; |
| 625 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 626 | | --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] | 627 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 628 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 629 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 630 | Try \`$0 --help' for more information." >&2 |
| 631 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 632 | ;; |
| 633 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 634 | *=*) |
| 635 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 636 | # Reject names that are not valid shell variable names. |
| 637 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 638 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 639 | { (exit 1); exit 1; }; } |
| 640 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 641 | eval "$ac_envvar='$ac_optarg'" |
| 642 | export $ac_envvar ;; |
| 643 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 644 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 645 | # FIXME: should be removed in autoconf 3.0. |
| 646 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 647 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 648 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 649 | : ${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] | 650 | ;; |
| 651 | |
| 652 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 653 | done |
| 654 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 655 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 656 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 657 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 658 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 659 | fi |
| 660 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 661 | # Be sure to have absolute paths. |
| 662 | for ac_var in exec_prefix prefix |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 663 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 664 | eval ac_val=$`echo $ac_var` |
| 665 | case $ac_val in |
| 666 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 667 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 668 | { (exit 1); exit 1; }; };; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 669 | esac |
| 670 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 671 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 672 | # Be sure to have absolute paths. |
| 673 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 674 | localstatedir libdir includedir oldincludedir infodir mandir |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 675 | do |
| 676 | eval ac_val=$`echo $ac_var` |
| 677 | case $ac_val in |
| 678 | [\\/$]* | ?:[\\/]* ) ;; |
| 679 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 680 | { (exit 1); exit 1; }; };; |
| 681 | esac |
| 682 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 683 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 684 | # There might be people who depend on the old broken behavior: `$host' |
| 685 | # used to hold the argument of --host etc. |
| 686 | # FIXME: To remove some day. |
| 687 | build=$build_alias |
| 688 | host=$host_alias |
| 689 | target=$target_alias |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 690 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 691 | # FIXME: To remove some day. |
| 692 | if test "x$host_alias" != x; then |
| 693 | if test "x$build_alias" = x; then |
| 694 | cross_compiling=maybe |
| 695 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 696 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 697 | elif test "x$build_alias" != "x$host_alias"; then |
| 698 | cross_compiling=yes |
| 699 | fi |
| 700 | fi |
| 701 | |
| 702 | ac_tool_prefix= |
| 703 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 704 | |
| 705 | test "$silent" = yes && exec 6>/dev/null |
| 706 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 707 | |
| 708 | # Find the source files, if location was not specified. |
| 709 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 710 | ac_srcdir_defaulted=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 711 | # Try the directory containing this script, then its parent. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 712 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 713 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 714 | X"$0" : 'X\(//\)[^/]' \| \ |
| 715 | X"$0" : 'X\(//\)$' \| \ |
| 716 | X"$0" : 'X\(/\)' \| \ |
| 717 | . : '\(.\)' 2>/dev/null || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 718 | echo X"$0" | |
| 719 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 720 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 721 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 722 | /^X\(\/\).*/{ s//\1/; q; } |
| 723 | s/.*/./; q'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 724 | srcdir=$ac_confdir |
| 725 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 726 | srcdir=.. |
| 727 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 728 | else |
| 729 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 730 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 731 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 732 | if test "$ac_srcdir_defaulted" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 734 | { (exit 1); exit 1; }; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 735 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 736 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 737 | { (exit 1); exit 1; }; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 738 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 739 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 740 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 741 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 742 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 743 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 744 | ac_env_build_alias_set=${build_alias+set} |
| 745 | ac_env_build_alias_value=$build_alias |
| 746 | ac_cv_env_build_alias_set=${build_alias+set} |
| 747 | ac_cv_env_build_alias_value=$build_alias |
| 748 | ac_env_host_alias_set=${host_alias+set} |
| 749 | ac_env_host_alias_value=$host_alias |
| 750 | ac_cv_env_host_alias_set=${host_alias+set} |
| 751 | ac_cv_env_host_alias_value=$host_alias |
| 752 | ac_env_target_alias_set=${target_alias+set} |
| 753 | ac_env_target_alias_value=$target_alias |
| 754 | ac_cv_env_target_alias_set=${target_alias+set} |
| 755 | ac_cv_env_target_alias_value=$target_alias |
| 756 | ac_env_CC_set=${CC+set} |
| 757 | ac_env_CC_value=$CC |
| 758 | ac_cv_env_CC_set=${CC+set} |
| 759 | ac_cv_env_CC_value=$CC |
| 760 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 761 | ac_env_CFLAGS_value=$CFLAGS |
| 762 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 763 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 764 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 765 | ac_env_LDFLAGS_value=$LDFLAGS |
| 766 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 767 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 768 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 769 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 770 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 771 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 772 | ac_env_CPP_set=${CPP+set} |
| 773 | ac_env_CPP_value=$CPP |
| 774 | ac_cv_env_CPP_set=${CPP+set} |
| 775 | ac_cv_env_CPP_value=$CPP |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 776 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 777 | # |
| 778 | # Report the --help message. |
| 779 | # |
| 780 | if test "$ac_init_help" = "long"; then |
| 781 | # Omit some internal or obsolete options to make the list less imposing. |
| 782 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 783 | cat <<_ACEOF |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 784 | \`configure' configures python 2.5 to adapt to many kinds of systems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 785 | |
| 786 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 787 | |
| 788 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 789 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 790 | |
| 791 | Defaults for the options are specified in brackets. |
| 792 | |
| 793 | Configuration: |
| 794 | -h, --help display this help and exit |
| 795 | --help=short display options specific to this package |
| 796 | --help=recursive display the short help of all the included packages |
| 797 | -V, --version display version information and exit |
| 798 | -q, --quiet, --silent do not print \`checking...' messages |
| 799 | --cache-file=FILE cache test results in FILE [disabled] |
| 800 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 801 | -n, --no-create do not create output files |
| 802 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 803 | |
| 804 | _ACEOF |
| 805 | |
| 806 | cat <<_ACEOF |
| 807 | Installation directories: |
| 808 | --prefix=PREFIX install architecture-independent files in PREFIX |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 809 | [$ac_default_prefix] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 810 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 811 | [PREFIX] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 812 | |
| 813 | By default, \`make install' will install all the files in |
| 814 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 815 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 816 | for instance \`--prefix=\$HOME'. |
| 817 | |
| 818 | For better control, use the options below. |
| 819 | |
| 820 | Fine tuning of the installation directories: |
| 821 | --bindir=DIR user executables [EPREFIX/bin] |
| 822 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 823 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 824 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 825 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 826 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 827 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 828 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 829 | --includedir=DIR C header files [PREFIX/include] |
| 830 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 831 | --infodir=DIR info documentation [PREFIX/info] |
| 832 | --mandir=DIR man documentation [PREFIX/man] |
| 833 | _ACEOF |
| 834 | |
| 835 | cat <<\_ACEOF |
| 836 | _ACEOF |
| 837 | fi |
| 838 | |
| 839 | if test -n "$ac_init_help"; then |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 840 | case $ac_init_help in |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 841 | short | recursive ) echo "Configuration of python 2.5:";; |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 842 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 843 | cat <<\_ACEOF |
| 844 | |
| 845 | Optional Features: |
| 846 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 847 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 848 | --enable-framework[=INSTALLDIR] |
| 849 | Build (MacOSX|Darwin) framework |
| 850 | --enable-shared disable/enable building shared python library |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 851 | --enable-profiling enable C-level code profiling |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 852 | --enable-toolbox-glue disable/enable MacOSX glue code for extensions |
| 853 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 854 | --disable-ipv6 Disable ipv6 support |
| 855 | --enable-unicode[=ucs[24]] |
| 856 | Enable Unicode strings (default is yes) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 857 | |
| 858 | Optional Packages: |
| 859 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 860 | --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] | 861 | --without-gcc never use gcc |
| 862 | --with-cxx=<compiler> enable C++ support |
| 863 | --with-suffix=.exe set executable suffix |
| 864 | --with-pydebug build with Py_DEBUG defined |
| 865 | --with-libs='lib1 ...' link against additional libs |
| 866 | --with-signal-module disable/enable signal module |
| 867 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries |
| 868 | --with(out)-threads[=DIRECTORY] |
| 869 | disable/enable thread support |
| 870 | --with(out)-thread[=DIRECTORY] |
| 871 | deprecated; use --with(out)-threads |
| 872 | --with-pth use GNU pth threading libraries |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 873 | --with(out)-doc-strings disable/enable documentation strings |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 874 | --with(out)-tsc enable/disable timestamp counter profile |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 875 | --with(out)-pymalloc disable/enable specialized mallocs |
| 876 | --with-wctype-functions use wctype.h functions |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 877 | --with-fpectl enable SIGFPE catching |
| 878 | --with-libm=STRING math library |
| 879 | --with-libc=STRING C library |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 880 | |
| 881 | Some influential environment variables: |
| 882 | CC C compiler command |
| 883 | CFLAGS C compiler flags |
| 884 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 885 | nonstandard directory <lib dir> |
| 886 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 887 | headers in a nonstandard directory <include dir> |
| 888 | CPP C preprocessor |
| 889 | |
| 890 | Use these variables to override the choices made by `configure' or to help |
| 891 | it to find libraries and programs with nonstandard names/locations. |
| 892 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 893 | Report bugs to <http://www.python.org/python-bugs>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 894 | _ACEOF |
| 895 | fi |
| 896 | |
| 897 | if test "$ac_init_help" = "recursive"; then |
| 898 | # If there are subdirs, report their specific --help. |
| 899 | ac_popdir=`pwd` |
| 900 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 901 | test -d $ac_dir || continue |
| 902 | ac_builddir=. |
| 903 | |
| 904 | if test "$ac_dir" != .; then |
| 905 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 906 | # A "../" for each directory in $ac_dir_suffix. |
| 907 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 908 | else |
| 909 | ac_dir_suffix= ac_top_builddir= |
| 910 | fi |
| 911 | |
| 912 | case $srcdir in |
| 913 | .) # No --srcdir option. We are building in place. |
| 914 | ac_srcdir=. |
| 915 | if test -z "$ac_top_builddir"; then |
| 916 | ac_top_srcdir=. |
| 917 | else |
| 918 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 919 | fi ;; |
| 920 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 921 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 922 | ac_top_srcdir=$srcdir ;; |
| 923 | *) # Relative path. |
| 924 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 925 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 926 | esac |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 927 | |
| 928 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 929 | # the directories may not exist. |
| 930 | case `pwd` in |
| 931 | .) ac_abs_builddir="$ac_dir";; |
| 932 | *) |
| 933 | case "$ac_dir" in |
| 934 | .) ac_abs_builddir=`pwd`;; |
| 935 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 936 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 937 | esac;; |
| 938 | esac |
| 939 | case $ac_abs_builddir in |
| 940 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 941 | *) |
| 942 | case ${ac_top_builddir}. in |
| 943 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 944 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 945 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 946 | esac;; |
| 947 | esac |
| 948 | case $ac_abs_builddir in |
| 949 | .) ac_abs_srcdir=$ac_srcdir;; |
| 950 | *) |
| 951 | case $ac_srcdir in |
| 952 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 953 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 954 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 955 | esac;; |
| 956 | esac |
| 957 | case $ac_abs_builddir in |
| 958 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 959 | *) |
| 960 | case $ac_top_srcdir in |
| 961 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 962 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 963 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 964 | esac;; |
| 965 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 966 | |
| 967 | cd $ac_dir |
| 968 | # Check for guested configure; otherwise get Cygnus style configure. |
| 969 | if test -f $ac_srcdir/configure.gnu; then |
| 970 | echo |
| 971 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 972 | elif test -f $ac_srcdir/configure; then |
| 973 | echo |
| 974 | $SHELL $ac_srcdir/configure --help=recursive |
| 975 | elif test -f $ac_srcdir/configure.ac || |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 976 | test -f $ac_srcdir/configure.in; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 977 | echo |
| 978 | $ac_configure --help |
| 979 | else |
| 980 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 981 | fi |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 982 | cd $ac_popdir |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 983 | done |
| 984 | fi |
| 985 | |
| 986 | test -n "$ac_init_help" && exit 0 |
| 987 | if $ac_init_version; then |
| 988 | cat <<\_ACEOF |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 989 | python configure 2.5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 990 | generated by GNU Autoconf 2.59 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 991 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 992 | Copyright (C) 2003 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 993 | This configure script is free software; the Free Software Foundation |
| 994 | gives unlimited permission to copy, distribute and modify it. |
| 995 | _ACEOF |
| 996 | exit 0 |
| 997 | fi |
| 998 | exec 5>config.log |
| 999 | cat >&5 <<_ACEOF |
| 1000 | This file contains any messages produced by compilers while |
| 1001 | running configure, to aid debugging if configure makes a mistake. |
| 1002 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 1003 | It was created by python $as_me 2.5, which was |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1004 | generated by GNU Autoconf 2.59. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1005 | |
| 1006 | $ $0 $@ |
| 1007 | |
| 1008 | _ACEOF |
| 1009 | { |
| 1010 | cat <<_ASUNAME |
| 1011 | ## --------- ## |
| 1012 | ## Platform. ## |
| 1013 | ## --------- ## |
| 1014 | |
| 1015 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1016 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1017 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1018 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1019 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1020 | |
| 1021 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1022 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1023 | |
| 1024 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1025 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1026 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1027 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1028 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1029 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1030 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1031 | |
| 1032 | _ASUNAME |
| 1033 | |
| 1034 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1035 | for as_dir in $PATH |
| 1036 | do |
| 1037 | IFS=$as_save_IFS |
| 1038 | test -z "$as_dir" && as_dir=. |
| 1039 | echo "PATH: $as_dir" |
| 1040 | done |
| 1041 | |
| 1042 | } >&5 |
| 1043 | |
| 1044 | cat >&5 <<_ACEOF |
| 1045 | |
| 1046 | |
| 1047 | ## ----------- ## |
| 1048 | ## Core tests. ## |
| 1049 | ## ----------- ## |
| 1050 | |
| 1051 | _ACEOF |
| 1052 | |
| 1053 | |
| 1054 | # Keep a trace of the command line. |
| 1055 | # 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] | 1056 | # 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] | 1057 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1058 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1059 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1060 | ac_configure_args0= |
| 1061 | ac_configure_args1= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1062 | ac_sep= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1063 | ac_must_keep_next=false |
| 1064 | for ac_pass in 1 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1065 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1066 | for ac_arg |
| 1067 | do |
| 1068 | case $ac_arg in |
| 1069 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1070 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1071 | | -silent | --silent | --silen | --sile | --sil) |
| 1072 | continue ;; |
| 1073 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1074 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1075 | esac |
| 1076 | case $ac_pass in |
| 1077 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1078 | 2) |
| 1079 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1080 | if test $ac_must_keep_next = true; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1081 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1082 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1083 | case $ac_arg in |
| 1084 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1085 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1086 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1087 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1088 | case "$ac_configure_args0 " in |
| 1089 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1090 | esac |
| 1091 | ;; |
| 1092 | -* ) ac_must_keep_next=true ;; |
| 1093 | esac |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1094 | fi |
| 1095 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1096 | # Get rid of the leading space. |
| 1097 | ac_sep=" " |
| 1098 | ;; |
| 1099 | esac |
| 1100 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1101 | done |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1102 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1103 | $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] | 1104 | |
| 1105 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1106 | # config.log. We remove comments because anyway the quotes in there |
| 1107 | # would cause problems or look ugly. |
| 1108 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1109 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1110 | trap 'exit_status=$? |
| 1111 | # Save into config.log some information that might help in debugging. |
| 1112 | { |
| 1113 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1114 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1115 | cat <<\_ASBOX |
| 1116 | ## ---------------- ## |
| 1117 | ## Cache variables. ## |
| 1118 | ## ---------------- ## |
| 1119 | _ASBOX |
| 1120 | echo |
| 1121 | # The following way of writing the cache mishandles newlines in values, |
| 1122 | { |
| 1123 | (set) 2>&1 | |
| 1124 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1125 | *ac_space=\ *) |
| 1126 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1127 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1128 | 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] | 1129 | ;; |
| 1130 | *) |
| 1131 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1132 | "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] | 1133 | ;; |
| 1134 | esac; |
| 1135 | } |
| 1136 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1137 | |
| 1138 | cat <<\_ASBOX |
| 1139 | ## ----------------- ## |
| 1140 | ## Output variables. ## |
| 1141 | ## ----------------- ## |
| 1142 | _ASBOX |
| 1143 | echo |
| 1144 | for ac_var in $ac_subst_vars |
| 1145 | do |
| 1146 | eval ac_val=$`echo $ac_var` |
| 1147 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1148 | done | sort |
| 1149 | echo |
| 1150 | |
| 1151 | if test -n "$ac_subst_files"; then |
| 1152 | cat <<\_ASBOX |
| 1153 | ## ------------- ## |
| 1154 | ## Output files. ## |
| 1155 | ## ------------- ## |
| 1156 | _ASBOX |
| 1157 | echo |
| 1158 | for ac_var in $ac_subst_files |
| 1159 | do |
| 1160 | eval ac_val=$`echo $ac_var` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1161 | echo "$ac_var='"'"'$ac_val'"'"'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1162 | done | sort |
| 1163 | echo |
| 1164 | fi |
| 1165 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1166 | if test -s confdefs.h; then |
| 1167 | cat <<\_ASBOX |
| 1168 | ## ----------- ## |
| 1169 | ## confdefs.h. ## |
| 1170 | ## ----------- ## |
| 1171 | _ASBOX |
| 1172 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1173 | sed "/^$/d" confdefs.h | sort |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1174 | echo |
| 1175 | fi |
| 1176 | test "$ac_signal" != 0 && |
| 1177 | echo "$as_me: caught signal $ac_signal" |
| 1178 | echo "$as_me: exit $exit_status" |
| 1179 | } >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1180 | rm -f core *.core && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1181 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1182 | exit $exit_status |
| 1183 | ' 0 |
| 1184 | for ac_signal in 1 2 13 15; do |
| 1185 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1186 | done |
| 1187 | ac_signal=0 |
| 1188 | |
| 1189 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1190 | rm -rf conftest* confdefs.h |
| 1191 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1192 | echo >confdefs.h |
| 1193 | |
| 1194 | # Predefined preprocessor variables. |
| 1195 | |
| 1196 | cat >>confdefs.h <<_ACEOF |
| 1197 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1198 | _ACEOF |
| 1199 | |
| 1200 | |
| 1201 | cat >>confdefs.h <<_ACEOF |
| 1202 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1203 | _ACEOF |
| 1204 | |
| 1205 | |
| 1206 | cat >>confdefs.h <<_ACEOF |
| 1207 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1208 | _ACEOF |
| 1209 | |
| 1210 | |
| 1211 | cat >>confdefs.h <<_ACEOF |
| 1212 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1213 | _ACEOF |
| 1214 | |
| 1215 | |
| 1216 | cat >>confdefs.h <<_ACEOF |
| 1217 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1218 | _ACEOF |
| 1219 | |
| 1220 | |
| 1221 | # 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] | 1222 | # Prefer explicitly selected file to automatically selected ones. |
| 1223 | if test -z "$CONFIG_SITE"; then |
| 1224 | if test "x$prefix" != xNONE; then |
| 1225 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1226 | else |
| 1227 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1228 | fi |
| 1229 | fi |
| 1230 | for ac_site_file in $CONFIG_SITE; do |
| 1231 | if test -r "$ac_site_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1232 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1233 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1234 | sed 's/^/| /' "$ac_site_file" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1235 | . "$ac_site_file" |
| 1236 | fi |
| 1237 | done |
| 1238 | |
| 1239 | if test -r "$cache_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1240 | # Some versions of bash will fail to source /dev/null (special |
| 1241 | # files actually), so we avoid doing that. |
| 1242 | if test -f "$cache_file"; then |
| 1243 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1244 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1245 | case $cache_file in |
| 1246 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1247 | *) . ./$cache_file;; |
| 1248 | esac |
| 1249 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1250 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1251 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1252 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1253 | >$cache_file |
| 1254 | fi |
| 1255 | |
| 1256 | # Check that the precious variables saved in the cache have kept the same |
| 1257 | # value. |
| 1258 | ac_cache_corrupted=false |
| 1259 | for ac_var in `(set) 2>&1 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1260 | 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] | 1261 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1262 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1263 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1264 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1265 | case $ac_old_set,$ac_new_set in |
| 1266 | set,) |
| 1267 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1268 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1269 | ac_cache_corrupted=: ;; |
| 1270 | ,set) |
| 1271 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1272 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1273 | ac_cache_corrupted=: ;; |
| 1274 | ,);; |
| 1275 | *) |
| 1276 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1277 | { 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] | 1278 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1279 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1280 | echo "$as_me: former value: $ac_old_val" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1281 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1282 | echo "$as_me: current value: $ac_new_val" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1283 | ac_cache_corrupted=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1284 | fi;; |
| 1285 | esac |
| 1286 | # Pass precious variables to config.status. |
| 1287 | if test "$ac_new_set" = set; then |
| 1288 | case $ac_new_val in |
| 1289 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1290 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1291 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1292 | esac |
| 1293 | case " $ac_configure_args " in |
| 1294 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1295 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1296 | esac |
| 1297 | fi |
| 1298 | done |
| 1299 | if $ac_cache_corrupted; then |
| 1300 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1301 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1302 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1303 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1304 | { (exit 1); exit 1; }; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1305 | fi |
| 1306 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1307 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1308 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1309 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1310 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1311 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1312 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1313 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1314 | |
| 1315 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1316 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1317 | |
| 1318 | |
| 1319 | |
| 1320 | |
| 1321 | |
| 1322 | |
| 1323 | |
| 1324 | |
| 1325 | |
| 1326 | |
| 1327 | |
| 1328 | |
| 1329 | |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1330 | |
| 1331 | |
| 1332 | |
| 1333 | |
| 1334 | |
| 1335 | |
| 1336 | |
| 1337 | |
| 1338 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1339 | |
| 1340 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1341 | |
| 1342 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1343 | |
| 1344 | |
| 1345 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1346 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1347 | |
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 1348 | # We don't use PACKAGE_ variables, and they cause conflicts |
| 1349 | # with other autoconf-based packages that include Python.h |
| 1350 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| 1351 | rm confdefs.h |
| 1352 | mv confdefs.h.new confdefs.h |
| 1353 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1354 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 1355 | VERSION=2.5 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1356 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 1357 | |
| 1358 | SOVERSION=1.0 |
| 1359 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1360 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 1361 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 1362 | |
| 1363 | cat >>confdefs.h <<\_ACEOF |
| 1364 | #define _GNU_SOURCE 1 |
| 1365 | _ACEOF |
| 1366 | |
| 1367 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 1368 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1369 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 1370 | # them. |
| 1371 | |
| 1372 | cat >>confdefs.h <<\_ACEOF |
| 1373 | #define _NETBSD_SOURCE 1 |
| 1374 | _ACEOF |
| 1375 | |
| 1376 | |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 1377 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1378 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| 1379 | # them. |
| 1380 | |
| 1381 | cat >>confdefs.h <<\_ACEOF |
| 1382 | #define __BSD_VISIBLE 1 |
| 1383 | _ACEOF |
| 1384 | |
| 1385 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 1386 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1387 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. |
| 1388 | |
| 1389 | cat >>confdefs.h <<\_ACEOF |
| 1390 | #define _BSD_TYPES 1 |
| 1391 | _ACEOF |
| 1392 | |
| 1393 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1394 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1395 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 1396 | # Arguments passed to configure. |
| 1397 | |
| 1398 | CONFIG_ARGS="$ac_configure_args" |
| 1399 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1400 | # Check whether --enable-framework or --disable-framework was given. |
| 1401 | if test "${enable_framework+set}" = set; then |
| 1402 | enableval="$enable_framework" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1403 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1404 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1405 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1406 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1407 | esac |
| 1408 | case $enableval in |
| 1409 | no) |
| 1410 | PYTHONFRAMEWORK= |
| 1411 | PYTHONFRAMEWORKDIR=no-framework |
| 1412 | PYTHONFRAMEWORKPREFIX= |
| 1413 | PYTHONFRAMEWORKINSTALLDIR= |
| 1414 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1415 | ;; |
| 1416 | *) |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1417 | PYTHONFRAMEWORK=Python |
| 1418 | PYTHONFRAMEWORKDIR=Python.framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1419 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1420 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
| 1421 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1422 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1423 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1424 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1425 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1426 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1427 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1428 | PYTHONFRAMEWORKPREFIX= |
| 1429 | PYTHONFRAMEWORKINSTALLDIR= |
| 1430 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1431 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1432 | fi; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1433 | |
| 1434 | |
| 1435 | |
| 1436 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1437 | |
| 1438 | ##AC_ARG_WITH(dyld, |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1439 | ## AC_HELP_STRING(--with-dyld, |
| 1440 | ## Use (OpenStep|Rhapsody) dynamic linker)) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1441 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1442 | # Set name for machine-dependent library files |
| 1443 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1444 | echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 1445 | echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1446 | if test -z "$MACHDEP" |
| 1447 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1448 | ac_sys_system=`uname -s` |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 1449 | if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \ |
| 1450 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1451 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1452 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1453 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1454 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1455 | ac_md_system=`echo $ac_sys_system | |
| 1456 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 1457 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 1458 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1459 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1460 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 1461 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 1462 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 1463 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 1464 | atheos*) MACHDEP="atheos";; |
Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 1465 | irix646) MACHDEP="irix6";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1466 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1467 | esac |
| 1468 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1469 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1470 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 1471 | # disable features if it is defined, without any means to access these |
| 1472 | # features as extensions. For these systems, we skip the definition of |
| 1473 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 1474 | # some feature, make sure there is no alternative way to access this |
| 1475 | # feature. Also, when using wildcards, make sure you have verified the |
| 1476 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 1477 | # wildcard, and that the wildcard does not include future systems |
| 1478 | # (which may remove their limitations). |
| 1479 | case $ac_sys_system/$ac_sys_release in |
| 1480 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 1481 | # 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] | 1482 | # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. |
Neal Norwitz | 671b9e3 | 2006-01-09 07:07:12 +0000 | [diff] [blame] | 1483 | OpenBSD/2.* | OpenBSD/3.[012345678]) |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1484 | define_xopen_source=no;; |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 1485 | # On Solaris 2.6, sys/wait.h is inconsistent in the usage |
| 1486 | # of union __?sigval. Reported by Stuart Bishop. |
| 1487 | SunOS/5.6) |
| 1488 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 1489 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| 1490 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 1491 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 1492 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 1493 | define_xopen_source=no;; |
| 1494 | # 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] | 1495 | # 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] | 1496 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 1497 | define_xopen_source=no;; |
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 1498 | # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that |
| 1499 | # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently, |
| 1500 | # this is fixed in 10.3, which identifies itself as Darwin/7.* |
| 1501 | # This should hopefully be fixed in FreeBSD 4.9 |
| 1502 | FreeBSD/4.8* | Darwin/6* ) |
| 1503 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 1504 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but |
| 1505 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined |
| 1506 | # or has another value. By not (re)defining it, the defaults come in place. |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 1507 | AIX/4) |
| 1508 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 1509 | AIX/5) |
| 1510 | if test `uname -r` -eq 1; then |
| 1511 | define_xopen_source=no |
| 1512 | fi |
| 1513 | ;; |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 1514 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 1515 | # disables platform specific features beyond repair. |
| 1516 | Darwin/8.*) |
| 1517 | define_xopen_source=no |
| 1518 | ;; |
| 1519 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1520 | esac |
| 1521 | |
| 1522 | if test $define_xopen_source = yes |
| 1523 | then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1524 | # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be |
| 1525 | # defined precisely as g++ defines it |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 1526 | # Furthermore, on Solaris 10, XPG6 requires the use of a C99 |
| 1527 | # compiler |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1528 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 1529 | SunOS/5.8|SunOS/5.9|SunOS/5.10) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1530 | |
| 1531 | cat >>confdefs.h <<\_ACEOF |
| 1532 | #define _XOPEN_SOURCE 500 |
| 1533 | _ACEOF |
| 1534 | |
| 1535 | ;; |
| 1536 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1537 | |
| 1538 | cat >>confdefs.h <<\_ACEOF |
| 1539 | #define _XOPEN_SOURCE 600 |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1540 | _ACEOF |
| 1541 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1542 | ;; |
| 1543 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1544 | |
| 1545 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 1546 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 1547 | # several APIs are not declared. Since this is also needed in some |
| 1548 | # cases for HP-UX, we define it globally. |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 1549 | # except for Solaris 10, where it must not be defined, |
| 1550 | # as it implies XPG4.2 |
| 1551 | case $ac_sys_system/$ac_sys_release in |
| 1552 | SunOS/5.10) |
| 1553 | ;; |
| 1554 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1555 | |
| 1556 | cat >>confdefs.h <<\_ACEOF |
| 1557 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 1558 | _ACEOF |
| 1559 | |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 1560 | ;; |
| 1561 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1562 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 1563 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1564 | cat >>confdefs.h <<\_ACEOF |
| 1565 | #define _POSIX_C_SOURCE 200112L |
| 1566 | _ACEOF |
| 1567 | |
| 1568 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1569 | fi |
| 1570 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1571 | # |
| 1572 | # SGI compilers allow the specification of the both the ABI and the |
| 1573 | # ISA on the command line. Depending on the values of these switches, |
| 1574 | # different and often incompatable code will be generated. |
| 1575 | # |
| 1576 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 1577 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 1578 | # variable is also adjusted. |
| 1579 | # |
| 1580 | |
| 1581 | if test ! -z "$SGI_ABI" |
| 1582 | then |
| 1583 | CC="cc $SGI_ABI" |
| 1584 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 1585 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 1586 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1587 | echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 1588 | echo "${ECHO_T}$MACHDEP" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1589 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1590 | # And add extra plat-mac for darwin |
| 1591 | |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 1592 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1593 | echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5 |
| 1594 | echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6 |
| 1595 | if test -z "$EXTRAPLATDIR" |
| 1596 | then |
| 1597 | case $MACHDEP in |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 1598 | darwin) |
| 1599 | EXTRAPLATDIR="\$(PLATMACDIRS)" |
| 1600 | EXTRAMACHDEPPATH="\$(PLATMACPATH)" |
| 1601 | ;; |
| 1602 | *) |
| 1603 | EXTRAPLATDIR="" |
| 1604 | EXTRAMACHDEPPATH="" |
| 1605 | ;; |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1606 | esac |
| 1607 | fi |
| 1608 | echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5 |
| 1609 | echo "${ECHO_T}$EXTRAPLATDIR" >&6 |
| 1610 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 1611 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
| 1612 | # it may influence the way we can build extensions, so distutils |
| 1613 | # needs to check it |
| 1614 | |
| 1615 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
| 1616 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1617 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1618 | |
| 1619 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 1620 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 1621 | # just to get things to compile and link. Users are free to override OPT |
| 1622 | # when running configure or make. The build should not break if they do. |
| 1623 | # BASECFLAGS should generally not be messed with, however. |
| 1624 | |
| 1625 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 1626 | # on that fiddles with OPT and BASECFLAGS? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1627 | echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 1628 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6 |
| 1629 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1630 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1631 | if test "${with_gcc+set}" = set; then |
| 1632 | withval="$with_gcc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1633 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1634 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1635 | no) CC=cc |
| 1636 | without_gcc=yes;; |
| 1637 | yes) CC=gcc |
| 1638 | without_gcc=no;; |
| 1639 | *) CC=$withval |
| 1640 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1641 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1642 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1643 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1644 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1645 | AIX*) CC=cc_r |
| 1646 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1647 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1648 | case $BE_HOST_CPU in |
| 1649 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1650 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1651 | without_gcc=yes |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1652 | BASECFLAGS="$BASECFLAGS -export pragma" |
| 1653 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1654 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1655 | ;; |
| 1656 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1657 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1658 | without_gcc=no |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1659 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1660 | ;; |
| 1661 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1662 | { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| 1663 | echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;} |
| 1664 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1665 | ;; |
| 1666 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1667 | AR="\$(srcdir)/Modules/ar_beos" |
| 1668 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1669 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1670 | Monterey*) |
| 1671 | RANLIB=: |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1672 | without_gcc=;; |
| 1673 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1674 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1675 | fi; |
| 1676 | echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 1677 | echo "${ECHO_T}$without_gcc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1678 | |
| 1679 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1680 | |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1681 | MAINOBJ=python.o |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1682 | echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5 |
| 1683 | echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6 |
| 1684 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1685 | # Check whether --with-cxx or --without-cxx was given. |
| 1686 | if test "${with_cxx+set}" = set; then |
| 1687 | withval="$with_cxx" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1688 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1689 | check_cxx=no |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1690 | case $withval in |
| 1691 | no) CXX= |
| 1692 | with_cxx=no;; |
| 1693 | *) CXX=$withval |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1694 | MAINOBJ=ccpython.o |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1695 | with_cxx=$withval;; |
| 1696 | esac |
| 1697 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1698 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1699 | with_cxx=no |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1700 | check_cxx=yes |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1701 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1702 | fi; |
| 1703 | echo "$as_me:$LINENO: result: $with_cxx" >&5 |
| 1704 | echo "${ECHO_T}$with_cxx" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1705 | |
| 1706 | if test "$with_cxx" = "yes" |
| 1707 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1708 | { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5 |
| 1709 | echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;} |
| 1710 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1711 | fi |
| 1712 | |
| 1713 | |
| 1714 | |
| 1715 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1716 | if test "$check_cxx" = "yes" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1717 | then |
| 1718 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 1719 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1720 | # 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] | 1721 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1722 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1723 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1724 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 1725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1726 | else |
| 1727 | if test -n "$CXX"; then |
| 1728 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 1729 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1730 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1731 | for as_dir in $PATH |
| 1732 | do |
| 1733 | IFS=$as_save_IFS |
| 1734 | test -z "$as_dir" && as_dir=. |
| 1735 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1736 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1737 | ac_cv_prog_CXX="$ac_prog" |
| 1738 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1739 | break 2 |
| 1740 | fi |
| 1741 | done |
| 1742 | done |
| 1743 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1744 | fi |
| 1745 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1746 | CXX=$ac_cv_prog_CXX |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1747 | if test -n "$CXX"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1748 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 1749 | echo "${ECHO_T}$CXX" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1750 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1751 | echo "$as_me:$LINENO: result: no" >&5 |
| 1752 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1753 | fi |
| 1754 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1755 | test -n "$CXX" && break |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1756 | done |
| 1757 | test -n "$CXX" || CXX="notfound" |
| 1758 | |
| 1759 | if test "$CXX" = "notfound" |
| 1760 | then |
| 1761 | CXX= |
| 1762 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1763 | ac_ext=cc |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1764 | ac_cpp='$CXXCPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1765 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1766 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1767 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 1768 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1769 | /* confdefs.h. */ |
| 1770 | _ACEOF |
| 1771 | cat confdefs.h >>conftest.$ac_ext |
| 1772 | cat >>conftest.$ac_ext <<_ACEOF |
| 1773 | /* end confdefs.h. */ |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1774 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1775 | int |
| 1776 | main () |
| 1777 | { |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1778 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1779 | ; |
| 1780 | return 0; |
| 1781 | } |
| 1782 | _ACEOF |
| 1783 | ac_clean_files_save=$ac_clean_files |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1784 | 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] | 1785 | # Try to create an executable without -o first, disregard a.out. |
| 1786 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1787 | # of exeext. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1788 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
| 1789 | 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] | 1790 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1791 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1792 | (eval $ac_link_default) 2>&5 |
| 1793 | ac_status=$? |
| 1794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1795 | (exit $ac_status); }; then |
| 1796 | # Find the output, starting from the most likely. This scheme is |
| 1797 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1798 | # resort. |
| 1799 | |
| 1800 | # Be careful to initialize this variable, since it used to be cached. |
| 1801 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1802 | ac_cv_exeext= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1803 | # b.out is created by i960 compilers. |
| 1804 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 1805 | do |
| 1806 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1807 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1808 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1809 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1810 | conftest.$ac_ext ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1811 | # This is the source file. |
| 1812 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1813 | [ab].out ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1814 | # We found the default executable, but exeext='' is most |
| 1815 | # certainly right. |
| 1816 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1817 | *.* ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1818 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1819 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1820 | # but it would be cool to find out if it's true. Does anybody |
| 1821 | # maintain Libtool? --akim. |
| 1822 | export ac_cv_exeext |
| 1823 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1824 | * ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1825 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1826 | esac |
| 1827 | done |
| 1828 | else |
| 1829 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1830 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1831 | |
| 1832 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
| 1833 | See \`config.log' for more details." >&5 |
| 1834 | echo "$as_me: error: C++ compiler cannot create executables |
| 1835 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1836 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1837 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1838 | |
| 1839 | ac_exeext=$ac_cv_exeext |
| 1840 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1841 | echo "${ECHO_T}$ac_file" >&6 |
| 1842 | |
| 1843 | # Check the compiler produces executables we can run. If not, either |
| 1844 | # the compiler is broken, or we cross compile. |
| 1845 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
| 1846 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
| 1847 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1848 | # If not cross compiling, check that we can run a simple program. |
| 1849 | if test "$cross_compiling" != yes; then |
| 1850 | if { ac_try='./$ac_file' |
| 1851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1852 | (eval $ac_try) 2>&5 |
| 1853 | ac_status=$? |
| 1854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1855 | (exit $ac_status); }; }; then |
| 1856 | cross_compiling=no |
| 1857 | else |
| 1858 | if test "$cross_compiling" = maybe; then |
| 1859 | cross_compiling=yes |
| 1860 | else |
| 1861 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1862 | If you meant to cross compile, use \`--host'. |
| 1863 | See \`config.log' for more details." >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1864 | echo "$as_me: error: cannot run C++ compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1865 | If you meant to cross compile, use \`--host'. |
| 1866 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1867 | { (exit 1); exit 1; }; } |
| 1868 | fi |
| 1869 | fi |
| 1870 | fi |
| 1871 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1872 | echo "${ECHO_T}yes" >&6 |
| 1873 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1874 | 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] | 1875 | ac_clean_files=$ac_clean_files_save |
| 1876 | # Check the compiler produces executables we can run. If not, either |
| 1877 | # the compiler is broken, or we cross compile. |
| 1878 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1879 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1880 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1881 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1882 | |
| 1883 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1884 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1885 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1886 | (eval $ac_link) 2>&5 |
| 1887 | ac_status=$? |
| 1888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1889 | (exit $ac_status); }; then |
| 1890 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1891 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1892 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1893 | # `rm'. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1894 | for ac_file in conftest.exe conftest conftest.*; do |
| 1895 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1896 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1897 | *.$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] | 1898 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1899 | export ac_cv_exeext |
| 1900 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1901 | * ) break;; |
| 1902 | esac |
| 1903 | done |
| 1904 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1905 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1906 | See \`config.log' for more details." >&5 |
| 1907 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 1908 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1909 | { (exit 1); exit 1; }; } |
| 1910 | fi |
| 1911 | |
| 1912 | rm -f conftest$ac_cv_exeext |
| 1913 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1914 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1915 | |
| 1916 | rm -f conftest.$ac_ext |
| 1917 | EXEEXT=$ac_cv_exeext |
| 1918 | ac_exeext=$EXEEXT |
| 1919 | |
| 1920 | ac_ext=c |
| 1921 | ac_cpp='$CPP $CPPFLAGS' |
| 1922 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1923 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1924 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1925 | |
| 1926 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1927 | |
| 1928 | fi |
| 1929 | fi |
| 1930 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1931 | # If the user switches compilers, we can't believe the cache |
| 1932 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 1933 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1934 | { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file |
| 1935 | (it is also a good idea to do 'make clean' before compiling)" >&5 |
| 1936 | echo "$as_me: error: cached CC is different -- throw away $cache_file |
| 1937 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 1938 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1939 | fi |
| 1940 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1941 | ac_ext=c |
| 1942 | ac_cpp='$CPP $CPPFLAGS' |
| 1943 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1944 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1945 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1946 | if test -n "$ac_tool_prefix"; then |
| 1947 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1948 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1949 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1950 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1951 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1952 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1953 | else |
| 1954 | if test -n "$CC"; then |
| 1955 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1956 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1957 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1958 | for as_dir in $PATH |
| 1959 | do |
| 1960 | IFS=$as_save_IFS |
| 1961 | test -z "$as_dir" && as_dir=. |
| 1962 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1963 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1964 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1965 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1966 | break 2 |
| 1967 | fi |
| 1968 | done |
| 1969 | done |
| 1970 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1971 | fi |
| 1972 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1973 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1974 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1975 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1976 | echo "${ECHO_T}$CC" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1977 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1978 | echo "$as_me:$LINENO: result: no" >&5 |
| 1979 | echo "${ECHO_T}no" >&6 |
| 1980 | fi |
| 1981 | |
| 1982 | fi |
| 1983 | if test -z "$ac_cv_prog_CC"; then |
| 1984 | ac_ct_CC=$CC |
| 1985 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1986 | set dummy gcc; ac_word=$2 |
| 1987 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1988 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1989 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1991 | else |
| 1992 | if test -n "$ac_ct_CC"; then |
| 1993 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1994 | else |
| 1995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1996 | for as_dir in $PATH |
| 1997 | do |
| 1998 | IFS=$as_save_IFS |
| 1999 | test -z "$as_dir" && as_dir=. |
| 2000 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2001 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2002 | ac_cv_prog_ac_ct_CC="gcc" |
| 2003 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2004 | break 2 |
| 2005 | fi |
| 2006 | done |
| 2007 | done |
| 2008 | |
| 2009 | fi |
| 2010 | fi |
| 2011 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2012 | if test -n "$ac_ct_CC"; then |
| 2013 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2014 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2015 | else |
| 2016 | echo "$as_me:$LINENO: result: no" >&5 |
| 2017 | echo "${ECHO_T}no" >&6 |
| 2018 | fi |
| 2019 | |
| 2020 | CC=$ac_ct_CC |
| 2021 | else |
| 2022 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2023 | fi |
| 2024 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2025 | if test -z "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2026 | if test -n "$ac_tool_prefix"; then |
| 2027 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 2028 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 2029 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2030 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2031 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2032 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2033 | else |
| 2034 | if test -n "$CC"; then |
| 2035 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2036 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2037 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2038 | for as_dir in $PATH |
| 2039 | do |
| 2040 | IFS=$as_save_IFS |
| 2041 | test -z "$as_dir" && as_dir=. |
| 2042 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2043 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2044 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2045 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2046 | break 2 |
| 2047 | fi |
| 2048 | done |
| 2049 | done |
| 2050 | |
| 2051 | fi |
| 2052 | fi |
| 2053 | CC=$ac_cv_prog_CC |
| 2054 | if test -n "$CC"; then |
| 2055 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2056 | echo "${ECHO_T}$CC" >&6 |
| 2057 | else |
| 2058 | echo "$as_me:$LINENO: result: no" >&5 |
| 2059 | echo "${ECHO_T}no" >&6 |
| 2060 | fi |
| 2061 | |
| 2062 | fi |
| 2063 | if test -z "$ac_cv_prog_CC"; then |
| 2064 | ac_ct_CC=$CC |
| 2065 | # Extract the first word of "cc", so it can be a program name with args. |
| 2066 | set dummy cc; ac_word=$2 |
| 2067 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2068 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2069 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2071 | else |
| 2072 | if test -n "$ac_ct_CC"; then |
| 2073 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2074 | else |
| 2075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2076 | for as_dir in $PATH |
| 2077 | do |
| 2078 | IFS=$as_save_IFS |
| 2079 | test -z "$as_dir" && as_dir=. |
| 2080 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2081 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2082 | ac_cv_prog_ac_ct_CC="cc" |
| 2083 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2084 | break 2 |
| 2085 | fi |
| 2086 | done |
| 2087 | done |
| 2088 | |
| 2089 | fi |
| 2090 | fi |
| 2091 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2092 | if test -n "$ac_ct_CC"; then |
| 2093 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2094 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2095 | else |
| 2096 | echo "$as_me:$LINENO: result: no" >&5 |
| 2097 | echo "${ECHO_T}no" >&6 |
| 2098 | fi |
| 2099 | |
| 2100 | CC=$ac_ct_CC |
| 2101 | else |
| 2102 | CC="$ac_cv_prog_CC" |
| 2103 | fi |
| 2104 | |
| 2105 | fi |
| 2106 | if test -z "$CC"; then |
| 2107 | # Extract the first word of "cc", so it can be a program name with args. |
| 2108 | set dummy cc; ac_word=$2 |
| 2109 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2110 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2111 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2112 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2113 | else |
| 2114 | if test -n "$CC"; then |
| 2115 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2116 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2117 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2118 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2119 | for as_dir in $PATH |
| 2120 | do |
| 2121 | IFS=$as_save_IFS |
| 2122 | test -z "$as_dir" && as_dir=. |
| 2123 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2124 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2125 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2126 | ac_prog_rejected=yes |
| 2127 | continue |
| 2128 | fi |
| 2129 | ac_cv_prog_CC="cc" |
| 2130 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2131 | break 2 |
| 2132 | fi |
| 2133 | done |
| 2134 | done |
| 2135 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2136 | if test $ac_prog_rejected = yes; then |
| 2137 | # We found a bogon in the path, so make sure we never use it. |
| 2138 | set dummy $ac_cv_prog_CC |
| 2139 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2140 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2141 | # We chose a different compiler from the bogus one. |
| 2142 | # However, it has the same basename, so the bogon will be chosen |
| 2143 | # first if we set CC to just the basename; use the full file name. |
| 2144 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2145 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2146 | fi |
| 2147 | fi |
| 2148 | fi |
| 2149 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2150 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2151 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2152 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2153 | echo "${ECHO_T}$CC" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2154 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2155 | echo "$as_me:$LINENO: result: no" >&5 |
| 2156 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2157 | fi |
| 2158 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2159 | fi |
| 2160 | if test -z "$CC"; then |
| 2161 | if test -n "$ac_tool_prefix"; then |
| 2162 | for ac_prog in cl |
| 2163 | do |
| 2164 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2165 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2166 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2167 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2168 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2170 | else |
| 2171 | if test -n "$CC"; then |
| 2172 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2173 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2175 | for as_dir in $PATH |
| 2176 | do |
| 2177 | IFS=$as_save_IFS |
| 2178 | test -z "$as_dir" && as_dir=. |
| 2179 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2180 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2181 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2182 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2183 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2184 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2185 | done |
| 2186 | done |
| 2187 | |
| 2188 | fi |
| 2189 | fi |
| 2190 | CC=$ac_cv_prog_CC |
| 2191 | if test -n "$CC"; then |
| 2192 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2193 | echo "${ECHO_T}$CC" >&6 |
| 2194 | else |
| 2195 | echo "$as_me:$LINENO: result: no" >&5 |
| 2196 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2197 | fi |
| 2198 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2199 | test -n "$CC" && break |
| 2200 | done |
| 2201 | fi |
| 2202 | if test -z "$CC"; then |
| 2203 | ac_ct_CC=$CC |
| 2204 | for ac_prog in cl |
| 2205 | do |
| 2206 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2207 | set dummy $ac_prog; ac_word=$2 |
| 2208 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2209 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2210 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2211 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2212 | else |
| 2213 | if test -n "$ac_ct_CC"; then |
| 2214 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2215 | else |
| 2216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2217 | for as_dir in $PATH |
| 2218 | do |
| 2219 | IFS=$as_save_IFS |
| 2220 | test -z "$as_dir" && as_dir=. |
| 2221 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2222 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2223 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2224 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2225 | break 2 |
| 2226 | fi |
| 2227 | done |
| 2228 | done |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2229 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2230 | fi |
| 2231 | fi |
| 2232 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2233 | if test -n "$ac_ct_CC"; then |
| 2234 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2235 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2236 | else |
| 2237 | echo "$as_me:$LINENO: result: no" >&5 |
| 2238 | echo "${ECHO_T}no" >&6 |
| 2239 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2240 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2241 | test -n "$ac_ct_CC" && break |
| 2242 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2243 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2244 | CC=$ac_ct_CC |
| 2245 | fi |
| 2246 | |
| 2247 | fi |
| 2248 | |
| 2249 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2250 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2251 | See \`config.log' for more details." >&5 |
| 2252 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2253 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2254 | { (exit 1); exit 1; }; } |
| 2255 | |
| 2256 | # Provide some information about the compiler. |
| 2257 | echo "$as_me:$LINENO:" \ |
| 2258 | "checking for C compiler version" >&5 |
| 2259 | ac_compiler=`set X $ac_compile; echo $2` |
| 2260 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2261 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2262 | ac_status=$? |
| 2263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2264 | (exit $ac_status); } |
| 2265 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2266 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2267 | ac_status=$? |
| 2268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2269 | (exit $ac_status); } |
| 2270 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2271 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2272 | ac_status=$? |
| 2273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2274 | (exit $ac_status); } |
| 2275 | |
| 2276 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2277 | /* confdefs.h. */ |
| 2278 | _ACEOF |
| 2279 | cat confdefs.h >>conftest.$ac_ext |
| 2280 | cat >>conftest.$ac_ext <<_ACEOF |
| 2281 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2282 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2283 | int |
| 2284 | main () |
| 2285 | { |
| 2286 | |
| 2287 | ; |
| 2288 | return 0; |
| 2289 | } |
| 2290 | _ACEOF |
| 2291 | ac_clean_files_save=$ac_clean_files |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2292 | 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] | 2293 | # Try to create an executable without -o first, disregard a.out. |
| 2294 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2295 | # of exeext. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2296 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2297 | 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] | 2298 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2299 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2300 | (eval $ac_link_default) 2>&5 |
| 2301 | ac_status=$? |
| 2302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2303 | (exit $ac_status); }; then |
| 2304 | # Find the output, starting from the most likely. This scheme is |
| 2305 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2306 | # resort. |
| 2307 | |
| 2308 | # Be careful to initialize this variable, since it used to be cached. |
| 2309 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2310 | ac_cv_exeext= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2311 | # b.out is created by i960 compilers. |
| 2312 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 2313 | do |
| 2314 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2315 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2316 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2317 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2318 | conftest.$ac_ext ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2319 | # This is the source file. |
| 2320 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2321 | [ab].out ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2322 | # We found the default executable, but exeext='' is most |
| 2323 | # certainly right. |
| 2324 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2325 | *.* ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2326 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2327 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 2328 | # but it would be cool to find out if it's true. Does anybody |
| 2329 | # maintain Libtool? --akim. |
| 2330 | export ac_cv_exeext |
| 2331 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2332 | * ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2333 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2334 | esac |
| 2335 | done |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2336 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2337 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2338 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2339 | |
| 2340 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2341 | See \`config.log' for more details." >&5 |
| 2342 | echo "$as_me: error: C compiler cannot create executables |
| 2343 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2344 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2345 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2346 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2347 | ac_exeext=$ac_cv_exeext |
| 2348 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2349 | echo "${ECHO_T}$ac_file" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2350 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2351 | # Check the compiler produces executables we can run. If not, either |
| 2352 | # the compiler is broken, or we cross compile. |
| 2353 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2354 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2355 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2356 | # If not cross compiling, check that we can run a simple program. |
| 2357 | if test "$cross_compiling" != yes; then |
| 2358 | if { ac_try='./$ac_file' |
| 2359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2360 | (eval $ac_try) 2>&5 |
| 2361 | ac_status=$? |
| 2362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2363 | (exit $ac_status); }; }; then |
| 2364 | cross_compiling=no |
| 2365 | else |
| 2366 | if test "$cross_compiling" = maybe; then |
| 2367 | cross_compiling=yes |
| 2368 | else |
| 2369 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2370 | If you meant to cross compile, use \`--host'. |
| 2371 | See \`config.log' for more details." >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2372 | echo "$as_me: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2373 | If you meant to cross compile, use \`--host'. |
| 2374 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2375 | { (exit 1); exit 1; }; } |
| 2376 | fi |
| 2377 | fi |
| 2378 | fi |
| 2379 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2380 | echo "${ECHO_T}yes" >&6 |
| 2381 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2382 | 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] | 2383 | ac_clean_files=$ac_clean_files_save |
| 2384 | # Check the compiler produces executables we can run. If not, either |
| 2385 | # the compiler is broken, or we cross compile. |
| 2386 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2387 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2388 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2389 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2390 | |
| 2391 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2392 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2393 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2394 | (eval $ac_link) 2>&5 |
| 2395 | ac_status=$? |
| 2396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2397 | (exit $ac_status); }; then |
| 2398 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2399 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2400 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2401 | # `rm'. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2402 | for ac_file in conftest.exe conftest conftest.*; do |
| 2403 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2404 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2405 | *.$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] | 2406 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2407 | export ac_cv_exeext |
| 2408 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2409 | * ) break;; |
| 2410 | esac |
| 2411 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2412 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2413 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2414 | See \`config.log' for more details." >&5 |
| 2415 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2416 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2417 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2418 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2419 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2420 | rm -f conftest$ac_cv_exeext |
| 2421 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2422 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2423 | |
| 2424 | rm -f conftest.$ac_ext |
| 2425 | EXEEXT=$ac_cv_exeext |
| 2426 | ac_exeext=$EXEEXT |
| 2427 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2428 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2429 | if test "${ac_cv_objext+set}" = set; then |
| 2430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2431 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2432 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2433 | /* confdefs.h. */ |
| 2434 | _ACEOF |
| 2435 | cat confdefs.h >>conftest.$ac_ext |
| 2436 | cat >>conftest.$ac_ext <<_ACEOF |
| 2437 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2438 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2439 | int |
| 2440 | main () |
| 2441 | { |
| 2442 | |
| 2443 | ; |
| 2444 | return 0; |
| 2445 | } |
| 2446 | _ACEOF |
| 2447 | rm -f conftest.o conftest.obj |
| 2448 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2449 | (eval $ac_compile) 2>&5 |
| 2450 | ac_status=$? |
| 2451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2452 | (exit $ac_status); }; then |
| 2453 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2454 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2455 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2456 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2457 | break;; |
| 2458 | esac |
| 2459 | done |
| 2460 | else |
| 2461 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2462 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2463 | |
| 2464 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2465 | See \`config.log' for more details." >&5 |
| 2466 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2467 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2468 | { (exit 1); exit 1; }; } |
| 2469 | fi |
| 2470 | |
| 2471 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2472 | fi |
| 2473 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2474 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2475 | OBJEXT=$ac_cv_objext |
| 2476 | ac_objext=$OBJEXT |
| 2477 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2478 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2479 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2481 | else |
| 2482 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2483 | /* confdefs.h. */ |
| 2484 | _ACEOF |
| 2485 | cat confdefs.h >>conftest.$ac_ext |
| 2486 | cat >>conftest.$ac_ext <<_ACEOF |
| 2487 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2488 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2489 | int |
| 2490 | main () |
| 2491 | { |
| 2492 | #ifndef __GNUC__ |
| 2493 | choke me |
| 2494 | #endif |
| 2495 | |
| 2496 | ; |
| 2497 | return 0; |
| 2498 | } |
| 2499 | _ACEOF |
| 2500 | rm -f conftest.$ac_objext |
| 2501 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2502 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2503 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2504 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2505 | rm -f conftest.er1 |
| 2506 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2508 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 2509 | { ac_try='test -z "$ac_c_werror_flag" |
| 2510 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2512 | (eval $ac_try) 2>&5 |
| 2513 | ac_status=$? |
| 2514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2515 | (exit $ac_status); }; } && |
| 2516 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2518 | (eval $ac_try) 2>&5 |
| 2519 | ac_status=$? |
| 2520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2521 | (exit $ac_status); }; }; then |
| 2522 | ac_compiler_gnu=yes |
| 2523 | else |
| 2524 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2525 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2526 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2527 | ac_compiler_gnu=no |
| 2528 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2529 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2530 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2531 | |
| 2532 | fi |
| 2533 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2534 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2535 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2536 | ac_test_CFLAGS=${CFLAGS+set} |
| 2537 | ac_save_CFLAGS=$CFLAGS |
| 2538 | CFLAGS="-g" |
| 2539 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2540 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2541 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2542 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2543 | else |
| 2544 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2545 | /* confdefs.h. */ |
| 2546 | _ACEOF |
| 2547 | cat confdefs.h >>conftest.$ac_ext |
| 2548 | cat >>conftest.$ac_ext <<_ACEOF |
| 2549 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2550 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2551 | int |
| 2552 | main () |
| 2553 | { |
| 2554 | |
| 2555 | ; |
| 2556 | return 0; |
| 2557 | } |
| 2558 | _ACEOF |
| 2559 | rm -f conftest.$ac_objext |
| 2560 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2561 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2562 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2563 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2564 | rm -f conftest.er1 |
| 2565 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2567 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 2568 | { ac_try='test -z "$ac_c_werror_flag" |
| 2569 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2571 | (eval $ac_try) 2>&5 |
| 2572 | ac_status=$? |
| 2573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2574 | (exit $ac_status); }; } && |
| 2575 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2577 | (eval $ac_try) 2>&5 |
| 2578 | ac_status=$? |
| 2579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2580 | (exit $ac_status); }; }; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2581 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2582 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2583 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2584 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2585 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2586 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2587 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2588 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2589 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2590 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2591 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2592 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2593 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2594 | elif test $ac_cv_prog_cc_g = yes; then |
| 2595 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2596 | CFLAGS="-g -O2" |
| 2597 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2598 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2599 | fi |
| 2600 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2601 | if test "$GCC" = yes; then |
| 2602 | CFLAGS="-O2" |
| 2603 | else |
| 2604 | CFLAGS= |
| 2605 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2606 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2607 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2608 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2609 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2611 | else |
| 2612 | ac_cv_prog_cc_stdc=no |
| 2613 | ac_save_CC=$CC |
| 2614 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2615 | /* confdefs.h. */ |
| 2616 | _ACEOF |
| 2617 | cat confdefs.h >>conftest.$ac_ext |
| 2618 | cat >>conftest.$ac_ext <<_ACEOF |
| 2619 | /* end confdefs.h. */ |
| 2620 | #include <stdarg.h> |
| 2621 | #include <stdio.h> |
| 2622 | #include <sys/types.h> |
| 2623 | #include <sys/stat.h> |
| 2624 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2625 | struct buf { int x; }; |
| 2626 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2627 | static char *e (p, i) |
| 2628 | char **p; |
| 2629 | int i; |
| 2630 | { |
| 2631 | return p[i]; |
| 2632 | } |
| 2633 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2634 | { |
| 2635 | char *s; |
| 2636 | va_list v; |
| 2637 | va_start (v,p); |
| 2638 | s = g (p, va_arg (v,int)); |
| 2639 | va_end (v); |
| 2640 | return s; |
| 2641 | } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2642 | |
| 2643 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2644 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2645 | These don't provoke an error unfortunately, instead are silently treated |
| 2646 | as 'x'. The following induces an error, until -std1 is added to get |
| 2647 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2648 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2649 | that's true only with -std1. */ |
| 2650 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2651 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2652 | int test (int i, double x); |
| 2653 | struct s1 {int (*f) (int a);}; |
| 2654 | struct s2 {int (*f) (double a);}; |
| 2655 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2656 | int argc; |
| 2657 | char **argv; |
| 2658 | int |
| 2659 | main () |
| 2660 | { |
| 2661 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2662 | ; |
| 2663 | return 0; |
| 2664 | } |
| 2665 | _ACEOF |
| 2666 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2667 | # breaks some systems' header files. |
| 2668 | # AIX -qlanglvl=ansi |
| 2669 | # Ultrix and OSF/1 -std1 |
| 2670 | # HP-UX 10.20 and later -Ae |
| 2671 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2672 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2673 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2674 | do |
| 2675 | CC="$ac_save_CC $ac_arg" |
| 2676 | rm -f conftest.$ac_objext |
| 2677 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2678 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2679 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2680 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2681 | rm -f conftest.er1 |
| 2682 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2684 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 2685 | { ac_try='test -z "$ac_c_werror_flag" |
| 2686 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2688 | (eval $ac_try) 2>&5 |
| 2689 | ac_status=$? |
| 2690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2691 | (exit $ac_status); }; } && |
| 2692 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2694 | (eval $ac_try) 2>&5 |
| 2695 | ac_status=$? |
| 2696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2697 | (exit $ac_status); }; }; then |
| 2698 | ac_cv_prog_cc_stdc=$ac_arg |
| 2699 | break |
| 2700 | else |
| 2701 | echo "$as_me: failed program was:" >&5 |
| 2702 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2703 | |
| 2704 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2705 | rm -f conftest.err conftest.$ac_objext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2706 | done |
| 2707 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2708 | CC=$ac_save_CC |
| 2709 | |
| 2710 | fi |
| 2711 | |
| 2712 | case "x$ac_cv_prog_cc_stdc" in |
| 2713 | x|xno) |
| 2714 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2715 | echo "${ECHO_T}none needed" >&6 ;; |
| 2716 | *) |
| 2717 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2718 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2719 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2720 | esac |
| 2721 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2722 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2723 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2724 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2725 | # the declaration of exit, since it's the most demanding environment. |
| 2726 | cat >conftest.$ac_ext <<_ACEOF |
| 2727 | #ifndef __cplusplus |
| 2728 | choke me |
| 2729 | #endif |
| 2730 | _ACEOF |
| 2731 | rm -f conftest.$ac_objext |
| 2732 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2733 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2734 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2735 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2736 | rm -f conftest.er1 |
| 2737 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2739 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 2740 | { ac_try='test -z "$ac_c_werror_flag" |
| 2741 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2743 | (eval $ac_try) 2>&5 |
| 2744 | ac_status=$? |
| 2745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2746 | (exit $ac_status); }; } && |
| 2747 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2749 | (eval $ac_try) 2>&5 |
| 2750 | ac_status=$? |
| 2751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2752 | (exit $ac_status); }; }; then |
| 2753 | for ac_declaration in \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2754 | '' \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2755 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2756 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2757 | 'extern "C" void exit (int) throw ();' \ |
| 2758 | 'extern "C" void exit (int);' \ |
| 2759 | 'void exit (int);' |
| 2760 | do |
| 2761 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2762 | /* confdefs.h. */ |
| 2763 | _ACEOF |
| 2764 | cat confdefs.h >>conftest.$ac_ext |
| 2765 | cat >>conftest.$ac_ext <<_ACEOF |
| 2766 | /* end confdefs.h. */ |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 2767 | $ac_declaration |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2768 | #include <stdlib.h> |
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 | f0d5f79 | 2004-08-15 14:08:23 +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 | f0d5f79 | 2004-08-15 14:08:23 +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); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 2786 | { ac_try='test -z "$ac_c_werror_flag" |
| 2787 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 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 | : |
| 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 | continue |
| 2805 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2806 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2807 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2808 | /* confdefs.h. */ |
| 2809 | _ACEOF |
| 2810 | cat confdefs.h >>conftest.$ac_ext |
| 2811 | cat >>conftest.$ac_ext <<_ACEOF |
| 2812 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2813 | $ac_declaration |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2814 | int |
| 2815 | main () |
| 2816 | { |
| 2817 | exit (42); |
| 2818 | ; |
| 2819 | return 0; |
| 2820 | } |
| 2821 | _ACEOF |
| 2822 | rm -f conftest.$ac_objext |
| 2823 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2824 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2825 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2826 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2827 | rm -f conftest.er1 |
| 2828 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2830 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 2831 | { ac_try='test -z "$ac_c_werror_flag" |
| 2832 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2834 | (eval $ac_try) 2>&5 |
| 2835 | ac_status=$? |
| 2836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2837 | (exit $ac_status); }; } && |
| 2838 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2840 | (eval $ac_try) 2>&5 |
| 2841 | ac_status=$? |
| 2842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2843 | (exit $ac_status); }; }; then |
| 2844 | break |
| 2845 | else |
| 2846 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2847 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2848 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2849 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2850 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2851 | done |
| 2852 | rm -f conftest* |
| 2853 | if test -n "$ac_declaration"; then |
| 2854 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2855 | echo $ac_declaration >>confdefs.h |
| 2856 | echo '#endif' >>confdefs.h |
| 2857 | fi |
| 2858 | |
| 2859 | else |
| 2860 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2861 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2862 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2863 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2864 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2865 | ac_ext=c |
| 2866 | ac_cpp='$CPP $CPPFLAGS' |
| 2867 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2868 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2869 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2870 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2871 | |
| 2872 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2873 | |
| 2874 | ac_ext=c |
| 2875 | ac_cpp='$CPP $CPPFLAGS' |
| 2876 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2877 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2878 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2879 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2880 | 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] | 2881 | # On Suns, sometimes $CPP names a directory. |
| 2882 | if test -n "$CPP" && test -d "$CPP"; then |
| 2883 | CPP= |
| 2884 | fi |
| 2885 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2886 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2887 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2888 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2889 | # Double quotes because CPP needs to be expanded |
| 2890 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2891 | do |
| 2892 | ac_preproc_ok=false |
| 2893 | for ac_c_preproc_warn_flag in '' yes |
| 2894 | do |
| 2895 | # Use a header file that comes with gcc, so configuring glibc |
| 2896 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2897 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2898 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2899 | # 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] | 2900 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2901 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2902 | /* confdefs.h. */ |
| 2903 | _ACEOF |
| 2904 | cat confdefs.h >>conftest.$ac_ext |
| 2905 | cat >>conftest.$ac_ext <<_ACEOF |
| 2906 | /* end confdefs.h. */ |
| 2907 | #ifdef __STDC__ |
| 2908 | # include <limits.h> |
| 2909 | #else |
| 2910 | # include <assert.h> |
| 2911 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2912 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2913 | _ACEOF |
| 2914 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2915 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2916 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2917 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2918 | rm -f conftest.er1 |
| 2919 | cat conftest.err >&5 |
| 2920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2921 | (exit $ac_status); } >/dev/null; then |
| 2922 | if test -s conftest.err; then |
| 2923 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2924 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2925 | else |
| 2926 | ac_cpp_err= |
| 2927 | fi |
| 2928 | else |
| 2929 | ac_cpp_err=yes |
| 2930 | fi |
| 2931 | if test -z "$ac_cpp_err"; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2932 | : |
| 2933 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2934 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2935 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2936 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2937 | # Broken: fails on valid input. |
| 2938 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2939 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2940 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2941 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2942 | # OK, works on sane cases. Now check whether non-existent headers |
| 2943 | # can be detected and how. |
| 2944 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2945 | /* confdefs.h. */ |
| 2946 | _ACEOF |
| 2947 | cat confdefs.h >>conftest.$ac_ext |
| 2948 | cat >>conftest.$ac_ext <<_ACEOF |
| 2949 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2950 | #include <ac_nonexistent.h> |
| 2951 | _ACEOF |
| 2952 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2953 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2954 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2955 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2956 | rm -f conftest.er1 |
| 2957 | cat conftest.err >&5 |
| 2958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2959 | (exit $ac_status); } >/dev/null; then |
| 2960 | if test -s conftest.err; then |
| 2961 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2962 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2963 | else |
| 2964 | ac_cpp_err= |
| 2965 | fi |
| 2966 | else |
| 2967 | ac_cpp_err=yes |
| 2968 | fi |
| 2969 | if test -z "$ac_cpp_err"; then |
| 2970 | # Broken: success on invalid input. |
| 2971 | continue |
| 2972 | else |
| 2973 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2974 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2975 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2976 | # Passes both tests. |
| 2977 | ac_preproc_ok=: |
| 2978 | break |
| 2979 | fi |
| 2980 | rm -f conftest.err conftest.$ac_ext |
| 2981 | |
| 2982 | done |
| 2983 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2984 | rm -f conftest.err conftest.$ac_ext |
| 2985 | if $ac_preproc_ok; then |
| 2986 | break |
| 2987 | fi |
| 2988 | |
| 2989 | done |
| 2990 | ac_cv_prog_CPP=$CPP |
| 2991 | |
| 2992 | fi |
| 2993 | CPP=$ac_cv_prog_CPP |
| 2994 | else |
| 2995 | ac_cv_prog_CPP=$CPP |
| 2996 | fi |
| 2997 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2998 | echo "${ECHO_T}$CPP" >&6 |
| 2999 | ac_preproc_ok=false |
| 3000 | for ac_c_preproc_warn_flag in '' yes |
| 3001 | do |
| 3002 | # Use a header file that comes with gcc, so configuring glibc |
| 3003 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3004 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3005 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3006 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3007 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3008 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3009 | /* confdefs.h. */ |
| 3010 | _ACEOF |
| 3011 | cat confdefs.h >>conftest.$ac_ext |
| 3012 | cat >>conftest.$ac_ext <<_ACEOF |
| 3013 | /* end confdefs.h. */ |
| 3014 | #ifdef __STDC__ |
| 3015 | # include <limits.h> |
| 3016 | #else |
| 3017 | # include <assert.h> |
| 3018 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3019 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3020 | _ACEOF |
| 3021 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3022 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3023 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3024 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3025 | rm -f conftest.er1 |
| 3026 | cat conftest.err >&5 |
| 3027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3028 | (exit $ac_status); } >/dev/null; then |
| 3029 | if test -s conftest.err; then |
| 3030 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3031 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3032 | else |
| 3033 | ac_cpp_err= |
| 3034 | fi |
| 3035 | else |
| 3036 | ac_cpp_err=yes |
| 3037 | fi |
| 3038 | if test -z "$ac_cpp_err"; then |
| 3039 | : |
| 3040 | else |
| 3041 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3042 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3043 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3044 | # Broken: fails on valid input. |
| 3045 | continue |
| 3046 | fi |
| 3047 | rm -f conftest.err conftest.$ac_ext |
| 3048 | |
| 3049 | # OK, works on sane cases. Now check whether non-existent headers |
| 3050 | # can be detected and how. |
| 3051 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3052 | /* confdefs.h. */ |
| 3053 | _ACEOF |
| 3054 | cat confdefs.h >>conftest.$ac_ext |
| 3055 | cat >>conftest.$ac_ext <<_ACEOF |
| 3056 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3057 | #include <ac_nonexistent.h> |
| 3058 | _ACEOF |
| 3059 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3060 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3061 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3062 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3063 | rm -f conftest.er1 |
| 3064 | cat conftest.err >&5 |
| 3065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3066 | (exit $ac_status); } >/dev/null; then |
| 3067 | if test -s conftest.err; then |
| 3068 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3069 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3070 | else |
| 3071 | ac_cpp_err= |
| 3072 | fi |
| 3073 | else |
| 3074 | ac_cpp_err=yes |
| 3075 | fi |
| 3076 | if test -z "$ac_cpp_err"; then |
| 3077 | # Broken: success on invalid input. |
| 3078 | continue |
| 3079 | else |
| 3080 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3081 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3082 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3083 | # Passes both tests. |
| 3084 | ac_preproc_ok=: |
| 3085 | break |
| 3086 | fi |
| 3087 | rm -f conftest.err conftest.$ac_ext |
| 3088 | |
| 3089 | done |
| 3090 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3091 | rm -f conftest.err conftest.$ac_ext |
| 3092 | if $ac_preproc_ok; then |
| 3093 | : |
| 3094 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3095 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3096 | See \`config.log' for more details." >&5 |
| 3097 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3098 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3099 | { (exit 1); exit 1; }; } |
| 3100 | fi |
| 3101 | |
| 3102 | ac_ext=c |
| 3103 | ac_cpp='$CPP $CPPFLAGS' |
| 3104 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3105 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3106 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3107 | |
| 3108 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3109 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3110 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 3111 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 3112 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3113 | else |
| 3114 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 3115 | then ac_cv_prog_egrep='grep -E' |
| 3116 | else ac_cv_prog_egrep='egrep' |
| 3117 | fi |
| 3118 | fi |
| 3119 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 3120 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 3121 | EGREP=$ac_cv_prog_egrep |
| 3122 | |
| 3123 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3124 | |
| 3125 | echo "$as_me:$LINENO: checking for AIX" >&5 |
| 3126 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
| 3127 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3128 | /* confdefs.h. */ |
| 3129 | _ACEOF |
| 3130 | cat confdefs.h >>conftest.$ac_ext |
| 3131 | cat >>conftest.$ac_ext <<_ACEOF |
| 3132 | /* end confdefs.h. */ |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3133 | #ifdef _AIX |
| 3134 | yes |
| 3135 | #endif |
| 3136 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3137 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3138 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3139 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3140 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3141 | echo "${ECHO_T}yes" >&6 |
| 3142 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3143 | #define _ALL_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3144 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3145 | |
| 3146 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3147 | echo "$as_me:$LINENO: result: no" >&5 |
| 3148 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3149 | fi |
| 3150 | rm -f conftest* |
| 3151 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3152 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3153 | |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 3154 | # Check for unsupported systems |
| 3155 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 3156 | Linux*/1*) |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 3157 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 3158 | echo See README for details. |
| 3159 | exit 1;; |
| 3160 | esac |
| 3161 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3162 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3163 | echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 3164 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3165 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3166 | # Check whether --with-suffix or --without-suffix was given. |
| 3167 | if test "${with_suffix+set}" = set; then |
| 3168 | withval="$with_suffix" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3169 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3170 | case $withval in |
| 3171 | no) EXEEXT=;; |
| 3172 | yes) EXEEXT=.exe;; |
| 3173 | *) EXEEXT=$withval;; |
| 3174 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3175 | fi; |
| 3176 | echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 3177 | echo "${ECHO_T}$EXEEXT" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3178 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3179 | # Test whether we're running on a non-case-sensitive system, in which |
| 3180 | # case we give a warning if no ext is given |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3181 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3182 | echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 3183 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6 |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3184 | if test ! -d CaseSensitiveTestDir; then |
| 3185 | mkdir CaseSensitiveTestDir |
| 3186 | fi |
| 3187 | |
| 3188 | if test -d casesensitivetestdir |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3189 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3190 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3191 | echo "${ECHO_T}yes" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3192 | BUILDEXEEXT=.exe |
| 3193 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3194 | echo "$as_me:$LINENO: result: no" >&5 |
| 3195 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3196 | BUILDEXEEXT=$EXEEXT |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3197 | fi |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3198 | rmdir CaseSensitiveTestDir |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 3199 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 3200 | case $MACHDEP in |
| 3201 | bsdos*) |
| 3202 | case $CC in |
| 3203 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 3204 | esac;; |
| 3205 | esac |
| 3206 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3207 | case $ac_sys_system in |
| 3208 | hp*|HP*) |
| 3209 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 3210 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3211 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3212 | Monterey*) |
| 3213 | case $CC in |
| 3214 | cc) CC="$CC -Wl,-Bexport";; |
| 3215 | esac;; |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3216 | SunOS*) |
| 3217 | # 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] | 3218 | |
| 3219 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3220 | #define __EXTENSIONS__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3221 | _ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3222 | |
| 3223 | ;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3224 | esac |
| 3225 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3226 | |
| 3227 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3228 | echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 3229 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3230 | if test -z "$LIBRARY" |
| 3231 | then |
| 3232 | LIBRARY='libpython$(VERSION).a' |
| 3233 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3234 | echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 3235 | echo "${ECHO_T}$LIBRARY" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3236 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3237 | # 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] | 3238 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3239 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3240 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3241 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3242 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3243 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3244 | # DLLLIBRARY is the shared (i.e., DLL) library. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3245 | # |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3246 | # RUNSHARED is used to run shared python without installed libraries |
| 3247 | # |
| 3248 | # INSTSONAME is the name of the shared library that will be use to install |
| 3249 | # on the system - some systems like version suffix, others don't |
| 3250 | |
| 3251 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3252 | |
| 3253 | |
| 3254 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3255 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3256 | LDLIBRARY="$LIBRARY" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3257 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 09bdf72 | 2002-05-08 08:51:29 +0000 | [diff] [blame] | 3258 | INSTSONAME='$(LDLIBRARY)' |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 3259 | DLLLIBRARY='' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3260 | LDLIBRARYDIR='' |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3261 | RUNSHARED='' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3262 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3263 | # 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] | 3264 | # If CXX is set, and if it is needed to link a main function that was |
| 3265 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 3266 | # python might then depend on the C++ runtime |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3267 | # 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] | 3268 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3269 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3270 | echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 3271 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3272 | if test -z "$LINKCC" |
| 3273 | then |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 3274 | if test -z "$CXX"; then |
| 3275 | LINKCC="\$(PURIFY) \$(CC)" |
| 3276 | else |
Martin v. Löwis | 147fbe5 | 2005-08-07 21:09:30 +0000 | [diff] [blame] | 3277 | echo 'extern "C" void foo();int main(){foo();}' > conftest_a.cc |
| 3278 | $CXX -c conftest_a.cc # 2>&5 |
| 3279 | echo 'void foo(){}' > conftest_b.$ac_ext |
| 3280 | $CC -c conftest_b.$ac_ext # 2>&5 |
| 3281 | if $CC -o conftest$ac_exeext conftest_a.$ac_objext conftest_b.$ac_objext 2>&5 \ |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 3282 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 3283 | then |
| 3284 | LINKCC="\$(PURIFY) \$(CC)" |
| 3285 | else |
| 3286 | LINKCC="\$(PURIFY) \$(CXX)" |
| 3287 | fi |
| 3288 | rm -fr conftest* |
| 3289 | fi |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3290 | case $ac_sys_system in |
| 3291 | AIX*) |
Neal Norwitz | 0b27ff9 | 2003-03-31 15:53:49 +0000 | [diff] [blame] | 3292 | exp_extra="\"\"" |
| 3293 | if test $ac_sys_release -ge 5 -o \ |
| 3294 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 3295 | exp_extra="." |
| 3296 | fi |
| 3297 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3298 | Monterey64*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3299 | LINKCC="$LINKCC -L/usr/lib/ia64l64";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3300 | esac |
| 3301 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3302 | echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 3303 | echo "${ECHO_T}$LINKCC" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3304 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3305 | echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 3306 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3307 | # Check whether --enable-shared or --disable-shared was given. |
| 3308 | if test "${enable_shared+set}" = set; then |
| 3309 | enableval="$enable_shared" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3310 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3311 | fi; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3312 | |
| 3313 | if test -z "$enable_shared" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3314 | then |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3315 | case $ac_sys_system in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3316 | CYGWIN* | atheos*) |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3317 | enable_shared="yes";; |
| 3318 | *) |
| 3319 | enable_shared="no";; |
| 3320 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3321 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3322 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 3323 | echo "${ECHO_T}$enable_shared" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3324 | |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 3325 | echo "$as_me:$LINENO: checking for --enable-profiling" >&5 |
| 3326 | echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6 |
| 3327 | # Check whether --enable-profiling or --disable-profiling was given. |
| 3328 | if test "${enable_profiling+set}" = set; then |
| 3329 | enableval="$enable_profiling" |
| 3330 | ac_save_cc="$CC" |
| 3331 | CC="$CC -pg" |
| 3332 | if test "$cross_compiling" = yes; then |
| 3333 | ac_enable_profiling="no" |
| 3334 | else |
| 3335 | cat >conftest.$ac_ext <<_ACEOF |
| 3336 | /* confdefs.h. */ |
| 3337 | _ACEOF |
| 3338 | cat confdefs.h >>conftest.$ac_ext |
| 3339 | cat >>conftest.$ac_ext <<_ACEOF |
| 3340 | /* end confdefs.h. */ |
| 3341 | int main() { return 0; } |
| 3342 | _ACEOF |
| 3343 | rm -f conftest$ac_exeext |
| 3344 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3345 | (eval $ac_link) 2>&5 |
| 3346 | ac_status=$? |
| 3347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3348 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3350 | (eval $ac_try) 2>&5 |
| 3351 | ac_status=$? |
| 3352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3353 | (exit $ac_status); }; }; then |
| 3354 | ac_enable_profiling="yes" |
| 3355 | else |
| 3356 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3357 | echo "$as_me: failed program was:" >&5 |
| 3358 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3359 | |
| 3360 | ( exit $ac_status ) |
| 3361 | ac_enable_profiling="no" |
| 3362 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3363 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 3364 | fi |
| 3365 | CC="$ac_save_cc" |
| 3366 | fi; |
| 3367 | echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5 |
| 3368 | echo "${ECHO_T}$ac_enable_profiling" >&6 |
| 3369 | |
| 3370 | case "$ac_enable_profiling" in |
| 3371 | "yes") |
| 3372 | BASECFLAGS="-pg $BASECFLAGS" |
| 3373 | LDFLAGS="-pg $LDFLAGS" |
| 3374 | ;; |
| 3375 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3376 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3377 | echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 3378 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3379 | |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 3380 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 3381 | # library that we build, but we do not want to link against it (we |
| 3382 | # will find it with a -framework option). For this reason there is an |
| 3383 | # extra variable BLDLIBRARY against which Python and the extension |
| 3384 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 3385 | # LDLIBRARY, but empty for MacOSX framework builds. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3386 | if test "$enable_framework" |
| 3387 | then |
| 3388 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 66b8483 | 2003-07-04 12:14:39 +0000 | [diff] [blame] | 3389 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3390 | BLDLIBRARY='' |
| 3391 | else |
| 3392 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3393 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3394 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3395 | # Other platforms follow |
| 3396 | if test $enable_shared = "yes"; then |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 3397 | |
| 3398 | cat >>confdefs.h <<\_ACEOF |
| 3399 | #define Py_ENABLE_SHARED 1 |
| 3400 | _ACEOF |
| 3401 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3402 | case $ac_sys_system in |
| 3403 | BeOS*) |
| 3404 | LDLIBRARY='libpython$(VERSION).so' |
| 3405 | ;; |
| 3406 | CYGWIN*) |
| 3407 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3408 | DLLLIBRARY='libpython$(VERSION).dll' |
| 3409 | ;; |
| 3410 | SunOS*) |
| 3411 | LDLIBRARY='libpython$(VERSION).so' |
Martin v. Löwis | d141a8c | 2003-06-14 15:20:28 +0000 | [diff] [blame] | 3412 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3413 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 2389c41 | 2003-10-31 15:42:07 +0000 | [diff] [blame] | 3414 | INSTSONAME="$LDLIBRARY".$SOVERSION |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3415 | ;; |
Hye-Shik Chang | 3376149 | 2004-10-26 09:53:46 +0000 | [diff] [blame] | 3416 | Linux*|GNU*|NetBSD*|FreeBSD*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3417 | LDLIBRARY='libpython$(VERSION).so' |
| 3418 | BLDLIBRARY='-L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3419 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Hye-Shik Chang | 3376149 | 2004-10-26 09:53:46 +0000 | [diff] [blame] | 3420 | case $ac_sys_system in |
| 3421 | FreeBSD*) |
| 3422 | SOVERSION=`echo $SOVERSION|cut -d "." -f 1` |
| 3423 | ;; |
| 3424 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3425 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 3426 | ;; |
| 3427 | hp*|HP*) |
| 3428 | LDLIBRARY='libpython$(VERSION).sl' |
| 3429 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3430 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3431 | ;; |
| 3432 | OSF*) |
| 3433 | LDLIBRARY='libpython$(VERSION).so' |
Neal Norwitz | 671b9e3 | 2006-01-09 07:07:12 +0000 | [diff] [blame] | 3434 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3435 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3436 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3437 | atheos*) |
| 3438 | LDLIBRARY='libpython$(VERSION).so' |
| 3439 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3440 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 3441 | ;; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3442 | esac |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 3443 | else # shared is disabled |
| 3444 | case $ac_sys_system in |
| 3445 | CYGWIN*) |
| 3446 | BLDLIBRARY='$(LIBRARY)' |
| 3447 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3448 | ;; |
| 3449 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3450 | fi |
| 3451 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3452 | echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 3453 | echo "${ECHO_T}$LDLIBRARY" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3454 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3455 | if test -n "$ac_tool_prefix"; then |
| 3456 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3457 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3458 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3459 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3460 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3462 | else |
| 3463 | if test -n "$RANLIB"; then |
| 3464 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3465 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3467 | for as_dir in $PATH |
| 3468 | do |
| 3469 | IFS=$as_save_IFS |
| 3470 | test -z "$as_dir" && as_dir=. |
| 3471 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3472 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3473 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3474 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3475 | break 2 |
| 3476 | fi |
| 3477 | done |
| 3478 | done |
| 3479 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3480 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3481 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3482 | RANLIB=$ac_cv_prog_RANLIB |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3483 | if test -n "$RANLIB"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3484 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3485 | echo "${ECHO_T}$RANLIB" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3486 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3487 | echo "$as_me:$LINENO: result: no" >&5 |
| 3488 | echo "${ECHO_T}no" >&6 |
| 3489 | fi |
| 3490 | |
| 3491 | fi |
| 3492 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3493 | ac_ct_RANLIB=$RANLIB |
| 3494 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3495 | set dummy ranlib; ac_word=$2 |
| 3496 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3497 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3498 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3499 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3500 | else |
| 3501 | if test -n "$ac_ct_RANLIB"; then |
| 3502 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3503 | else |
| 3504 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3505 | for as_dir in $PATH |
| 3506 | do |
| 3507 | IFS=$as_save_IFS |
| 3508 | test -z "$as_dir" && as_dir=. |
| 3509 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3510 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3511 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3512 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3513 | break 2 |
| 3514 | fi |
| 3515 | done |
| 3516 | done |
| 3517 | |
| 3518 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3519 | fi |
| 3520 | fi |
| 3521 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3522 | if test -n "$ac_ct_RANLIB"; then |
| 3523 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3524 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3525 | else |
| 3526 | echo "$as_me:$LINENO: result: no" >&5 |
| 3527 | echo "${ECHO_T}no" >&6 |
| 3528 | fi |
| 3529 | |
| 3530 | RANLIB=$ac_ct_RANLIB |
| 3531 | else |
| 3532 | RANLIB="$ac_cv_prog_RANLIB" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3533 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3534 | |
| 3535 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3536 | for ac_prog in ar aal |
| 3537 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3538 | # 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] | 3539 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3540 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3541 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3542 | if test "${ac_cv_prog_AR+set}" = set; then |
| 3543 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3544 | else |
| 3545 | if test -n "$AR"; then |
| 3546 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 3547 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3549 | for as_dir in $PATH |
| 3550 | do |
| 3551 | IFS=$as_save_IFS |
| 3552 | test -z "$as_dir" && as_dir=. |
| 3553 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3554 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3555 | ac_cv_prog_AR="$ac_prog" |
| 3556 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3557 | break 2 |
| 3558 | fi |
| 3559 | done |
| 3560 | done |
| 3561 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3562 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3563 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3564 | AR=$ac_cv_prog_AR |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3565 | if test -n "$AR"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3566 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 3567 | echo "${ECHO_T}$AR" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3568 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3569 | echo "$as_me:$LINENO: result: no" >&5 |
| 3570 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3571 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3572 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3573 | test -n "$AR" && break |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3574 | done |
| 3575 | test -n "$AR" || AR="ar" |
| 3576 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3577 | |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 3578 | |
Martin v. Löwis | c5bf5a0 | 2006-01-05 10:33:59 +0000 | [diff] [blame] | 3579 | # Extract the first word of "svnversion", so it can be a program name with args. |
| 3580 | set dummy svnversion; ac_word=$2 |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 3581 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3582 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3583 | if test "${ac_cv_prog_SVNVERSION+set}" = set; then |
| 3584 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3585 | else |
| 3586 | if test -n "$SVNVERSION"; then |
| 3587 | ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test. |
| 3588 | else |
| 3589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3590 | for as_dir in $PATH |
| 3591 | do |
| 3592 | IFS=$as_save_IFS |
| 3593 | test -z "$as_dir" && as_dir=. |
| 3594 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3595 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Martin v. Löwis | c5bf5a0 | 2006-01-05 10:33:59 +0000 | [diff] [blame] | 3596 | ac_cv_prog_SVNVERSION="found" |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 3597 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3598 | break 2 |
| 3599 | fi |
| 3600 | done |
| 3601 | done |
| 3602 | |
| 3603 | fi |
| 3604 | fi |
| 3605 | SVNVERSION=$ac_cv_prog_SVNVERSION |
| 3606 | if test -n "$SVNVERSION"; then |
| 3607 | echo "$as_me:$LINENO: result: $SVNVERSION" >&5 |
| 3608 | echo "${ECHO_T}$SVNVERSION" >&6 |
| 3609 | else |
| 3610 | echo "$as_me:$LINENO: result: no" >&5 |
| 3611 | echo "${ECHO_T}no" >&6 |
| 3612 | fi |
| 3613 | |
Martin v. Löwis | c5bf5a0 | 2006-01-05 10:33:59 +0000 | [diff] [blame] | 3614 | if test $SVNVERSION = found |
| 3615 | then |
| 3616 | SVNVERSION="svnversion \$(srcdir)" |
| 3617 | else |
| 3618 | SVNVERSION="echo exported" |
| 3619 | fi |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 3620 | |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3621 | case $MACHDEP in |
Neil Schemenauer | af5567f | 2001-10-21 22:32:04 +0000 | [diff] [blame] | 3622 | bsdos*|hp*|HP*) |
| 3623 | # install -d does not work on BSDI or HP-UX |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3624 | if test -z "$INSTALL" |
| 3625 | then |
| 3626 | INSTALL="${srcdir}/install-sh -c" |
| 3627 | fi |
| 3628 | esac |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3629 | ac_aux_dir= |
| 3630 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 3631 | if test -f $ac_dir/install-sh; then |
| 3632 | ac_aux_dir=$ac_dir |
| 3633 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3634 | break |
| 3635 | elif test -f $ac_dir/install.sh; then |
| 3636 | ac_aux_dir=$ac_dir |
| 3637 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3638 | break |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3639 | elif test -f $ac_dir/shtool; then |
| 3640 | ac_aux_dir=$ac_dir |
| 3641 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3642 | break |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3643 | fi |
| 3644 | done |
| 3645 | if test -z "$ac_aux_dir"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3646 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 3647 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 3648 | { (exit 1); exit 1; }; } |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3649 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3650 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 3651 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 3652 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3653 | |
| 3654 | # Find a good install program. We prefer a C program (faster), |
| 3655 | # so one script is as good as another. But avoid the broken or |
| 3656 | # incompatible versions: |
| 3657 | # SysV /etc/install, /usr/sbin/install |
| 3658 | # SunOS /usr/etc/install |
| 3659 | # IRIX /sbin/install |
| 3660 | # AIX /bin/install |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3661 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3662 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3663 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3664 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3665 | # OS/2's system install, which has a completely different semantic |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3666 | # ./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] | 3667 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 3668 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3669 | if test -z "$INSTALL"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3670 | if test "${ac_cv_path_install+set}" = set; then |
| 3671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3672 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3674 | for as_dir in $PATH |
| 3675 | do |
| 3676 | IFS=$as_save_IFS |
| 3677 | test -z "$as_dir" && as_dir=. |
| 3678 | # Account for people who put trailing slashes in PATH elements. |
| 3679 | case $as_dir/ in |
| 3680 | ./ | .// | /cC/* | \ |
| 3681 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3682 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3683 | /usr/ucb/* ) ;; |
| 3684 | *) |
| 3685 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3686 | # Don't use installbsd from OSF since it installs stuff as root |
| 3687 | # by default. |
| 3688 | for ac_prog in ginstall scoinst install; do |
| 3689 | for ac_exec_ext in '' $ac_executable_extensions; do |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3690 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3691 | if test $ac_prog = install && |
| 3692 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3693 | # AIX install. It has an incompatible calling convention. |
| 3694 | : |
| 3695 | elif test $ac_prog = install && |
| 3696 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3697 | # program-specific install script used by HP pwplus--don't use. |
| 3698 | : |
| 3699 | else |
| 3700 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3701 | break 3 |
| 3702 | fi |
| 3703 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3704 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3705 | done |
| 3706 | ;; |
| 3707 | esac |
| 3708 | done |
| 3709 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3710 | |
| 3711 | fi |
| 3712 | if test "${ac_cv_path_install+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3713 | INSTALL=$ac_cv_path_install |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3714 | else |
| 3715 | # As a last resort, use the slow shell script. We don't cache a |
| 3716 | # path for INSTALL within a source directory, because that will |
| 3717 | # break other packages using the cache if that directory is |
| 3718 | # removed, or if the path is relative. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3719 | INSTALL=$ac_install_sh |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3720 | fi |
| 3721 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3722 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 3723 | echo "${ECHO_T}$INSTALL" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3724 | |
| 3725 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3726 | # It thinks the first close brace ends the variable substitution. |
| 3727 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3728 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3729 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3730 | |
| 3731 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3732 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3733 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3734 | # Not every filesystem supports hard links |
| 3735 | |
| 3736 | if test -z "$LN" ; then |
| 3737 | case $ac_sys_system in |
| 3738 | BeOS*) LN="ln -s";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3739 | CYGWIN*) LN="ln -s";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3740 | atheos*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3741 | *) LN=ln;; |
| 3742 | esac |
| 3743 | fi |
| 3744 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3745 | # Check for --with-pydebug |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3746 | echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 3747 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6 |
| 3748 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3749 | # Check whether --with-pydebug or --without-pydebug was given. |
| 3750 | if test "${with_pydebug+set}" = set; then |
| 3751 | withval="$with_pydebug" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3752 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3753 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3754 | then |
| 3755 | |
| 3756 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3757 | #define Py_DEBUG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3758 | _ACEOF |
| 3759 | |
| 3760 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3761 | echo "${ECHO_T}yes" >&6; |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 3762 | Py_DEBUG='true' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3763 | else echo "$as_me:$LINENO: result: no" >&5 |
| 3764 | echo "${ECHO_T}no" >&6; Py_DEBUG='false' |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3765 | fi |
| 3766 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3767 | echo "$as_me:$LINENO: result: no" >&5 |
| 3768 | echo "${ECHO_T}no" >&6 |
| 3769 | fi; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3770 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3771 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 3772 | # merged with this chunk of code? |
| 3773 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3774 | # Optimizer/debugger flags |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3775 | # ------------------------ |
| 3776 | # (The following bit of code is complicated enough - please keep things |
| 3777 | # indented properly. Just pretend you're editing Python code. ;-) |
| 3778 | |
| 3779 | # There are two parallel sets of case statements below, one that checks to |
| 3780 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 3781 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 3782 | # user set OPT. |
| 3783 | |
| 3784 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 3785 | # it on the command line |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3786 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3787 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3788 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3789 | case $GCC in |
| 3790 | yes) |
| 3791 | case $ac_cv_prog_cc_g in |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3792 | yes) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3793 | if test "$Py_DEBUG" = 'true' ; then |
| 3794 | # Optimization messes up debuggers, so turn it off for |
| 3795 | # debug builds. |
| 3796 | OPT="-g -Wall -Wstrict-prototypes" |
| 3797 | else |
| 3798 | OPT="-g -O3 -Wall -Wstrict-prototypes" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3799 | fi |
| 3800 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3801 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3802 | OPT="-O3 -Wall -Wstrict-prototypes" |
| 3803 | ;; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3804 | esac |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3805 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3806 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 3807 | ;; |
| 3808 | esac |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3809 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3810 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3811 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3812 | OPT="-O" |
| 3813 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3814 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3815 | |
| 3816 | # The current (beta) Monterey compiler dies with optimizations |
| 3817 | # 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] | 3818 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3819 | Monterey*) |
| 3820 | OPT="" |
| 3821 | ;; |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3822 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3823 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3824 | fi |
| 3825 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3826 | |
| 3827 | # tweak BASECFLAGS based on compiler and platform |
| 3828 | case $GCC in |
| 3829 | yes) |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3830 | # Python violates C99 rules, by casting between incompatible |
| 3831 | # pointer types. GCC may generate bad code as a result of that, |
| 3832 | # so use -fno-strict-aliasing if supported. |
| 3833 | echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5 |
| 3834 | echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6 |
| 3835 | ac_save_cc="$CC" |
| 3836 | CC="$CC -fno-strict-aliasing" |
| 3837 | if test "$cross_compiling" = yes; then |
| 3838 | ac_cv_no_strict_aliasing_ok=no |
| 3839 | else |
| 3840 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3841 | /* confdefs.h. */ |
| 3842 | _ACEOF |
| 3843 | cat confdefs.h >>conftest.$ac_ext |
| 3844 | cat >>conftest.$ac_ext <<_ACEOF |
| 3845 | /* end confdefs.h. */ |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3846 | int main() { return 0; } |
| 3847 | _ACEOF |
| 3848 | rm -f conftest$ac_exeext |
| 3849 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3850 | (eval $ac_link) 2>&5 |
| 3851 | ac_status=$? |
| 3852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3853 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3855 | (eval $ac_try) 2>&5 |
| 3856 | ac_status=$? |
| 3857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3858 | (exit $ac_status); }; }; then |
| 3859 | ac_cv_no_strict_aliasing_ok=yes |
| 3860 | else |
| 3861 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3862 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3863 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3864 | |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3865 | ( exit $ac_status ) |
| 3866 | ac_cv_no_strict_aliasing_ok=no |
| 3867 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3868 | 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] | 3869 | fi |
| 3870 | CC="$ac_save_cc" |
| 3871 | echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5 |
| 3872 | echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6 |
| 3873 | if test $ac_cv_no_strict_aliasing_ok = yes |
| 3874 | then |
| 3875 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 3876 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3877 | case $ac_sys_system in |
| 3878 | SCO_SV*) |
| 3879 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 3880 | ;; |
| 3881 | # is there any other compiler on Darwin besides gcc? |
| 3882 | Darwin*) |
Jack Jansen | e004041 | 2003-07-23 22:17:28 +0000 | [diff] [blame] | 3883 | BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3884 | ;; |
| 3885 | esac |
| 3886 | ;; |
| 3887 | |
| 3888 | *) |
| 3889 | case $ac_sys_system in |
| 3890 | OpenUNIX*|UnixWare*) |
| 3891 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 3892 | ;; |
Neal Norwitz | b44f165 | 2003-05-26 14:11:55 +0000 | [diff] [blame] | 3893 | OSF*) |
| 3894 | BASECFLAGS="$BASECFLAGS -ieee -std" |
| 3895 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3896 | SCO_SV*) |
| 3897 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 3898 | ;; |
| 3899 | esac |
| 3900 | ;; |
| 3901 | esac |
| 3902 | |
Fred Drake | e1ceaa0 | 2001-12-04 20:55:47 +0000 | [diff] [blame] | 3903 | if test "$Py_DEBUG" = 'true'; then |
| 3904 | : |
| 3905 | else |
| 3906 | OPT="-DNDEBUG $OPT" |
| 3907 | fi |
| 3908 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3909 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3910 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3911 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3912 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3913 | |
Neal Norwitz | 020c46a | 2006-01-07 21:39:28 +0000 | [diff] [blame] | 3914 | # disable check for icc since it seems to pass, but generates a warning |
| 3915 | if test "$CC" = icc |
| 3916 | then |
| 3917 | ac_cv_opt_olimit_ok=no |
| 3918 | fi |
| 3919 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3920 | echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 3921 | echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6 |
| 3922 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
| 3923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3924 | else |
| 3925 | ac_save_cc="$CC" |
| 3926 | CC="$CC -OPT:Olimit=0" |
| 3927 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3928 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3929 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3930 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3931 | /* confdefs.h. */ |
| 3932 | _ACEOF |
| 3933 | cat confdefs.h >>conftest.$ac_ext |
| 3934 | cat >>conftest.$ac_ext <<_ACEOF |
| 3935 | /* end confdefs.h. */ |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3936 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3937 | _ACEOF |
| 3938 | rm -f conftest$ac_exeext |
| 3939 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3940 | (eval $ac_link) 2>&5 |
| 3941 | ac_status=$? |
| 3942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3943 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3945 | (eval $ac_try) 2>&5 |
| 3946 | ac_status=$? |
| 3947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3948 | (exit $ac_status); }; }; then |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3949 | ac_cv_opt_olimit_ok=yes |
| 3950 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3951 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3952 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3953 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3954 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3955 | ( exit $ac_status ) |
| 3956 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3957 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3958 | 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] | 3959 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3960 | CC="$ac_save_cc" |
| 3961 | fi |
| 3962 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3963 | echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 3964 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 3965 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3966 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3967 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 3968 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 3969 | # environment? |
| 3970 | Darwin*) |
| 3971 | ;; |
| 3972 | *) |
| 3973 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 3974 | ;; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3975 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3976 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3977 | echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 3978 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6 |
| 3979 | if test "${ac_cv_olimit_ok+set}" = set; then |
| 3980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3981 | else |
| 3982 | ac_save_cc="$CC" |
| 3983 | CC="$CC -Olimit 1500" |
| 3984 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3985 | ac_cv_olimit_ok=no |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3986 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3987 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3988 | /* confdefs.h. */ |
| 3989 | _ACEOF |
| 3990 | cat confdefs.h >>conftest.$ac_ext |
| 3991 | cat >>conftest.$ac_ext <<_ACEOF |
| 3992 | /* end confdefs.h. */ |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3993 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3994 | _ACEOF |
| 3995 | rm -f conftest$ac_exeext |
| 3996 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3997 | (eval $ac_link) 2>&5 |
| 3998 | ac_status=$? |
| 3999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4000 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4002 | (eval $ac_try) 2>&5 |
| 4003 | ac_status=$? |
| 4004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4005 | (exit $ac_status); }; }; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4006 | ac_cv_olimit_ok=yes |
| 4007 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4008 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4009 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4010 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4011 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4012 | ( exit $ac_status ) |
| 4013 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 4014 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4015 | 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] | 4016 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4017 | CC="$ac_save_cc" |
| 4018 | fi |
| 4019 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4020 | echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 4021 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4022 | if test $ac_cv_olimit_ok = yes; then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4023 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4024 | fi |
| 4025 | fi |
| 4026 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4027 | # On some compilers, pthreads are available without further options |
| 4028 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 4029 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 4030 | # So we have to see first whether pthreads are available without |
| 4031 | # options before we can check whether -Kpthread improves anything. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4032 | echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 4033 | echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6 |
| 4034 | if test "${ac_cv_pthread_is_default+set}" = set; then |
| 4035 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4036 | else |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4037 | if test "$cross_compiling" = yes; then |
| 4038 | ac_cv_pthread_is_default=no |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4039 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4040 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4041 | /* confdefs.h. */ |
| 4042 | _ACEOF |
| 4043 | cat confdefs.h >>conftest.$ac_ext |
| 4044 | cat >>conftest.$ac_ext <<_ACEOF |
| 4045 | /* end confdefs.h. */ |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4046 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4047 | #include <pthread.h> |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4048 | |
| 4049 | void* routine(void* p){return NULL;} |
| 4050 | |
| 4051 | int main(){ |
| 4052 | pthread_t p; |
| 4053 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4054 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 4055 | (void)pthread_detach(p); |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4056 | return 0; |
| 4057 | } |
| 4058 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4059 | _ACEOF |
| 4060 | rm -f conftest$ac_exeext |
| 4061 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4062 | (eval $ac_link) 2>&5 |
| 4063 | ac_status=$? |
| 4064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4065 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4067 | (eval $ac_try) 2>&5 |
| 4068 | ac_status=$? |
| 4069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4070 | (exit $ac_status); }; }; then |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4071 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4072 | ac_cv_pthread_is_default=yes |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4073 | ac_cv_kthread=no |
| 4074 | ac_cv_pthread=no |
| 4075 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4076 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4077 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4078 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4079 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4080 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4081 | ( exit $ac_status ) |
| 4082 | ac_cv_pthread_is_default=no |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4083 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4084 | 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] | 4085 | fi |
| 4086 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4087 | fi |
| 4088 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4089 | echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 4090 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4091 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4092 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4093 | if test $ac_cv_pthread_is_default = yes |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4094 | then |
| 4095 | ac_cv_kpthread=no |
| 4096 | else |
| 4097 | # -Kpthread, if available, provides the right #defines |
| 4098 | # and linker options to make pthread_create available |
| 4099 | # Some compilers won't report that they do not support -Kpthread, |
| 4100 | # so we need to run a program to see whether it really made the |
| 4101 | # function available. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4102 | echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 4103 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6 |
| 4104 | if test "${ac_cv_kpthread+set}" = set; then |
| 4105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4106 | else |
| 4107 | ac_save_cc="$CC" |
| 4108 | CC="$CC -Kpthread" |
| 4109 | if test "$cross_compiling" = yes; then |
| 4110 | ac_cv_kpthread=no |
| 4111 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4112 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4113 | /* confdefs.h. */ |
| 4114 | _ACEOF |
| 4115 | cat confdefs.h >>conftest.$ac_ext |
| 4116 | cat >>conftest.$ac_ext <<_ACEOF |
| 4117 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4118 | |
| 4119 | #include <pthread.h> |
| 4120 | |
| 4121 | void* routine(void* p){return NULL;} |
| 4122 | |
| 4123 | int main(){ |
| 4124 | pthread_t p; |
| 4125 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4126 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 4127 | (void)pthread_detach(p); |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4128 | return 0; |
| 4129 | } |
| 4130 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4131 | _ACEOF |
| 4132 | rm -f conftest$ac_exeext |
| 4133 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4134 | (eval $ac_link) 2>&5 |
| 4135 | ac_status=$? |
| 4136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4137 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4139 | (eval $ac_try) 2>&5 |
| 4140 | ac_status=$? |
| 4141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4142 | (exit $ac_status); }; }; then |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4143 | ac_cv_kpthread=yes |
| 4144 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4145 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4146 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4147 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4148 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4149 | ( exit $ac_status ) |
| 4150 | ac_cv_kpthread=no |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4151 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4152 | 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] | 4153 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4154 | CC="$ac_save_cc" |
| 4155 | fi |
| 4156 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4157 | echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 4158 | echo "${ECHO_T}$ac_cv_kpthread" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4159 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4160 | |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4161 | 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] | 4162 | then |
| 4163 | # -Kthread, if available, provides the right #defines |
| 4164 | # and linker options to make pthread_create available |
| 4165 | # Some compilers won't report that they do not support -Kthread, |
| 4166 | # so we need to run a program to see whether it really made the |
| 4167 | # function available. |
| 4168 | echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5 |
| 4169 | echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6 |
| 4170 | if test "${ac_cv_kthread+set}" = set; then |
| 4171 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4172 | else |
| 4173 | ac_save_cc="$CC" |
| 4174 | CC="$CC -Kthread" |
| 4175 | if test "$cross_compiling" = yes; then |
| 4176 | ac_cv_kthread=no |
| 4177 | else |
| 4178 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4179 | /* confdefs.h. */ |
| 4180 | _ACEOF |
| 4181 | cat confdefs.h >>conftest.$ac_ext |
| 4182 | cat >>conftest.$ac_ext <<_ACEOF |
| 4183 | /* end confdefs.h. */ |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4184 | |
| 4185 | #include <pthread.h> |
| 4186 | |
| 4187 | void* routine(void* p){return NULL;} |
| 4188 | |
| 4189 | int main(){ |
| 4190 | pthread_t p; |
| 4191 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4192 | return 1; |
| 4193 | (void)pthread_detach(p); |
| 4194 | return 0; |
| 4195 | } |
| 4196 | |
| 4197 | _ACEOF |
| 4198 | rm -f conftest$ac_exeext |
| 4199 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4200 | (eval $ac_link) 2>&5 |
| 4201 | ac_status=$? |
| 4202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4203 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4205 | (eval $ac_try) 2>&5 |
| 4206 | ac_status=$? |
| 4207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4208 | (exit $ac_status); }; }; then |
| 4209 | ac_cv_kthread=yes |
| 4210 | else |
| 4211 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4212 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4213 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4214 | |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4215 | ( exit $ac_status ) |
| 4216 | ac_cv_kthread=no |
| 4217 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4218 | 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] | 4219 | fi |
| 4220 | CC="$ac_save_cc" |
| 4221 | fi |
| 4222 | |
| 4223 | echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5 |
| 4224 | echo "${ECHO_T}$ac_cv_kthread" >&6 |
| 4225 | fi |
| 4226 | |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4227 | 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] | 4228 | then |
| 4229 | # -pthread, if available, provides the right #defines |
| 4230 | # and linker options to make pthread_create available |
| 4231 | # Some compilers won't report that they do not support -pthread, |
| 4232 | # so we need to run a program to see whether it really made the |
| 4233 | # function available. |
| 4234 | echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5 |
| 4235 | echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6 |
| 4236 | if test "${ac_cv_thread+set}" = set; then |
| 4237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4238 | else |
| 4239 | ac_save_cc="$CC" |
| 4240 | CC="$CC -pthread" |
| 4241 | if test "$cross_compiling" = yes; then |
| 4242 | ac_cv_pthread=no |
| 4243 | else |
| 4244 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4245 | /* confdefs.h. */ |
| 4246 | _ACEOF |
| 4247 | cat confdefs.h >>conftest.$ac_ext |
| 4248 | cat >>conftest.$ac_ext <<_ACEOF |
| 4249 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 4250 | |
| 4251 | #include <pthread.h> |
| 4252 | |
| 4253 | void* routine(void* p){return NULL;} |
| 4254 | |
| 4255 | int main(){ |
| 4256 | pthread_t p; |
| 4257 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4258 | return 1; |
| 4259 | (void)pthread_detach(p); |
| 4260 | return 0; |
| 4261 | } |
| 4262 | |
| 4263 | _ACEOF |
| 4264 | rm -f conftest$ac_exeext |
| 4265 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4266 | (eval $ac_link) 2>&5 |
| 4267 | ac_status=$? |
| 4268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4269 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 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); }; }; then |
| 4275 | ac_cv_pthread=yes |
| 4276 | else |
| 4277 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4278 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4279 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4280 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 4281 | ( exit $ac_status ) |
| 4282 | ac_cv_pthread=no |
| 4283 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4284 | 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] | 4285 | fi |
| 4286 | CC="$ac_save_cc" |
| 4287 | fi |
| 4288 | |
| 4289 | echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5 |
| 4290 | echo "${ECHO_T}$ac_cv_pthread" >&6 |
| 4291 | fi |
| 4292 | |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4293 | # If we have set a CC compiler flag for thread support then |
| 4294 | # check if it works for CXX, too. |
| 4295 | ac_cv_cxx_thread=no |
| 4296 | if test ! -z "$CXX" |
| 4297 | then |
| 4298 | echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5 |
| 4299 | echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6 |
| 4300 | ac_save_cxx="$CXX" |
| 4301 | |
| 4302 | if test "$ac_cv_kpthread" = "yes" |
| 4303 | then |
| 4304 | CXX="$CXX -Kpthread" |
| 4305 | ac_cv_cxx_thread=yes |
| 4306 | elif test "$ac_cv_kthread" = "yes" |
| 4307 | then |
| 4308 | CXX="$CXX -Kthread" |
| 4309 | ac_cv_cxx_thread=yes |
| 4310 | elif test "$ac_cv_pthread" = "yes" |
| 4311 | then |
| 4312 | CXX="$CXX -pthread" |
| 4313 | ac_cv_cxx_thread=yes |
| 4314 | fi |
| 4315 | |
| 4316 | if test $ac_cv_cxx_thread = yes |
| 4317 | then |
| 4318 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 4319 | $CXX -c conftest.$ac_ext 2>&5 |
| 4320 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 4321 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 4322 | then |
| 4323 | ac_cv_cxx_thread=yes |
| 4324 | else |
| 4325 | ac_cv_cxx_thread=no |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4326 | fi |
| 4327 | rm -fr conftest* |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4328 | fi |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4329 | echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5 |
| 4330 | echo "${ECHO_T}$ac_cv_cxx_thread" >&6 |
Brett Cannon | c601e0f | 2004-11-07 01:24:12 +0000 | [diff] [blame] | 4331 | fi |
| 4332 | CXX="$ac_save_cxx" |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4333 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4334 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4335 | # checks for header files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4336 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4337 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 4338 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4339 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4340 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4341 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4342 | /* confdefs.h. */ |
| 4343 | _ACEOF |
| 4344 | cat confdefs.h >>conftest.$ac_ext |
| 4345 | cat >>conftest.$ac_ext <<_ACEOF |
| 4346 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4347 | #include <stdlib.h> |
| 4348 | #include <stdarg.h> |
| 4349 | #include <string.h> |
| 4350 | #include <float.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4351 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4352 | int |
| 4353 | main () |
| 4354 | { |
| 4355 | |
| 4356 | ; |
| 4357 | return 0; |
| 4358 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4359 | _ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4360 | rm -f conftest.$ac_objext |
| 4361 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4362 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4363 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4364 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4365 | rm -f conftest.er1 |
| 4366 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4368 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 4369 | { ac_try='test -z "$ac_c_werror_flag" |
| 4370 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4372 | (eval $ac_try) 2>&5 |
| 4373 | ac_status=$? |
| 4374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4375 | (exit $ac_status); }; } && |
| 4376 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4378 | (eval $ac_try) 2>&5 |
| 4379 | ac_status=$? |
| 4380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4381 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4382 | ac_cv_header_stdc=yes |
| 4383 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4384 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4385 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4386 | |
| 4387 | ac_cv_header_stdc=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4388 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4389 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4390 | |
| 4391 | if test $ac_cv_header_stdc = yes; then |
| 4392 | # 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] | 4393 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4394 | /* confdefs.h. */ |
| 4395 | _ACEOF |
| 4396 | cat confdefs.h >>conftest.$ac_ext |
| 4397 | cat >>conftest.$ac_ext <<_ACEOF |
| 4398 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4399 | #include <string.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4400 | |
| 4401 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4402 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4403 | $EGREP "memchr" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4404 | : |
| 4405 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4406 | ac_cv_header_stdc=no |
| 4407 | fi |
| 4408 | rm -f conftest* |
| 4409 | |
| 4410 | fi |
| 4411 | |
| 4412 | if test $ac_cv_header_stdc = yes; then |
| 4413 | # 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] | 4414 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4415 | /* confdefs.h. */ |
| 4416 | _ACEOF |
| 4417 | cat confdefs.h >>conftest.$ac_ext |
| 4418 | cat >>conftest.$ac_ext <<_ACEOF |
| 4419 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4420 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4421 | |
| 4422 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4423 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4424 | $EGREP "free" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4425 | : |
| 4426 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4427 | ac_cv_header_stdc=no |
| 4428 | fi |
| 4429 | rm -f conftest* |
| 4430 | |
| 4431 | fi |
| 4432 | |
| 4433 | if test $ac_cv_header_stdc = yes; then |
| 4434 | # /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] | 4435 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4436 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4437 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4438 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4439 | /* confdefs.h. */ |
| 4440 | _ACEOF |
| 4441 | cat confdefs.h >>conftest.$ac_ext |
| 4442 | cat >>conftest.$ac_ext <<_ACEOF |
| 4443 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4444 | #include <ctype.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4445 | #if ((' ' & 0x0FF) == 0x020) |
| 4446 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4447 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4448 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4449 | # define ISLOWER(c) \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4450 | (('a' <= (c) && (c) <= 'i') \ |
| 4451 | || ('j' <= (c) && (c) <= 'r') \ |
| 4452 | || ('s' <= (c) && (c) <= 'z')) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4453 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4454 | #endif |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4455 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4456 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4457 | int |
| 4458 | main () |
| 4459 | { |
| 4460 | int i; |
| 4461 | for (i = 0; i < 256; i++) |
| 4462 | if (XOR (islower (i), ISLOWER (i)) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4463 | || toupper (i) != TOUPPER (i)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4464 | exit(2); |
| 4465 | exit (0); |
| 4466 | } |
| 4467 | _ACEOF |
| 4468 | rm -f conftest$ac_exeext |
| 4469 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4470 | (eval $ac_link) 2>&5 |
| 4471 | ac_status=$? |
| 4472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4473 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4475 | (eval $ac_try) 2>&5 |
| 4476 | ac_status=$? |
| 4477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4478 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4479 | : |
| 4480 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4481 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4482 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4483 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4484 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4485 | ( exit $ac_status ) |
| 4486 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4487 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4488 | 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] | 4489 | fi |
| 4490 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4491 | fi |
| 4492 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4493 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4494 | if test $ac_cv_header_stdc = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4495 | |
| 4496 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4497 | #define STDC_HEADERS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4498 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4499 | |
| 4500 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4501 | |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4502 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4503 | |
| 4504 | |
| 4505 | |
| 4506 | |
| 4507 | |
| 4508 | |
| 4509 | |
| 4510 | |
| 4511 | |
| 4512 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4513 | inttypes.h stdint.h unistd.h |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4514 | do |
| 4515 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4516 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4517 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4518 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4520 | else |
| 4521 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4522 | /* confdefs.h. */ |
| 4523 | _ACEOF |
| 4524 | cat confdefs.h >>conftest.$ac_ext |
| 4525 | cat >>conftest.$ac_ext <<_ACEOF |
| 4526 | /* end confdefs.h. */ |
| 4527 | $ac_includes_default |
| 4528 | |
| 4529 | #include <$ac_header> |
| 4530 | _ACEOF |
| 4531 | rm -f conftest.$ac_objext |
| 4532 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4533 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4534 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4535 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4536 | rm -f conftest.er1 |
| 4537 | cat conftest.err >&5 |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4539 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 4540 | { ac_try='test -z "$ac_c_werror_flag" |
| 4541 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4543 | (eval $ac_try) 2>&5 |
| 4544 | ac_status=$? |
| 4545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4546 | (exit $ac_status); }; } && |
| 4547 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4549 | (eval $ac_try) 2>&5 |
| 4550 | ac_status=$? |
| 4551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4552 | (exit $ac_status); }; }; then |
| 4553 | eval "$as_ac_Header=yes" |
| 4554 | else |
| 4555 | echo "$as_me: failed program was:" >&5 |
| 4556 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4557 | |
| 4558 | eval "$as_ac_Header=no" |
| 4559 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4560 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4561 | fi |
| 4562 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4563 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4564 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4565 | cat >>confdefs.h <<_ACEOF |
| 4566 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4567 | _ACEOF |
| 4568 | |
| 4569 | fi |
| 4570 | |
| 4571 | done |
| 4572 | |
| 4573 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4574 | |
| 4575 | |
| 4576 | |
| 4577 | |
| 4578 | |
| 4579 | |
| 4580 | |
| 4581 | |
| 4582 | |
| 4583 | |
| 4584 | |
| 4585 | |
| 4586 | |
| 4587 | |
| 4588 | |
| 4589 | |
| 4590 | |
| 4591 | |
| 4592 | |
| 4593 | |
| 4594 | |
| 4595 | |
| 4596 | |
| 4597 | |
| 4598 | |
| 4599 | |
| 4600 | |
| 4601 | |
| 4602 | |
| 4603 | |
| 4604 | |
| 4605 | |
| 4606 | |
| 4607 | |
| 4608 | |
| 4609 | |
Anthony Baxter | 8a560de | 2004-10-13 15:30:56 +0000 | [diff] [blame] | 4610 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 4611 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame^] | 4612 | |
| 4613 | for ac_header in asm/types.h curses.h dlfcn.h fcntl.h grp.h \ |
| 4614 | shadow.h langinfo.h libintl.h ncurses.h poll.h pthread.h \ |
Skip Montanaro | 7befb99 | 2004-02-10 16:50:21 +0000 | [diff] [blame] | 4615 | stropts.h termios.h thread.h \ |
Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 4616 | unistd.h utime.h \ |
Anthony Baxter | 8a560de | 2004-10-13 15:30:56 +0000 | [diff] [blame] | 4617 | sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \ |
| 4618 | sys/modem.h \ |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4619 | sys/param.h sys/poll.h sys/select.h sys/socket.h sys/time.h sys/times.h \ |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 4620 | sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \ |
Hye-Shik Chang | 8126860 | 2004-02-02 06:05:24 +0000 | [diff] [blame] | 4621 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
| 4622 | bluetooth/bluetooth.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4623 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4624 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4625 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4626 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4627 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4628 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4630 | fi |
| 4631 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4632 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4633 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4634 | # Is the header compilable? |
| 4635 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 4636 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 4637 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4638 | /* confdefs.h. */ |
| 4639 | _ACEOF |
| 4640 | cat confdefs.h >>conftest.$ac_ext |
| 4641 | cat >>conftest.$ac_ext <<_ACEOF |
| 4642 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4643 | $ac_includes_default |
| 4644 | #include <$ac_header> |
| 4645 | _ACEOF |
| 4646 | rm -f conftest.$ac_objext |
| 4647 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4648 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4649 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4650 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4651 | rm -f conftest.er1 |
| 4652 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4654 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 4655 | { ac_try='test -z "$ac_c_werror_flag" |
| 4656 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4658 | (eval $ac_try) 2>&5 |
| 4659 | ac_status=$? |
| 4660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4661 | (exit $ac_status); }; } && |
| 4662 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4664 | (eval $ac_try) 2>&5 |
| 4665 | ac_status=$? |
| 4666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4667 | (exit $ac_status); }; }; then |
| 4668 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4669 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4670 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4671 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4672 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4673 | ac_header_compiler=no |
| 4674 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4675 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4676 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4677 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4678 | |
| 4679 | # Is the header present? |
| 4680 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4681 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4682 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4683 | /* confdefs.h. */ |
| 4684 | _ACEOF |
| 4685 | cat confdefs.h >>conftest.$ac_ext |
| 4686 | cat >>conftest.$ac_ext <<_ACEOF |
| 4687 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4688 | #include <$ac_header> |
| 4689 | _ACEOF |
| 4690 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4691 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4692 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4693 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4694 | rm -f conftest.er1 |
| 4695 | cat conftest.err >&5 |
| 4696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4697 | (exit $ac_status); } >/dev/null; then |
| 4698 | if test -s conftest.err; then |
| 4699 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4700 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4701 | else |
| 4702 | ac_cpp_err= |
| 4703 | fi |
| 4704 | else |
| 4705 | ac_cpp_err=yes |
| 4706 | fi |
| 4707 | if test -z "$ac_cpp_err"; then |
| 4708 | ac_header_preproc=yes |
| 4709 | else |
| 4710 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4711 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4712 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4713 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4714 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4715 | rm -f conftest.err conftest.$ac_ext |
| 4716 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4717 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4718 | |
| 4719 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4720 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4721 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4722 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4723 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4724 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 4725 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 4726 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 4727 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4728 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 4729 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4730 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4731 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4732 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4733 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 4734 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 4735 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 4736 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 4737 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4738 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4739 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 4740 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 4741 | ( |
| 4742 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 4743 | ## ------------------------------------------------ ## |
| 4744 | ## Report this to http://www.python.org/python-bugs ## |
| 4745 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4746 | _ASBOX |
| 4747 | ) | |
| 4748 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4749 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4750 | esac |
| 4751 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4752 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4753 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4755 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4756 | eval "$as_ac_Header=\$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4757 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4758 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4759 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4760 | |
| 4761 | fi |
| 4762 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4763 | cat >>confdefs.h <<_ACEOF |
| 4764 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4765 | _ACEOF |
| 4766 | |
| 4767 | fi |
| 4768 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4769 | done |
| 4770 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4771 | |
| 4772 | |
| 4773 | |
| 4774 | |
| 4775 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4776 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4777 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 4778 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 4779 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 4780 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 4781 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4783 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4784 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4785 | /* confdefs.h. */ |
| 4786 | _ACEOF |
| 4787 | cat confdefs.h >>conftest.$ac_ext |
| 4788 | cat >>conftest.$ac_ext <<_ACEOF |
| 4789 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4790 | #include <sys/types.h> |
| 4791 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4792 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4793 | int |
| 4794 | main () |
| 4795 | { |
| 4796 | if ((DIR *) 0) |
| 4797 | return 0; |
| 4798 | ; |
| 4799 | return 0; |
| 4800 | } |
| 4801 | _ACEOF |
| 4802 | rm -f conftest.$ac_objext |
| 4803 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4804 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4805 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4806 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4807 | rm -f conftest.er1 |
| 4808 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4810 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 4811 | { ac_try='test -z "$ac_c_werror_flag" |
| 4812 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4814 | (eval $ac_try) 2>&5 |
| 4815 | ac_status=$? |
| 4816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4817 | (exit $ac_status); }; } && |
| 4818 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4820 | (eval $ac_try) 2>&5 |
| 4821 | ac_status=$? |
| 4822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4823 | (exit $ac_status); }; }; then |
| 4824 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4825 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4826 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4827 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4828 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4829 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4830 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4831 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4832 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4833 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4834 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4835 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4836 | cat >>confdefs.h <<_ACEOF |
| 4837 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 4838 | _ACEOF |
| 4839 | |
| 4840 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4841 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4842 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4843 | done |
| 4844 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 4845 | if test $ac_header_dirent = dirent.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4846 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4847 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4848 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4849 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4850 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4851 | ac_func_search_save_LIBS=$LIBS |
| 4852 | ac_cv_search_opendir=no |
| 4853 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4854 | /* confdefs.h. */ |
| 4855 | _ACEOF |
| 4856 | cat confdefs.h >>conftest.$ac_ext |
| 4857 | cat >>conftest.$ac_ext <<_ACEOF |
| 4858 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4859 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4860 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4861 | #ifdef __cplusplus |
| 4862 | extern "C" |
| 4863 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4864 | /* 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] | 4865 | builtin and then its argument prototype would still apply. */ |
| 4866 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4867 | int |
| 4868 | main () |
| 4869 | { |
| 4870 | opendir (); |
| 4871 | ; |
| 4872 | return 0; |
| 4873 | } |
| 4874 | _ACEOF |
| 4875 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4876 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4877 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4878 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4879 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4880 | rm -f conftest.er1 |
| 4881 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4883 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 4884 | { ac_try='test -z "$ac_c_werror_flag" |
| 4885 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4887 | (eval $ac_try) 2>&5 |
| 4888 | ac_status=$? |
| 4889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4890 | (exit $ac_status); }; } && |
| 4891 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4893 | (eval $ac_try) 2>&5 |
| 4894 | ac_status=$? |
| 4895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4896 | (exit $ac_status); }; }; then |
| 4897 | ac_cv_search_opendir="none required" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4898 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4899 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4900 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4901 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4902 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4903 | rm -f conftest.err conftest.$ac_objext \ |
| 4904 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4905 | if test "$ac_cv_search_opendir" = no; then |
| 4906 | for ac_lib in dir; do |
| 4907 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4908 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4909 | /* confdefs.h. */ |
| 4910 | _ACEOF |
| 4911 | cat confdefs.h >>conftest.$ac_ext |
| 4912 | cat >>conftest.$ac_ext <<_ACEOF |
| 4913 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4914 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4915 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4916 | #ifdef __cplusplus |
| 4917 | extern "C" |
| 4918 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4919 | /* 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] | 4920 | builtin and then its argument prototype would still apply. */ |
| 4921 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4922 | int |
| 4923 | main () |
| 4924 | { |
| 4925 | opendir (); |
| 4926 | ; |
| 4927 | return 0; |
| 4928 | } |
| 4929 | _ACEOF |
| 4930 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4931 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4932 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4933 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4934 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4935 | rm -f conftest.er1 |
| 4936 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4938 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 4939 | { ac_try='test -z "$ac_c_werror_flag" |
| 4940 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4942 | (eval $ac_try) 2>&5 |
| 4943 | ac_status=$? |
| 4944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4945 | (exit $ac_status); }; } && |
| 4946 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4948 | (eval $ac_try) 2>&5 |
| 4949 | ac_status=$? |
| 4950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4951 | (exit $ac_status); }; }; then |
| 4952 | ac_cv_search_opendir="-l$ac_lib" |
| 4953 | break |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4954 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4955 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4956 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4957 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4958 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4959 | rm -f conftest.err conftest.$ac_objext \ |
| 4960 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4961 | done |
| 4962 | fi |
| 4963 | LIBS=$ac_func_search_save_LIBS |
| 4964 | fi |
| 4965 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4966 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4967 | if test "$ac_cv_search_opendir" != no; then |
| 4968 | 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] | 4969 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4970 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4971 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4972 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4973 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4974 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4975 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4977 | else |
| 4978 | ac_func_search_save_LIBS=$LIBS |
| 4979 | ac_cv_search_opendir=no |
| 4980 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4981 | /* confdefs.h. */ |
| 4982 | _ACEOF |
| 4983 | cat confdefs.h >>conftest.$ac_ext |
| 4984 | cat >>conftest.$ac_ext <<_ACEOF |
| 4985 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4986 | |
| 4987 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4988 | #ifdef __cplusplus |
| 4989 | extern "C" |
| 4990 | #endif |
| 4991 | /* We use char because int might match the return type of a gcc2 |
| 4992 | builtin and then its argument prototype would still apply. */ |
| 4993 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4994 | int |
| 4995 | main () |
| 4996 | { |
| 4997 | opendir (); |
| 4998 | ; |
| 4999 | return 0; |
| 5000 | } |
| 5001 | _ACEOF |
| 5002 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5003 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5004 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5005 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5006 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5007 | rm -f conftest.er1 |
| 5008 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5010 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5011 | { ac_try='test -z "$ac_c_werror_flag" |
| 5012 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5014 | (eval $ac_try) 2>&5 |
| 5015 | ac_status=$? |
| 5016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5017 | (exit $ac_status); }; } && |
| 5018 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5020 | (eval $ac_try) 2>&5 |
| 5021 | ac_status=$? |
| 5022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5023 | (exit $ac_status); }; }; then |
| 5024 | ac_cv_search_opendir="none required" |
| 5025 | else |
| 5026 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5027 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5028 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5029 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5030 | rm -f conftest.err conftest.$ac_objext \ |
| 5031 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5032 | if test "$ac_cv_search_opendir" = no; then |
| 5033 | for ac_lib in x; do |
| 5034 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 5035 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5036 | /* confdefs.h. */ |
| 5037 | _ACEOF |
| 5038 | cat confdefs.h >>conftest.$ac_ext |
| 5039 | cat >>conftest.$ac_ext <<_ACEOF |
| 5040 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5041 | |
| 5042 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5043 | #ifdef __cplusplus |
| 5044 | extern "C" |
| 5045 | #endif |
| 5046 | /* We use char because int might match the return type of a gcc2 |
| 5047 | builtin and then its argument prototype would still apply. */ |
| 5048 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5049 | int |
| 5050 | main () |
| 5051 | { |
| 5052 | opendir (); |
| 5053 | ; |
| 5054 | return 0; |
| 5055 | } |
| 5056 | _ACEOF |
| 5057 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5058 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5059 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5060 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5061 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5062 | rm -f conftest.er1 |
| 5063 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5065 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5066 | { ac_try='test -z "$ac_c_werror_flag" |
| 5067 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5069 | (eval $ac_try) 2>&5 |
| 5070 | ac_status=$? |
| 5071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5072 | (exit $ac_status); }; } && |
| 5073 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5075 | (eval $ac_try) 2>&5 |
| 5076 | ac_status=$? |
| 5077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5078 | (exit $ac_status); }; }; then |
| 5079 | ac_cv_search_opendir="-l$ac_lib" |
| 5080 | break |
| 5081 | else |
| 5082 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5083 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5084 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5085 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5086 | rm -f conftest.err conftest.$ac_objext \ |
| 5087 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5088 | done |
| 5089 | fi |
| 5090 | LIBS=$ac_func_search_save_LIBS |
| 5091 | fi |
| 5092 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 5093 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 5094 | if test "$ac_cv_search_opendir" != no; then |
| 5095 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 5096 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5097 | fi |
| 5098 | |
| 5099 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5100 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5101 | echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 5102 | echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6 |
| 5103 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
| 5104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5105 | else |
| 5106 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5107 | /* confdefs.h. */ |
| 5108 | _ACEOF |
| 5109 | cat confdefs.h >>conftest.$ac_ext |
| 5110 | cat >>conftest.$ac_ext <<_ACEOF |
| 5111 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5112 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5113 | int |
| 5114 | main () |
| 5115 | { |
| 5116 | return makedev(0, 0); |
| 5117 | ; |
| 5118 | return 0; |
| 5119 | } |
| 5120 | _ACEOF |
| 5121 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5122 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5123 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5124 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5125 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5126 | rm -f conftest.er1 |
| 5127 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5129 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5130 | { ac_try='test -z "$ac_c_werror_flag" |
| 5131 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5133 | (eval $ac_try) 2>&5 |
| 5134 | ac_status=$? |
| 5135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5136 | (exit $ac_status); }; } && |
| 5137 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5139 | (eval $ac_try) 2>&5 |
| 5140 | ac_status=$? |
| 5141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5142 | (exit $ac_status); }; }; then |
| 5143 | ac_cv_header_sys_types_h_makedev=yes |
| 5144 | else |
| 5145 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5146 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5147 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5148 | ac_cv_header_sys_types_h_makedev=no |
| 5149 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5150 | rm -f conftest.err conftest.$ac_objext \ |
| 5151 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5152 | |
| 5153 | fi |
| 5154 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 5155 | echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6 |
| 5156 | |
| 5157 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 5158 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5159 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 5160 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 5161 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5163 | fi |
| 5164 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 5165 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 5166 | else |
| 5167 | # Is the header compilable? |
| 5168 | echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 5169 | echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6 |
| 5170 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5171 | /* confdefs.h. */ |
| 5172 | _ACEOF |
| 5173 | cat confdefs.h >>conftest.$ac_ext |
| 5174 | cat >>conftest.$ac_ext <<_ACEOF |
| 5175 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5176 | $ac_includes_default |
| 5177 | #include <sys/mkdev.h> |
| 5178 | _ACEOF |
| 5179 | rm -f conftest.$ac_objext |
| 5180 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5181 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5182 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5183 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5184 | rm -f conftest.er1 |
| 5185 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5187 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5188 | { ac_try='test -z "$ac_c_werror_flag" |
| 5189 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5191 | (eval $ac_try) 2>&5 |
| 5192 | ac_status=$? |
| 5193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5194 | (exit $ac_status); }; } && |
| 5195 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5197 | (eval $ac_try) 2>&5 |
| 5198 | ac_status=$? |
| 5199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5200 | (exit $ac_status); }; }; then |
| 5201 | ac_header_compiler=yes |
| 5202 | else |
| 5203 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5204 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5205 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5206 | ac_header_compiler=no |
| 5207 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5208 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5209 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5210 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5211 | |
| 5212 | # Is the header present? |
| 5213 | echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 5214 | echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6 |
| 5215 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5216 | /* confdefs.h. */ |
| 5217 | _ACEOF |
| 5218 | cat confdefs.h >>conftest.$ac_ext |
| 5219 | cat >>conftest.$ac_ext <<_ACEOF |
| 5220 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5221 | #include <sys/mkdev.h> |
| 5222 | _ACEOF |
| 5223 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5224 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5225 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5226 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5227 | rm -f conftest.er1 |
| 5228 | cat conftest.err >&5 |
| 5229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5230 | (exit $ac_status); } >/dev/null; then |
| 5231 | if test -s conftest.err; then |
| 5232 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5233 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5234 | else |
| 5235 | ac_cpp_err= |
| 5236 | fi |
| 5237 | else |
| 5238 | ac_cpp_err=yes |
| 5239 | fi |
| 5240 | if test -z "$ac_cpp_err"; then |
| 5241 | ac_header_preproc=yes |
| 5242 | else |
| 5243 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5244 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5245 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5246 | ac_header_preproc=no |
| 5247 | fi |
| 5248 | rm -f conftest.err conftest.$ac_ext |
| 5249 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5250 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5251 | |
| 5252 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5253 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5254 | yes:no: ) |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5255 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5256 | echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5257 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5 |
| 5258 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;} |
| 5259 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5260 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5261 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5262 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 5263 | echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5264 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 5265 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 5266 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5 |
| 5267 | echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;} |
| 5268 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5269 | echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5270 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 5271 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5272 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5 |
| 5273 | echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5274 | ( |
| 5275 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 5276 | ## ------------------------------------------------ ## |
| 5277 | ## Report this to http://www.python.org/python-bugs ## |
| 5278 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5279 | _ASBOX |
| 5280 | ) | |
| 5281 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5282 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5283 | esac |
| 5284 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 5285 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 5286 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5287 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5288 | else |
| 5289 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 5290 | fi |
| 5291 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 5292 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 5293 | |
| 5294 | fi |
| 5295 | if test $ac_cv_header_sys_mkdev_h = yes; then |
| 5296 | |
| 5297 | cat >>confdefs.h <<\_ACEOF |
| 5298 | #define MAJOR_IN_MKDEV 1 |
| 5299 | _ACEOF |
| 5300 | |
| 5301 | fi |
| 5302 | |
| 5303 | |
| 5304 | |
| 5305 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 5306 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 5307 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 5308 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 5309 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 5310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5311 | fi |
| 5312 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 5313 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 5314 | else |
| 5315 | # Is the header compilable? |
| 5316 | echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 5317 | echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6 |
| 5318 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5319 | /* confdefs.h. */ |
| 5320 | _ACEOF |
| 5321 | cat confdefs.h >>conftest.$ac_ext |
| 5322 | cat >>conftest.$ac_ext <<_ACEOF |
| 5323 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5324 | $ac_includes_default |
| 5325 | #include <sys/sysmacros.h> |
| 5326 | _ACEOF |
| 5327 | rm -f conftest.$ac_objext |
| 5328 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5329 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5330 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5331 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5332 | rm -f conftest.er1 |
| 5333 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5335 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5336 | { ac_try='test -z "$ac_c_werror_flag" |
| 5337 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5339 | (eval $ac_try) 2>&5 |
| 5340 | ac_status=$? |
| 5341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5342 | (exit $ac_status); }; } && |
| 5343 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5345 | (eval $ac_try) 2>&5 |
| 5346 | ac_status=$? |
| 5347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5348 | (exit $ac_status); }; }; then |
| 5349 | ac_header_compiler=yes |
| 5350 | else |
| 5351 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5352 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5353 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5354 | ac_header_compiler=no |
| 5355 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5356 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5357 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5358 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5359 | |
| 5360 | # Is the header present? |
| 5361 | echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 5362 | echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6 |
| 5363 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5364 | /* confdefs.h. */ |
| 5365 | _ACEOF |
| 5366 | cat confdefs.h >>conftest.$ac_ext |
| 5367 | cat >>conftest.$ac_ext <<_ACEOF |
| 5368 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5369 | #include <sys/sysmacros.h> |
| 5370 | _ACEOF |
| 5371 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5372 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5373 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5374 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5375 | rm -f conftest.er1 |
| 5376 | cat conftest.err >&5 |
| 5377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5378 | (exit $ac_status); } >/dev/null; then |
| 5379 | if test -s conftest.err; then |
| 5380 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5381 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5382 | else |
| 5383 | ac_cpp_err= |
| 5384 | fi |
| 5385 | else |
| 5386 | ac_cpp_err=yes |
| 5387 | fi |
| 5388 | if test -z "$ac_cpp_err"; then |
| 5389 | ac_header_preproc=yes |
| 5390 | else |
| 5391 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5392 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5393 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5394 | ac_header_preproc=no |
| 5395 | fi |
| 5396 | rm -f conftest.err conftest.$ac_ext |
| 5397 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5398 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5399 | |
| 5400 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5401 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5402 | yes:no: ) |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5403 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5404 | echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5405 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5 |
| 5406 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;} |
| 5407 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5408 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5409 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5410 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 5411 | echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5412 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 5413 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 5414 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5 |
| 5415 | echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;} |
| 5416 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5417 | echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5418 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 5419 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5420 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5 |
| 5421 | echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5422 | ( |
| 5423 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 5424 | ## ------------------------------------------------ ## |
| 5425 | ## Report this to http://www.python.org/python-bugs ## |
| 5426 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5427 | _ASBOX |
| 5428 | ) | |
| 5429 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5430 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5431 | esac |
| 5432 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 5433 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 5434 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 5435 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5436 | else |
| 5437 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 5438 | fi |
| 5439 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 5440 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 5441 | |
| 5442 | fi |
| 5443 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
| 5444 | |
| 5445 | cat >>confdefs.h <<\_ACEOF |
| 5446 | #define MAJOR_IN_SYSMACROS 1 |
| 5447 | _ACEOF |
| 5448 | |
| 5449 | fi |
| 5450 | |
| 5451 | |
| 5452 | fi |
| 5453 | fi |
| 5454 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5455 | |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5456 | # On Solaris, term.h requires curses.h |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5457 | |
| 5458 | for ac_header in term.h |
| 5459 | do |
| 5460 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5461 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5462 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5463 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5465 | else |
| 5466 | cat >conftest.$ac_ext <<_ACEOF |
| 5467 | /* confdefs.h. */ |
| 5468 | _ACEOF |
| 5469 | cat confdefs.h >>conftest.$ac_ext |
| 5470 | cat >>conftest.$ac_ext <<_ACEOF |
| 5471 | /* end confdefs.h. */ |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5472 | |
Martin v. Löwis | 5d52e78 | 2004-09-18 10:07:03 +0000 | [diff] [blame] | 5473 | #ifdef HAVE_CURSES_H |
| 5474 | #include <curses.h> |
| 5475 | #endif |
| 5476 | |
| 5477 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5478 | #include <$ac_header> |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5479 | _ACEOF |
| 5480 | rm -f conftest.$ac_objext |
| 5481 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5482 | (eval $ac_compile) 2>conftest.er1 |
| 5483 | ac_status=$? |
| 5484 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5485 | rm -f conftest.er1 |
| 5486 | cat conftest.err >&5 |
| 5487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5488 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5489 | { ac_try='test -z "$ac_c_werror_flag" |
| 5490 | || test ! -s conftest.err' |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5492 | (eval $ac_try) 2>&5 |
| 5493 | ac_status=$? |
| 5494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5495 | (exit $ac_status); }; } && |
| 5496 | { ac_try='test -s conftest.$ac_objext' |
| 5497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5498 | (eval $ac_try) 2>&5 |
| 5499 | ac_status=$? |
| 5500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5501 | (exit $ac_status); }; }; then |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5502 | eval "$as_ac_Header=yes" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5503 | else |
| 5504 | echo "$as_me: failed program was:" >&5 |
| 5505 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5506 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5507 | eval "$as_ac_Header=no" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5508 | fi |
| 5509 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5510 | fi |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5511 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5512 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5513 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5514 | cat >>confdefs.h <<_ACEOF |
| 5515 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5516 | _ACEOF |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5517 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5518 | fi |
| 5519 | |
| 5520 | done |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5521 | |
| 5522 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame^] | 5523 | # On Linux, netlink.h requires asm/types.h |
| 5524 | |
| 5525 | for ac_header in linux/netlink.h |
| 5526 | do |
| 5527 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5528 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5529 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5530 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5531 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5532 | else |
| 5533 | cat >conftest.$ac_ext <<_ACEOF |
| 5534 | /* confdefs.h. */ |
| 5535 | _ACEOF |
| 5536 | cat confdefs.h >>conftest.$ac_ext |
| 5537 | cat >>conftest.$ac_ext <<_ACEOF |
| 5538 | /* end confdefs.h. */ |
| 5539 | |
| 5540 | #ifdef HAVE_ASM_TYPES_H |
| 5541 | #include <asm/types.h> |
| 5542 | #endif |
| 5543 | #ifdef HAVE_SYS_SOCKET_H |
| 5544 | #include <sys/socket.h> |
| 5545 | #endif |
| 5546 | |
| 5547 | |
| 5548 | #include <$ac_header> |
| 5549 | _ACEOF |
| 5550 | rm -f conftest.$ac_objext |
| 5551 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5552 | (eval $ac_compile) 2>conftest.er1 |
| 5553 | ac_status=$? |
| 5554 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5555 | rm -f conftest.er1 |
| 5556 | cat conftest.err >&5 |
| 5557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5558 | (exit $ac_status); } && |
| 5559 | { ac_try='test -z "$ac_c_werror_flag" |
| 5560 | || test ! -s conftest.err' |
| 5561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5562 | (eval $ac_try) 2>&5 |
| 5563 | ac_status=$? |
| 5564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5565 | (exit $ac_status); }; } && |
| 5566 | { ac_try='test -s conftest.$ac_objext' |
| 5567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5568 | (eval $ac_try) 2>&5 |
| 5569 | ac_status=$? |
| 5570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5571 | (exit $ac_status); }; }; then |
| 5572 | eval "$as_ac_Header=yes" |
| 5573 | else |
| 5574 | echo "$as_me: failed program was:" >&5 |
| 5575 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5576 | |
| 5577 | eval "$as_ac_Header=no" |
| 5578 | fi |
| 5579 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5580 | fi |
| 5581 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5582 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5583 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5584 | cat >>confdefs.h <<_ACEOF |
| 5585 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5586 | _ACEOF |
| 5587 | |
| 5588 | fi |
| 5589 | |
| 5590 | done |
| 5591 | |
| 5592 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5593 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5594 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5595 | echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 5596 | echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6 |
| 5597 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5598 | /* confdefs.h. */ |
| 5599 | _ACEOF |
| 5600 | cat confdefs.h >>conftest.$ac_ext |
| 5601 | cat >>conftest.$ac_ext <<_ACEOF |
| 5602 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5603 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5604 | |
| 5605 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5606 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5607 | $EGREP "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5608 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5609 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5610 | |
| 5611 | |
| 5612 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5613 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5614 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5615 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 5616 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5617 | fi |
| 5618 | rm -f conftest* |
| 5619 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5620 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 5621 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5622 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5623 | # Check whether using makedev requires defining _OSF_SOURCE |
| 5624 | echo "$as_me:$LINENO: checking for makedev" >&5 |
| 5625 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6 |
| 5626 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5627 | /* confdefs.h. */ |
| 5628 | _ACEOF |
| 5629 | cat confdefs.h >>conftest.$ac_ext |
| 5630 | cat >>conftest.$ac_ext <<_ACEOF |
| 5631 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 5632 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5633 | int |
| 5634 | main () |
| 5635 | { |
| 5636 | makedev(0, 0) |
| 5637 | ; |
| 5638 | return 0; |
| 5639 | } |
| 5640 | _ACEOF |
| 5641 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5642 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5643 | (eval $ac_link) 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5644 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5645 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5646 | rm -f conftest.er1 |
| 5647 | cat conftest.err >&5 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5649 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5650 | { ac_try='test -z "$ac_c_werror_flag" |
| 5651 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5653 | (eval $ac_try) 2>&5 |
| 5654 | ac_status=$? |
| 5655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5656 | (exit $ac_status); }; } && |
| 5657 | { ac_try='test -s conftest$ac_exeext' |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5659 | (eval $ac_try) 2>&5 |
| 5660 | ac_status=$? |
| 5661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5662 | (exit $ac_status); }; }; then |
| 5663 | ac_cv_has_makedev=yes |
| 5664 | else |
| 5665 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5666 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5667 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5668 | ac_cv_has_makedev=no |
| 5669 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5670 | rm -f conftest.err conftest.$ac_objext \ |
| 5671 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5672 | if test "$ac_cv_has_makedev" = "no"; then |
| 5673 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 5674 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5675 | /* confdefs.h. */ |
| 5676 | _ACEOF |
| 5677 | cat confdefs.h >>conftest.$ac_ext |
| 5678 | cat >>conftest.$ac_ext <<_ACEOF |
| 5679 | /* end confdefs.h. */ |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5680 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 5681 | #define _OSF_SOURCE 1 |
| 5682 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5683 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5684 | int |
| 5685 | main () |
| 5686 | { |
| 5687 | makedev(0, 0) |
| 5688 | ; |
| 5689 | return 0; |
| 5690 | } |
| 5691 | _ACEOF |
| 5692 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5693 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5694 | (eval $ac_link) 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5695 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5696 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5697 | rm -f conftest.er1 |
| 5698 | cat conftest.err >&5 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5700 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5701 | { ac_try='test -z "$ac_c_werror_flag" |
| 5702 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5704 | (eval $ac_try) 2>&5 |
| 5705 | ac_status=$? |
| 5706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5707 | (exit $ac_status); }; } && |
| 5708 | { ac_try='test -s conftest$ac_exeext' |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5710 | (eval $ac_try) 2>&5 |
| 5711 | ac_status=$? |
| 5712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5713 | (exit $ac_status); }; }; then |
| 5714 | ac_cv_has_makedev=yes |
| 5715 | else |
| 5716 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5717 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5718 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5719 | ac_cv_has_makedev=no |
| 5720 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5721 | rm -f conftest.err conftest.$ac_objext \ |
| 5722 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5723 | if test "$ac_cv_has_makedev" = "yes"; then |
| 5724 | |
| 5725 | cat >>confdefs.h <<\_ACEOF |
| 5726 | #define _OSF_SOURCE 1 |
| 5727 | _ACEOF |
| 5728 | |
| 5729 | fi |
| 5730 | fi |
| 5731 | echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 5732 | echo "${ECHO_T}$ac_cv_has_makedev" >&6 |
| 5733 | if test "$ac_cv_has_makedev" = "yes"; then |
| 5734 | |
| 5735 | cat >>confdefs.h <<\_ACEOF |
| 5736 | #define HAVE_MAKEDEV 1 |
| 5737 | _ACEOF |
| 5738 | |
| 5739 | fi |
| 5740 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5741 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 5742 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 5743 | # defined, but the compiler does not support pragma redefine_extname, |
| 5744 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 5745 | # structures (such as rlimit64) without declaring them. As a |
| 5746 | # work-around, disable LFS on such configurations |
| 5747 | |
| 5748 | use_lfs=yes |
| 5749 | echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 5750 | echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6 |
| 5751 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5752 | /* confdefs.h. */ |
| 5753 | _ACEOF |
| 5754 | cat confdefs.h >>conftest.$ac_ext |
| 5755 | cat >>conftest.$ac_ext <<_ACEOF |
| 5756 | /* end confdefs.h. */ |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5757 | |
| 5758 | #define _LARGEFILE_SOURCE 1 |
| 5759 | #define _FILE_OFFSET_BITS 64 |
| 5760 | #include <sys/resource.h> |
| 5761 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5762 | int |
| 5763 | main () |
| 5764 | { |
| 5765 | struct rlimit foo; |
| 5766 | ; |
| 5767 | return 0; |
| 5768 | } |
| 5769 | _ACEOF |
| 5770 | rm -f conftest.$ac_objext |
| 5771 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5772 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5773 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5774 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5775 | rm -f conftest.er1 |
| 5776 | cat conftest.err >&5 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5778 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5779 | { ac_try='test -z "$ac_c_werror_flag" |
| 5780 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5782 | (eval $ac_try) 2>&5 |
| 5783 | ac_status=$? |
| 5784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5785 | (exit $ac_status); }; } && |
| 5786 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5788 | (eval $ac_try) 2>&5 |
| 5789 | ac_status=$? |
| 5790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5791 | (exit $ac_status); }; }; then |
| 5792 | sol_lfs_bug=no |
| 5793 | else |
| 5794 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5795 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5796 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5797 | sol_lfs_bug=yes |
| 5798 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5799 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5800 | echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 5801 | echo "${ECHO_T}$sol_lfs_bug" >&6 |
| 5802 | if test "$sol_lfs_bug" = "yes"; then |
| 5803 | use_lfs=no |
| 5804 | fi |
| 5805 | |
| 5806 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5807 | # Two defines needed to enable largefile support on various platforms |
| 5808 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5809 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5810 | cat >>confdefs.h <<\_ACEOF |
| 5811 | #define _LARGEFILE_SOURCE 1 |
| 5812 | _ACEOF |
| 5813 | |
| 5814 | |
| 5815 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5816 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5817 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5818 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5819 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5820 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 5821 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 5822 | cat >> confdefs.h <<\EOF |
| 5823 | #if defined(SCO_DS) |
| 5824 | #undef _OFF_T |
| 5825 | #endif |
| 5826 | EOF |
| 5827 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5828 | # Type availability checks |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5829 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 5830 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 5831 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 5832 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5833 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5834 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5835 | /* confdefs.h. */ |
| 5836 | _ACEOF |
| 5837 | cat confdefs.h >>conftest.$ac_ext |
| 5838 | cat >>conftest.$ac_ext <<_ACEOF |
| 5839 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5840 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5841 | int |
| 5842 | main () |
| 5843 | { |
| 5844 | if ((mode_t *) 0) |
| 5845 | return 0; |
| 5846 | if (sizeof (mode_t)) |
| 5847 | return 0; |
| 5848 | ; |
| 5849 | return 0; |
| 5850 | } |
| 5851 | _ACEOF |
| 5852 | rm -f conftest.$ac_objext |
| 5853 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5854 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5855 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5856 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5857 | rm -f conftest.er1 |
| 5858 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5860 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5861 | { ac_try='test -z "$ac_c_werror_flag" |
| 5862 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5864 | (eval $ac_try) 2>&5 |
| 5865 | ac_status=$? |
| 5866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5867 | (exit $ac_status); }; } && |
| 5868 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5870 | (eval $ac_try) 2>&5 |
| 5871 | ac_status=$? |
| 5872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5873 | (exit $ac_status); }; }; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5874 | ac_cv_type_mode_t=yes |
| 5875 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5876 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5877 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5878 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5879 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5880 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5881 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5882 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5883 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 5884 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 5885 | if test $ac_cv_type_mode_t = yes; then |
| 5886 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5887 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5888 | |
| 5889 | cat >>confdefs.h <<_ACEOF |
| 5890 | #define mode_t int |
| 5891 | _ACEOF |
| 5892 | |
| 5893 | fi |
| 5894 | |
| 5895 | echo "$as_me:$LINENO: checking for off_t" >&5 |
| 5896 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 5897 | if test "${ac_cv_type_off_t+set}" = set; then |
| 5898 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5899 | else |
| 5900 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5901 | /* confdefs.h. */ |
| 5902 | _ACEOF |
| 5903 | cat confdefs.h >>conftest.$ac_ext |
| 5904 | cat >>conftest.$ac_ext <<_ACEOF |
| 5905 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5906 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5907 | int |
| 5908 | main () |
| 5909 | { |
| 5910 | if ((off_t *) 0) |
| 5911 | return 0; |
| 5912 | if (sizeof (off_t)) |
| 5913 | return 0; |
| 5914 | ; |
| 5915 | return 0; |
| 5916 | } |
| 5917 | _ACEOF |
| 5918 | rm -f conftest.$ac_objext |
| 5919 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5920 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5921 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5922 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5923 | rm -f conftest.er1 |
| 5924 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5926 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5927 | { ac_try='test -z "$ac_c_werror_flag" |
| 5928 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5930 | (eval $ac_try) 2>&5 |
| 5931 | ac_status=$? |
| 5932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5933 | (exit $ac_status); }; } && |
| 5934 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5936 | (eval $ac_try) 2>&5 |
| 5937 | ac_status=$? |
| 5938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5939 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5940 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5941 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5942 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5943 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5944 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5945 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5946 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5947 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5948 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5949 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 5950 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 5951 | if test $ac_cv_type_off_t = yes; then |
| 5952 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5953 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5954 | |
| 5955 | cat >>confdefs.h <<_ACEOF |
| 5956 | #define off_t long |
| 5957 | _ACEOF |
| 5958 | |
| 5959 | fi |
| 5960 | |
| 5961 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 5962 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 5963 | if test "${ac_cv_type_pid_t+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 ((pid_t *) 0) |
| 5977 | return 0; |
| 5978 | if (sizeof (pid_t)) |
| 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 | f0d5f79 | 2004-08-15 14:08:23 +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 | f0d5f79 | 2004-08-15 14:08:23 +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); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5993 | { ac_try='test -z "$ac_c_werror_flag" |
| 5994 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 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 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6006 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6007 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6012 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6013 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6014 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6015 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 6016 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 6017 | if test $ac_cv_type_pid_t = yes; then |
| 6018 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6019 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6020 | |
| 6021 | cat >>confdefs.h <<_ACEOF |
| 6022 | #define pid_t int |
| 6023 | _ACEOF |
| 6024 | |
| 6025 | fi |
| 6026 | |
| 6027 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 6028 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 6029 | if test "${ac_cv_type_signal+set}" = set; then |
| 6030 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6031 | else |
| 6032 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6033 | /* confdefs.h. */ |
| 6034 | _ACEOF |
| 6035 | cat confdefs.h >>conftest.$ac_ext |
| 6036 | cat >>conftest.$ac_ext <<_ACEOF |
| 6037 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6038 | #include <sys/types.h> |
| 6039 | #include <signal.h> |
| 6040 | #ifdef signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6041 | # undef signal |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6042 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6043 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6044 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 6045 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6046 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6047 | #endif |
| 6048 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6049 | int |
| 6050 | main () |
| 6051 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6052 | int i; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6053 | ; |
| 6054 | return 0; |
| 6055 | } |
| 6056 | _ACEOF |
| 6057 | rm -f conftest.$ac_objext |
| 6058 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6059 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6060 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6061 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6062 | rm -f conftest.er1 |
| 6063 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6065 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6066 | { ac_try='test -z "$ac_c_werror_flag" |
| 6067 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6069 | (eval $ac_try) 2>&5 |
| 6070 | ac_status=$? |
| 6071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6072 | (exit $ac_status); }; } && |
| 6073 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6075 | (eval $ac_try) 2>&5 |
| 6076 | ac_status=$? |
| 6077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6078 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6079 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6080 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6081 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6082 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6083 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6084 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6085 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6086 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6087 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6088 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 6089 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6090 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6091 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6092 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6093 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6094 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6095 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6096 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 6097 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 6098 | if test "${ac_cv_type_size_t+set}" = set; then |
| 6099 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6100 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6101 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6102 | /* confdefs.h. */ |
| 6103 | _ACEOF |
| 6104 | cat confdefs.h >>conftest.$ac_ext |
| 6105 | cat >>conftest.$ac_ext <<_ACEOF |
| 6106 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6107 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6108 | int |
| 6109 | main () |
| 6110 | { |
| 6111 | if ((size_t *) 0) |
| 6112 | return 0; |
| 6113 | if (sizeof (size_t)) |
| 6114 | return 0; |
| 6115 | ; |
| 6116 | return 0; |
| 6117 | } |
| 6118 | _ACEOF |
| 6119 | rm -f conftest.$ac_objext |
| 6120 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6121 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6122 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6123 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6124 | rm -f conftest.er1 |
| 6125 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6127 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6128 | { ac_try='test -z "$ac_c_werror_flag" |
| 6129 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6131 | (eval $ac_try) 2>&5 |
| 6132 | ac_status=$? |
| 6133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6134 | (exit $ac_status); }; } && |
| 6135 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6137 | (eval $ac_try) 2>&5 |
| 6138 | ac_status=$? |
| 6139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6140 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6141 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6142 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6143 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6144 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6145 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6146 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6147 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6148 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6149 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6150 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 6151 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 6152 | if test $ac_cv_type_size_t = yes; then |
| 6153 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6154 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6155 | |
| 6156 | cat >>confdefs.h <<_ACEOF |
| 6157 | #define size_t unsigned |
| 6158 | _ACEOF |
| 6159 | |
| 6160 | fi |
| 6161 | |
| 6162 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 6163 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
| 6164 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 6165 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6166 | else |
| 6167 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6168 | /* confdefs.h. */ |
| 6169 | _ACEOF |
| 6170 | cat confdefs.h >>conftest.$ac_ext |
| 6171 | cat >>conftest.$ac_ext <<_ACEOF |
| 6172 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6173 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6174 | |
| 6175 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6176 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6177 | $EGREP "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6178 | ac_cv_type_uid_t=yes |
| 6179 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6180 | ac_cv_type_uid_t=no |
| 6181 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6182 | rm -f conftest* |
| 6183 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6184 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6185 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 6186 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6187 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6188 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6189 | cat >>confdefs.h <<\_ACEOF |
| 6190 | #define uid_t int |
| 6191 | _ACEOF |
| 6192 | |
| 6193 | |
| 6194 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6195 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6196 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6197 | |
| 6198 | fi |
| 6199 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6200 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6201 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 6202 | # 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] | 6203 | echo "$as_me:$LINENO: checking for int" >&5 |
| 6204 | echo $ECHO_N "checking for int... $ECHO_C" >&6 |
| 6205 | if test "${ac_cv_type_int+set}" = set; then |
| 6206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6207 | else |
| 6208 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6209 | /* confdefs.h. */ |
| 6210 | _ACEOF |
| 6211 | cat confdefs.h >>conftest.$ac_ext |
| 6212 | cat >>conftest.$ac_ext <<_ACEOF |
| 6213 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6214 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6215 | int |
| 6216 | main () |
| 6217 | { |
| 6218 | if ((int *) 0) |
| 6219 | return 0; |
| 6220 | if (sizeof (int)) |
| 6221 | return 0; |
| 6222 | ; |
| 6223 | return 0; |
| 6224 | } |
| 6225 | _ACEOF |
| 6226 | rm -f conftest.$ac_objext |
| 6227 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6228 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6229 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6230 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6231 | rm -f conftest.er1 |
| 6232 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6234 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6235 | { ac_try='test -z "$ac_c_werror_flag" |
| 6236 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6238 | (eval $ac_try) 2>&5 |
| 6239 | ac_status=$? |
| 6240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6241 | (exit $ac_status); }; } && |
| 6242 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6244 | (eval $ac_try) 2>&5 |
| 6245 | ac_status=$? |
| 6246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6247 | (exit $ac_status); }; }; then |
| 6248 | ac_cv_type_int=yes |
| 6249 | else |
| 6250 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6251 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6252 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6253 | ac_cv_type_int=no |
| 6254 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6255 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6256 | fi |
| 6257 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 6258 | echo "${ECHO_T}$ac_cv_type_int" >&6 |
| 6259 | |
| 6260 | echo "$as_me:$LINENO: checking size of int" >&5 |
| 6261 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| 6262 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 6263 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6264 | else |
| 6265 | if test "$ac_cv_type_int" = yes; then |
| 6266 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6267 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6268 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6269 | # This bug is HP SR number 8606223364. |
| 6270 | if test "$cross_compiling" = yes; then |
| 6271 | # Depending upon the size, compute the lo and hi bounds. |
| 6272 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6273 | /* confdefs.h. */ |
| 6274 | _ACEOF |
| 6275 | cat confdefs.h >>conftest.$ac_ext |
| 6276 | cat >>conftest.$ac_ext <<_ACEOF |
| 6277 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6278 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6279 | int |
| 6280 | main () |
| 6281 | { |
| 6282 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
| 6283 | test_array [0] = 0 |
| 6284 | |
| 6285 | ; |
| 6286 | return 0; |
| 6287 | } |
| 6288 | _ACEOF |
| 6289 | rm -f conftest.$ac_objext |
| 6290 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6291 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6292 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6293 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6294 | rm -f conftest.er1 |
| 6295 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6297 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6298 | { ac_try='test -z "$ac_c_werror_flag" |
| 6299 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6301 | (eval $ac_try) 2>&5 |
| 6302 | ac_status=$? |
| 6303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6304 | (exit $ac_status); }; } && |
| 6305 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6307 | (eval $ac_try) 2>&5 |
| 6308 | ac_status=$? |
| 6309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6310 | (exit $ac_status); }; }; then |
| 6311 | ac_lo=0 ac_mid=0 |
| 6312 | while :; do |
| 6313 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6314 | /* confdefs.h. */ |
| 6315 | _ACEOF |
| 6316 | cat confdefs.h >>conftest.$ac_ext |
| 6317 | cat >>conftest.$ac_ext <<_ACEOF |
| 6318 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6319 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6320 | int |
| 6321 | main () |
| 6322 | { |
| 6323 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 6324 | test_array [0] = 0 |
| 6325 | |
| 6326 | ; |
| 6327 | return 0; |
| 6328 | } |
| 6329 | _ACEOF |
| 6330 | rm -f conftest.$ac_objext |
| 6331 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6332 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6333 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6334 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6335 | rm -f conftest.er1 |
| 6336 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6338 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6339 | { ac_try='test -z "$ac_c_werror_flag" |
| 6340 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6342 | (eval $ac_try) 2>&5 |
| 6343 | ac_status=$? |
| 6344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6345 | (exit $ac_status); }; } && |
| 6346 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6348 | (eval $ac_try) 2>&5 |
| 6349 | ac_status=$? |
| 6350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6351 | (exit $ac_status); }; }; then |
| 6352 | ac_hi=$ac_mid; break |
| 6353 | else |
| 6354 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6355 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6356 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6357 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6358 | if test $ac_lo -le $ac_mid; then |
| 6359 | ac_lo= ac_hi= |
| 6360 | break |
| 6361 | fi |
| 6362 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6363 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6364 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6365 | done |
| 6366 | else |
| 6367 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6368 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6369 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6370 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6371 | /* confdefs.h. */ |
| 6372 | _ACEOF |
| 6373 | cat confdefs.h >>conftest.$ac_ext |
| 6374 | cat >>conftest.$ac_ext <<_ACEOF |
| 6375 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6376 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6377 | int |
| 6378 | main () |
| 6379 | { |
| 6380 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
| 6381 | test_array [0] = 0 |
| 6382 | |
| 6383 | ; |
| 6384 | return 0; |
| 6385 | } |
| 6386 | _ACEOF |
| 6387 | rm -f conftest.$ac_objext |
| 6388 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6389 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6390 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6391 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6392 | rm -f conftest.er1 |
| 6393 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6395 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6396 | { ac_try='test -z "$ac_c_werror_flag" |
| 6397 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6399 | (eval $ac_try) 2>&5 |
| 6400 | ac_status=$? |
| 6401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6402 | (exit $ac_status); }; } && |
| 6403 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6405 | (eval $ac_try) 2>&5 |
| 6406 | ac_status=$? |
| 6407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6408 | (exit $ac_status); }; }; then |
| 6409 | ac_hi=-1 ac_mid=-1 |
| 6410 | while :; do |
| 6411 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6412 | /* confdefs.h. */ |
| 6413 | _ACEOF |
| 6414 | cat confdefs.h >>conftest.$ac_ext |
| 6415 | cat >>conftest.$ac_ext <<_ACEOF |
| 6416 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6417 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6418 | int |
| 6419 | main () |
| 6420 | { |
| 6421 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
| 6422 | test_array [0] = 0 |
| 6423 | |
| 6424 | ; |
| 6425 | return 0; |
| 6426 | } |
| 6427 | _ACEOF |
| 6428 | rm -f conftest.$ac_objext |
| 6429 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6430 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6431 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6432 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6433 | rm -f conftest.er1 |
| 6434 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6436 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6437 | { ac_try='test -z "$ac_c_werror_flag" |
| 6438 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6440 | (eval $ac_try) 2>&5 |
| 6441 | ac_status=$? |
| 6442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6443 | (exit $ac_status); }; } && |
| 6444 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6446 | (eval $ac_try) 2>&5 |
| 6447 | ac_status=$? |
| 6448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6449 | (exit $ac_status); }; }; then |
| 6450 | ac_lo=$ac_mid; break |
| 6451 | else |
| 6452 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6453 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6454 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6455 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6456 | if test $ac_mid -le $ac_hi; then |
| 6457 | ac_lo= ac_hi= |
| 6458 | break |
| 6459 | fi |
| 6460 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6461 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6462 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6463 | done |
| 6464 | else |
| 6465 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6466 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6467 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6468 | ac_lo= ac_hi= |
| 6469 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6470 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6471 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6472 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6473 | # Binary search between lo and hi bounds. |
| 6474 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6475 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6476 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6477 | /* confdefs.h. */ |
| 6478 | _ACEOF |
| 6479 | cat confdefs.h >>conftest.$ac_ext |
| 6480 | cat >>conftest.$ac_ext <<_ACEOF |
| 6481 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6482 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6483 | int |
| 6484 | main () |
| 6485 | { |
| 6486 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 6487 | test_array [0] = 0 |
| 6488 | |
| 6489 | ; |
| 6490 | return 0; |
| 6491 | } |
| 6492 | _ACEOF |
| 6493 | rm -f conftest.$ac_objext |
| 6494 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6495 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6496 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6497 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6498 | rm -f conftest.er1 |
| 6499 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6501 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6502 | { ac_try='test -z "$ac_c_werror_flag" |
| 6503 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6505 | (eval $ac_try) 2>&5 |
| 6506 | ac_status=$? |
| 6507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6508 | (exit $ac_status); }; } && |
| 6509 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6511 | (eval $ac_try) 2>&5 |
| 6512 | ac_status=$? |
| 6513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6514 | (exit $ac_status); }; }; then |
| 6515 | ac_hi=$ac_mid |
| 6516 | else |
| 6517 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6518 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6519 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6520 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6521 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6522 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6523 | done |
| 6524 | case $ac_lo in |
| 6525 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6526 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
| 6527 | See \`config.log' for more details." >&5 |
| 6528 | echo "$as_me: error: cannot compute sizeof (int), 77 |
| 6529 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6530 | { (exit 1); exit 1; }; } ;; |
| 6531 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6532 | else |
| 6533 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6534 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 6535 | See \`config.log' for more details." >&5 |
| 6536 | echo "$as_me: error: cannot run test program while cross compiling |
| 6537 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6538 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6539 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6540 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6541 | /* confdefs.h. */ |
| 6542 | _ACEOF |
| 6543 | cat confdefs.h >>conftest.$ac_ext |
| 6544 | cat >>conftest.$ac_ext <<_ACEOF |
| 6545 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6546 | $ac_includes_default |
| 6547 | long longval () { return (long) (sizeof (int)); } |
| 6548 | unsigned long ulongval () { return (long) (sizeof (int)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6549 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6550 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6551 | int |
| 6552 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6553 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6554 | |
| 6555 | FILE *f = fopen ("conftest.val", "w"); |
| 6556 | if (! f) |
| 6557 | exit (1); |
| 6558 | if (((long) (sizeof (int))) < 0) |
| 6559 | { |
| 6560 | long i = longval (); |
| 6561 | if (i != ((long) (sizeof (int)))) |
| 6562 | exit (1); |
| 6563 | fprintf (f, "%ld\n", i); |
| 6564 | } |
| 6565 | else |
| 6566 | { |
| 6567 | unsigned long i = ulongval (); |
| 6568 | if (i != ((long) (sizeof (int)))) |
| 6569 | exit (1); |
| 6570 | fprintf (f, "%lu\n", i); |
| 6571 | } |
| 6572 | exit (ferror (f) || fclose (f) != 0); |
| 6573 | |
| 6574 | ; |
| 6575 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6576 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6577 | _ACEOF |
| 6578 | rm -f conftest$ac_exeext |
| 6579 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6580 | (eval $ac_link) 2>&5 |
| 6581 | ac_status=$? |
| 6582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6583 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6585 | (eval $ac_try) 2>&5 |
| 6586 | ac_status=$? |
| 6587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6588 | (exit $ac_status); }; }; then |
| 6589 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6590 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6591 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6592 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6593 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6594 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6595 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6596 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
| 6597 | See \`config.log' for more details." >&5 |
| 6598 | echo "$as_me: error: cannot compute sizeof (int), 77 |
| 6599 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6600 | { (exit 1); exit 1; }; } |
| 6601 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6602 | 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] | 6603 | fi |
| 6604 | fi |
| 6605 | rm -f conftest.val |
| 6606 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6607 | ac_cv_sizeof_int=0 |
| 6608 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6609 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6610 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 6611 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| 6612 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6613 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6614 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6615 | |
| 6616 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6617 | echo "$as_me:$LINENO: checking for long" >&5 |
| 6618 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
| 6619 | if test "${ac_cv_type_long+set}" = set; then |
| 6620 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6621 | else |
| 6622 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6623 | /* confdefs.h. */ |
| 6624 | _ACEOF |
| 6625 | cat confdefs.h >>conftest.$ac_ext |
| 6626 | cat >>conftest.$ac_ext <<_ACEOF |
| 6627 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6628 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6629 | int |
| 6630 | main () |
| 6631 | { |
| 6632 | if ((long *) 0) |
| 6633 | return 0; |
| 6634 | if (sizeof (long)) |
| 6635 | return 0; |
| 6636 | ; |
| 6637 | return 0; |
| 6638 | } |
| 6639 | _ACEOF |
| 6640 | rm -f conftest.$ac_objext |
| 6641 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6642 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6643 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6644 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6645 | rm -f conftest.er1 |
| 6646 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6648 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6649 | { ac_try='test -z "$ac_c_werror_flag" |
| 6650 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6652 | (eval $ac_try) 2>&5 |
| 6653 | ac_status=$? |
| 6654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6655 | (exit $ac_status); }; } && |
| 6656 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6658 | (eval $ac_try) 2>&5 |
| 6659 | ac_status=$? |
| 6660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6661 | (exit $ac_status); }; }; then |
| 6662 | ac_cv_type_long=yes |
| 6663 | else |
| 6664 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6665 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6666 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6667 | ac_cv_type_long=no |
| 6668 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6669 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6670 | fi |
| 6671 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 6672 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
| 6673 | |
| 6674 | echo "$as_me:$LINENO: checking size of long" >&5 |
| 6675 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
| 6676 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 6677 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6678 | else |
| 6679 | if test "$ac_cv_type_long" = yes; then |
| 6680 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6681 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6682 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6683 | # This bug is HP SR number 8606223364. |
| 6684 | if test "$cross_compiling" = yes; then |
| 6685 | # Depending upon the size, compute the lo and hi bounds. |
| 6686 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6687 | /* confdefs.h. */ |
| 6688 | _ACEOF |
| 6689 | cat confdefs.h >>conftest.$ac_ext |
| 6690 | cat >>conftest.$ac_ext <<_ACEOF |
| 6691 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6692 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6693 | int |
| 6694 | main () |
| 6695 | { |
| 6696 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
| 6697 | test_array [0] = 0 |
| 6698 | |
| 6699 | ; |
| 6700 | return 0; |
| 6701 | } |
| 6702 | _ACEOF |
| 6703 | rm -f conftest.$ac_objext |
| 6704 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6705 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6706 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6707 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6708 | rm -f conftest.er1 |
| 6709 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6711 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6712 | { ac_try='test -z "$ac_c_werror_flag" |
| 6713 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6715 | (eval $ac_try) 2>&5 |
| 6716 | ac_status=$? |
| 6717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6718 | (exit $ac_status); }; } && |
| 6719 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6721 | (eval $ac_try) 2>&5 |
| 6722 | ac_status=$? |
| 6723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6724 | (exit $ac_status); }; }; then |
| 6725 | ac_lo=0 ac_mid=0 |
| 6726 | while :; do |
| 6727 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6728 | /* confdefs.h. */ |
| 6729 | _ACEOF |
| 6730 | cat confdefs.h >>conftest.$ac_ext |
| 6731 | cat >>conftest.$ac_ext <<_ACEOF |
| 6732 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6733 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6734 | int |
| 6735 | main () |
| 6736 | { |
| 6737 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 6738 | test_array [0] = 0 |
| 6739 | |
| 6740 | ; |
| 6741 | return 0; |
| 6742 | } |
| 6743 | _ACEOF |
| 6744 | rm -f conftest.$ac_objext |
| 6745 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6746 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6747 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6748 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6749 | rm -f conftest.er1 |
| 6750 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6752 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6753 | { ac_try='test -z "$ac_c_werror_flag" |
| 6754 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6756 | (eval $ac_try) 2>&5 |
| 6757 | ac_status=$? |
| 6758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6759 | (exit $ac_status); }; } && |
| 6760 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6762 | (eval $ac_try) 2>&5 |
| 6763 | ac_status=$? |
| 6764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6765 | (exit $ac_status); }; }; then |
| 6766 | ac_hi=$ac_mid; break |
| 6767 | else |
| 6768 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6769 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6770 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6771 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6772 | if test $ac_lo -le $ac_mid; then |
| 6773 | ac_lo= ac_hi= |
| 6774 | break |
| 6775 | fi |
| 6776 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6777 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6778 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6779 | done |
| 6780 | else |
| 6781 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6782 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6783 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6784 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6785 | /* confdefs.h. */ |
| 6786 | _ACEOF |
| 6787 | cat confdefs.h >>conftest.$ac_ext |
| 6788 | cat >>conftest.$ac_ext <<_ACEOF |
| 6789 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6790 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6791 | int |
| 6792 | main () |
| 6793 | { |
| 6794 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
| 6795 | test_array [0] = 0 |
| 6796 | |
| 6797 | ; |
| 6798 | return 0; |
| 6799 | } |
| 6800 | _ACEOF |
| 6801 | rm -f conftest.$ac_objext |
| 6802 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6803 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6804 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6805 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6806 | rm -f conftest.er1 |
| 6807 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6809 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6810 | { ac_try='test -z "$ac_c_werror_flag" |
| 6811 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6813 | (eval $ac_try) 2>&5 |
| 6814 | ac_status=$? |
| 6815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6816 | (exit $ac_status); }; } && |
| 6817 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6819 | (eval $ac_try) 2>&5 |
| 6820 | ac_status=$? |
| 6821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6822 | (exit $ac_status); }; }; then |
| 6823 | ac_hi=-1 ac_mid=-1 |
| 6824 | while :; do |
| 6825 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6826 | /* confdefs.h. */ |
| 6827 | _ACEOF |
| 6828 | cat confdefs.h >>conftest.$ac_ext |
| 6829 | cat >>conftest.$ac_ext <<_ACEOF |
| 6830 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6831 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6832 | int |
| 6833 | main () |
| 6834 | { |
| 6835 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
| 6836 | test_array [0] = 0 |
| 6837 | |
| 6838 | ; |
| 6839 | return 0; |
| 6840 | } |
| 6841 | _ACEOF |
| 6842 | rm -f conftest.$ac_objext |
| 6843 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6844 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6845 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6846 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6847 | rm -f conftest.er1 |
| 6848 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6850 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6851 | { ac_try='test -z "$ac_c_werror_flag" |
| 6852 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6854 | (eval $ac_try) 2>&5 |
| 6855 | ac_status=$? |
| 6856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6857 | (exit $ac_status); }; } && |
| 6858 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6860 | (eval $ac_try) 2>&5 |
| 6861 | ac_status=$? |
| 6862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6863 | (exit $ac_status); }; }; then |
| 6864 | ac_lo=$ac_mid; break |
| 6865 | else |
| 6866 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6867 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6868 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6869 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6870 | if test $ac_mid -le $ac_hi; then |
| 6871 | ac_lo= ac_hi= |
| 6872 | break |
| 6873 | fi |
| 6874 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6875 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6876 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6877 | done |
| 6878 | else |
| 6879 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6880 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6881 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6882 | ac_lo= ac_hi= |
| 6883 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6884 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6885 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6886 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6887 | # Binary search between lo and hi bounds. |
| 6888 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6889 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6890 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6891 | /* confdefs.h. */ |
| 6892 | _ACEOF |
| 6893 | cat confdefs.h >>conftest.$ac_ext |
| 6894 | cat >>conftest.$ac_ext <<_ACEOF |
| 6895 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6896 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6897 | int |
| 6898 | main () |
| 6899 | { |
| 6900 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 6901 | test_array [0] = 0 |
| 6902 | |
| 6903 | ; |
| 6904 | return 0; |
| 6905 | } |
| 6906 | _ACEOF |
| 6907 | rm -f conftest.$ac_objext |
| 6908 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6909 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6910 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6911 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6912 | rm -f conftest.er1 |
| 6913 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6915 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6916 | { ac_try='test -z "$ac_c_werror_flag" |
| 6917 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6919 | (eval $ac_try) 2>&5 |
| 6920 | ac_status=$? |
| 6921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6922 | (exit $ac_status); }; } && |
| 6923 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6925 | (eval $ac_try) 2>&5 |
| 6926 | ac_status=$? |
| 6927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6928 | (exit $ac_status); }; }; then |
| 6929 | ac_hi=$ac_mid |
| 6930 | else |
| 6931 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6932 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6933 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6934 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6935 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6936 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6937 | done |
| 6938 | case $ac_lo in |
| 6939 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6940 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
| 6941 | See \`config.log' for more details." >&5 |
| 6942 | echo "$as_me: error: cannot compute sizeof (long), 77 |
| 6943 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6944 | { (exit 1); exit 1; }; } ;; |
| 6945 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6946 | else |
| 6947 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6948 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 6949 | See \`config.log' for more details." >&5 |
| 6950 | echo "$as_me: error: cannot run test program while cross compiling |
| 6951 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6952 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6953 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6954 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6955 | /* confdefs.h. */ |
| 6956 | _ACEOF |
| 6957 | cat confdefs.h >>conftest.$ac_ext |
| 6958 | cat >>conftest.$ac_ext <<_ACEOF |
| 6959 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6960 | $ac_includes_default |
| 6961 | long longval () { return (long) (sizeof (long)); } |
| 6962 | unsigned long ulongval () { return (long) (sizeof (long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6963 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6964 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6965 | int |
| 6966 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6967 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6968 | |
| 6969 | FILE *f = fopen ("conftest.val", "w"); |
| 6970 | if (! f) |
| 6971 | exit (1); |
| 6972 | if (((long) (sizeof (long))) < 0) |
| 6973 | { |
| 6974 | long i = longval (); |
| 6975 | if (i != ((long) (sizeof (long)))) |
| 6976 | exit (1); |
| 6977 | fprintf (f, "%ld\n", i); |
| 6978 | } |
| 6979 | else |
| 6980 | { |
| 6981 | unsigned long i = ulongval (); |
| 6982 | if (i != ((long) (sizeof (long)))) |
| 6983 | exit (1); |
| 6984 | fprintf (f, "%lu\n", i); |
| 6985 | } |
| 6986 | exit (ferror (f) || fclose (f) != 0); |
| 6987 | |
| 6988 | ; |
| 6989 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6990 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6991 | _ACEOF |
| 6992 | rm -f conftest$ac_exeext |
| 6993 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6994 | (eval $ac_link) 2>&5 |
| 6995 | ac_status=$? |
| 6996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6997 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6999 | (eval $ac_try) 2>&5 |
| 7000 | ac_status=$? |
| 7001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7002 | (exit $ac_status); }; }; then |
| 7003 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7004 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7005 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7006 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7007 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7008 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7009 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7010 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
| 7011 | See \`config.log' for more details." >&5 |
| 7012 | echo "$as_me: error: cannot compute sizeof (long), 77 |
| 7013 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7014 | { (exit 1); exit 1; }; } |
| 7015 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7016 | 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] | 7017 | fi |
| 7018 | fi |
| 7019 | rm -f conftest.val |
| 7020 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7021 | ac_cv_sizeof_long=0 |
| 7022 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7023 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7024 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 7025 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
| 7026 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7027 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7028 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7029 | |
| 7030 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7031 | echo "$as_me:$LINENO: checking for void *" >&5 |
| 7032 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 |
| 7033 | if test "${ac_cv_type_void_p+set}" = set; then |
| 7034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7035 | else |
| 7036 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7037 | /* confdefs.h. */ |
| 7038 | _ACEOF |
| 7039 | cat confdefs.h >>conftest.$ac_ext |
| 7040 | cat >>conftest.$ac_ext <<_ACEOF |
| 7041 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7042 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7043 | int |
| 7044 | main () |
| 7045 | { |
| 7046 | if ((void * *) 0) |
| 7047 | return 0; |
| 7048 | if (sizeof (void *)) |
| 7049 | return 0; |
| 7050 | ; |
| 7051 | return 0; |
| 7052 | } |
| 7053 | _ACEOF |
| 7054 | rm -f conftest.$ac_objext |
| 7055 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7056 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7057 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7058 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7059 | rm -f conftest.er1 |
| 7060 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7062 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7063 | { ac_try='test -z "$ac_c_werror_flag" |
| 7064 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7066 | (eval $ac_try) 2>&5 |
| 7067 | ac_status=$? |
| 7068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7069 | (exit $ac_status); }; } && |
| 7070 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7072 | (eval $ac_try) 2>&5 |
| 7073 | ac_status=$? |
| 7074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7075 | (exit $ac_status); }; }; then |
| 7076 | ac_cv_type_void_p=yes |
| 7077 | else |
| 7078 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7079 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7080 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7081 | ac_cv_type_void_p=no |
| 7082 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7083 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7084 | fi |
| 7085 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 7086 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 |
| 7087 | |
| 7088 | echo "$as_me:$LINENO: checking size of void *" >&5 |
| 7089 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 |
| 7090 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
| 7091 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7092 | else |
| 7093 | if test "$ac_cv_type_void_p" = yes; then |
| 7094 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7095 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7096 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7097 | # This bug is HP SR number 8606223364. |
| 7098 | if test "$cross_compiling" = yes; then |
| 7099 | # Depending upon the size, compute the lo and hi bounds. |
| 7100 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7101 | /* confdefs.h. */ |
| 7102 | _ACEOF |
| 7103 | cat confdefs.h >>conftest.$ac_ext |
| 7104 | cat >>conftest.$ac_ext <<_ACEOF |
| 7105 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7106 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7107 | int |
| 7108 | main () |
| 7109 | { |
| 7110 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
| 7111 | test_array [0] = 0 |
| 7112 | |
| 7113 | ; |
| 7114 | return 0; |
| 7115 | } |
| 7116 | _ACEOF |
| 7117 | rm -f conftest.$ac_objext |
| 7118 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7119 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7120 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7121 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7122 | rm -f conftest.er1 |
| 7123 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7125 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7126 | { ac_try='test -z "$ac_c_werror_flag" |
| 7127 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7129 | (eval $ac_try) 2>&5 |
| 7130 | ac_status=$? |
| 7131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7132 | (exit $ac_status); }; } && |
| 7133 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7135 | (eval $ac_try) 2>&5 |
| 7136 | ac_status=$? |
| 7137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7138 | (exit $ac_status); }; }; then |
| 7139 | ac_lo=0 ac_mid=0 |
| 7140 | while :; do |
| 7141 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7142 | /* confdefs.h. */ |
| 7143 | _ACEOF |
| 7144 | cat confdefs.h >>conftest.$ac_ext |
| 7145 | cat >>conftest.$ac_ext <<_ACEOF |
| 7146 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7147 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7148 | int |
| 7149 | main () |
| 7150 | { |
| 7151 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 7152 | test_array [0] = 0 |
| 7153 | |
| 7154 | ; |
| 7155 | return 0; |
| 7156 | } |
| 7157 | _ACEOF |
| 7158 | rm -f conftest.$ac_objext |
| 7159 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7160 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7161 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7162 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7163 | rm -f conftest.er1 |
| 7164 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7166 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7167 | { ac_try='test -z "$ac_c_werror_flag" |
| 7168 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7170 | (eval $ac_try) 2>&5 |
| 7171 | ac_status=$? |
| 7172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7173 | (exit $ac_status); }; } && |
| 7174 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7176 | (eval $ac_try) 2>&5 |
| 7177 | ac_status=$? |
| 7178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7179 | (exit $ac_status); }; }; then |
| 7180 | ac_hi=$ac_mid; break |
| 7181 | else |
| 7182 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7183 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7184 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7185 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7186 | if test $ac_lo -le $ac_mid; then |
| 7187 | ac_lo= ac_hi= |
| 7188 | break |
| 7189 | fi |
| 7190 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7191 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7192 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7193 | done |
| 7194 | else |
| 7195 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7196 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7197 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7198 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7199 | /* confdefs.h. */ |
| 7200 | _ACEOF |
| 7201 | cat confdefs.h >>conftest.$ac_ext |
| 7202 | cat >>conftest.$ac_ext <<_ACEOF |
| 7203 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7204 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7205 | int |
| 7206 | main () |
| 7207 | { |
| 7208 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
| 7209 | test_array [0] = 0 |
| 7210 | |
| 7211 | ; |
| 7212 | return 0; |
| 7213 | } |
| 7214 | _ACEOF |
| 7215 | rm -f conftest.$ac_objext |
| 7216 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7217 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7218 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7219 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7220 | rm -f conftest.er1 |
| 7221 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7223 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7224 | { ac_try='test -z "$ac_c_werror_flag" |
| 7225 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7227 | (eval $ac_try) 2>&5 |
| 7228 | ac_status=$? |
| 7229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7230 | (exit $ac_status); }; } && |
| 7231 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7233 | (eval $ac_try) 2>&5 |
| 7234 | ac_status=$? |
| 7235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7236 | (exit $ac_status); }; }; then |
| 7237 | ac_hi=-1 ac_mid=-1 |
| 7238 | while :; do |
| 7239 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7240 | /* confdefs.h. */ |
| 7241 | _ACEOF |
| 7242 | cat confdefs.h >>conftest.$ac_ext |
| 7243 | cat >>conftest.$ac_ext <<_ACEOF |
| 7244 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7245 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7246 | int |
| 7247 | main () |
| 7248 | { |
| 7249 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
| 7250 | test_array [0] = 0 |
| 7251 | |
| 7252 | ; |
| 7253 | return 0; |
| 7254 | } |
| 7255 | _ACEOF |
| 7256 | rm -f conftest.$ac_objext |
| 7257 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7258 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7259 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7260 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7261 | rm -f conftest.er1 |
| 7262 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7264 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7265 | { ac_try='test -z "$ac_c_werror_flag" |
| 7266 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7268 | (eval $ac_try) 2>&5 |
| 7269 | ac_status=$? |
| 7270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7271 | (exit $ac_status); }; } && |
| 7272 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7274 | (eval $ac_try) 2>&5 |
| 7275 | ac_status=$? |
| 7276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7277 | (exit $ac_status); }; }; then |
| 7278 | ac_lo=$ac_mid; break |
| 7279 | else |
| 7280 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7281 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7282 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7283 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7284 | if test $ac_mid -le $ac_hi; then |
| 7285 | ac_lo= ac_hi= |
| 7286 | break |
| 7287 | fi |
| 7288 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7289 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7290 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7291 | done |
| 7292 | else |
| 7293 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7294 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7295 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7296 | ac_lo= ac_hi= |
| 7297 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7298 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7299 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7300 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7301 | # Binary search between lo and hi bounds. |
| 7302 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7303 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7304 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7305 | /* confdefs.h. */ |
| 7306 | _ACEOF |
| 7307 | cat confdefs.h >>conftest.$ac_ext |
| 7308 | cat >>conftest.$ac_ext <<_ACEOF |
| 7309 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7310 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7311 | int |
| 7312 | main () |
| 7313 | { |
| 7314 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 7315 | test_array [0] = 0 |
| 7316 | |
| 7317 | ; |
| 7318 | return 0; |
| 7319 | } |
| 7320 | _ACEOF |
| 7321 | rm -f conftest.$ac_objext |
| 7322 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7323 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7324 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7325 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7326 | rm -f conftest.er1 |
| 7327 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7329 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7330 | { ac_try='test -z "$ac_c_werror_flag" |
| 7331 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7333 | (eval $ac_try) 2>&5 |
| 7334 | ac_status=$? |
| 7335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7336 | (exit $ac_status); }; } && |
| 7337 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7339 | (eval $ac_try) 2>&5 |
| 7340 | ac_status=$? |
| 7341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7342 | (exit $ac_status); }; }; then |
| 7343 | ac_hi=$ac_mid |
| 7344 | else |
| 7345 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7346 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7347 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7348 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7349 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7350 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7351 | done |
| 7352 | case $ac_lo in |
| 7353 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7354 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
| 7355 | See \`config.log' for more details." >&5 |
| 7356 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
| 7357 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7358 | { (exit 1); exit 1; }; } ;; |
| 7359 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7360 | else |
| 7361 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7362 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 7363 | See \`config.log' for more details." >&5 |
| 7364 | echo "$as_me: error: cannot run test program while cross compiling |
| 7365 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7366 | { (exit 1); exit 1; }; } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7367 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7368 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7369 | /* confdefs.h. */ |
| 7370 | _ACEOF |
| 7371 | cat confdefs.h >>conftest.$ac_ext |
| 7372 | cat >>conftest.$ac_ext <<_ACEOF |
| 7373 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7374 | $ac_includes_default |
| 7375 | long longval () { return (long) (sizeof (void *)); } |
| 7376 | unsigned long ulongval () { return (long) (sizeof (void *)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7377 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7378 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7379 | int |
| 7380 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7381 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7382 | |
| 7383 | FILE *f = fopen ("conftest.val", "w"); |
| 7384 | if (! f) |
| 7385 | exit (1); |
| 7386 | if (((long) (sizeof (void *))) < 0) |
| 7387 | { |
| 7388 | long i = longval (); |
| 7389 | if (i != ((long) (sizeof (void *)))) |
| 7390 | exit (1); |
| 7391 | fprintf (f, "%ld\n", i); |
| 7392 | } |
| 7393 | else |
| 7394 | { |
| 7395 | unsigned long i = ulongval (); |
| 7396 | if (i != ((long) (sizeof (void *)))) |
| 7397 | exit (1); |
| 7398 | fprintf (f, "%lu\n", i); |
| 7399 | } |
| 7400 | exit (ferror (f) || fclose (f) != 0); |
| 7401 | |
| 7402 | ; |
| 7403 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7404 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7405 | _ACEOF |
| 7406 | rm -f conftest$ac_exeext |
| 7407 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7408 | (eval $ac_link) 2>&5 |
| 7409 | ac_status=$? |
| 7410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7411 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7413 | (eval $ac_try) 2>&5 |
| 7414 | ac_status=$? |
| 7415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7416 | (exit $ac_status); }; }; then |
| 7417 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7418 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7419 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7420 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7421 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7422 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7423 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7424 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
| 7425 | See \`config.log' for more details." >&5 |
| 7426 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
| 7427 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7428 | { (exit 1); exit 1; }; } |
| 7429 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7430 | 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] | 7431 | fi |
| 7432 | fi |
| 7433 | rm -f conftest.val |
| 7434 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7435 | ac_cv_sizeof_void_p=0 |
| 7436 | fi |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7437 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7438 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 7439 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 |
| 7440 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7441 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7442 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7443 | |
| 7444 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7445 | echo "$as_me:$LINENO: checking for short" >&5 |
| 7446 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
| 7447 | if test "${ac_cv_type_short+set}" = set; then |
| 7448 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7449 | else |
| 7450 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7451 | /* confdefs.h. */ |
| 7452 | _ACEOF |
| 7453 | cat confdefs.h >>conftest.$ac_ext |
| 7454 | cat >>conftest.$ac_ext <<_ACEOF |
| 7455 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7456 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7457 | int |
| 7458 | main () |
| 7459 | { |
| 7460 | if ((short *) 0) |
| 7461 | return 0; |
| 7462 | if (sizeof (short)) |
| 7463 | return 0; |
| 7464 | ; |
| 7465 | return 0; |
| 7466 | } |
| 7467 | _ACEOF |
| 7468 | rm -f conftest.$ac_objext |
| 7469 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7470 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7471 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7472 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7473 | rm -f conftest.er1 |
| 7474 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7476 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7477 | { ac_try='test -z "$ac_c_werror_flag" |
| 7478 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7480 | (eval $ac_try) 2>&5 |
| 7481 | ac_status=$? |
| 7482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7483 | (exit $ac_status); }; } && |
| 7484 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7486 | (eval $ac_try) 2>&5 |
| 7487 | ac_status=$? |
| 7488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7489 | (exit $ac_status); }; }; then |
| 7490 | ac_cv_type_short=yes |
| 7491 | else |
| 7492 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7493 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7494 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7495 | ac_cv_type_short=no |
| 7496 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7497 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7498 | fi |
| 7499 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 7500 | echo "${ECHO_T}$ac_cv_type_short" >&6 |
| 7501 | |
| 7502 | echo "$as_me:$LINENO: checking size of short" >&5 |
| 7503 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 |
| 7504 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 7505 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7506 | else |
| 7507 | if test "$ac_cv_type_short" = yes; then |
| 7508 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7509 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7510 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7511 | # This bug is HP SR number 8606223364. |
| 7512 | if test "$cross_compiling" = yes; then |
| 7513 | # Depending upon the size, compute the lo and hi bounds. |
| 7514 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7515 | /* confdefs.h. */ |
| 7516 | _ACEOF |
| 7517 | cat confdefs.h >>conftest.$ac_ext |
| 7518 | cat >>conftest.$ac_ext <<_ACEOF |
| 7519 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7520 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7521 | int |
| 7522 | main () |
| 7523 | { |
| 7524 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
| 7525 | test_array [0] = 0 |
| 7526 | |
| 7527 | ; |
| 7528 | return 0; |
| 7529 | } |
| 7530 | _ACEOF |
| 7531 | rm -f conftest.$ac_objext |
| 7532 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7533 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7534 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7535 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7536 | rm -f conftest.er1 |
| 7537 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7539 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7540 | { ac_try='test -z "$ac_c_werror_flag" |
| 7541 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7543 | (eval $ac_try) 2>&5 |
| 7544 | ac_status=$? |
| 7545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7546 | (exit $ac_status); }; } && |
| 7547 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7549 | (eval $ac_try) 2>&5 |
| 7550 | ac_status=$? |
| 7551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7552 | (exit $ac_status); }; }; then |
| 7553 | ac_lo=0 ac_mid=0 |
| 7554 | while :; do |
| 7555 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7556 | /* confdefs.h. */ |
| 7557 | _ACEOF |
| 7558 | cat confdefs.h >>conftest.$ac_ext |
| 7559 | cat >>conftest.$ac_ext <<_ACEOF |
| 7560 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7561 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7562 | int |
| 7563 | main () |
| 7564 | { |
| 7565 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 7566 | test_array [0] = 0 |
| 7567 | |
| 7568 | ; |
| 7569 | return 0; |
| 7570 | } |
| 7571 | _ACEOF |
| 7572 | rm -f conftest.$ac_objext |
| 7573 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7574 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7575 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7576 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7577 | rm -f conftest.er1 |
| 7578 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7580 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7581 | { ac_try='test -z "$ac_c_werror_flag" |
| 7582 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7584 | (eval $ac_try) 2>&5 |
| 7585 | ac_status=$? |
| 7586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7587 | (exit $ac_status); }; } && |
| 7588 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7590 | (eval $ac_try) 2>&5 |
| 7591 | ac_status=$? |
| 7592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7593 | (exit $ac_status); }; }; then |
| 7594 | ac_hi=$ac_mid; break |
| 7595 | else |
| 7596 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7597 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7598 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7599 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7600 | if test $ac_lo -le $ac_mid; then |
| 7601 | ac_lo= ac_hi= |
| 7602 | break |
| 7603 | fi |
| 7604 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7605 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7606 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7607 | done |
| 7608 | else |
| 7609 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7610 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7611 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7612 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7613 | /* confdefs.h. */ |
| 7614 | _ACEOF |
| 7615 | cat confdefs.h >>conftest.$ac_ext |
| 7616 | cat >>conftest.$ac_ext <<_ACEOF |
| 7617 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7618 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7619 | int |
| 7620 | main () |
| 7621 | { |
| 7622 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
| 7623 | test_array [0] = 0 |
| 7624 | |
| 7625 | ; |
| 7626 | return 0; |
| 7627 | } |
| 7628 | _ACEOF |
| 7629 | rm -f conftest.$ac_objext |
| 7630 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7631 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7632 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7633 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7634 | rm -f conftest.er1 |
| 7635 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7637 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7638 | { ac_try='test -z "$ac_c_werror_flag" |
| 7639 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7641 | (eval $ac_try) 2>&5 |
| 7642 | ac_status=$? |
| 7643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7644 | (exit $ac_status); }; } && |
| 7645 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7647 | (eval $ac_try) 2>&5 |
| 7648 | ac_status=$? |
| 7649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7650 | (exit $ac_status); }; }; then |
| 7651 | ac_hi=-1 ac_mid=-1 |
| 7652 | while :; do |
| 7653 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7654 | /* confdefs.h. */ |
| 7655 | _ACEOF |
| 7656 | cat confdefs.h >>conftest.$ac_ext |
| 7657 | cat >>conftest.$ac_ext <<_ACEOF |
| 7658 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7659 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7660 | int |
| 7661 | main () |
| 7662 | { |
| 7663 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
| 7664 | test_array [0] = 0 |
| 7665 | |
| 7666 | ; |
| 7667 | return 0; |
| 7668 | } |
| 7669 | _ACEOF |
| 7670 | rm -f conftest.$ac_objext |
| 7671 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7672 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7673 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7674 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7675 | rm -f conftest.er1 |
| 7676 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7678 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7679 | { ac_try='test -z "$ac_c_werror_flag" |
| 7680 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7682 | (eval $ac_try) 2>&5 |
| 7683 | ac_status=$? |
| 7684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7685 | (exit $ac_status); }; } && |
| 7686 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7688 | (eval $ac_try) 2>&5 |
| 7689 | ac_status=$? |
| 7690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7691 | (exit $ac_status); }; }; then |
| 7692 | ac_lo=$ac_mid; break |
| 7693 | else |
| 7694 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7695 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7696 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7697 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7698 | if test $ac_mid -le $ac_hi; then |
| 7699 | ac_lo= ac_hi= |
| 7700 | break |
| 7701 | fi |
| 7702 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7703 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7704 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7705 | done |
| 7706 | else |
| 7707 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7708 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7709 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7710 | ac_lo= ac_hi= |
| 7711 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7712 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7713 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7714 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7715 | # Binary search between lo and hi bounds. |
| 7716 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7717 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7718 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7719 | /* confdefs.h. */ |
| 7720 | _ACEOF |
| 7721 | cat confdefs.h >>conftest.$ac_ext |
| 7722 | cat >>conftest.$ac_ext <<_ACEOF |
| 7723 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7724 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7725 | int |
| 7726 | main () |
| 7727 | { |
| 7728 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 7729 | test_array [0] = 0 |
| 7730 | |
| 7731 | ; |
| 7732 | return 0; |
| 7733 | } |
| 7734 | _ACEOF |
| 7735 | rm -f conftest.$ac_objext |
| 7736 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7737 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7738 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7739 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7740 | rm -f conftest.er1 |
| 7741 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7743 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7744 | { ac_try='test -z "$ac_c_werror_flag" |
| 7745 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7747 | (eval $ac_try) 2>&5 |
| 7748 | ac_status=$? |
| 7749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7750 | (exit $ac_status); }; } && |
| 7751 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7753 | (eval $ac_try) 2>&5 |
| 7754 | ac_status=$? |
| 7755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7756 | (exit $ac_status); }; }; then |
| 7757 | ac_hi=$ac_mid |
| 7758 | else |
| 7759 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7760 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7761 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7762 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7763 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7764 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7765 | done |
| 7766 | case $ac_lo in |
| 7767 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7768 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
| 7769 | See \`config.log' for more details." >&5 |
| 7770 | echo "$as_me: error: cannot compute sizeof (short), 77 |
| 7771 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7772 | { (exit 1); exit 1; }; } ;; |
| 7773 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7774 | else |
| 7775 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7776 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 7777 | See \`config.log' for more details." >&5 |
| 7778 | echo "$as_me: error: cannot run test program while cross compiling |
| 7779 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7780 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7781 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7782 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7783 | /* confdefs.h. */ |
| 7784 | _ACEOF |
| 7785 | cat confdefs.h >>conftest.$ac_ext |
| 7786 | cat >>conftest.$ac_ext <<_ACEOF |
| 7787 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7788 | $ac_includes_default |
| 7789 | long longval () { return (long) (sizeof (short)); } |
| 7790 | unsigned long ulongval () { return (long) (sizeof (short)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7791 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7792 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7793 | int |
| 7794 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7795 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7796 | |
| 7797 | FILE *f = fopen ("conftest.val", "w"); |
| 7798 | if (! f) |
| 7799 | exit (1); |
| 7800 | if (((long) (sizeof (short))) < 0) |
| 7801 | { |
| 7802 | long i = longval (); |
| 7803 | if (i != ((long) (sizeof (short)))) |
| 7804 | exit (1); |
| 7805 | fprintf (f, "%ld\n", i); |
| 7806 | } |
| 7807 | else |
| 7808 | { |
| 7809 | unsigned long i = ulongval (); |
| 7810 | if (i != ((long) (sizeof (short)))) |
| 7811 | exit (1); |
| 7812 | fprintf (f, "%lu\n", i); |
| 7813 | } |
| 7814 | exit (ferror (f) || fclose (f) != 0); |
| 7815 | |
| 7816 | ; |
| 7817 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7818 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7819 | _ACEOF |
| 7820 | rm -f conftest$ac_exeext |
| 7821 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7822 | (eval $ac_link) 2>&5 |
| 7823 | ac_status=$? |
| 7824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7825 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7827 | (eval $ac_try) 2>&5 |
| 7828 | ac_status=$? |
| 7829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7830 | (exit $ac_status); }; }; then |
| 7831 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7832 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7833 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7834 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7835 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7836 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7837 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7838 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
| 7839 | See \`config.log' for more details." >&5 |
| 7840 | echo "$as_me: error: cannot compute sizeof (short), 77 |
| 7841 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7842 | { (exit 1); exit 1; }; } |
| 7843 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7844 | 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] | 7845 | fi |
| 7846 | fi |
| 7847 | rm -f conftest.val |
| 7848 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7849 | ac_cv_sizeof_short=0 |
| 7850 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7851 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7852 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 7853 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 |
| 7854 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7855 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7856 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7857 | |
| 7858 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7859 | echo "$as_me:$LINENO: checking for float" >&5 |
| 7860 | echo $ECHO_N "checking for float... $ECHO_C" >&6 |
| 7861 | if test "${ac_cv_type_float+set}" = set; then |
| 7862 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7863 | else |
| 7864 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7865 | /* confdefs.h. */ |
| 7866 | _ACEOF |
| 7867 | cat confdefs.h >>conftest.$ac_ext |
| 7868 | cat >>conftest.$ac_ext <<_ACEOF |
| 7869 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7870 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7871 | int |
| 7872 | main () |
| 7873 | { |
| 7874 | if ((float *) 0) |
| 7875 | return 0; |
| 7876 | if (sizeof (float)) |
| 7877 | return 0; |
| 7878 | ; |
| 7879 | return 0; |
| 7880 | } |
| 7881 | _ACEOF |
| 7882 | rm -f conftest.$ac_objext |
| 7883 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7884 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7885 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7886 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7887 | rm -f conftest.er1 |
| 7888 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7890 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7891 | { ac_try='test -z "$ac_c_werror_flag" |
| 7892 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7894 | (eval $ac_try) 2>&5 |
| 7895 | ac_status=$? |
| 7896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7897 | (exit $ac_status); }; } && |
| 7898 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7900 | (eval $ac_try) 2>&5 |
| 7901 | ac_status=$? |
| 7902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7903 | (exit $ac_status); }; }; then |
| 7904 | ac_cv_type_float=yes |
| 7905 | else |
| 7906 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7907 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7908 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7909 | ac_cv_type_float=no |
| 7910 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7911 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7912 | fi |
| 7913 | echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 7914 | echo "${ECHO_T}$ac_cv_type_float" >&6 |
| 7915 | |
| 7916 | echo "$as_me:$LINENO: checking size of float" >&5 |
| 7917 | echo $ECHO_N "checking size of float... $ECHO_C" >&6 |
| 7918 | if test "${ac_cv_sizeof_float+set}" = set; then |
| 7919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7920 | else |
| 7921 | if test "$ac_cv_type_float" = yes; then |
| 7922 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7923 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7924 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7925 | # This bug is HP SR number 8606223364. |
| 7926 | if test "$cross_compiling" = yes; then |
| 7927 | # Depending upon the size, compute the lo and hi bounds. |
| 7928 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7929 | /* confdefs.h. */ |
| 7930 | _ACEOF |
| 7931 | cat confdefs.h >>conftest.$ac_ext |
| 7932 | cat >>conftest.$ac_ext <<_ACEOF |
| 7933 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7934 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7935 | int |
| 7936 | main () |
| 7937 | { |
| 7938 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)]; |
| 7939 | test_array [0] = 0 |
| 7940 | |
| 7941 | ; |
| 7942 | return 0; |
| 7943 | } |
| 7944 | _ACEOF |
| 7945 | rm -f conftest.$ac_objext |
| 7946 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7947 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7948 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7949 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7950 | rm -f conftest.er1 |
| 7951 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7953 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7954 | { ac_try='test -z "$ac_c_werror_flag" |
| 7955 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7957 | (eval $ac_try) 2>&5 |
| 7958 | ac_status=$? |
| 7959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7960 | (exit $ac_status); }; } && |
| 7961 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7963 | (eval $ac_try) 2>&5 |
| 7964 | ac_status=$? |
| 7965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7966 | (exit $ac_status); }; }; then |
| 7967 | ac_lo=0 ac_mid=0 |
| 7968 | while :; do |
| 7969 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7970 | /* confdefs.h. */ |
| 7971 | _ACEOF |
| 7972 | cat confdefs.h >>conftest.$ac_ext |
| 7973 | cat >>conftest.$ac_ext <<_ACEOF |
| 7974 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7975 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7976 | int |
| 7977 | main () |
| 7978 | { |
| 7979 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 7980 | test_array [0] = 0 |
| 7981 | |
| 7982 | ; |
| 7983 | return 0; |
| 7984 | } |
| 7985 | _ACEOF |
| 7986 | rm -f conftest.$ac_objext |
| 7987 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7988 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7989 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7990 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7991 | rm -f conftest.er1 |
| 7992 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7994 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7995 | { ac_try='test -z "$ac_c_werror_flag" |
| 7996 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7998 | (eval $ac_try) 2>&5 |
| 7999 | ac_status=$? |
| 8000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8001 | (exit $ac_status); }; } && |
| 8002 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8004 | (eval $ac_try) 2>&5 |
| 8005 | ac_status=$? |
| 8006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8007 | (exit $ac_status); }; }; then |
| 8008 | ac_hi=$ac_mid; break |
| 8009 | else |
| 8010 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8011 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8012 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8013 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8014 | if test $ac_lo -le $ac_mid; then |
| 8015 | ac_lo= ac_hi= |
| 8016 | break |
| 8017 | fi |
| 8018 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8019 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8020 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8021 | done |
| 8022 | else |
| 8023 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8024 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8025 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8026 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8027 | /* confdefs.h. */ |
| 8028 | _ACEOF |
| 8029 | cat confdefs.h >>conftest.$ac_ext |
| 8030 | cat >>conftest.$ac_ext <<_ACEOF |
| 8031 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8032 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8033 | int |
| 8034 | main () |
| 8035 | { |
| 8036 | static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)]; |
| 8037 | test_array [0] = 0 |
| 8038 | |
| 8039 | ; |
| 8040 | return 0; |
| 8041 | } |
| 8042 | _ACEOF |
| 8043 | rm -f conftest.$ac_objext |
| 8044 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8045 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8046 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8047 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8048 | rm -f conftest.er1 |
| 8049 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8051 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8052 | { ac_try='test -z "$ac_c_werror_flag" |
| 8053 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8055 | (eval $ac_try) 2>&5 |
| 8056 | ac_status=$? |
| 8057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8058 | (exit $ac_status); }; } && |
| 8059 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8061 | (eval $ac_try) 2>&5 |
| 8062 | ac_status=$? |
| 8063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8064 | (exit $ac_status); }; }; then |
| 8065 | ac_hi=-1 ac_mid=-1 |
| 8066 | while :; do |
| 8067 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8068 | /* confdefs.h. */ |
| 8069 | _ACEOF |
| 8070 | cat confdefs.h >>conftest.$ac_ext |
| 8071 | cat >>conftest.$ac_ext <<_ACEOF |
| 8072 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8073 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8074 | int |
| 8075 | main () |
| 8076 | { |
| 8077 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)]; |
| 8078 | test_array [0] = 0 |
| 8079 | |
| 8080 | ; |
| 8081 | return 0; |
| 8082 | } |
| 8083 | _ACEOF |
| 8084 | rm -f conftest.$ac_objext |
| 8085 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8086 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8087 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8088 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8089 | rm -f conftest.er1 |
| 8090 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8092 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8093 | { ac_try='test -z "$ac_c_werror_flag" |
| 8094 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8096 | (eval $ac_try) 2>&5 |
| 8097 | ac_status=$? |
| 8098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8099 | (exit $ac_status); }; } && |
| 8100 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8102 | (eval $ac_try) 2>&5 |
| 8103 | ac_status=$? |
| 8104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8105 | (exit $ac_status); }; }; then |
| 8106 | ac_lo=$ac_mid; break |
| 8107 | else |
| 8108 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8109 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8110 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8111 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8112 | if test $ac_mid -le $ac_hi; then |
| 8113 | ac_lo= ac_hi= |
| 8114 | break |
| 8115 | fi |
| 8116 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8117 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8118 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8119 | done |
| 8120 | else |
| 8121 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8122 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8123 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8124 | ac_lo= ac_hi= |
| 8125 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8126 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8127 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8128 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8129 | # Binary search between lo and hi bounds. |
| 8130 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8131 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8132 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8133 | /* confdefs.h. */ |
| 8134 | _ACEOF |
| 8135 | cat confdefs.h >>conftest.$ac_ext |
| 8136 | cat >>conftest.$ac_ext <<_ACEOF |
| 8137 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8138 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8139 | int |
| 8140 | main () |
| 8141 | { |
| 8142 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 8143 | test_array [0] = 0 |
| 8144 | |
| 8145 | ; |
| 8146 | return 0; |
| 8147 | } |
| 8148 | _ACEOF |
| 8149 | rm -f conftest.$ac_objext |
| 8150 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8151 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8152 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8153 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8154 | rm -f conftest.er1 |
| 8155 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8157 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8158 | { ac_try='test -z "$ac_c_werror_flag" |
| 8159 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8161 | (eval $ac_try) 2>&5 |
| 8162 | ac_status=$? |
| 8163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8164 | (exit $ac_status); }; } && |
| 8165 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8167 | (eval $ac_try) 2>&5 |
| 8168 | ac_status=$? |
| 8169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8170 | (exit $ac_status); }; }; then |
| 8171 | ac_hi=$ac_mid |
| 8172 | else |
| 8173 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8174 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8175 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8176 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8177 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8178 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8179 | done |
| 8180 | case $ac_lo in |
| 8181 | ?*) ac_cv_sizeof_float=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8182 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77 |
| 8183 | See \`config.log' for more details." >&5 |
| 8184 | echo "$as_me: error: cannot compute sizeof (float), 77 |
| 8185 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8186 | { (exit 1); exit 1; }; } ;; |
| 8187 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8188 | else |
| 8189 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8190 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 8191 | See \`config.log' for more details." >&5 |
| 8192 | echo "$as_me: error: cannot run test program while cross compiling |
| 8193 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8194 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8195 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8196 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8197 | /* confdefs.h. */ |
| 8198 | _ACEOF |
| 8199 | cat confdefs.h >>conftest.$ac_ext |
| 8200 | cat >>conftest.$ac_ext <<_ACEOF |
| 8201 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8202 | $ac_includes_default |
| 8203 | long longval () { return (long) (sizeof (float)); } |
| 8204 | unsigned long ulongval () { return (long) (sizeof (float)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8205 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8206 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8207 | int |
| 8208 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8209 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8210 | |
| 8211 | FILE *f = fopen ("conftest.val", "w"); |
| 8212 | if (! f) |
| 8213 | exit (1); |
| 8214 | if (((long) (sizeof (float))) < 0) |
| 8215 | { |
| 8216 | long i = longval (); |
| 8217 | if (i != ((long) (sizeof (float)))) |
| 8218 | exit (1); |
| 8219 | fprintf (f, "%ld\n", i); |
| 8220 | } |
| 8221 | else |
| 8222 | { |
| 8223 | unsigned long i = ulongval (); |
| 8224 | if (i != ((long) (sizeof (float)))) |
| 8225 | exit (1); |
| 8226 | fprintf (f, "%lu\n", i); |
| 8227 | } |
| 8228 | exit (ferror (f) || fclose (f) != 0); |
| 8229 | |
| 8230 | ; |
| 8231 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8232 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8233 | _ACEOF |
| 8234 | rm -f conftest$ac_exeext |
| 8235 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8236 | (eval $ac_link) 2>&5 |
| 8237 | ac_status=$? |
| 8238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8239 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8241 | (eval $ac_try) 2>&5 |
| 8242 | ac_status=$? |
| 8243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8244 | (exit $ac_status); }; }; then |
| 8245 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8246 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8247 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8248 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8249 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8250 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8251 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8252 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77 |
| 8253 | See \`config.log' for more details." >&5 |
| 8254 | echo "$as_me: error: cannot compute sizeof (float), 77 |
| 8255 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8256 | { (exit 1); exit 1; }; } |
| 8257 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8258 | 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] | 8259 | fi |
| 8260 | fi |
| 8261 | rm -f conftest.val |
| 8262 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8263 | ac_cv_sizeof_float=0 |
| 8264 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8265 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8266 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 8267 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6 |
| 8268 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8269 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8270 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8271 | |
| 8272 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8273 | echo "$as_me:$LINENO: checking for double" >&5 |
| 8274 | echo $ECHO_N "checking for double... $ECHO_C" >&6 |
| 8275 | if test "${ac_cv_type_double+set}" = set; then |
| 8276 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8277 | else |
| 8278 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8279 | /* confdefs.h. */ |
| 8280 | _ACEOF |
| 8281 | cat confdefs.h >>conftest.$ac_ext |
| 8282 | cat >>conftest.$ac_ext <<_ACEOF |
| 8283 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8284 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8285 | int |
| 8286 | main () |
| 8287 | { |
| 8288 | if ((double *) 0) |
| 8289 | return 0; |
| 8290 | if (sizeof (double)) |
| 8291 | return 0; |
| 8292 | ; |
| 8293 | return 0; |
| 8294 | } |
| 8295 | _ACEOF |
| 8296 | rm -f conftest.$ac_objext |
| 8297 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8298 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8299 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8300 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8301 | rm -f conftest.er1 |
| 8302 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8304 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8305 | { ac_try='test -z "$ac_c_werror_flag" |
| 8306 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8308 | (eval $ac_try) 2>&5 |
| 8309 | ac_status=$? |
| 8310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8311 | (exit $ac_status); }; } && |
| 8312 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8314 | (eval $ac_try) 2>&5 |
| 8315 | ac_status=$? |
| 8316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8317 | (exit $ac_status); }; }; then |
| 8318 | ac_cv_type_double=yes |
| 8319 | else |
| 8320 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8321 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8322 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8323 | ac_cv_type_double=no |
| 8324 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8325 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8326 | fi |
| 8327 | echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 8328 | echo "${ECHO_T}$ac_cv_type_double" >&6 |
| 8329 | |
| 8330 | echo "$as_me:$LINENO: checking size of double" >&5 |
| 8331 | echo $ECHO_N "checking size of double... $ECHO_C" >&6 |
| 8332 | if test "${ac_cv_sizeof_double+set}" = set; then |
| 8333 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8334 | else |
| 8335 | if test "$ac_cv_type_double" = yes; then |
| 8336 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8337 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8338 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8339 | # This bug is HP SR number 8606223364. |
| 8340 | if test "$cross_compiling" = yes; then |
| 8341 | # Depending upon the size, compute the lo and hi bounds. |
| 8342 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8343 | /* confdefs.h. */ |
| 8344 | _ACEOF |
| 8345 | cat confdefs.h >>conftest.$ac_ext |
| 8346 | cat >>conftest.$ac_ext <<_ACEOF |
| 8347 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8348 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8349 | int |
| 8350 | main () |
| 8351 | { |
| 8352 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)]; |
| 8353 | test_array [0] = 0 |
| 8354 | |
| 8355 | ; |
| 8356 | return 0; |
| 8357 | } |
| 8358 | _ACEOF |
| 8359 | rm -f conftest.$ac_objext |
| 8360 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8361 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8362 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8363 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8364 | rm -f conftest.er1 |
| 8365 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8367 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8368 | { ac_try='test -z "$ac_c_werror_flag" |
| 8369 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8371 | (eval $ac_try) 2>&5 |
| 8372 | ac_status=$? |
| 8373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8374 | (exit $ac_status); }; } && |
| 8375 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8377 | (eval $ac_try) 2>&5 |
| 8378 | ac_status=$? |
| 8379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8380 | (exit $ac_status); }; }; then |
| 8381 | ac_lo=0 ac_mid=0 |
| 8382 | while :; do |
| 8383 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8384 | /* confdefs.h. */ |
| 8385 | _ACEOF |
| 8386 | cat confdefs.h >>conftest.$ac_ext |
| 8387 | cat >>conftest.$ac_ext <<_ACEOF |
| 8388 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8389 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8390 | int |
| 8391 | main () |
| 8392 | { |
| 8393 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 8394 | test_array [0] = 0 |
| 8395 | |
| 8396 | ; |
| 8397 | return 0; |
| 8398 | } |
| 8399 | _ACEOF |
| 8400 | rm -f conftest.$ac_objext |
| 8401 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8402 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8403 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8404 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8405 | rm -f conftest.er1 |
| 8406 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8408 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8409 | { ac_try='test -z "$ac_c_werror_flag" |
| 8410 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8412 | (eval $ac_try) 2>&5 |
| 8413 | ac_status=$? |
| 8414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8415 | (exit $ac_status); }; } && |
| 8416 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8418 | (eval $ac_try) 2>&5 |
| 8419 | ac_status=$? |
| 8420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8421 | (exit $ac_status); }; }; then |
| 8422 | ac_hi=$ac_mid; break |
| 8423 | else |
| 8424 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8425 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8426 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8427 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8428 | if test $ac_lo -le $ac_mid; then |
| 8429 | ac_lo= ac_hi= |
| 8430 | break |
| 8431 | fi |
| 8432 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8433 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8434 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8435 | done |
| 8436 | else |
| 8437 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8438 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8439 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8440 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8441 | /* confdefs.h. */ |
| 8442 | _ACEOF |
| 8443 | cat confdefs.h >>conftest.$ac_ext |
| 8444 | cat >>conftest.$ac_ext <<_ACEOF |
| 8445 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8446 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8447 | int |
| 8448 | main () |
| 8449 | { |
| 8450 | static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)]; |
| 8451 | test_array [0] = 0 |
| 8452 | |
| 8453 | ; |
| 8454 | return 0; |
| 8455 | } |
| 8456 | _ACEOF |
| 8457 | rm -f conftest.$ac_objext |
| 8458 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8459 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8460 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8461 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8462 | rm -f conftest.er1 |
| 8463 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8465 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8466 | { ac_try='test -z "$ac_c_werror_flag" |
| 8467 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8469 | (eval $ac_try) 2>&5 |
| 8470 | ac_status=$? |
| 8471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8472 | (exit $ac_status); }; } && |
| 8473 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8475 | (eval $ac_try) 2>&5 |
| 8476 | ac_status=$? |
| 8477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8478 | (exit $ac_status); }; }; then |
| 8479 | ac_hi=-1 ac_mid=-1 |
| 8480 | while :; do |
| 8481 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8482 | /* confdefs.h. */ |
| 8483 | _ACEOF |
| 8484 | cat confdefs.h >>conftest.$ac_ext |
| 8485 | cat >>conftest.$ac_ext <<_ACEOF |
| 8486 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8487 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8488 | int |
| 8489 | main () |
| 8490 | { |
| 8491 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)]; |
| 8492 | test_array [0] = 0 |
| 8493 | |
| 8494 | ; |
| 8495 | return 0; |
| 8496 | } |
| 8497 | _ACEOF |
| 8498 | rm -f conftest.$ac_objext |
| 8499 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8500 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8501 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8502 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8503 | rm -f conftest.er1 |
| 8504 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8506 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8507 | { ac_try='test -z "$ac_c_werror_flag" |
| 8508 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8510 | (eval $ac_try) 2>&5 |
| 8511 | ac_status=$? |
| 8512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8513 | (exit $ac_status); }; } && |
| 8514 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8516 | (eval $ac_try) 2>&5 |
| 8517 | ac_status=$? |
| 8518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8519 | (exit $ac_status); }; }; then |
| 8520 | ac_lo=$ac_mid; break |
| 8521 | else |
| 8522 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8523 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8524 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8525 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8526 | if test $ac_mid -le $ac_hi; then |
| 8527 | ac_lo= ac_hi= |
| 8528 | break |
| 8529 | fi |
| 8530 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8531 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8532 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8533 | done |
| 8534 | else |
| 8535 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8536 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8537 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8538 | ac_lo= ac_hi= |
| 8539 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8540 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8541 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8542 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8543 | # Binary search between lo and hi bounds. |
| 8544 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8545 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8546 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8547 | /* confdefs.h. */ |
| 8548 | _ACEOF |
| 8549 | cat confdefs.h >>conftest.$ac_ext |
| 8550 | cat >>conftest.$ac_ext <<_ACEOF |
| 8551 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8552 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8553 | int |
| 8554 | main () |
| 8555 | { |
| 8556 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 8557 | test_array [0] = 0 |
| 8558 | |
| 8559 | ; |
| 8560 | return 0; |
| 8561 | } |
| 8562 | _ACEOF |
| 8563 | rm -f conftest.$ac_objext |
| 8564 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8565 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8566 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8567 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8568 | rm -f conftest.er1 |
| 8569 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8571 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8572 | { ac_try='test -z "$ac_c_werror_flag" |
| 8573 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8575 | (eval $ac_try) 2>&5 |
| 8576 | ac_status=$? |
| 8577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8578 | (exit $ac_status); }; } && |
| 8579 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8581 | (eval $ac_try) 2>&5 |
| 8582 | ac_status=$? |
| 8583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8584 | (exit $ac_status); }; }; then |
| 8585 | ac_hi=$ac_mid |
| 8586 | else |
| 8587 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8588 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8589 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8590 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8591 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8592 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8593 | done |
| 8594 | case $ac_lo in |
| 8595 | ?*) ac_cv_sizeof_double=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8596 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77 |
| 8597 | See \`config.log' for more details." >&5 |
| 8598 | echo "$as_me: error: cannot compute sizeof (double), 77 |
| 8599 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8600 | { (exit 1); exit 1; }; } ;; |
| 8601 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8602 | else |
| 8603 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8604 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 8605 | See \`config.log' for more details." >&5 |
| 8606 | echo "$as_me: error: cannot run test program while cross compiling |
| 8607 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8608 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8609 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8610 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8611 | /* confdefs.h. */ |
| 8612 | _ACEOF |
| 8613 | cat confdefs.h >>conftest.$ac_ext |
| 8614 | cat >>conftest.$ac_ext <<_ACEOF |
| 8615 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8616 | $ac_includes_default |
| 8617 | long longval () { return (long) (sizeof (double)); } |
| 8618 | unsigned long ulongval () { return (long) (sizeof (double)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8619 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8620 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8621 | int |
| 8622 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8623 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8624 | |
| 8625 | FILE *f = fopen ("conftest.val", "w"); |
| 8626 | if (! f) |
| 8627 | exit (1); |
| 8628 | if (((long) (sizeof (double))) < 0) |
| 8629 | { |
| 8630 | long i = longval (); |
| 8631 | if (i != ((long) (sizeof (double)))) |
| 8632 | exit (1); |
| 8633 | fprintf (f, "%ld\n", i); |
| 8634 | } |
| 8635 | else |
| 8636 | { |
| 8637 | unsigned long i = ulongval (); |
| 8638 | if (i != ((long) (sizeof (double)))) |
| 8639 | exit (1); |
| 8640 | fprintf (f, "%lu\n", i); |
| 8641 | } |
| 8642 | exit (ferror (f) || fclose (f) != 0); |
| 8643 | |
| 8644 | ; |
| 8645 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8646 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8647 | _ACEOF |
| 8648 | rm -f conftest$ac_exeext |
| 8649 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8650 | (eval $ac_link) 2>&5 |
| 8651 | ac_status=$? |
| 8652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8653 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8655 | (eval $ac_try) 2>&5 |
| 8656 | ac_status=$? |
| 8657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8658 | (exit $ac_status); }; }; then |
| 8659 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8660 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8661 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8662 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8663 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8664 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8665 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8666 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77 |
| 8667 | See \`config.log' for more details." >&5 |
| 8668 | echo "$as_me: error: cannot compute sizeof (double), 77 |
| 8669 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8670 | { (exit 1); exit 1; }; } |
| 8671 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8672 | 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] | 8673 | fi |
| 8674 | fi |
| 8675 | rm -f conftest.val |
| 8676 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8677 | ac_cv_sizeof_double=0 |
| 8678 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8679 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8680 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 8681 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6 |
| 8682 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8683 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8684 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8685 | |
| 8686 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8687 | echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 8688 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6 |
| 8689 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 8690 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8691 | else |
| 8692 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8693 | /* confdefs.h. */ |
| 8694 | _ACEOF |
| 8695 | cat confdefs.h >>conftest.$ac_ext |
| 8696 | cat >>conftest.$ac_ext <<_ACEOF |
| 8697 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8698 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8699 | int |
| 8700 | main () |
| 8701 | { |
| 8702 | if ((fpos_t *) 0) |
| 8703 | return 0; |
| 8704 | if (sizeof (fpos_t)) |
| 8705 | return 0; |
| 8706 | ; |
| 8707 | return 0; |
| 8708 | } |
| 8709 | _ACEOF |
| 8710 | rm -f conftest.$ac_objext |
| 8711 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8712 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8713 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8714 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8715 | rm -f conftest.er1 |
| 8716 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8718 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8719 | { ac_try='test -z "$ac_c_werror_flag" |
| 8720 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8722 | (eval $ac_try) 2>&5 |
| 8723 | ac_status=$? |
| 8724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8725 | (exit $ac_status); }; } && |
| 8726 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8728 | (eval $ac_try) 2>&5 |
| 8729 | ac_status=$? |
| 8730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8731 | (exit $ac_status); }; }; then |
| 8732 | ac_cv_type_fpos_t=yes |
| 8733 | else |
| 8734 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8735 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8736 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8737 | ac_cv_type_fpos_t=no |
| 8738 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8739 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8740 | fi |
| 8741 | echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 8742 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6 |
| 8743 | |
| 8744 | echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 8745 | echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6 |
| 8746 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
| 8747 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8748 | else |
| 8749 | if test "$ac_cv_type_fpos_t" = yes; then |
| 8750 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8751 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8752 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8753 | # This bug is HP SR number 8606223364. |
| 8754 | if test "$cross_compiling" = yes; then |
| 8755 | # Depending upon the size, compute the lo and hi bounds. |
| 8756 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8757 | /* confdefs.h. */ |
| 8758 | _ACEOF |
| 8759 | cat confdefs.h >>conftest.$ac_ext |
| 8760 | cat >>conftest.$ac_ext <<_ACEOF |
| 8761 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8762 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8763 | int |
| 8764 | main () |
| 8765 | { |
| 8766 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)]; |
| 8767 | test_array [0] = 0 |
| 8768 | |
| 8769 | ; |
| 8770 | return 0; |
| 8771 | } |
| 8772 | _ACEOF |
| 8773 | rm -f conftest.$ac_objext |
| 8774 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8775 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8776 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8777 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8778 | rm -f conftest.er1 |
| 8779 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8781 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8782 | { ac_try='test -z "$ac_c_werror_flag" |
| 8783 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8785 | (eval $ac_try) 2>&5 |
| 8786 | ac_status=$? |
| 8787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8788 | (exit $ac_status); }; } && |
| 8789 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8791 | (eval $ac_try) 2>&5 |
| 8792 | ac_status=$? |
| 8793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8794 | (exit $ac_status); }; }; then |
| 8795 | ac_lo=0 ac_mid=0 |
| 8796 | while :; do |
| 8797 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8798 | /* confdefs.h. */ |
| 8799 | _ACEOF |
| 8800 | cat confdefs.h >>conftest.$ac_ext |
| 8801 | cat >>conftest.$ac_ext <<_ACEOF |
| 8802 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8803 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8804 | int |
| 8805 | main () |
| 8806 | { |
| 8807 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 8808 | test_array [0] = 0 |
| 8809 | |
| 8810 | ; |
| 8811 | return 0; |
| 8812 | } |
| 8813 | _ACEOF |
| 8814 | rm -f conftest.$ac_objext |
| 8815 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8816 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8817 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8818 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8819 | rm -f conftest.er1 |
| 8820 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8822 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8823 | { ac_try='test -z "$ac_c_werror_flag" |
| 8824 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8826 | (eval $ac_try) 2>&5 |
| 8827 | ac_status=$? |
| 8828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8829 | (exit $ac_status); }; } && |
| 8830 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8832 | (eval $ac_try) 2>&5 |
| 8833 | ac_status=$? |
| 8834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8835 | (exit $ac_status); }; }; then |
| 8836 | ac_hi=$ac_mid; break |
| 8837 | else |
| 8838 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8839 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8840 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8841 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8842 | if test $ac_lo -le $ac_mid; then |
| 8843 | ac_lo= ac_hi= |
| 8844 | break |
| 8845 | fi |
| 8846 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8847 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8848 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8849 | done |
| 8850 | else |
| 8851 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8852 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8853 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8854 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8855 | /* confdefs.h. */ |
| 8856 | _ACEOF |
| 8857 | cat confdefs.h >>conftest.$ac_ext |
| 8858 | cat >>conftest.$ac_ext <<_ACEOF |
| 8859 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8860 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8861 | int |
| 8862 | main () |
| 8863 | { |
| 8864 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)]; |
| 8865 | test_array [0] = 0 |
| 8866 | |
| 8867 | ; |
| 8868 | return 0; |
| 8869 | } |
| 8870 | _ACEOF |
| 8871 | rm -f conftest.$ac_objext |
| 8872 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8873 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8874 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8875 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8876 | rm -f conftest.er1 |
| 8877 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8879 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8880 | { ac_try='test -z "$ac_c_werror_flag" |
| 8881 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8883 | (eval $ac_try) 2>&5 |
| 8884 | ac_status=$? |
| 8885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8886 | (exit $ac_status); }; } && |
| 8887 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8889 | (eval $ac_try) 2>&5 |
| 8890 | ac_status=$? |
| 8891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8892 | (exit $ac_status); }; }; then |
| 8893 | ac_hi=-1 ac_mid=-1 |
| 8894 | while :; do |
| 8895 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8896 | /* confdefs.h. */ |
| 8897 | _ACEOF |
| 8898 | cat confdefs.h >>conftest.$ac_ext |
| 8899 | cat >>conftest.$ac_ext <<_ACEOF |
| 8900 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8901 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8902 | int |
| 8903 | main () |
| 8904 | { |
| 8905 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)]; |
| 8906 | test_array [0] = 0 |
| 8907 | |
| 8908 | ; |
| 8909 | return 0; |
| 8910 | } |
| 8911 | _ACEOF |
| 8912 | rm -f conftest.$ac_objext |
| 8913 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8914 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8915 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8916 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8917 | rm -f conftest.er1 |
| 8918 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8920 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8921 | { ac_try='test -z "$ac_c_werror_flag" |
| 8922 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8924 | (eval $ac_try) 2>&5 |
| 8925 | ac_status=$? |
| 8926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8927 | (exit $ac_status); }; } && |
| 8928 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8930 | (eval $ac_try) 2>&5 |
| 8931 | ac_status=$? |
| 8932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8933 | (exit $ac_status); }; }; then |
| 8934 | ac_lo=$ac_mid; break |
| 8935 | else |
| 8936 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8937 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8938 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8939 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8940 | if test $ac_mid -le $ac_hi; then |
| 8941 | ac_lo= ac_hi= |
| 8942 | break |
| 8943 | fi |
| 8944 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8945 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8946 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8947 | done |
| 8948 | else |
| 8949 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8950 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8951 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8952 | ac_lo= ac_hi= |
| 8953 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8954 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8955 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8956 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8957 | # Binary search between lo and hi bounds. |
| 8958 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8959 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8960 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8961 | /* confdefs.h. */ |
| 8962 | _ACEOF |
| 8963 | cat confdefs.h >>conftest.$ac_ext |
| 8964 | cat >>conftest.$ac_ext <<_ACEOF |
| 8965 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8966 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8967 | int |
| 8968 | main () |
| 8969 | { |
| 8970 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 8971 | test_array [0] = 0 |
| 8972 | |
| 8973 | ; |
| 8974 | return 0; |
| 8975 | } |
| 8976 | _ACEOF |
| 8977 | rm -f conftest.$ac_objext |
| 8978 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8979 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8980 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8981 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8982 | rm -f conftest.er1 |
| 8983 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8985 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8986 | { ac_try='test -z "$ac_c_werror_flag" |
| 8987 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8989 | (eval $ac_try) 2>&5 |
| 8990 | ac_status=$? |
| 8991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8992 | (exit $ac_status); }; } && |
| 8993 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8995 | (eval $ac_try) 2>&5 |
| 8996 | ac_status=$? |
| 8997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8998 | (exit $ac_status); }; }; then |
| 8999 | ac_hi=$ac_mid |
| 9000 | else |
| 9001 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9002 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9003 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9004 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 9005 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9006 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9007 | done |
| 9008 | case $ac_lo in |
| 9009 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9010 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77 |
| 9011 | See \`config.log' for more details." >&5 |
| 9012 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77 |
| 9013 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9014 | { (exit 1); exit 1; }; } ;; |
| 9015 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9016 | else |
| 9017 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9018 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 9019 | See \`config.log' for more details." >&5 |
| 9020 | echo "$as_me: error: cannot run test program while cross compiling |
| 9021 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9022 | { (exit 1); exit 1; }; } |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9023 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9024 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9025 | /* confdefs.h. */ |
| 9026 | _ACEOF |
| 9027 | cat confdefs.h >>conftest.$ac_ext |
| 9028 | cat >>conftest.$ac_ext <<_ACEOF |
| 9029 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9030 | $ac_includes_default |
| 9031 | long longval () { return (long) (sizeof (fpos_t)); } |
| 9032 | unsigned long ulongval () { return (long) (sizeof (fpos_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9033 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9034 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9035 | int |
| 9036 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9037 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9038 | |
| 9039 | FILE *f = fopen ("conftest.val", "w"); |
| 9040 | if (! f) |
| 9041 | exit (1); |
| 9042 | if (((long) (sizeof (fpos_t))) < 0) |
| 9043 | { |
| 9044 | long i = longval (); |
| 9045 | if (i != ((long) (sizeof (fpos_t)))) |
| 9046 | exit (1); |
| 9047 | fprintf (f, "%ld\n", i); |
| 9048 | } |
| 9049 | else |
| 9050 | { |
| 9051 | unsigned long i = ulongval (); |
| 9052 | if (i != ((long) (sizeof (fpos_t)))) |
| 9053 | exit (1); |
| 9054 | fprintf (f, "%lu\n", i); |
| 9055 | } |
| 9056 | exit (ferror (f) || fclose (f) != 0); |
| 9057 | |
| 9058 | ; |
| 9059 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9060 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9061 | _ACEOF |
| 9062 | rm -f conftest$ac_exeext |
| 9063 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9064 | (eval $ac_link) 2>&5 |
| 9065 | ac_status=$? |
| 9066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9067 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9069 | (eval $ac_try) 2>&5 |
| 9070 | ac_status=$? |
| 9071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9072 | (exit $ac_status); }; }; then |
| 9073 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9074 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9075 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9076 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9077 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9078 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9079 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9080 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77 |
| 9081 | See \`config.log' for more details." >&5 |
| 9082 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77 |
| 9083 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9084 | { (exit 1); exit 1; }; } |
| 9085 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9086 | 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] | 9087 | fi |
| 9088 | fi |
| 9089 | rm -f conftest.val |
| 9090 | else |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9091 | ac_cv_sizeof_fpos_t=0 |
| 9092 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9093 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9094 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 9095 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6 |
| 9096 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9097 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9098 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9099 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9100 | |
| 9101 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9102 | echo "$as_me:$LINENO: checking for long long support" >&5 |
| 9103 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9104 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9105 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9106 | /* confdefs.h. */ |
| 9107 | _ACEOF |
| 9108 | cat confdefs.h >>conftest.$ac_ext |
| 9109 | cat >>conftest.$ac_ext <<_ACEOF |
| 9110 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9111 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9112 | int |
| 9113 | main () |
| 9114 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9115 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9116 | ; |
| 9117 | return 0; |
| 9118 | } |
| 9119 | _ACEOF |
| 9120 | rm -f conftest.$ac_objext |
| 9121 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9122 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9123 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9124 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9125 | rm -f conftest.er1 |
| 9126 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9128 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9129 | { ac_try='test -z "$ac_c_werror_flag" |
| 9130 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9132 | (eval $ac_try) 2>&5 |
| 9133 | ac_status=$? |
| 9134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9135 | (exit $ac_status); }; } && |
| 9136 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9138 | (eval $ac_try) 2>&5 |
| 9139 | ac_status=$? |
| 9140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9141 | (exit $ac_status); }; }; then |
| 9142 | |
| 9143 | |
| 9144 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9145 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9146 | _ACEOF |
| 9147 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 9148 | have_long_long=yes |
| 9149 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9150 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9151 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9152 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9153 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9154 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9155 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9156 | echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 9157 | echo "${ECHO_T}$have_long_long" >&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 9158 | if test "$have_long_long" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9159 | echo "$as_me:$LINENO: checking for long long" >&5 |
| 9160 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 9161 | if test "${ac_cv_type_long_long+set}" = set; then |
| 9162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9163 | else |
| 9164 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9165 | /* confdefs.h. */ |
| 9166 | _ACEOF |
| 9167 | cat confdefs.h >>conftest.$ac_ext |
| 9168 | cat >>conftest.$ac_ext <<_ACEOF |
| 9169 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9170 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9171 | int |
| 9172 | main () |
| 9173 | { |
| 9174 | if ((long long *) 0) |
| 9175 | return 0; |
| 9176 | if (sizeof (long long)) |
| 9177 | return 0; |
| 9178 | ; |
| 9179 | return 0; |
| 9180 | } |
| 9181 | _ACEOF |
| 9182 | rm -f conftest.$ac_objext |
| 9183 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9184 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9185 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9186 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9187 | rm -f conftest.er1 |
| 9188 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9190 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9191 | { ac_try='test -z "$ac_c_werror_flag" |
| 9192 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9194 | (eval $ac_try) 2>&5 |
| 9195 | ac_status=$? |
| 9196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9197 | (exit $ac_status); }; } && |
| 9198 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9200 | (eval $ac_try) 2>&5 |
| 9201 | ac_status=$? |
| 9202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9203 | (exit $ac_status); }; }; then |
| 9204 | ac_cv_type_long_long=yes |
| 9205 | else |
| 9206 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9207 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9208 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9209 | ac_cv_type_long_long=no |
| 9210 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9211 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9212 | fi |
| 9213 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 9214 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
| 9215 | |
| 9216 | echo "$as_me:$LINENO: checking size of long long" >&5 |
| 9217 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 |
| 9218 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 9219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9220 | else |
| 9221 | if test "$ac_cv_type_long_long" = yes; then |
| 9222 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 9223 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9224 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9225 | # This bug is HP SR number 8606223364. |
| 9226 | if test "$cross_compiling" = yes; then |
| 9227 | # Depending upon the size, compute the lo and hi bounds. |
| 9228 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9229 | /* confdefs.h. */ |
| 9230 | _ACEOF |
| 9231 | cat confdefs.h >>conftest.$ac_ext |
| 9232 | cat >>conftest.$ac_ext <<_ACEOF |
| 9233 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9234 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9235 | int |
| 9236 | main () |
| 9237 | { |
| 9238 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; |
| 9239 | test_array [0] = 0 |
| 9240 | |
| 9241 | ; |
| 9242 | return 0; |
| 9243 | } |
| 9244 | _ACEOF |
| 9245 | rm -f conftest.$ac_objext |
| 9246 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9247 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9248 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9249 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9250 | rm -f conftest.er1 |
| 9251 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9253 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9254 | { ac_try='test -z "$ac_c_werror_flag" |
| 9255 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9257 | (eval $ac_try) 2>&5 |
| 9258 | ac_status=$? |
| 9259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9260 | (exit $ac_status); }; } && |
| 9261 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9263 | (eval $ac_try) 2>&5 |
| 9264 | ac_status=$? |
| 9265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9266 | (exit $ac_status); }; }; then |
| 9267 | ac_lo=0 ac_mid=0 |
| 9268 | while :; do |
| 9269 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9270 | /* confdefs.h. */ |
| 9271 | _ACEOF |
| 9272 | cat confdefs.h >>conftest.$ac_ext |
| 9273 | cat >>conftest.$ac_ext <<_ACEOF |
| 9274 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9275 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9276 | int |
| 9277 | main () |
| 9278 | { |
| 9279 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 9280 | test_array [0] = 0 |
| 9281 | |
| 9282 | ; |
| 9283 | return 0; |
| 9284 | } |
| 9285 | _ACEOF |
| 9286 | rm -f conftest.$ac_objext |
| 9287 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9288 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9289 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9290 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9291 | rm -f conftest.er1 |
| 9292 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9294 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9295 | { ac_try='test -z "$ac_c_werror_flag" |
| 9296 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9298 | (eval $ac_try) 2>&5 |
| 9299 | ac_status=$? |
| 9300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9301 | (exit $ac_status); }; } && |
| 9302 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9304 | (eval $ac_try) 2>&5 |
| 9305 | ac_status=$? |
| 9306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9307 | (exit $ac_status); }; }; then |
| 9308 | ac_hi=$ac_mid; break |
| 9309 | else |
| 9310 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9311 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9312 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9313 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9314 | if test $ac_lo -le $ac_mid; then |
| 9315 | ac_lo= ac_hi= |
| 9316 | break |
| 9317 | fi |
| 9318 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9319 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9320 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9321 | done |
| 9322 | else |
| 9323 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9324 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9325 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9326 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9327 | /* confdefs.h. */ |
| 9328 | _ACEOF |
| 9329 | cat confdefs.h >>conftest.$ac_ext |
| 9330 | cat >>conftest.$ac_ext <<_ACEOF |
| 9331 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9332 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9333 | int |
| 9334 | main () |
| 9335 | { |
| 9336 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; |
| 9337 | test_array [0] = 0 |
| 9338 | |
| 9339 | ; |
| 9340 | return 0; |
| 9341 | } |
| 9342 | _ACEOF |
| 9343 | rm -f conftest.$ac_objext |
| 9344 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9345 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9346 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9347 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9348 | rm -f conftest.er1 |
| 9349 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9351 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9352 | { ac_try='test -z "$ac_c_werror_flag" |
| 9353 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9355 | (eval $ac_try) 2>&5 |
| 9356 | ac_status=$? |
| 9357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9358 | (exit $ac_status); }; } && |
| 9359 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9361 | (eval $ac_try) 2>&5 |
| 9362 | ac_status=$? |
| 9363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9364 | (exit $ac_status); }; }; then |
| 9365 | ac_hi=-1 ac_mid=-1 |
| 9366 | while :; do |
| 9367 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9368 | /* confdefs.h. */ |
| 9369 | _ACEOF |
| 9370 | cat confdefs.h >>conftest.$ac_ext |
| 9371 | cat >>conftest.$ac_ext <<_ACEOF |
| 9372 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9373 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9374 | int |
| 9375 | main () |
| 9376 | { |
| 9377 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; |
| 9378 | test_array [0] = 0 |
| 9379 | |
| 9380 | ; |
| 9381 | return 0; |
| 9382 | } |
| 9383 | _ACEOF |
| 9384 | rm -f conftest.$ac_objext |
| 9385 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9386 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9387 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9388 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9389 | rm -f conftest.er1 |
| 9390 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9392 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9393 | { ac_try='test -z "$ac_c_werror_flag" |
| 9394 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9396 | (eval $ac_try) 2>&5 |
| 9397 | ac_status=$? |
| 9398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9399 | (exit $ac_status); }; } && |
| 9400 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9402 | (eval $ac_try) 2>&5 |
| 9403 | ac_status=$? |
| 9404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9405 | (exit $ac_status); }; }; then |
| 9406 | ac_lo=$ac_mid; break |
| 9407 | else |
| 9408 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9409 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9410 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9411 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9412 | if test $ac_mid -le $ac_hi; then |
| 9413 | ac_lo= ac_hi= |
| 9414 | break |
| 9415 | fi |
| 9416 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9417 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9418 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9419 | done |
| 9420 | else |
| 9421 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9422 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9423 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9424 | ac_lo= ac_hi= |
| 9425 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9426 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9427 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9428 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9429 | # Binary search between lo and hi bounds. |
| 9430 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9431 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9432 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9433 | /* confdefs.h. */ |
| 9434 | _ACEOF |
| 9435 | cat confdefs.h >>conftest.$ac_ext |
| 9436 | cat >>conftest.$ac_ext <<_ACEOF |
| 9437 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9438 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9439 | int |
| 9440 | main () |
| 9441 | { |
| 9442 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 9443 | test_array [0] = 0 |
| 9444 | |
| 9445 | ; |
| 9446 | return 0; |
| 9447 | } |
| 9448 | _ACEOF |
| 9449 | rm -f conftest.$ac_objext |
| 9450 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9451 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9452 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9453 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9454 | rm -f conftest.er1 |
| 9455 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9457 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9458 | { ac_try='test -z "$ac_c_werror_flag" |
| 9459 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9461 | (eval $ac_try) 2>&5 |
| 9462 | ac_status=$? |
| 9463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9464 | (exit $ac_status); }; } && |
| 9465 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9467 | (eval $ac_try) 2>&5 |
| 9468 | ac_status=$? |
| 9469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9470 | (exit $ac_status); }; }; then |
| 9471 | ac_hi=$ac_mid |
| 9472 | else |
| 9473 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9474 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9475 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9476 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 9477 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9478 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9479 | done |
| 9480 | case $ac_lo in |
| 9481 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9482 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 |
| 9483 | See \`config.log' for more details." >&5 |
| 9484 | echo "$as_me: error: cannot compute sizeof (long long), 77 |
| 9485 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9486 | { (exit 1); exit 1; }; } ;; |
| 9487 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9488 | else |
| 9489 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9490 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 9491 | See \`config.log' for more details." >&5 |
| 9492 | echo "$as_me: error: cannot run test program while cross compiling |
| 9493 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9494 | { (exit 1); exit 1; }; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9495 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9496 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9497 | /* confdefs.h. */ |
| 9498 | _ACEOF |
| 9499 | cat confdefs.h >>conftest.$ac_ext |
| 9500 | cat >>conftest.$ac_ext <<_ACEOF |
| 9501 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9502 | $ac_includes_default |
| 9503 | long longval () { return (long) (sizeof (long long)); } |
| 9504 | unsigned long ulongval () { return (long) (sizeof (long long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9505 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9506 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9507 | int |
| 9508 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9509 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9510 | |
| 9511 | FILE *f = fopen ("conftest.val", "w"); |
| 9512 | if (! f) |
| 9513 | exit (1); |
| 9514 | if (((long) (sizeof (long long))) < 0) |
| 9515 | { |
| 9516 | long i = longval (); |
| 9517 | if (i != ((long) (sizeof (long long)))) |
| 9518 | exit (1); |
| 9519 | fprintf (f, "%ld\n", i); |
| 9520 | } |
| 9521 | else |
| 9522 | { |
| 9523 | unsigned long i = ulongval (); |
| 9524 | if (i != ((long) (sizeof (long long)))) |
| 9525 | exit (1); |
| 9526 | fprintf (f, "%lu\n", i); |
| 9527 | } |
| 9528 | exit (ferror (f) || fclose (f) != 0); |
| 9529 | |
| 9530 | ; |
| 9531 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9532 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9533 | _ACEOF |
| 9534 | rm -f conftest$ac_exeext |
| 9535 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9536 | (eval $ac_link) 2>&5 |
| 9537 | ac_status=$? |
| 9538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9539 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9541 | (eval $ac_try) 2>&5 |
| 9542 | ac_status=$? |
| 9543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9544 | (exit $ac_status); }; }; then |
| 9545 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9546 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9547 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9548 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9549 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9550 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9551 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9552 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 |
| 9553 | See \`config.log' for more details." >&5 |
| 9554 | echo "$as_me: error: cannot compute sizeof (long long), 77 |
| 9555 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9556 | { (exit 1); exit 1; }; } |
| 9557 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9558 | 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] | 9559 | fi |
| 9560 | fi |
| 9561 | rm -f conftest.val |
| 9562 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9563 | ac_cv_sizeof_long_long=0 |
| 9564 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9565 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9566 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 9567 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 |
| 9568 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9569 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9570 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9571 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9572 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9573 | fi |
| 9574 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9575 | echo "$as_me:$LINENO: checking for uintptr_t support" >&5 |
| 9576 | echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9577 | have_uintptr_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9578 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9579 | /* confdefs.h. */ |
| 9580 | _ACEOF |
| 9581 | cat confdefs.h >>conftest.$ac_ext |
| 9582 | cat >>conftest.$ac_ext <<_ACEOF |
| 9583 | /* end confdefs.h. */ |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9584 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9585 | int |
| 9586 | main () |
| 9587 | { |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9588 | uintptr_t x; x = (uintptr_t)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9589 | ; |
| 9590 | return 0; |
| 9591 | } |
| 9592 | _ACEOF |
| 9593 | rm -f conftest.$ac_objext |
| 9594 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9595 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9596 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9597 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9598 | rm -f conftest.er1 |
| 9599 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9601 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9602 | { ac_try='test -z "$ac_c_werror_flag" |
| 9603 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9605 | (eval $ac_try) 2>&5 |
| 9606 | ac_status=$? |
| 9607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9608 | (exit $ac_status); }; } && |
| 9609 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9611 | (eval $ac_try) 2>&5 |
| 9612 | ac_status=$? |
| 9613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9614 | (exit $ac_status); }; }; then |
| 9615 | |
| 9616 | |
| 9617 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9618 | #define HAVE_UINTPTR_T 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9619 | _ACEOF |
| 9620 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 9621 | have_uintptr_t=yes |
| 9622 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9623 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9624 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9625 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9626 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9627 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9628 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9629 | echo "$as_me:$LINENO: result: $have_uintptr_t" >&5 |
| 9630 | echo "${ECHO_T}$have_uintptr_t" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9631 | if test "$have_uintptr_t" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9632 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 9633 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| 9634 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 9635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9636 | else |
| 9637 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9638 | /* confdefs.h. */ |
| 9639 | _ACEOF |
| 9640 | cat confdefs.h >>conftest.$ac_ext |
| 9641 | cat >>conftest.$ac_ext <<_ACEOF |
| 9642 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9643 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9644 | int |
| 9645 | main () |
| 9646 | { |
| 9647 | if ((uintptr_t *) 0) |
| 9648 | return 0; |
| 9649 | if (sizeof (uintptr_t)) |
| 9650 | return 0; |
| 9651 | ; |
| 9652 | return 0; |
| 9653 | } |
| 9654 | _ACEOF |
| 9655 | rm -f conftest.$ac_objext |
| 9656 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9657 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9658 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9659 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9660 | rm -f conftest.er1 |
| 9661 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9663 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9664 | { ac_try='test -z "$ac_c_werror_flag" |
| 9665 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9667 | (eval $ac_try) 2>&5 |
| 9668 | ac_status=$? |
| 9669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9670 | (exit $ac_status); }; } && |
| 9671 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9673 | (eval $ac_try) 2>&5 |
| 9674 | ac_status=$? |
| 9675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9676 | (exit $ac_status); }; }; then |
| 9677 | ac_cv_type_uintptr_t=yes |
| 9678 | else |
| 9679 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9680 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9681 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9682 | ac_cv_type_uintptr_t=no |
| 9683 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9684 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9685 | fi |
| 9686 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 9687 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| 9688 | |
| 9689 | echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 9690 | echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6 |
| 9691 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
| 9692 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9693 | else |
| 9694 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 9695 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 9696 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9697 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9698 | # This bug is HP SR number 8606223364. |
| 9699 | if test "$cross_compiling" = yes; then |
| 9700 | # Depending upon the size, compute the lo and hi bounds. |
| 9701 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9702 | /* confdefs.h. */ |
| 9703 | _ACEOF |
| 9704 | cat confdefs.h >>conftest.$ac_ext |
| 9705 | cat >>conftest.$ac_ext <<_ACEOF |
| 9706 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9707 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9708 | int |
| 9709 | main () |
| 9710 | { |
| 9711 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)]; |
| 9712 | test_array [0] = 0 |
| 9713 | |
| 9714 | ; |
| 9715 | return 0; |
| 9716 | } |
| 9717 | _ACEOF |
| 9718 | rm -f conftest.$ac_objext |
| 9719 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9720 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9721 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9722 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9723 | rm -f conftest.er1 |
| 9724 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9726 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9727 | { ac_try='test -z "$ac_c_werror_flag" |
| 9728 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9730 | (eval $ac_try) 2>&5 |
| 9731 | ac_status=$? |
| 9732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9733 | (exit $ac_status); }; } && |
| 9734 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9736 | (eval $ac_try) 2>&5 |
| 9737 | ac_status=$? |
| 9738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9739 | (exit $ac_status); }; }; then |
| 9740 | ac_lo=0 ac_mid=0 |
| 9741 | while :; do |
| 9742 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9743 | /* confdefs.h. */ |
| 9744 | _ACEOF |
| 9745 | cat confdefs.h >>conftest.$ac_ext |
| 9746 | cat >>conftest.$ac_ext <<_ACEOF |
| 9747 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9748 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9749 | int |
| 9750 | main () |
| 9751 | { |
| 9752 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 9753 | test_array [0] = 0 |
| 9754 | |
| 9755 | ; |
| 9756 | return 0; |
| 9757 | } |
| 9758 | _ACEOF |
| 9759 | rm -f conftest.$ac_objext |
| 9760 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9761 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9762 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9763 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9764 | rm -f conftest.er1 |
| 9765 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9767 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9768 | { ac_try='test -z "$ac_c_werror_flag" |
| 9769 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9771 | (eval $ac_try) 2>&5 |
| 9772 | ac_status=$? |
| 9773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9774 | (exit $ac_status); }; } && |
| 9775 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9777 | (eval $ac_try) 2>&5 |
| 9778 | ac_status=$? |
| 9779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9780 | (exit $ac_status); }; }; then |
| 9781 | ac_hi=$ac_mid; break |
| 9782 | else |
| 9783 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9784 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9785 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9786 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9787 | if test $ac_lo -le $ac_mid; then |
| 9788 | ac_lo= ac_hi= |
| 9789 | break |
| 9790 | fi |
| 9791 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9792 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9793 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9794 | done |
| 9795 | else |
| 9796 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9797 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9798 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9799 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9800 | /* confdefs.h. */ |
| 9801 | _ACEOF |
| 9802 | cat confdefs.h >>conftest.$ac_ext |
| 9803 | cat >>conftest.$ac_ext <<_ACEOF |
| 9804 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9805 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9806 | int |
| 9807 | main () |
| 9808 | { |
| 9809 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)]; |
| 9810 | test_array [0] = 0 |
| 9811 | |
| 9812 | ; |
| 9813 | return 0; |
| 9814 | } |
| 9815 | _ACEOF |
| 9816 | rm -f conftest.$ac_objext |
| 9817 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9818 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9819 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9820 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9821 | rm -f conftest.er1 |
| 9822 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9824 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9825 | { ac_try='test -z "$ac_c_werror_flag" |
| 9826 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9828 | (eval $ac_try) 2>&5 |
| 9829 | ac_status=$? |
| 9830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9831 | (exit $ac_status); }; } && |
| 9832 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9834 | (eval $ac_try) 2>&5 |
| 9835 | ac_status=$? |
| 9836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9837 | (exit $ac_status); }; }; then |
| 9838 | ac_hi=-1 ac_mid=-1 |
| 9839 | while :; do |
| 9840 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9841 | /* confdefs.h. */ |
| 9842 | _ACEOF |
| 9843 | cat confdefs.h >>conftest.$ac_ext |
| 9844 | cat >>conftest.$ac_ext <<_ACEOF |
| 9845 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9846 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9847 | int |
| 9848 | main () |
| 9849 | { |
| 9850 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)]; |
| 9851 | test_array [0] = 0 |
| 9852 | |
| 9853 | ; |
| 9854 | return 0; |
| 9855 | } |
| 9856 | _ACEOF |
| 9857 | rm -f conftest.$ac_objext |
| 9858 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9859 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9860 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9861 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9862 | rm -f conftest.er1 |
| 9863 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9865 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9866 | { ac_try='test -z "$ac_c_werror_flag" |
| 9867 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9869 | (eval $ac_try) 2>&5 |
| 9870 | ac_status=$? |
| 9871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9872 | (exit $ac_status); }; } && |
| 9873 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9875 | (eval $ac_try) 2>&5 |
| 9876 | ac_status=$? |
| 9877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9878 | (exit $ac_status); }; }; then |
| 9879 | ac_lo=$ac_mid; break |
| 9880 | else |
| 9881 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9882 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9883 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9884 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9885 | if test $ac_mid -le $ac_hi; then |
| 9886 | ac_lo= ac_hi= |
| 9887 | break |
| 9888 | fi |
| 9889 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9890 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9891 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9892 | done |
| 9893 | else |
| 9894 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9895 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9896 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9897 | ac_lo= ac_hi= |
| 9898 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9899 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9900 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9901 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9902 | # Binary search between lo and hi bounds. |
| 9903 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9904 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9905 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9906 | /* confdefs.h. */ |
| 9907 | _ACEOF |
| 9908 | cat confdefs.h >>conftest.$ac_ext |
| 9909 | cat >>conftest.$ac_ext <<_ACEOF |
| 9910 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9911 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9912 | int |
| 9913 | main () |
| 9914 | { |
| 9915 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 9916 | test_array [0] = 0 |
| 9917 | |
| 9918 | ; |
| 9919 | return 0; |
| 9920 | } |
| 9921 | _ACEOF |
| 9922 | rm -f conftest.$ac_objext |
| 9923 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9924 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9925 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9926 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9927 | rm -f conftest.er1 |
| 9928 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9930 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9931 | { ac_try='test -z "$ac_c_werror_flag" |
| 9932 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9934 | (eval $ac_try) 2>&5 |
| 9935 | ac_status=$? |
| 9936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9937 | (exit $ac_status); }; } && |
| 9938 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9940 | (eval $ac_try) 2>&5 |
| 9941 | ac_status=$? |
| 9942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9943 | (exit $ac_status); }; }; then |
| 9944 | ac_hi=$ac_mid |
| 9945 | else |
| 9946 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9947 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9948 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9949 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 9950 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9951 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9952 | done |
| 9953 | case $ac_lo in |
| 9954 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9955 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77 |
| 9956 | See \`config.log' for more details." >&5 |
| 9957 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77 |
| 9958 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9959 | { (exit 1); exit 1; }; } ;; |
| 9960 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9961 | else |
| 9962 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9963 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 9964 | See \`config.log' for more details." >&5 |
| 9965 | echo "$as_me: error: cannot run test program while cross compiling |
| 9966 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9967 | { (exit 1); exit 1; }; } |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9968 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9969 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9970 | /* confdefs.h. */ |
| 9971 | _ACEOF |
| 9972 | cat confdefs.h >>conftest.$ac_ext |
| 9973 | cat >>conftest.$ac_ext <<_ACEOF |
| 9974 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9975 | $ac_includes_default |
| 9976 | long longval () { return (long) (sizeof (uintptr_t)); } |
| 9977 | unsigned long ulongval () { return (long) (sizeof (uintptr_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9978 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9979 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9980 | int |
| 9981 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9982 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9983 | |
| 9984 | FILE *f = fopen ("conftest.val", "w"); |
| 9985 | if (! f) |
| 9986 | exit (1); |
| 9987 | if (((long) (sizeof (uintptr_t))) < 0) |
| 9988 | { |
| 9989 | long i = longval (); |
| 9990 | if (i != ((long) (sizeof (uintptr_t)))) |
| 9991 | exit (1); |
| 9992 | fprintf (f, "%ld\n", i); |
| 9993 | } |
| 9994 | else |
| 9995 | { |
| 9996 | unsigned long i = ulongval (); |
| 9997 | if (i != ((long) (sizeof (uintptr_t)))) |
| 9998 | exit (1); |
| 9999 | fprintf (f, "%lu\n", i); |
| 10000 | } |
| 10001 | exit (ferror (f) || fclose (f) != 0); |
| 10002 | |
| 10003 | ; |
| 10004 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 10005 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10006 | _ACEOF |
| 10007 | rm -f conftest$ac_exeext |
| 10008 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10009 | (eval $ac_link) 2>&5 |
| 10010 | ac_status=$? |
| 10011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10012 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10014 | (eval $ac_try) 2>&5 |
| 10015 | ac_status=$? |
| 10016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10017 | (exit $ac_status); }; }; then |
| 10018 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 10019 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10020 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10021 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10022 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10023 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10024 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10025 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77 |
| 10026 | See \`config.log' for more details." >&5 |
| 10027 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77 |
| 10028 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10029 | { (exit 1); exit 1; }; } |
| 10030 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10031 | 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] | 10032 | fi |
| 10033 | fi |
| 10034 | rm -f conftest.val |
| 10035 | else |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 10036 | ac_cv_sizeof_uintptr_t=0 |
| 10037 | fi |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 10038 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10039 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 10040 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6 |
| 10041 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 10042 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10043 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 10044 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10045 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 10046 | fi |
| 10047 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10048 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10049 | echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 10050 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6 |
| 10051 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 10052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10053 | else |
| 10054 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 10055 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10056 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10057 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10058 | /* confdefs.h. */ |
| 10059 | _ACEOF |
| 10060 | cat confdefs.h >>conftest.$ac_ext |
| 10061 | cat >>conftest.$ac_ext <<_ACEOF |
| 10062 | /* end confdefs.h. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10063 | #include <stdio.h> |
| 10064 | #include <sys/types.h> |
| 10065 | main() |
| 10066 | { |
| 10067 | FILE *f=fopen("conftestval", "w"); |
| 10068 | if (!f) exit(1); |
| 10069 | fprintf(f, "%d\n", sizeof(off_t)); |
| 10070 | exit(0); |
| 10071 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10072 | _ACEOF |
| 10073 | rm -f conftest$ac_exeext |
| 10074 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10075 | (eval $ac_link) 2>&5 |
| 10076 | ac_status=$? |
| 10077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10078 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10080 | (eval $ac_try) 2>&5 |
| 10081 | ac_status=$? |
| 10082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10083 | (exit $ac_status); }; }; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10084 | ac_cv_sizeof_off_t=`cat conftestval` |
| 10085 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10086 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10087 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10088 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10089 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10090 | ( exit $ac_status ) |
| 10091 | ac_cv_sizeof_off_t=0 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10092 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10093 | 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] | 10094 | fi |
| 10095 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10096 | fi |
| 10097 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10098 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 10099 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6 |
| 10100 | |
| 10101 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10102 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10103 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10104 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10105 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10106 | echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 10107 | 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] | 10108 | if test "$have_long_long" = yes -a \ |
| 10109 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 10110 | "$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] | 10111 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10112 | cat >>confdefs.h <<\_ACEOF |
| 10113 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 10114 | _ACEOF |
| 10115 | |
| 10116 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10117 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10118 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10119 | echo "$as_me:$LINENO: result: no" >&5 |
| 10120 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10121 | fi |
| 10122 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10123 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10124 | echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 10125 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6 |
| 10126 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 10127 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10128 | else |
| 10129 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 10130 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10131 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10132 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10133 | /* confdefs.h. */ |
| 10134 | _ACEOF |
| 10135 | cat confdefs.h >>conftest.$ac_ext |
| 10136 | cat >>conftest.$ac_ext <<_ACEOF |
| 10137 | /* end confdefs.h. */ |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10138 | #include <stdio.h> |
| 10139 | #include <time.h> |
| 10140 | main() |
| 10141 | { |
| 10142 | FILE *f=fopen("conftestval", "w"); |
| 10143 | if (!f) exit(1); |
| 10144 | fprintf(f, "%d\n", sizeof(time_t)); |
| 10145 | exit(0); |
| 10146 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10147 | _ACEOF |
| 10148 | rm -f conftest$ac_exeext |
| 10149 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10150 | (eval $ac_link) 2>&5 |
| 10151 | ac_status=$? |
| 10152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10153 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10155 | (eval $ac_try) 2>&5 |
| 10156 | ac_status=$? |
| 10157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10158 | (exit $ac_status); }; }; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10159 | ac_cv_sizeof_time_t=`cat conftestval` |
| 10160 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10161 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10162 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10163 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10164 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10165 | ( exit $ac_status ) |
| 10166 | ac_cv_sizeof_time_t=0 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10167 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10168 | 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] | 10169 | fi |
| 10170 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10171 | fi |
| 10172 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10173 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 10174 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6 |
| 10175 | |
| 10176 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10177 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10178 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10179 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10180 | |
| 10181 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10182 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 10183 | ac_save_cc="$CC" |
| 10184 | if test "$ac_cv_kpthread" = "yes" |
| 10185 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10186 | elif test "$ac_cv_kthread" = "yes" |
| 10187 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10188 | elif test "$ac_cv_pthread" = "yes" |
| 10189 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 10190 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10191 | echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 10192 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10193 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10194 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10195 | /* confdefs.h. */ |
| 10196 | _ACEOF |
| 10197 | cat confdefs.h >>conftest.$ac_ext |
| 10198 | cat >>conftest.$ac_ext <<_ACEOF |
| 10199 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10200 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10201 | int |
| 10202 | main () |
| 10203 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 10204 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10205 | ; |
| 10206 | return 0; |
| 10207 | } |
| 10208 | _ACEOF |
| 10209 | rm -f conftest.$ac_objext |
| 10210 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10211 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10212 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10213 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10214 | rm -f conftest.er1 |
| 10215 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10217 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10218 | { ac_try='test -z "$ac_c_werror_flag" |
| 10219 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10221 | (eval $ac_try) 2>&5 |
| 10222 | ac_status=$? |
| 10223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10224 | (exit $ac_status); }; } && |
| 10225 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10227 | (eval $ac_try) 2>&5 |
| 10228 | ac_status=$? |
| 10229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10230 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10231 | have_pthread_t=yes |
| 10232 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10233 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10234 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10235 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10236 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10237 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10238 | echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 10239 | echo "${ECHO_T}$have_pthread_t" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10240 | if test "$have_pthread_t" = yes ; then |
| 10241 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10242 | echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 10243 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6 |
| 10244 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 10245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10246 | else |
| 10247 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 10248 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10249 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10250 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10251 | /* confdefs.h. */ |
| 10252 | _ACEOF |
| 10253 | cat confdefs.h >>conftest.$ac_ext |
| 10254 | cat >>conftest.$ac_ext <<_ACEOF |
| 10255 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10256 | #include <stdio.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10257 | #include <pthread.h> |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10258 | main() |
| 10259 | { |
| 10260 | FILE *f=fopen("conftestval", "w"); |
| 10261 | if (!f) exit(1); |
| 10262 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 10263 | exit(0); |
| 10264 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10265 | _ACEOF |
| 10266 | rm -f conftest$ac_exeext |
| 10267 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10268 | (eval $ac_link) 2>&5 |
| 10269 | ac_status=$? |
| 10270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10271 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10273 | (eval $ac_try) 2>&5 |
| 10274 | ac_status=$? |
| 10275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10276 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10277 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 10278 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10279 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10280 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10281 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10282 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10283 | ( exit $ac_status ) |
| 10284 | ac_cv_sizeof_pthread_t=0 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10285 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10286 | 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] | 10287 | fi |
| 10288 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10289 | fi |
| 10290 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10291 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
| 10292 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6 |
| 10293 | |
| 10294 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10295 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10296 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10297 | |
| 10298 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 10299 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10300 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10301 | echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 10302 | echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10303 | # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given. |
| 10304 | if test "${enable_toolbox_glue+set}" = set; then |
| 10305 | enableval="$enable_toolbox_glue" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10306 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10307 | fi; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10308 | |
| 10309 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10310 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10311 | case $ac_sys_system/$ac_sys_release in |
| 10312 | Darwin/*) |
| 10313 | enable_toolbox_glue="yes";; |
| 10314 | *) |
| 10315 | enable_toolbox_glue="no";; |
| 10316 | esac |
| 10317 | fi |
| 10318 | case "$enable_toolbox_glue" in |
| 10319 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10320 | extra_machdep_objs="Python/mactoolboxglue.o" |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 10321 | extra_undefs="-u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10322 | |
| 10323 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10324 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10325 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10326 | |
| 10327 | ;; |
| 10328 | *) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10329 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 10330 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10331 | ;; |
| 10332 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10333 | echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 10334 | echo "${ECHO_T}$enable_toolbox_glue" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10335 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10336 | |
| 10337 | case $ac_sys_system/$ac_sys_release in |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 10338 | Darwin/[01234567].*) |
| 10339 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
| 10340 | ;; |
| 10341 | Darwin/*) |
| 10342 | OTHER_LIBTOOL_OPT="" |
| 10343 | ;; |
| 10344 | esac |
| 10345 | |
| 10346 | |
| 10347 | case $ac_sys_system/$ac_sys_release in |
| 10348 | Darwin/[01234567].*) |
| 10349 | LIBTOOL_CRUFT="-framework System -lcc_dynamic -arch_only ppc" |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 10350 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10351 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 10352 | Darwin/*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 10353 | gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3` |
| 10354 | if test ${gcc_version} '<' 4.0 |
| 10355 | then |
| 10356 | LIBTOOL_CRUFT="-lcc_dynamic" |
| 10357 | else |
| 10358 | LIBTOOL_CRUFT="" |
| 10359 | fi |
| 10360 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -lSystem -lSystemStubs -arch_only ppc' |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 10361 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10362 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10363 | esac |
| 10364 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10365 | echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 10366 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10367 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10368 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10369 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10370 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10371 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10372 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10373 | cat >>confdefs.h <<\_ACEOF |
| 10374 | #define WITH_NEXT_FRAMEWORK 1 |
| 10375 | _ACEOF |
| 10376 | |
| 10377 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10378 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10379 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10380 | echo "$as_me:$LINENO: result: no" >&5 |
| 10381 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10382 | fi |
| 10383 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10384 | echo "$as_me:$LINENO: checking for dyld" >&5 |
| 10385 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10386 | case $ac_sys_system/$ac_sys_release in |
| 10387 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10388 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10389 | cat >>confdefs.h <<\_ACEOF |
| 10390 | #define WITH_DYLD 1 |
| 10391 | _ACEOF |
| 10392 | |
| 10393 | echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 10394 | echo "${ECHO_T}always on for Darwin" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10395 | ;; |
| 10396 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10397 | echo "$as_me:$LINENO: result: no" >&5 |
| 10398 | echo "${ECHO_T}no" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10399 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10400 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10401 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10402 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10403 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10404 | |
| 10405 | |
| 10406 | |
| 10407 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10408 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 10409 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10410 | echo "$as_me:$LINENO: checking SO" >&5 |
| 10411 | echo $ECHO_N "checking SO... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10412 | if test -z "$SO" |
| 10413 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10414 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 10415 | hp*|HP*) SO=.sl;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 10416 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 10417 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10418 | esac |
Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 10419 | else |
| 10420 | # this might also be a termcap variable, see #610332 |
| 10421 | echo |
| 10422 | echo '=====================================================================' |
| 10423 | echo '+ +' |
| 10424 | echo '+ WARNING: You have set SO in your environment. +' |
| 10425 | echo '+ Do you really mean to change the extension for shared libraries? +' |
| 10426 | echo '+ Continuing in 10 seconds to let you to ponder. +' |
| 10427 | echo '+ +' |
| 10428 | echo '=====================================================================' |
| 10429 | sleep 10 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10430 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10431 | echo "$as_me:$LINENO: result: $SO" >&5 |
| 10432 | echo "${ECHO_T}$SO" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10433 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 10434 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10435 | # (Shared libraries in this instance are shared modules to be loaded into |
| 10436 | # 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] | 10437 | echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 10438 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10439 | if test -z "$LDSHARED" |
| 10440 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10441 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10442 | AIX*) |
| 10443 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 10444 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10445 | ;; |
| 10446 | BeOS*) |
| 10447 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 10448 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10449 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 10450 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 10451 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10452 | SunOS/5*) |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 10453 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 10454 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 10455 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 10456 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10457 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 10458 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 10459 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10460 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 10461 | if test "$enable_framework" ; then |
| 10462 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 10463 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 10464 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10465 | else |
| 10466 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 10467 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10468 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10469 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10470 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 10471 | if test "$enable_framework" ; then |
| 10472 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 10473 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 10474 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10475 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 10476 | # No framework, use the Python app as bundle-loader |
| 10477 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 10478 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10479 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10480 | Darwin/*) |
| 10481 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
| 10482 | # This allows an extension to be used in any Python |
Jack Jansen | be95462 | 2004-12-26 23:07:48 +0000 | [diff] [blame] | 10483 | cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
Jack Jansen | c110f86 | 2005-01-07 10:49:32 +0000 | [diff] [blame] | 10484 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} |
Jack Jansen | be95462 | 2004-12-26 23:07:48 +0000 | [diff] [blame] | 10485 | if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2 |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10486 | then |
| 10487 | LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup' |
| 10488 | BLDSHARED="$LDSHARED" |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10489 | else |
| 10490 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 10491 | if test "$enable_framework" ; then |
| 10492 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 10493 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 10494 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10495 | else |
| 10496 | # No framework, use the Python app as bundle-loader |
| 10497 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 10498 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
| 10499 | fi |
| 10500 | fi |
| 10501 | ;; |
Martin v. Löwis | 3cba5c0 | 2002-09-16 17:50:59 +0000 | [diff] [blame] | 10502 | Linux*|GNU*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 10503 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 10504 | OpenBSD*|FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 10505 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 10506 | then |
Hye-Shik Chang | 3376149 | 2004-10-26 09:53:46 +0000 | [diff] [blame] | 10507 | LDSHARED="$CC -shared ${LDFLAGS}" |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 10508 | else |
| 10509 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 10510 | fi;; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 10511 | NetBSD*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 10512 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10513 | if test "$GCC" = "yes" |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 10514 | then LDSHARED='$(CC) -shared' |
| 10515 | else LDSHARED='$(CC) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10516 | fi;; |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 10517 | SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10518 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 10519 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10520 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10521 | *) LDSHARED="ld";; |
| 10522 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10523 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10524 | echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 10525 | echo "${ECHO_T}$LDSHARED" >&6 |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10526 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10527 | # 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] | 10528 | # library (module) -- this is only needed for a few systems |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10529 | echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 10530 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10531 | if test -z "$CCSHARED" |
| 10532 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 10533 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 10534 | SunOS*) if test "$GCC" = yes; |
| 10535 | then CCSHARED="-fPIC"; |
Martin v. Löwis | d5845ec | 2005-12-30 12:31:38 +0000 | [diff] [blame] | 10536 | else CCSHARED="-xcode=pic32"; |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 10537 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 10538 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 10539 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 10540 | else CCSHARED="+z"; |
| 10541 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10542 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 10543 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 10544 | FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 10545 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10546 | if test "$GCC" = "yes" |
| 10547 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10548 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10549 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 10550 | SCO_SV*) |
| 10551 | if test "$GCC" = "yes" |
| 10552 | then CCSHARED="-fPIC" |
| 10553 | else CCSHARED="-Kpic -belf" |
| 10554 | fi;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10555 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10556 | IRIX*/6*) case $CC in |
| 10557 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 10558 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10559 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10560 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10561 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10562 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10563 | echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 10564 | echo "${ECHO_T}$CCSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10565 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10566 | # 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] | 10567 | echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 10568 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10569 | if test -z "$LINKFORSHARED" |
| 10570 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 10571 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10572 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 10573 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10574 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 10575 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 10576 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10577 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10578 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10579 | Darwin/*) |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 10580 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, |
| 10581 | # which is |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10582 | # not used by the core itself but which needs to be in the core so |
| 10583 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 10584 | # -prebind is no longer used, because it actually seems to give a |
| 10585 | # slowdown in stead of a speedup, maybe due to the large number of |
| 10586 | # dynamic loads Python does. |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 10587 | |
| 10588 | LINKFORSHARED="$extra_undefs" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10589 | if test "$enable_framework" |
| 10590 | then |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 10591 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10592 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 10593 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 10594 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 10595 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 10596 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10597 | FreeBSD*|NetBSD*|OpenBSD*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 10598 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 10599 | then |
| 10600 | LINKFORSHARED="-Wl,--export-dynamic" |
| 10601 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10602 | SunOS/5*) case $CC in |
| 10603 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 10604 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 10605 | then |
| 10606 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10607 | fi;; |
| 10608 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 10609 | CYGWIN*) |
| 10610 | if test $enable_shared = "no" |
| 10611 | then |
| 10612 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 10613 | fi;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10614 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10615 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10616 | echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 10617 | echo "${ECHO_T}$LINKFORSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10618 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10619 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10620 | echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 10621 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 10622 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 10623 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 10624 | case $ac_sys_system in |
| 10625 | CYGWIN*) |
| 10626 | # Cygwin needs CCSHARED when building extension DLLs |
| 10627 | # but not when building the interpreter DLL. |
| 10628 | CFLAGSFORSHARED='';; |
| 10629 | *) |
| 10630 | CFLAGSFORSHARED='$(CCSHARED)' |
| 10631 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 10632 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10633 | echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 10634 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 10635 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10636 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 10637 | # library (with --enable-shared). |
| 10638 | # 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] | 10639 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 10640 | # if it is not required, since it creates a dependency of the shared library |
| 10641 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 10642 | # don't need to link LIBS explicitly. The default should be only changed |
| 10643 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10644 | |
| 10645 | echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 10646 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6 |
| 10647 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10648 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 10649 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10650 | esac |
| 10651 | echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 10652 | echo "${ECHO_T}$SHLIBS" >&6 |
| 10653 | |
| 10654 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10655 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10656 | |
| 10657 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 10658 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 10659 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 10660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10661 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10662 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10663 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10664 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10665 | /* confdefs.h. */ |
| 10666 | _ACEOF |
| 10667 | cat confdefs.h >>conftest.$ac_ext |
| 10668 | cat >>conftest.$ac_ext <<_ACEOF |
| 10669 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10670 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10671 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10672 | #ifdef __cplusplus |
| 10673 | extern "C" |
| 10674 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10675 | /* 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] | 10676 | builtin and then its argument prototype would still apply. */ |
| 10677 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10678 | int |
| 10679 | main () |
| 10680 | { |
| 10681 | dlopen (); |
| 10682 | ; |
| 10683 | return 0; |
| 10684 | } |
| 10685 | _ACEOF |
| 10686 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10687 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10688 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10689 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10690 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10691 | rm -f conftest.er1 |
| 10692 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10694 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10695 | { ac_try='test -z "$ac_c_werror_flag" |
| 10696 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10698 | (eval $ac_try) 2>&5 |
| 10699 | ac_status=$? |
| 10700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10701 | (exit $ac_status); }; } && |
| 10702 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10704 | (eval $ac_try) 2>&5 |
| 10705 | ac_status=$? |
| 10706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10707 | (exit $ac_status); }; }; then |
| 10708 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10709 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10710 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10711 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10712 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10713 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10714 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10715 | rm -f conftest.err conftest.$ac_objext \ |
| 10716 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10717 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10718 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10719 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10720 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 10721 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 10722 | cat >>confdefs.h <<_ACEOF |
| 10723 | #define HAVE_LIBDL 1 |
| 10724 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10725 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10726 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10727 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10728 | fi |
| 10729 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10730 | |
| 10731 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 10732 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 10733 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 10734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10735 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10736 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10737 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10738 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10739 | /* confdefs.h. */ |
| 10740 | _ACEOF |
| 10741 | cat confdefs.h >>conftest.$ac_ext |
| 10742 | cat >>conftest.$ac_ext <<_ACEOF |
| 10743 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10744 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10745 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10746 | #ifdef __cplusplus |
| 10747 | extern "C" |
| 10748 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10749 | /* 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] | 10750 | builtin and then its argument prototype would still apply. */ |
| 10751 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10752 | int |
| 10753 | main () |
| 10754 | { |
| 10755 | shl_load (); |
| 10756 | ; |
| 10757 | return 0; |
| 10758 | } |
| 10759 | _ACEOF |
| 10760 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10761 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10762 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10763 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10764 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10765 | rm -f conftest.er1 |
| 10766 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10768 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10769 | { ac_try='test -z "$ac_c_werror_flag" |
| 10770 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10772 | (eval $ac_try) 2>&5 |
| 10773 | ac_status=$? |
| 10774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10775 | (exit $ac_status); }; } && |
| 10776 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10778 | (eval $ac_try) 2>&5 |
| 10779 | ac_status=$? |
| 10780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10781 | (exit $ac_status); }; }; then |
| 10782 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10783 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10784 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10785 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10786 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10787 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10788 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10789 | rm -f conftest.err conftest.$ac_objext \ |
| 10790 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10791 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10792 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10793 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 10794 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 10795 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 10796 | cat >>confdefs.h <<_ACEOF |
| 10797 | #define HAVE_LIBDLD 1 |
| 10798 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10799 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10800 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10801 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10802 | fi |
| 10803 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10804 | |
| 10805 | # only check for sem_ini if thread support is requested |
| 10806 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
| 10807 | 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] | 10808 | echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6 |
| 10809 | if test "${ac_cv_search_sem_init+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10811 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10812 | ac_func_search_save_LIBS=$LIBS |
| 10813 | ac_cv_search_sem_init=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10814 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10815 | /* confdefs.h. */ |
| 10816 | _ACEOF |
| 10817 | cat confdefs.h >>conftest.$ac_ext |
| 10818 | cat >>conftest.$ac_ext <<_ACEOF |
| 10819 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10820 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10821 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10822 | #ifdef __cplusplus |
| 10823 | extern "C" |
| 10824 | #endif |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10825 | /* 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] | 10826 | builtin and then its argument prototype would still apply. */ |
| 10827 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10828 | int |
| 10829 | main () |
| 10830 | { |
| 10831 | sem_init (); |
| 10832 | ; |
| 10833 | return 0; |
| 10834 | } |
| 10835 | _ACEOF |
| 10836 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10837 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10838 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10839 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10840 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10841 | rm -f conftest.er1 |
| 10842 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10844 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10845 | { ac_try='test -z "$ac_c_werror_flag" |
| 10846 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10848 | (eval $ac_try) 2>&5 |
| 10849 | ac_status=$? |
| 10850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10851 | (exit $ac_status); }; } && |
| 10852 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10854 | (eval $ac_try) 2>&5 |
| 10855 | ac_status=$? |
| 10856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10857 | (exit $ac_status); }; }; then |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10858 | ac_cv_search_sem_init="none required" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10859 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10860 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10861 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10862 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10863 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10864 | rm -f conftest.err conftest.$ac_objext \ |
| 10865 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10866 | if test "$ac_cv_search_sem_init" = no; then |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 10867 | for ac_lib in pthread rt posix4; do |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10868 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 10869 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10870 | /* confdefs.h. */ |
| 10871 | _ACEOF |
| 10872 | cat confdefs.h >>conftest.$ac_ext |
| 10873 | cat >>conftest.$ac_ext <<_ACEOF |
| 10874 | /* end confdefs.h. */ |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10875 | |
| 10876 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10877 | #ifdef __cplusplus |
| 10878 | extern "C" |
| 10879 | #endif |
| 10880 | /* We use char because int might match the return type of a gcc2 |
| 10881 | builtin and then its argument prototype would still apply. */ |
| 10882 | char sem_init (); |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10883 | int |
| 10884 | main () |
| 10885 | { |
| 10886 | sem_init (); |
| 10887 | ; |
| 10888 | return 0; |
| 10889 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10890 | _ACEOF |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10891 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10892 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10893 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10894 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10895 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10896 | rm -f conftest.er1 |
| 10897 | cat conftest.err >&5 |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10899 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10900 | { ac_try='test -z "$ac_c_werror_flag" |
| 10901 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10903 | (eval $ac_try) 2>&5 |
| 10904 | ac_status=$? |
| 10905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10906 | (exit $ac_status); }; } && |
| 10907 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10909 | (eval $ac_try) 2>&5 |
| 10910 | ac_status=$? |
| 10911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10912 | (exit $ac_status); }; }; then |
| 10913 | ac_cv_search_sem_init="-l$ac_lib" |
| 10914 | break |
| 10915 | else |
| 10916 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10917 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10918 | |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10919 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10920 | rm -f conftest.err conftest.$ac_objext \ |
| 10921 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10922 | done |
| 10923 | fi |
| 10924 | LIBS=$ac_func_search_save_LIBS |
| 10925 | fi |
| 10926 | echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 10927 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6 |
| 10928 | if test "$ac_cv_search_sem_init" != no; then |
| 10929 | 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] | 10930 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10931 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 10932 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10933 | # posix4 on Solaris 2.6 |
| 10934 | # pthread (first!) on Linux |
| 10935 | fi |
| 10936 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10937 | # check if we need libintl for locale functions |
| 10938 | echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5 |
| 10939 | echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6 |
| 10940 | if test "${ac_cv_lib_intl_textdomain+set}" = set; then |
| 10941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10942 | else |
| 10943 | ac_check_lib_save_LIBS=$LIBS |
| 10944 | LIBS="-lintl $LIBS" |
| 10945 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10946 | /* confdefs.h. */ |
| 10947 | _ACEOF |
| 10948 | cat confdefs.h >>conftest.$ac_ext |
| 10949 | cat >>conftest.$ac_ext <<_ACEOF |
| 10950 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10951 | |
| 10952 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10953 | #ifdef __cplusplus |
| 10954 | extern "C" |
| 10955 | #endif |
| 10956 | /* We use char because int might match the return type of a gcc2 |
| 10957 | builtin and then its argument prototype would still apply. */ |
| 10958 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10959 | int |
| 10960 | main () |
| 10961 | { |
| 10962 | textdomain (); |
| 10963 | ; |
| 10964 | return 0; |
| 10965 | } |
| 10966 | _ACEOF |
| 10967 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10968 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10969 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10970 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10971 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10972 | rm -f conftest.er1 |
| 10973 | cat conftest.err >&5 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10975 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10976 | { ac_try='test -z "$ac_c_werror_flag" |
| 10977 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10979 | (eval $ac_try) 2>&5 |
| 10980 | ac_status=$? |
| 10981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10982 | (exit $ac_status); }; } && |
| 10983 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10985 | (eval $ac_try) 2>&5 |
| 10986 | ac_status=$? |
| 10987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10988 | (exit $ac_status); }; }; then |
| 10989 | ac_cv_lib_intl_textdomain=yes |
| 10990 | else |
| 10991 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10992 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10993 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10994 | ac_cv_lib_intl_textdomain=no |
| 10995 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10996 | rm -f conftest.err conftest.$ac_objext \ |
| 10997 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10998 | LIBS=$ac_check_lib_save_LIBS |
| 10999 | fi |
| 11000 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5 |
| 11001 | echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6 |
| 11002 | if test $ac_cv_lib_intl_textdomain = yes; then |
| 11003 | |
| 11004 | cat >>confdefs.h <<\_ACEOF |
| 11005 | #define WITH_LIBINTL 1 |
| 11006 | _ACEOF |
| 11007 | |
| 11008 | fi |
| 11009 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 11010 | |
| 11011 | # checks for system dependent C++ extensions support |
| 11012 | case "$ac_sys_system" in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11013 | AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 11014 | echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6 |
| 11015 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11016 | /* confdefs.h. */ |
| 11017 | _ACEOF |
| 11018 | cat confdefs.h >>conftest.$ac_ext |
| 11019 | cat >>conftest.$ac_ext <<_ACEOF |
| 11020 | /* end confdefs.h. */ |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 11021 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11022 | int |
| 11023 | main () |
| 11024 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 11025 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11026 | ; |
| 11027 | return 0; |
| 11028 | } |
| 11029 | _ACEOF |
| 11030 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11031 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11032 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11033 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11034 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11035 | rm -f conftest.er1 |
| 11036 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11038 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11039 | { ac_try='test -z "$ac_c_werror_flag" |
| 11040 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11042 | (eval $ac_try) 2>&5 |
| 11043 | ac_status=$? |
| 11044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11045 | (exit $ac_status); }; } && |
| 11046 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11048 | (eval $ac_try) 2>&5 |
| 11049 | ac_status=$? |
| 11050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11051 | (exit $ac_status); }; }; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 11052 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11053 | cat >>confdefs.h <<\_ACEOF |
| 11054 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 11055 | _ACEOF |
| 11056 | |
| 11057 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11058 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 11059 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11060 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11061 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11062 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11063 | echo "$as_me:$LINENO: result: no" >&5 |
| 11064 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 11065 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11066 | rm -f conftest.err conftest.$ac_objext \ |
| 11067 | conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 11068 | *) ;; |
| 11069 | esac |
| 11070 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 11071 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11072 | # BeOS' sockets are stashed in libnet. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11073 | echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 11074 | echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6 |
| 11075 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
| 11076 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 11077 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11078 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11079 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11080 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11081 | /* confdefs.h. */ |
| 11082 | _ACEOF |
| 11083 | cat confdefs.h >>conftest.$ac_ext |
| 11084 | cat >>conftest.$ac_ext <<_ACEOF |
| 11085 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11086 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11087 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11088 | #ifdef __cplusplus |
| 11089 | extern "C" |
| 11090 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11091 | /* 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] | 11092 | builtin and then its argument prototype would still apply. */ |
| 11093 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11094 | int |
| 11095 | main () |
| 11096 | { |
| 11097 | t_open (); |
| 11098 | ; |
| 11099 | return 0; |
| 11100 | } |
| 11101 | _ACEOF |
| 11102 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11103 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11104 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11105 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11106 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11107 | rm -f conftest.er1 |
| 11108 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11110 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11111 | { ac_try='test -z "$ac_c_werror_flag" |
| 11112 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11114 | (eval $ac_try) 2>&5 |
| 11115 | ac_status=$? |
| 11116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11117 | (exit $ac_status); }; } && |
| 11118 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11120 | (eval $ac_try) 2>&5 |
| 11121 | ac_status=$? |
| 11122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11123 | (exit $ac_status); }; }; then |
| 11124 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 11125 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11126 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11127 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11128 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11129 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 11130 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11131 | rm -f conftest.err conftest.$ac_objext \ |
| 11132 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11133 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 11134 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11135 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 11136 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6 |
| 11137 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 11138 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 11139 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 11140 | # SVR4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11141 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 11142 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 11143 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 11144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11145 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11146 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11147 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11148 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11149 | /* confdefs.h. */ |
| 11150 | _ACEOF |
| 11151 | cat confdefs.h >>conftest.$ac_ext |
| 11152 | cat >>conftest.$ac_ext <<_ACEOF |
| 11153 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11154 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11155 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11156 | #ifdef __cplusplus |
| 11157 | extern "C" |
| 11158 | #endif |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11159 | /* 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] | 11160 | builtin and then its argument prototype would still apply. */ |
| 11161 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11162 | int |
| 11163 | main () |
| 11164 | { |
| 11165 | socket (); |
| 11166 | ; |
| 11167 | return 0; |
| 11168 | } |
| 11169 | _ACEOF |
| 11170 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11171 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11172 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11173 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11174 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11175 | rm -f conftest.er1 |
| 11176 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11178 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11179 | { ac_try='test -z "$ac_c_werror_flag" |
| 11180 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11182 | (eval $ac_try) 2>&5 |
| 11183 | ac_status=$? |
| 11184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11185 | (exit $ac_status); }; } && |
| 11186 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11188 | (eval $ac_try) 2>&5 |
| 11189 | ac_status=$? |
| 11190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11191 | (exit $ac_status); }; }; then |
| 11192 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11193 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11194 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11195 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11196 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11197 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11198 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11199 | rm -f conftest.err conftest.$ac_objext \ |
| 11200 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11201 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11202 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11203 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 11204 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 11205 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11206 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11207 | fi |
| 11208 | # SVR4 sockets |
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 11209 | |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 11210 | case "$ac_sys_system" in |
| 11211 | BeOS*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11212 | echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 11213 | echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6 |
| 11214 | if test "${ac_cv_lib_net_socket+set}" = set; then |
| 11215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11216 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11217 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11218 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11219 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11220 | /* confdefs.h. */ |
| 11221 | _ACEOF |
| 11222 | cat confdefs.h >>conftest.$ac_ext |
| 11223 | cat >>conftest.$ac_ext <<_ACEOF |
| 11224 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11225 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11226 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11227 | #ifdef __cplusplus |
| 11228 | extern "C" |
| 11229 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11230 | /* 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] | 11231 | builtin and then its argument prototype would still apply. */ |
| 11232 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11233 | int |
| 11234 | main () |
| 11235 | { |
| 11236 | socket (); |
| 11237 | ; |
| 11238 | return 0; |
| 11239 | } |
| 11240 | _ACEOF |
| 11241 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11242 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11243 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11244 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11245 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11246 | rm -f conftest.er1 |
| 11247 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11249 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11250 | { ac_try='test -z "$ac_c_werror_flag" |
| 11251 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11253 | (eval $ac_try) 2>&5 |
| 11254 | ac_status=$? |
| 11255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11256 | (exit $ac_status); }; } && |
| 11257 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11259 | (eval $ac_try) 2>&5 |
| 11260 | ac_status=$? |
| 11261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11262 | (exit $ac_status); }; }; then |
| 11263 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11264 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11265 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11266 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11267 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11268 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11269 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11270 | rm -f conftest.err conftest.$ac_objext \ |
| 11271 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11272 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11273 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11274 | echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 11275 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6 |
| 11276 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11277 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11278 | fi |
| 11279 | # BeOS |
| 11280 | ;; |
| 11281 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 11282 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11283 | echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 11284 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6 |
| 11285 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 11286 | # Check whether --with-libs or --without-libs was given. |
| 11287 | if test "${with_libs+set}" = set; then |
| 11288 | withval="$with_libs" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11289 | |
| 11290 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11291 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 11292 | LIBS="$withval $LIBS" |
| 11293 | |
| 11294 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11295 | echo "$as_me:$LINENO: result: no" >&5 |
| 11296 | echo "${ECHO_T}no" >&6 |
| 11297 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11298 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11299 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 11300 | |
| 11301 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11302 | echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 11303 | echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6 |
| 11304 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 11305 | # Check whether --with-signal-module or --without-signal-module was given. |
| 11306 | if test "${with_signal_module+set}" = set; then |
| 11307 | withval="$with_signal_module" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 11308 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11309 | fi; |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 11310 | |
| 11311 | if test -z "$with_signal_module" |
| 11312 | then with_signal_module="yes" |
| 11313 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11314 | echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 11315 | echo "${ECHO_T}$with_signal_module" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 11316 | |
| 11317 | if test "${with_signal_module}" = "yes"; then |
| 11318 | USE_SIGNAL_MODULE="" |
| 11319 | SIGNAL_OBJS="" |
| 11320 | else |
| 11321 | USE_SIGNAL_MODULE="#" |
| 11322 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 11323 | fi |
| 11324 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 11325 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 11326 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 11327 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 11328 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11329 | echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 11330 | echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6 |
| 11331 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11332 | |
| 11333 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 11334 | if test "${with_dec_threads+set}" = set; then |
| 11335 | withval="$with_dec_threads" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11336 | |
| 11337 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11338 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11339 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 11340 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11341 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 11342 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11343 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11344 | echo "$as_me:$LINENO: result: no" >&5 |
| 11345 | echo "${ECHO_T}no" >&6 |
| 11346 | fi; |
| 11347 | |
| 11348 | # Templates for things AC_DEFINEd more than once. |
| 11349 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11350 | |
| 11351 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11352 | |
| 11353 | |
| 11354 | |
| 11355 | |
| 11356 | |
| 11357 | echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 11358 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6 |
| 11359 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11360 | # Check whether --with-threads or --without-threads was given. |
| 11361 | if test "${with_threads+set}" = set; then |
| 11362 | withval="$with_threads" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11363 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11364 | fi; |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11365 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 11366 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11367 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11368 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11369 | if test "${with_thread+set}" = set; then |
| 11370 | withval="$with_thread" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11371 | with_threads=$with_thread |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11372 | fi; |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 11373 | |
| 11374 | if test -z "$with_threads" |
| 11375 | then with_threads="yes" |
| 11376 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11377 | echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 11378 | echo "${ECHO_T}$with_threads" >&6 |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 11379 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11380 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 11381 | if test "$with_threads" = "no" |
| 11382 | then |
| 11383 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11384 | elif test "$ac_cv_pthread_is_default" = yes |
| 11385 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11386 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11387 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11388 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11389 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11390 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11391 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11392 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11393 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11394 | |
| 11395 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11396 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11397 | elif test "$ac_cv_kpthread" = "yes" |
| 11398 | then |
| 11399 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 11400 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 11401 | CXX="$CXX -Kpthread" |
| 11402 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11403 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 11404 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11405 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 11406 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11407 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11408 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 11409 | elif test "$ac_cv_kthread" = "yes" |
| 11410 | then |
| 11411 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 11412 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 11413 | CXX="$CXX -Kthread" |
| 11414 | fi |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 11415 | cat >>confdefs.h <<\_ACEOF |
| 11416 | #define WITH_THREAD 1 |
| 11417 | _ACEOF |
| 11418 | |
| 11419 | posix_threads=yes |
| 11420 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11421 | elif test "$ac_cv_pthread" = "yes" |
| 11422 | then |
| 11423 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 11424 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 11425 | CXX="$CXX -pthread" |
| 11426 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11427 | cat >>confdefs.h <<\_ACEOF |
| 11428 | #define WITH_THREAD 1 |
| 11429 | _ACEOF |
| 11430 | |
| 11431 | posix_threads=yes |
| 11432 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11433 | else |
| 11434 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 11435 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 11436 | fi |
| 11437 | if test ! -z "$withval" -a -d "$withval" |
| 11438 | then LDFLAGS="$LDFLAGS -L$withval" |
| 11439 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11440 | |
| 11441 | # According to the POSIX spec, a pthreads implementation must |
Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 11442 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
| 11443 | # (e.g. gnu pth with pthread emulation) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11444 | echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 11445 | echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6 |
| 11446 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11447 | /* confdefs.h. */ |
| 11448 | _ACEOF |
| 11449 | cat confdefs.h >>conftest.$ac_ext |
| 11450 | cat >>conftest.$ac_ext <<_ACEOF |
| 11451 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 11452 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11453 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 11454 | #ifdef _POSIX_THREADS |
| 11455 | yes |
| 11456 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11457 | |
| 11458 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11459 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11460 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11461 | unistd_defines_pthreads=yes |
| 11462 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11463 | unistd_defines_pthreads=no |
| 11464 | fi |
| 11465 | rm -f conftest* |
| 11466 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11467 | echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 11468 | echo "${ECHO_T}$unistd_defines_pthreads" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11469 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11470 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 11471 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11472 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 11473 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11474 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 11475 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 11476 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 11477 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 11478 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11479 | fi |
| 11480 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 11481 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11482 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11483 | # Is the header compilable? |
| 11484 | echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 11485 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6 |
| 11486 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11487 | /* confdefs.h. */ |
| 11488 | _ACEOF |
| 11489 | cat confdefs.h >>conftest.$ac_ext |
| 11490 | cat >>conftest.$ac_ext <<_ACEOF |
| 11491 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11492 | $ac_includes_default |
| 11493 | #include <cthreads.h> |
| 11494 | _ACEOF |
| 11495 | rm -f conftest.$ac_objext |
| 11496 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11497 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11498 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11499 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11500 | rm -f conftest.er1 |
| 11501 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11503 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11504 | { ac_try='test -z "$ac_c_werror_flag" |
| 11505 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11507 | (eval $ac_try) 2>&5 |
| 11508 | ac_status=$? |
| 11509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11510 | (exit $ac_status); }; } && |
| 11511 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11513 | (eval $ac_try) 2>&5 |
| 11514 | ac_status=$? |
| 11515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11516 | (exit $ac_status); }; }; then |
| 11517 | ac_header_compiler=yes |
| 11518 | else |
| 11519 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11520 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11521 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11522 | ac_header_compiler=no |
| 11523 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11524 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11525 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11526 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11527 | |
| 11528 | # Is the header present? |
| 11529 | echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 11530 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6 |
| 11531 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11532 | /* confdefs.h. */ |
| 11533 | _ACEOF |
| 11534 | cat confdefs.h >>conftest.$ac_ext |
| 11535 | cat >>conftest.$ac_ext <<_ACEOF |
| 11536 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11537 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11538 | _ACEOF |
| 11539 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11540 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11541 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11542 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11543 | rm -f conftest.er1 |
| 11544 | cat conftest.err >&5 |
| 11545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11546 | (exit $ac_status); } >/dev/null; then |
| 11547 | if test -s conftest.err; then |
| 11548 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11549 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11550 | else |
| 11551 | ac_cpp_err= |
| 11552 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11553 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11554 | ac_cpp_err=yes |
| 11555 | fi |
| 11556 | if test -z "$ac_cpp_err"; then |
| 11557 | ac_header_preproc=yes |
| 11558 | else |
| 11559 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11560 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11561 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11562 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11563 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11564 | rm -f conftest.err conftest.$ac_ext |
| 11565 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11566 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11567 | |
| 11568 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11569 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11570 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11571 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11572 | echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11573 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5 |
| 11574 | echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;} |
| 11575 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 11576 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11577 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 11578 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 11579 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11580 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 11581 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 11582 | { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5 |
| 11583 | echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;} |
| 11584 | { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 11585 | echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 11586 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 11587 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11588 | { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5 |
| 11589 | echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 11590 | ( |
| 11591 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 11592 | ## ------------------------------------------------ ## |
| 11593 | ## Report this to http://www.python.org/python-bugs ## |
| 11594 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11595 | _ASBOX |
| 11596 | ) | |
| 11597 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11598 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11599 | esac |
| 11600 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 11601 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 11602 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 11603 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11604 | else |
| 11605 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11606 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11607 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 11608 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
| 11609 | |
| 11610 | fi |
| 11611 | if test $ac_cv_header_cthreads_h = yes; then |
| 11612 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11613 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11614 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11615 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11616 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11617 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11618 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11619 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11620 | |
| 11621 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11622 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11623 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11624 | |
| 11625 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11626 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11627 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11628 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11629 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 11630 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 11631 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 11632 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 11633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11634 | fi |
| 11635 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 11636 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11637 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11638 | # Is the header compilable? |
| 11639 | echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 11640 | echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6 |
| 11641 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11642 | /* confdefs.h. */ |
| 11643 | _ACEOF |
| 11644 | cat confdefs.h >>conftest.$ac_ext |
| 11645 | cat >>conftest.$ac_ext <<_ACEOF |
| 11646 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11647 | $ac_includes_default |
| 11648 | #include <mach/cthreads.h> |
| 11649 | _ACEOF |
| 11650 | rm -f conftest.$ac_objext |
| 11651 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11652 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11653 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11654 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11655 | rm -f conftest.er1 |
| 11656 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11658 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11659 | { ac_try='test -z "$ac_c_werror_flag" |
| 11660 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11662 | (eval $ac_try) 2>&5 |
| 11663 | ac_status=$? |
| 11664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11665 | (exit $ac_status); }; } && |
| 11666 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11668 | (eval $ac_try) 2>&5 |
| 11669 | ac_status=$? |
| 11670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11671 | (exit $ac_status); }; }; then |
| 11672 | ac_header_compiler=yes |
| 11673 | else |
| 11674 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11675 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11676 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11677 | ac_header_compiler=no |
| 11678 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11679 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11680 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11681 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11682 | |
| 11683 | # Is the header present? |
| 11684 | echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 11685 | echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6 |
| 11686 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11687 | /* confdefs.h. */ |
| 11688 | _ACEOF |
| 11689 | cat confdefs.h >>conftest.$ac_ext |
| 11690 | cat >>conftest.$ac_ext <<_ACEOF |
| 11691 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11692 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11693 | _ACEOF |
| 11694 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11695 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11696 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11697 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11698 | rm -f conftest.er1 |
| 11699 | cat conftest.err >&5 |
| 11700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11701 | (exit $ac_status); } >/dev/null; then |
| 11702 | if test -s conftest.err; then |
| 11703 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11704 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11705 | else |
| 11706 | ac_cpp_err= |
| 11707 | fi |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11708 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11709 | ac_cpp_err=yes |
| 11710 | fi |
| 11711 | if test -z "$ac_cpp_err"; then |
| 11712 | ac_header_preproc=yes |
| 11713 | else |
| 11714 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11715 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11716 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11717 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11718 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11719 | rm -f conftest.err conftest.$ac_ext |
| 11720 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11721 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11722 | |
| 11723 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11724 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11725 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11726 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11727 | echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11728 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5 |
| 11729 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;} |
| 11730 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 11731 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11732 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 11733 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 11734 | echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11735 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 11736 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 11737 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5 |
| 11738 | echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;} |
| 11739 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 11740 | echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 11741 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 11742 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11743 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5 |
| 11744 | echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 11745 | ( |
| 11746 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 11747 | ## ------------------------------------------------ ## |
| 11748 | ## Report this to http://www.python.org/python-bugs ## |
| 11749 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11750 | _ASBOX |
| 11751 | ) | |
| 11752 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11753 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11754 | esac |
| 11755 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 11756 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 11757 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 11758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11759 | else |
| 11760 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11761 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11762 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 11763 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
| 11764 | |
| 11765 | fi |
| 11766 | if test $ac_cv_header_mach_cthreads_h = yes; then |
| 11767 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11768 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11769 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11770 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11771 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11772 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11773 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11774 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11775 | |
| 11776 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11777 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11778 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11779 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11780 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11781 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11782 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11783 | echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 11784 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6 |
| 11785 | |
| 11786 | # Check whether --with-pth or --without-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 11787 | if test "${with_pth+set}" = set; then |
| 11788 | withval="$with_pth" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11789 | echo "$as_me:$LINENO: result: $withval" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11790 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11791 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11792 | #define WITH_THREAD 1 |
| 11793 | _ACEOF |
| 11794 | |
| 11795 | |
| 11796 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 11797 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11798 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 11799 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11800 | LIBS="-lpth $LIBS" |
| 11801 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 11802 | else |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11803 | echo "$as_me:$LINENO: result: no" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11804 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11805 | |
| 11806 | # Just looking for pthread_create in libpthread is not enough: |
| 11807 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 11808 | # So we really have to include pthread.h, and then link. |
| 11809 | _libs=$LIBS |
| 11810 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11811 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 11812 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| 11813 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11814 | /* confdefs.h. */ |
| 11815 | _ACEOF |
| 11816 | cat confdefs.h >>conftest.$ac_ext |
| 11817 | cat >>conftest.$ac_ext <<_ACEOF |
| 11818 | /* end confdefs.h. */ |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11819 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 11820 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11821 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11822 | int |
| 11823 | main () |
| 11824 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11825 | |
| 11826 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11827 | ; |
| 11828 | return 0; |
| 11829 | } |
| 11830 | _ACEOF |
| 11831 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11832 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11833 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11834 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11835 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11836 | rm -f conftest.er1 |
| 11837 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11839 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11840 | { ac_try='test -z "$ac_c_werror_flag" |
| 11841 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11843 | (eval $ac_try) 2>&5 |
| 11844 | ac_status=$? |
| 11845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11846 | (exit $ac_status); }; } && |
| 11847 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11849 | (eval $ac_try) 2>&5 |
| 11850 | ac_status=$? |
| 11851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11852 | (exit $ac_status); }; }; then |
| 11853 | |
| 11854 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11855 | echo "${ECHO_T}yes" >&6 |
| 11856 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 11857 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11858 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 11859 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11860 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11861 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 11862 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11863 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11864 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11865 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11866 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11867 | LIBS=$_libs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11868 | echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 11869 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6 |
| 11870 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
| 11871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11872 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11873 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11874 | /* confdefs.h. */ |
| 11875 | _ACEOF |
| 11876 | cat confdefs.h >>conftest.$ac_ext |
| 11877 | cat >>conftest.$ac_ext <<_ACEOF |
| 11878 | /* end confdefs.h. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11879 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11880 | which can conflict with char pthread_detach (); below. |
| 11881 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 11882 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 11883 | including <limits.h> includes <sys/time.h> and causes problems |
| 11884 | checking for functions defined therein. */ |
| 11885 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11886 | # include <limits.h> |
| 11887 | #else |
| 11888 | # include <assert.h> |
| 11889 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11890 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11891 | #ifdef __cplusplus |
| 11892 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11893 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11894 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11895 | /* 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] | 11896 | builtin and then its argument prototype would still apply. */ |
| 11897 | char pthread_detach (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11898 | /* The GNU C library defines this for functions which it implements |
| 11899 | to always fail with ENOSYS. Some functions are actually named |
| 11900 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 11901 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11902 | choke me |
| 11903 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11904 | char (*f) () = pthread_detach; |
| 11905 | #endif |
| 11906 | #ifdef __cplusplus |
| 11907 | } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11908 | #endif |
| 11909 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11910 | int |
| 11911 | main () |
| 11912 | { |
| 11913 | return f != pthread_detach; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11914 | ; |
| 11915 | return 0; |
| 11916 | } |
| 11917 | _ACEOF |
| 11918 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11919 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11920 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11921 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11922 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11923 | rm -f conftest.er1 |
| 11924 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11926 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11927 | { ac_try='test -z "$ac_c_werror_flag" |
| 11928 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11930 | (eval $ac_try) 2>&5 |
| 11931 | ac_status=$? |
| 11932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11933 | (exit $ac_status); }; } && |
| 11934 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11936 | (eval $ac_try) 2>&5 |
| 11937 | ac_status=$? |
| 11938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11939 | (exit $ac_status); }; }; then |
| 11940 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11941 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11942 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11943 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11944 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11945 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11946 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11947 | rm -f conftest.err conftest.$ac_objext \ |
| 11948 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11949 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11950 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 11951 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6 |
| 11952 | if test $ac_cv_func_pthread_detach = yes; then |
| 11953 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11954 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11955 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11956 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11957 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11958 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11959 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11960 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11961 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 11962 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 11963 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 11964 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 11965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11966 | fi |
| 11967 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 11968 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 11969 | else |
| 11970 | # Is the header compilable? |
| 11971 | echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 11972 | echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6 |
| 11973 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11974 | /* confdefs.h. */ |
| 11975 | _ACEOF |
| 11976 | cat confdefs.h >>conftest.$ac_ext |
| 11977 | cat >>conftest.$ac_ext <<_ACEOF |
| 11978 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11979 | $ac_includes_default |
| 11980 | #include <atheos/threads.h> |
| 11981 | _ACEOF |
| 11982 | rm -f conftest.$ac_objext |
| 11983 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11984 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11985 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11986 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11987 | rm -f conftest.er1 |
| 11988 | cat conftest.err >&5 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11990 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11991 | { ac_try='test -z "$ac_c_werror_flag" |
| 11992 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11994 | (eval $ac_try) 2>&5 |
| 11995 | ac_status=$? |
| 11996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11997 | (exit $ac_status); }; } && |
| 11998 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12000 | (eval $ac_try) 2>&5 |
| 12001 | ac_status=$? |
| 12002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12003 | (exit $ac_status); }; }; then |
| 12004 | ac_header_compiler=yes |
| 12005 | else |
| 12006 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12007 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12008 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12009 | ac_header_compiler=no |
| 12010 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12011 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12012 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12013 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 12014 | |
| 12015 | # Is the header present? |
| 12016 | echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 12017 | echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6 |
| 12018 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12019 | /* confdefs.h. */ |
| 12020 | _ACEOF |
| 12021 | cat confdefs.h >>conftest.$ac_ext |
| 12022 | cat >>conftest.$ac_ext <<_ACEOF |
| 12023 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12024 | #include <atheos/threads.h> |
| 12025 | _ACEOF |
| 12026 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 12027 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 12028 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12029 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12030 | rm -f conftest.er1 |
| 12031 | cat conftest.err >&5 |
| 12032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12033 | (exit $ac_status); } >/dev/null; then |
| 12034 | if test -s conftest.err; then |
| 12035 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12036 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12037 | else |
| 12038 | ac_cpp_err= |
| 12039 | fi |
| 12040 | else |
| 12041 | ac_cpp_err=yes |
| 12042 | fi |
| 12043 | if test -z "$ac_cpp_err"; then |
| 12044 | ac_header_preproc=yes |
| 12045 | else |
| 12046 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12047 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12048 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12049 | ac_header_preproc=no |
| 12050 | fi |
| 12051 | rm -f conftest.err conftest.$ac_ext |
| 12052 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12053 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 12054 | |
| 12055 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12056 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12057 | yes:no: ) |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12058 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12059 | echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12060 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5 |
| 12061 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;} |
| 12062 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12063 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12064 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12065 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 12066 | echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12067 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 12068 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 12069 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5 |
| 12070 | echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;} |
| 12071 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 12072 | echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12073 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 12074 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12075 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5 |
| 12076 | echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12077 | ( |
| 12078 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 12079 | ## ------------------------------------------------ ## |
| 12080 | ## Report this to http://www.python.org/python-bugs ## |
| 12081 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12082 | _ASBOX |
| 12083 | ) | |
| 12084 | sed "s/^/$as_me: WARNING: /" >&2 |
| 12085 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12086 | esac |
| 12087 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 12088 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 12089 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 12090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12091 | else |
| 12092 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 12093 | fi |
| 12094 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 12095 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 12096 | |
| 12097 | fi |
| 12098 | if test $ac_cv_header_atheos_threads_h = yes; then |
| 12099 | cat >>confdefs.h <<\_ACEOF |
| 12100 | #define WITH_THREAD 1 |
| 12101 | _ACEOF |
| 12102 | |
| 12103 | |
| 12104 | cat >>confdefs.h <<\_ACEOF |
| 12105 | #define ATHEOS_THREADS 1 |
| 12106 | _ACEOF |
| 12107 | |
| 12108 | THREADOBJ="Python/thread.o" |
| 12109 | else |
| 12110 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12111 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 12112 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 12113 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 12114 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 12115 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12116 | fi |
| 12117 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 12118 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12119 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12120 | # Is the header compilable? |
| 12121 | echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 12122 | echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6 |
| 12123 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12124 | /* confdefs.h. */ |
| 12125 | _ACEOF |
| 12126 | cat confdefs.h >>conftest.$ac_ext |
| 12127 | cat >>conftest.$ac_ext <<_ACEOF |
| 12128 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12129 | $ac_includes_default |
| 12130 | #include <kernel/OS.h> |
| 12131 | _ACEOF |
| 12132 | rm -f conftest.$ac_objext |
| 12133 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12134 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12135 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12136 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12137 | rm -f conftest.er1 |
| 12138 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12140 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12141 | { ac_try='test -z "$ac_c_werror_flag" |
| 12142 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12144 | (eval $ac_try) 2>&5 |
| 12145 | ac_status=$? |
| 12146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12147 | (exit $ac_status); }; } && |
| 12148 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12150 | (eval $ac_try) 2>&5 |
| 12151 | ac_status=$? |
| 12152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12153 | (exit $ac_status); }; }; then |
| 12154 | ac_header_compiler=yes |
| 12155 | else |
| 12156 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12157 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12158 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12159 | ac_header_compiler=no |
| 12160 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12161 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12162 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12163 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 12164 | |
| 12165 | # Is the header present? |
| 12166 | echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 12167 | echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6 |
| 12168 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12169 | /* confdefs.h. */ |
| 12170 | _ACEOF |
| 12171 | cat confdefs.h >>conftest.$ac_ext |
| 12172 | cat >>conftest.$ac_ext <<_ACEOF |
| 12173 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12174 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12175 | _ACEOF |
| 12176 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 12177 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 12178 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12179 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12180 | rm -f conftest.er1 |
| 12181 | cat conftest.err >&5 |
| 12182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12183 | (exit $ac_status); } >/dev/null; then |
| 12184 | if test -s conftest.err; then |
| 12185 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12186 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12187 | else |
| 12188 | ac_cpp_err= |
| 12189 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12190 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12191 | ac_cpp_err=yes |
| 12192 | fi |
| 12193 | if test -z "$ac_cpp_err"; then |
| 12194 | ac_header_preproc=yes |
| 12195 | else |
| 12196 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12197 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12198 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12199 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12200 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12201 | rm -f conftest.err conftest.$ac_ext |
| 12202 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12203 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12204 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12205 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12206 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12207 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12208 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12209 | echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12210 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5 |
| 12211 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;} |
| 12212 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12213 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12214 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12215 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 12216 | echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12217 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 12218 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 12219 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5 |
| 12220 | echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;} |
| 12221 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 12222 | echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12223 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 12224 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12225 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5 |
| 12226 | echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12227 | ( |
| 12228 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 12229 | ## ------------------------------------------------ ## |
| 12230 | ## Report this to http://www.python.org/python-bugs ## |
| 12231 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12232 | _ASBOX |
| 12233 | ) | |
| 12234 | sed "s/^/$as_me: WARNING: /" >&2 |
| 12235 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12236 | esac |
| 12237 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 12238 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 12239 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 12240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12241 | else |
| 12242 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 12243 | fi |
| 12244 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 12245 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
| 12246 | |
| 12247 | fi |
| 12248 | if test $ac_cv_header_kernel_OS_h = yes; then |
| 12249 | cat >>confdefs.h <<\_ACEOF |
| 12250 | #define WITH_THREAD 1 |
| 12251 | _ACEOF |
| 12252 | |
| 12253 | |
| 12254 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12255 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12256 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12257 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12258 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12259 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12260 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12261 | echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 12262 | echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6 |
| 12263 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
| 12264 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12265 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12266 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12267 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12268 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12269 | /* confdefs.h. */ |
| 12270 | _ACEOF |
| 12271 | cat confdefs.h >>conftest.$ac_ext |
| 12272 | cat >>conftest.$ac_ext <<_ACEOF |
| 12273 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12274 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12275 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12276 | #ifdef __cplusplus |
| 12277 | extern "C" |
| 12278 | #endif |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12279 | /* 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] | 12280 | builtin and then its argument prototype would still apply. */ |
| 12281 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12282 | int |
| 12283 | main () |
| 12284 | { |
| 12285 | pthread_create (); |
| 12286 | ; |
| 12287 | return 0; |
| 12288 | } |
| 12289 | _ACEOF |
| 12290 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12291 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12292 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12293 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12294 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12295 | rm -f conftest.er1 |
| 12296 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12298 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12299 | { ac_try='test -z "$ac_c_werror_flag" |
| 12300 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12302 | (eval $ac_try) 2>&5 |
| 12303 | ac_status=$? |
| 12304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12305 | (exit $ac_status); }; } && |
| 12306 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12308 | (eval $ac_try) 2>&5 |
| 12309 | ac_status=$? |
| 12310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12311 | (exit $ac_status); }; }; then |
| 12312 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12313 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12314 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12315 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12316 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12317 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12318 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12319 | rm -f conftest.err conftest.$ac_objext \ |
| 12320 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12321 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12322 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12323 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 12324 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6 |
| 12325 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
| 12326 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12327 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12328 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12329 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12330 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12331 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12332 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12333 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12334 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12335 | echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 12336 | echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6 |
| 12337 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
| 12338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12339 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12340 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12341 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12342 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12343 | /* confdefs.h. */ |
| 12344 | _ACEOF |
| 12345 | cat confdefs.h >>conftest.$ac_ext |
| 12346 | cat >>conftest.$ac_ext <<_ACEOF |
| 12347 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12348 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12349 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12350 | #ifdef __cplusplus |
| 12351 | extern "C" |
| 12352 | #endif |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12353 | /* 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] | 12354 | builtin and then its argument prototype would still apply. */ |
| 12355 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12356 | int |
| 12357 | main () |
| 12358 | { |
| 12359 | pthread_create (); |
| 12360 | ; |
| 12361 | return 0; |
| 12362 | } |
| 12363 | _ACEOF |
| 12364 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12365 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12366 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12367 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12368 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12369 | rm -f conftest.er1 |
| 12370 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12372 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12373 | { ac_try='test -z "$ac_c_werror_flag" |
| 12374 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12376 | (eval $ac_try) 2>&5 |
| 12377 | ac_status=$? |
| 12378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12379 | (exit $ac_status); }; } && |
| 12380 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12382 | (eval $ac_try) 2>&5 |
| 12383 | ac_status=$? |
| 12384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12385 | (exit $ac_status); }; }; then |
| 12386 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12387 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12388 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12389 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12390 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12391 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12392 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12393 | rm -f conftest.err conftest.$ac_objext \ |
| 12394 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12395 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12396 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12397 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 12398 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6 |
| 12399 | if test $ac_cv_lib_c_r_pthread_create = yes; then |
| 12400 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12401 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12402 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12403 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12404 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12405 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12406 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 12407 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 12408 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12409 | echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 12410 | echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6 |
| 12411 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
| 12412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12413 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12414 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12415 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12416 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12417 | /* confdefs.h. */ |
| 12418 | _ACEOF |
| 12419 | cat confdefs.h >>conftest.$ac_ext |
| 12420 | cat >>conftest.$ac_ext <<_ACEOF |
| 12421 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12422 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12423 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12424 | #ifdef __cplusplus |
| 12425 | extern "C" |
| 12426 | #endif |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12427 | /* 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] | 12428 | builtin and then its argument prototype would still apply. */ |
| 12429 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12430 | int |
| 12431 | main () |
| 12432 | { |
| 12433 | __pthread_create_system (); |
| 12434 | ; |
| 12435 | return 0; |
| 12436 | } |
| 12437 | _ACEOF |
| 12438 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12439 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12440 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12441 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12442 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12443 | rm -f conftest.er1 |
| 12444 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12446 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12447 | { ac_try='test -z "$ac_c_werror_flag" |
| 12448 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12450 | (eval $ac_try) 2>&5 |
| 12451 | ac_status=$? |
| 12452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12453 | (exit $ac_status); }; } && |
| 12454 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12456 | (eval $ac_try) 2>&5 |
| 12457 | ac_status=$? |
| 12458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12459 | (exit $ac_status); }; }; then |
| 12460 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12461 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12462 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12463 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12464 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12465 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12466 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12467 | rm -f conftest.err conftest.$ac_objext \ |
| 12468 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12469 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12470 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12471 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 12472 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6 |
| 12473 | if test $ac_cv_lib_pthread___pthread_create_system = yes; then |
| 12474 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12475 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12476 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12477 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12478 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12479 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12480 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12481 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12482 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12483 | echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 12484 | echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6 |
| 12485 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
| 12486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12487 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12488 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12489 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12490 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12491 | /* confdefs.h. */ |
| 12492 | _ACEOF |
| 12493 | cat confdefs.h >>conftest.$ac_ext |
| 12494 | cat >>conftest.$ac_ext <<_ACEOF |
| 12495 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12496 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12497 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12498 | #ifdef __cplusplus |
| 12499 | extern "C" |
| 12500 | #endif |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12501 | /* 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] | 12502 | builtin and then its argument prototype would still apply. */ |
| 12503 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12504 | int |
| 12505 | main () |
| 12506 | { |
| 12507 | pthread_create (); |
| 12508 | ; |
| 12509 | return 0; |
| 12510 | } |
| 12511 | _ACEOF |
| 12512 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12513 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12514 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12515 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12516 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12517 | rm -f conftest.er1 |
| 12518 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12520 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12521 | { ac_try='test -z "$ac_c_werror_flag" |
| 12522 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12524 | (eval $ac_try) 2>&5 |
| 12525 | ac_status=$? |
| 12526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12527 | (exit $ac_status); }; } && |
| 12528 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12530 | (eval $ac_try) 2>&5 |
| 12531 | ac_status=$? |
| 12532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12533 | (exit $ac_status); }; }; then |
| 12534 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12535 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12536 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12537 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12538 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12539 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12540 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12541 | rm -f conftest.err conftest.$ac_objext \ |
| 12542 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12543 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12544 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12545 | echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 12546 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6 |
| 12547 | if test $ac_cv_lib_cma_pthread_create = yes; then |
| 12548 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12549 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12550 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12551 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12552 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12553 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12554 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12555 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 12556 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12557 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 12558 | fi |
| 12559 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12560 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 12561 | fi |
| 12562 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 12563 | fi |
| 12564 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12565 | fi |
| 12566 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12567 | fi |
| 12568 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 12569 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12570 | fi |
| 12571 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12572 | |
| 12573 | fi |
| 12574 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12575 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12576 | rm -f conftest.err conftest.$ac_objext \ |
| 12577 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12578 | fi; |
| 12579 | fi |
| 12580 | |
| 12581 | |
| 12582 | fi |
| 12583 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12584 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12585 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12586 | echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 12587 | echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6 |
| 12588 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
| 12589 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12590 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12591 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12592 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12593 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12594 | /* confdefs.h. */ |
| 12595 | _ACEOF |
| 12596 | cat confdefs.h >>conftest.$ac_ext |
| 12597 | cat >>conftest.$ac_ext <<_ACEOF |
| 12598 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12599 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12600 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12601 | #ifdef __cplusplus |
| 12602 | extern "C" |
| 12603 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12604 | /* 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] | 12605 | builtin and then its argument prototype would still apply. */ |
| 12606 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12607 | int |
| 12608 | main () |
| 12609 | { |
| 12610 | usconfig (); |
| 12611 | ; |
| 12612 | return 0; |
| 12613 | } |
| 12614 | _ACEOF |
| 12615 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12616 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12617 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12618 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12619 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12620 | rm -f conftest.er1 |
| 12621 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12623 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12624 | { ac_try='test -z "$ac_c_werror_flag" |
| 12625 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12627 | (eval $ac_try) 2>&5 |
| 12628 | ac_status=$? |
| 12629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12630 | (exit $ac_status); }; } && |
| 12631 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12633 | (eval $ac_try) 2>&5 |
| 12634 | ac_status=$? |
| 12635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12636 | (exit $ac_status); }; }; then |
| 12637 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12638 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12639 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12640 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12641 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12642 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12643 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12644 | rm -f conftest.err conftest.$ac_objext \ |
| 12645 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12646 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12647 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12648 | echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 12649 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6 |
| 12650 | if test $ac_cv_lib_mpc_usconfig = yes; then |
| 12651 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12652 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12653 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12654 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12655 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12656 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12657 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12658 | fi |
| 12659 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 12660 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 12661 | if test "$posix_threads" != "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12662 | echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 12663 | echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6 |
| 12664 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
| 12665 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12666 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12667 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12668 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12669 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12670 | /* confdefs.h. */ |
| 12671 | _ACEOF |
| 12672 | cat confdefs.h >>conftest.$ac_ext |
| 12673 | cat >>conftest.$ac_ext <<_ACEOF |
| 12674 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12675 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12676 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12677 | #ifdef __cplusplus |
| 12678 | extern "C" |
| 12679 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12680 | /* 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] | 12681 | builtin and then its argument prototype would still apply. */ |
| 12682 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12683 | int |
| 12684 | main () |
| 12685 | { |
| 12686 | thr_create (); |
| 12687 | ; |
| 12688 | return 0; |
| 12689 | } |
| 12690 | _ACEOF |
| 12691 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12692 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12693 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12694 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12695 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12696 | rm -f conftest.er1 |
| 12697 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12699 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12700 | { ac_try='test -z "$ac_c_werror_flag" |
| 12701 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12703 | (eval $ac_try) 2>&5 |
| 12704 | ac_status=$? |
| 12705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12706 | (exit $ac_status); }; } && |
| 12707 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12709 | (eval $ac_try) 2>&5 |
| 12710 | ac_status=$? |
| 12711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12712 | (exit $ac_status); }; }; then |
| 12713 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12714 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12715 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12716 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12717 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12718 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12719 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12720 | rm -f conftest.err conftest.$ac_objext \ |
| 12721 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12722 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12723 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12724 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 12725 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6 |
| 12726 | if test $ac_cv_lib_thread_thr_create = yes; then |
| 12727 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12728 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12729 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12730 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 12731 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12732 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 12733 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12734 | fi |
| 12735 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 12736 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12737 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12738 | if test "$USE_THREAD_MODULE" != "#" |
| 12739 | then |
| 12740 | # If the above checks didn't disable threads, (at least) OSF1 |
| 12741 | # needs this '-threads' argument during linking. |
| 12742 | case $ac_sys_system in |
| 12743 | OSF1) LDLAST=-threads;; |
| 12744 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 12745 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12746 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12747 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12748 | if test "$posix_threads" = "yes"; then |
| 12749 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12750 | |
| 12751 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12752 | #define _POSIX_THREADS 1 |
| 12753 | _ACEOF |
| 12754 | |
| 12755 | fi |
| 12756 | |
| 12757 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 12758 | case $ac_sys_system/$ac_sys_release in |
| 12759 | SunOS/5.6) |
| 12760 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12761 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 12762 | _ACEOF |
| 12763 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12764 | ;; |
| 12765 | SunOS/5.8) |
| 12766 | cat >>confdefs.h <<\_ACEOF |
| 12767 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 12768 | _ACEOF |
| 12769 | |
| 12770 | ;; |
| 12771 | esac |
| 12772 | |
| 12773 | echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 12774 | echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6 |
| 12775 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
| 12776 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12777 | else |
| 12778 | if test "$cross_compiling" = yes; then |
| 12779 | ac_cv_pthread_system_supported=no |
| 12780 | else |
| 12781 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12782 | /* confdefs.h. */ |
| 12783 | _ACEOF |
| 12784 | cat confdefs.h >>conftest.$ac_ext |
| 12785 | cat >>conftest.$ac_ext <<_ACEOF |
| 12786 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12787 | #include <pthread.h> |
| 12788 | void *foo(void *parm) { |
| 12789 | return NULL; |
| 12790 | } |
| 12791 | main() { |
| 12792 | pthread_attr_t attr; |
| 12793 | pthread_t id; |
| 12794 | if (pthread_attr_init(&attr)) exit(-1); |
| 12795 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 12796 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 12797 | exit(0); |
| 12798 | } |
| 12799 | _ACEOF |
| 12800 | rm -f conftest$ac_exeext |
| 12801 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12802 | (eval $ac_link) 2>&5 |
| 12803 | ac_status=$? |
| 12804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12805 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12807 | (eval $ac_try) 2>&5 |
| 12808 | ac_status=$? |
| 12809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12810 | (exit $ac_status); }; }; then |
| 12811 | ac_cv_pthread_system_supported=yes |
| 12812 | else |
| 12813 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12814 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12815 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12816 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12817 | ( exit $ac_status ) |
| 12818 | ac_cv_pthread_system_supported=no |
| 12819 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12820 | 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] | 12821 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12822 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12823 | fi |
| 12824 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12825 | echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 12826 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6 |
| 12827 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 12828 | |
| 12829 | cat >>confdefs.h <<\_ACEOF |
| 12830 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
| 12831 | _ACEOF |
| 12832 | |
| 12833 | fi |
| 12834 | |
| 12835 | for ac_func in pthread_sigmask |
| 12836 | do |
| 12837 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12838 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12839 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12840 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12841 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12842 | else |
| 12843 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12844 | /* confdefs.h. */ |
| 12845 | _ACEOF |
| 12846 | cat confdefs.h >>conftest.$ac_ext |
| 12847 | cat >>conftest.$ac_ext <<_ACEOF |
| 12848 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12849 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12850 | which can conflict with char $ac_func (); below. |
| 12851 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 12852 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 12853 | including <limits.h> includes <sys/time.h> and causes problems |
| 12854 | checking for functions defined therein. */ |
| 12855 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12856 | # include <limits.h> |
| 12857 | #else |
| 12858 | # include <assert.h> |
| 12859 | #endif |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12860 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12861 | #ifdef __cplusplus |
| 12862 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12863 | { |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12864 | #endif |
| 12865 | /* We use char because int might match the return type of a gcc2 |
| 12866 | builtin and then its argument prototype would still apply. */ |
| 12867 | char $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12868 | /* The GNU C library defines this for functions which it implements |
| 12869 | to always fail with ENOSYS. Some functions are actually named |
| 12870 | something starting with __ and the normal name is an alias. */ |
| 12871 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12872 | choke me |
| 12873 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12874 | char (*f) () = $ac_func; |
| 12875 | #endif |
| 12876 | #ifdef __cplusplus |
| 12877 | } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12878 | #endif |
| 12879 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12880 | int |
| 12881 | main () |
| 12882 | { |
| 12883 | return f != $ac_func; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12884 | ; |
| 12885 | return 0; |
| 12886 | } |
| 12887 | _ACEOF |
| 12888 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12889 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12890 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12891 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12892 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12893 | rm -f conftest.er1 |
| 12894 | cat conftest.err >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12896 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12897 | { ac_try='test -z "$ac_c_werror_flag" |
| 12898 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12900 | (eval $ac_try) 2>&5 |
| 12901 | ac_status=$? |
| 12902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12903 | (exit $ac_status); }; } && |
| 12904 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12906 | (eval $ac_try) 2>&5 |
| 12907 | ac_status=$? |
| 12908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12909 | (exit $ac_status); }; }; then |
| 12910 | eval "$as_ac_var=yes" |
| 12911 | else |
| 12912 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12913 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12914 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12915 | eval "$as_ac_var=no" |
| 12916 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12917 | rm -f conftest.err conftest.$ac_objext \ |
| 12918 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12919 | fi |
| 12920 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12921 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12922 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12923 | cat >>confdefs.h <<_ACEOF |
| 12924 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12925 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 12926 | case $ac_sys_system in |
| 12927 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12928 | |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 12929 | cat >>confdefs.h <<\_ACEOF |
| 12930 | #define HAVE_BROKEN_PTHREAD_SIGMASK 1 |
| 12931 | _ACEOF |
| 12932 | |
| 12933 | ;; |
| 12934 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12935 | fi |
| 12936 | done |
| 12937 | |
| 12938 | fi |
| 12939 | |
| 12940 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12941 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12942 | |
| 12943 | |
| 12944 | echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 12945 | 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] | 12946 | # Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 12947 | if test "${enable_ipv6+set}" = set; then |
| 12948 | enableval="$enable_ipv6" |
| 12949 | case "$enableval" in |
| 12950 | no) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12951 | echo "$as_me:$LINENO: result: no" >&5 |
| 12952 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12953 | ipv6=no |
| 12954 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12955 | *) echo "$as_me:$LINENO: result: yes" >&5 |
| 12956 | echo "${ECHO_T}yes" >&6 |
| 12957 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12958 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12959 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12960 | |
| 12961 | ipv6=yes |
| 12962 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12963 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12964 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12965 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12966 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12967 | echo "$as_me:$LINENO: result: no" >&5 |
| 12968 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12969 | ipv6=no |
| 12970 | |
| 12971 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12972 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12973 | /* confdefs.h. */ |
| 12974 | _ACEOF |
| 12975 | cat confdefs.h >>conftest.$ac_ext |
| 12976 | cat >>conftest.$ac_ext <<_ACEOF |
| 12977 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12978 | /* AF_INET6 available check */ |
| 12979 | #include <sys/types.h> |
| 12980 | #include <sys/socket.h> |
| 12981 | main() |
| 12982 | { |
| 12983 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 12984 | exit(1); |
| 12985 | else |
| 12986 | exit(0); |
| 12987 | } |
| 12988 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12989 | _ACEOF |
| 12990 | rm -f conftest$ac_exeext |
| 12991 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12992 | (eval $ac_link) 2>&5 |
| 12993 | ac_status=$? |
| 12994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12995 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12997 | (eval $ac_try) 2>&5 |
| 12998 | ac_status=$? |
| 12999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13000 | (exit $ac_status); }; }; then |
| 13001 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13002 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13003 | ipv6=yes |
| 13004 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13005 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13006 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13007 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13008 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13009 | ( exit $ac_status ) |
| 13010 | echo "$as_me:$LINENO: result: no" >&5 |
| 13011 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13012 | ipv6=no |
| 13013 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13014 | 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] | 13015 | fi |
| 13016 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 13017 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13018 | echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 13019 | echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6 |
| 13020 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13021 | /* confdefs.h. */ |
| 13022 | _ACEOF |
| 13023 | cat confdefs.h >>conftest.$ac_ext |
| 13024 | cat >>conftest.$ac_ext <<_ACEOF |
| 13025 | /* end confdefs.h. */ |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 13026 | #include <sys/types.h> |
| 13027 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13028 | int |
| 13029 | main () |
| 13030 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 13031 | struct sockaddr_in6 x; |
| 13032 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13033 | ; |
| 13034 | return 0; |
| 13035 | } |
| 13036 | _ACEOF |
| 13037 | rm -f conftest.$ac_objext |
| 13038 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13039 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13040 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13041 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13042 | rm -f conftest.er1 |
| 13043 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13045 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13046 | { ac_try='test -z "$ac_c_werror_flag" |
| 13047 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13049 | (eval $ac_try) 2>&5 |
| 13050 | ac_status=$? |
| 13051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13052 | (exit $ac_status); }; } && |
| 13053 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13055 | (eval $ac_try) 2>&5 |
| 13056 | ac_status=$? |
| 13057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13058 | (exit $ac_status); }; }; then |
| 13059 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13060 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 13061 | ipv6=yes |
| 13062 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13063 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13064 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13065 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13066 | echo "$as_me:$LINENO: result: no" >&5 |
| 13067 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 13068 | ipv6=no |
| 13069 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13070 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 13071 | fi |
| 13072 | |
| 13073 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13074 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 13075 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13076 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 13077 | |
| 13078 | fi |
| 13079 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13080 | fi; |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13081 | |
| 13082 | ipv6type=unknown |
| 13083 | ipv6lib=none |
| 13084 | ipv6trylibc=no |
| 13085 | |
| 13086 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13087 | echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 13088 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 13089 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 13090 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13091 | case $i in |
| 13092 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13093 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13094 | /* confdefs.h. */ |
| 13095 | _ACEOF |
| 13096 | cat confdefs.h >>conftest.$ac_ext |
| 13097 | cat >>conftest.$ac_ext <<_ACEOF |
| 13098 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13099 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13100 | #include <netinet/in.h> |
| 13101 | #ifdef IPV6_INRIA_VERSION |
| 13102 | yes |
| 13103 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13104 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13105 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13106 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 13107 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13108 | fi |
| 13109 | rm -f conftest* |
| 13110 | |
| 13111 | ;; |
| 13112 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13113 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13114 | /* confdefs.h. */ |
| 13115 | _ACEOF |
| 13116 | cat confdefs.h >>conftest.$ac_ext |
| 13117 | cat >>conftest.$ac_ext <<_ACEOF |
| 13118 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13119 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13120 | #include <netinet/in.h> |
| 13121 | #ifdef __KAME__ |
| 13122 | yes |
| 13123 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13124 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13125 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13126 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13127 | ipv6type=$i; |
| 13128 | ipv6lib=inet6 |
| 13129 | ipv6libdir=/usr/local/v6/lib |
| 13130 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13131 | fi |
| 13132 | rm -f conftest* |
| 13133 | |
| 13134 | ;; |
| 13135 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13136 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13137 | /* confdefs.h. */ |
| 13138 | _ACEOF |
| 13139 | cat confdefs.h >>conftest.$ac_ext |
| 13140 | cat >>conftest.$ac_ext <<_ACEOF |
| 13141 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13142 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13143 | #include <features.h> |
| 13144 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 13145 | yes |
| 13146 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13147 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13148 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13149 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13150 | ipv6type=$i; |
| 13151 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13152 | fi |
| 13153 | rm -f conftest* |
| 13154 | |
| 13155 | ;; |
| 13156 | linux-inet6) |
| 13157 | if test -d /usr/inet6; then |
| 13158 | ipv6type=$i |
| 13159 | ipv6lib=inet6 |
| 13160 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 13161 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13162 | fi |
| 13163 | ;; |
| 13164 | solaris) |
| 13165 | if test -f /etc/netconfig; then |
| 13166 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 13167 | ipv6type=$i |
| 13168 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13169 | fi |
| 13170 | fi |
| 13171 | ;; |
| 13172 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13173 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13174 | /* confdefs.h. */ |
| 13175 | _ACEOF |
| 13176 | cat confdefs.h >>conftest.$ac_ext |
| 13177 | cat >>conftest.$ac_ext <<_ACEOF |
| 13178 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13179 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13180 | #include <sys/param.h> |
| 13181 | #ifdef _TOSHIBA_INET6 |
| 13182 | yes |
| 13183 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13184 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13185 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13186 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13187 | ipv6type=$i; |
| 13188 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 13189 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13190 | fi |
| 13191 | rm -f conftest* |
| 13192 | |
| 13193 | ;; |
| 13194 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13195 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13196 | /* confdefs.h. */ |
| 13197 | _ACEOF |
| 13198 | cat confdefs.h >>conftest.$ac_ext |
| 13199 | cat >>conftest.$ac_ext <<_ACEOF |
| 13200 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13201 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13202 | #include </usr/local/v6/include/sys/v6config.h> |
| 13203 | #ifdef __V6D__ |
| 13204 | yes |
| 13205 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13206 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13207 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13208 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13209 | ipv6type=$i; |
| 13210 | ipv6lib=v6; |
| 13211 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 13212 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13213 | fi |
| 13214 | rm -f conftest* |
| 13215 | |
| 13216 | ;; |
| 13217 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13218 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13219 | /* confdefs.h. */ |
| 13220 | _ACEOF |
| 13221 | cat confdefs.h >>conftest.$ac_ext |
| 13222 | cat >>conftest.$ac_ext <<_ACEOF |
| 13223 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13224 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13225 | #include <sys/param.h> |
| 13226 | #ifdef _ZETA_MINAMI_INET6 |
| 13227 | yes |
| 13228 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13229 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13230 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13231 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13232 | ipv6type=$i; |
| 13233 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 13234 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13235 | fi |
| 13236 | rm -f conftest* |
| 13237 | |
| 13238 | ;; |
| 13239 | esac |
| 13240 | if test "$ipv6type" != "unknown"; then |
| 13241 | break |
| 13242 | fi |
| 13243 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13244 | echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 13245 | echo "${ECHO_T}$ipv6type" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13246 | fi |
| 13247 | |
| 13248 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 13249 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 13250 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 13251 | echo "using lib$ipv6lib" |
| 13252 | else |
| 13253 | if test $ipv6trylibc = "yes"; then |
| 13254 | echo "using libc" |
| 13255 | else |
| 13256 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 13257 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 13258 | echo 'ipv6 kit and compile beforehand.' |
| 13259 | exit 1 |
| 13260 | fi |
| 13261 | fi |
| 13262 | fi |
| 13263 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 13264 | # Check for --with-doc-strings |
| 13265 | echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 13266 | echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6 |
| 13267 | |
| 13268 | # Check whether --with-doc-strings or --without-doc-strings was given. |
| 13269 | if test "${with_doc_strings+set}" = set; then |
| 13270 | withval="$with_doc_strings" |
| 13271 | |
| 13272 | fi; |
| 13273 | |
| 13274 | if test -z "$with_doc_strings" |
| 13275 | then with_doc_strings="yes" |
| 13276 | fi |
| 13277 | if test "$with_doc_strings" != "no" |
| 13278 | then |
| 13279 | |
| 13280 | cat >>confdefs.h <<\_ACEOF |
| 13281 | #define WITH_DOC_STRINGS 1 |
| 13282 | _ACEOF |
| 13283 | |
| 13284 | fi |
| 13285 | echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 13286 | echo "${ECHO_T}$with_doc_strings" >&6 |
| 13287 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 13288 | # Check for Python-specific malloc support |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 13289 | echo "$as_me:$LINENO: checking for --with-tsc" >&5 |
| 13290 | echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6 |
| 13291 | |
| 13292 | # Check whether --with-tsc or --without-tsc was given. |
| 13293 | if test "${with_tsc+set}" = set; then |
| 13294 | withval="$with_tsc" |
| 13295 | |
| 13296 | if test "$withval" != no |
| 13297 | then |
| 13298 | |
| 13299 | cat >>confdefs.h <<\_ACEOF |
| 13300 | #define WITH_TSC 1 |
| 13301 | _ACEOF |
| 13302 | |
| 13303 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13304 | echo "${ECHO_T}yes" >&6 |
| 13305 | else echo "$as_me:$LINENO: result: no" >&5 |
| 13306 | echo "${ECHO_T}no" >&6 |
| 13307 | fi |
| 13308 | else |
| 13309 | echo "$as_me:$LINENO: result: no" >&5 |
| 13310 | echo "${ECHO_T}no" >&6 |
| 13311 | fi; |
| 13312 | |
| 13313 | # Check for Python-specific malloc support |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13314 | echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 13315 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6 |
| 13316 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 13317 | # Check whether --with-pymalloc or --without-pymalloc was given. |
| 13318 | if test "${with_pymalloc+set}" = set; then |
| 13319 | withval="$with_pymalloc" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13320 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13321 | fi; |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 13322 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 13323 | if test -z "$with_pymalloc" |
| 13324 | then with_pymalloc="yes" |
| 13325 | fi |
| 13326 | if test "$with_pymalloc" != "no" |
| 13327 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13328 | |
| 13329 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 13330 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13331 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 13332 | |
| 13333 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13334 | echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 13335 | echo "${ECHO_T}$with_pymalloc" >&6 |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 13336 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13337 | # Check for --with-wctype-functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13338 | echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 13339 | echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6 |
| 13340 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13341 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 13342 | if test "${with_wctype_functions+set}" = set; then |
| 13343 | withval="$with_wctype_functions" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13344 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13345 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13346 | then |
| 13347 | |
| 13348 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13349 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13350 | _ACEOF |
| 13351 | |
| 13352 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13353 | echo "${ECHO_T}yes" >&6 |
| 13354 | else echo "$as_me:$LINENO: result: no" >&5 |
| 13355 | echo "${ECHO_T}no" >&6 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13356 | fi |
| 13357 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13358 | echo "$as_me:$LINENO: result: no" >&5 |
| 13359 | echo "${ECHO_T}no" >&6 |
| 13360 | fi; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13361 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13362 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13363 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 13364 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13365 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13366 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 13367 | # 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] | 13368 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13369 | for ac_func in dlopen |
| 13370 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13371 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13372 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13373 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13374 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13375 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13376 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13377 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13378 | /* confdefs.h. */ |
| 13379 | _ACEOF |
| 13380 | cat confdefs.h >>conftest.$ac_ext |
| 13381 | cat >>conftest.$ac_ext <<_ACEOF |
| 13382 | /* end confdefs.h. */ |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13383 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13384 | which can conflict with char $ac_func (); below. |
| 13385 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 13386 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 13387 | including <limits.h> includes <sys/time.h> and causes problems |
| 13388 | checking for functions defined therein. */ |
| 13389 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13390 | # include <limits.h> |
| 13391 | #else |
| 13392 | # include <assert.h> |
| 13393 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13394 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13395 | #ifdef __cplusplus |
| 13396 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13397 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13398 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13399 | /* 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] | 13400 | builtin and then its argument prototype would still apply. */ |
| 13401 | char $ac_func (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13402 | /* The GNU C library defines this for functions which it implements |
| 13403 | to always fail with ENOSYS. Some functions are actually named |
| 13404 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13405 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13406 | choke me |
| 13407 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13408 | char (*f) () = $ac_func; |
| 13409 | #endif |
| 13410 | #ifdef __cplusplus |
| 13411 | } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13412 | #endif |
| 13413 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13414 | int |
| 13415 | main () |
| 13416 | { |
| 13417 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13418 | ; |
| 13419 | return 0; |
| 13420 | } |
| 13421 | _ACEOF |
| 13422 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13423 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13424 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13425 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13426 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13427 | rm -f conftest.er1 |
| 13428 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13430 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13431 | { ac_try='test -z "$ac_c_werror_flag" |
| 13432 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13434 | (eval $ac_try) 2>&5 |
| 13435 | ac_status=$? |
| 13436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13437 | (exit $ac_status); }; } && |
| 13438 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13440 | (eval $ac_try) 2>&5 |
| 13441 | ac_status=$? |
| 13442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13443 | (exit $ac_status); }; }; then |
| 13444 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13445 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13446 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13447 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13448 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13449 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13450 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13451 | rm -f conftest.err conftest.$ac_objext \ |
| 13452 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13453 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13454 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13455 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13456 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13457 | cat >>confdefs.h <<_ACEOF |
| 13458 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13459 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13460 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13461 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13462 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13463 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13464 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13465 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 13466 | # loading of modules. |
| 13467 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13468 | echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 13469 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13470 | if test -z "$DYNLOADFILE" |
| 13471 | then |
| 13472 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 13473 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
| 13474 | if test "$ac_cv_func_dlopen" = yes |
| 13475 | then DYNLOADFILE="dynload_shlib.o" |
| 13476 | else DYNLOADFILE="dynload_aix.o" |
| 13477 | fi |
| 13478 | ;; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13479 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 13480 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13481 | Darwin/*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13482 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13483 | *) |
| 13484 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 13485 | # out any dynamic loading |
| 13486 | if test "$ac_cv_func_dlopen" = yes |
| 13487 | then DYNLOADFILE="dynload_shlib.o" |
| 13488 | else DYNLOADFILE="dynload_stub.o" |
| 13489 | fi |
| 13490 | ;; |
| 13491 | esac |
| 13492 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13493 | echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 13494 | echo "${ECHO_T}$DYNLOADFILE" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13495 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 13496 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13497 | |
| 13498 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13499 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13500 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13501 | |
| 13502 | fi |
| 13503 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 13504 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 13505 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13506 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13507 | echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 13508 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 13509 | if test -z "$MACHDEP_OBJS" |
| 13510 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13511 | MACHDEP_OBJS=$extra_machdep_objs |
| 13512 | else |
| 13513 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 13514 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13515 | echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 13516 | echo "${ECHO_T}MACHDEP_OBJS" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 13517 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13518 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13519 | |
| 13520 | |
| 13521 | |
| 13522 | |
| 13523 | |
| 13524 | |
| 13525 | |
| 13526 | |
| 13527 | |
| 13528 | |
| 13529 | |
| 13530 | |
| 13531 | |
| 13532 | |
| 13533 | |
| 13534 | |
| 13535 | |
| 13536 | |
| 13537 | |
| 13538 | |
| 13539 | |
| 13540 | |
| 13541 | |
| 13542 | |
| 13543 | |
| 13544 | |
| 13545 | |
| 13546 | |
| 13547 | |
| 13548 | |
| 13549 | |
| 13550 | |
| 13551 | |
| 13552 | |
| 13553 | |
| 13554 | |
| 13555 | |
| 13556 | |
| 13557 | |
| 13558 | |
| 13559 | |
| 13560 | |
| 13561 | |
| 13562 | |
| 13563 | |
| 13564 | |
| 13565 | |
| 13566 | |
| 13567 | |
| 13568 | |
| 13569 | |
| 13570 | |
| 13571 | |
| 13572 | |
| 13573 | |
| 13574 | |
| 13575 | |
| 13576 | |
| 13577 | |
| 13578 | |
| 13579 | |
| 13580 | |
| 13581 | |
| 13582 | |
| 13583 | |
| 13584 | |
| 13585 | |
| 13586 | |
| 13587 | |
| 13588 | |
| 13589 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13590 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 13591 | |
| 13592 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13593 | for ac_func in alarm bind_textdomain_codeset chown clock confstr ctermid \ |
| 13594 | execv fork fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 13595 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 13596 | getpriority getpwent getspnam getspent getsid getwd \ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13597 | kill killpg lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 13598 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 13599 | putenv readlink realpath \ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13600 | select setegid seteuid setgid \ |
Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 13601 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
Skip Montanaro | 7e11a01 | 2004-02-07 12:55:46 +0000 | [diff] [blame] | 13602 | sigaction siginterrupt sigrelse strftime \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 13603 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 13604 | truncate uname unsetenv utimes waitpid wcscoll _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13605 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13606 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13607 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13608 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13609 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13611 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13612 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13613 | /* confdefs.h. */ |
| 13614 | _ACEOF |
| 13615 | cat confdefs.h >>conftest.$ac_ext |
| 13616 | cat >>conftest.$ac_ext <<_ACEOF |
| 13617 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13618 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13619 | which can conflict with char $ac_func (); below. |
| 13620 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 13621 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 13622 | including <limits.h> includes <sys/time.h> and causes problems |
| 13623 | checking for functions defined therein. */ |
| 13624 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13625 | # include <limits.h> |
| 13626 | #else |
| 13627 | # include <assert.h> |
| 13628 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13629 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13630 | #ifdef __cplusplus |
| 13631 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13632 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13633 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13634 | /* 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] | 13635 | builtin and then its argument prototype would still apply. */ |
| 13636 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13637 | /* The GNU C library defines this for functions which it implements |
| 13638 | to always fail with ENOSYS. Some functions are actually named |
| 13639 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13640 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13641 | choke me |
| 13642 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13643 | char (*f) () = $ac_func; |
| 13644 | #endif |
| 13645 | #ifdef __cplusplus |
| 13646 | } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13647 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13648 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13649 | int |
| 13650 | main () |
| 13651 | { |
| 13652 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13653 | ; |
| 13654 | return 0; |
| 13655 | } |
| 13656 | _ACEOF |
| 13657 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13658 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13659 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13660 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13661 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13662 | rm -f conftest.er1 |
| 13663 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13665 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13666 | { ac_try='test -z "$ac_c_werror_flag" |
| 13667 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13669 | (eval $ac_try) 2>&5 |
| 13670 | ac_status=$? |
| 13671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13672 | (exit $ac_status); }; } && |
| 13673 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13675 | (eval $ac_try) 2>&5 |
| 13676 | ac_status=$? |
| 13677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13678 | (exit $ac_status); }; }; then |
| 13679 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13680 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13681 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13682 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13683 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13684 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13685 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13686 | rm -f conftest.err conftest.$ac_objext \ |
| 13687 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13688 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13689 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13690 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13691 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13692 | cat >>confdefs.h <<_ACEOF |
| 13693 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13694 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13695 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13696 | fi |
| 13697 | done |
| 13698 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13699 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13700 | # For some functions, having a definition is not sufficient, since |
| 13701 | # we want to take their address. |
| 13702 | echo "$as_me:$LINENO: checking for chroot" >&5 |
| 13703 | echo $ECHO_N "checking for chroot... $ECHO_C" >&6 |
| 13704 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13705 | /* confdefs.h. */ |
| 13706 | _ACEOF |
| 13707 | cat confdefs.h >>conftest.$ac_ext |
| 13708 | cat >>conftest.$ac_ext <<_ACEOF |
| 13709 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13710 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13711 | int |
| 13712 | main () |
| 13713 | { |
| 13714 | void *x=chroot |
| 13715 | ; |
| 13716 | return 0; |
| 13717 | } |
| 13718 | _ACEOF |
| 13719 | rm -f conftest.$ac_objext |
| 13720 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13721 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13722 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13723 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13724 | rm -f conftest.er1 |
| 13725 | cat conftest.err >&5 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13727 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13728 | { ac_try='test -z "$ac_c_werror_flag" |
| 13729 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13731 | (eval $ac_try) 2>&5 |
| 13732 | ac_status=$? |
| 13733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13734 | (exit $ac_status); }; } && |
| 13735 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13737 | (eval $ac_try) 2>&5 |
| 13738 | ac_status=$? |
| 13739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13740 | (exit $ac_status); }; }; then |
| 13741 | |
| 13742 | cat >>confdefs.h <<\_ACEOF |
| 13743 | #define HAVE_CHROOT 1 |
| 13744 | _ACEOF |
| 13745 | |
| 13746 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13747 | echo "${ECHO_T}yes" >&6 |
| 13748 | else |
| 13749 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13750 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13751 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13752 | echo "$as_me:$LINENO: result: no" >&5 |
| 13753 | echo "${ECHO_T}no" >&6 |
| 13754 | |
| 13755 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13756 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13757 | echo "$as_me:$LINENO: checking for link" >&5 |
| 13758 | echo $ECHO_N "checking for link... $ECHO_C" >&6 |
| 13759 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13760 | /* confdefs.h. */ |
| 13761 | _ACEOF |
| 13762 | cat confdefs.h >>conftest.$ac_ext |
| 13763 | cat >>conftest.$ac_ext <<_ACEOF |
| 13764 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13765 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13766 | int |
| 13767 | main () |
| 13768 | { |
| 13769 | void *x=link |
| 13770 | ; |
| 13771 | return 0; |
| 13772 | } |
| 13773 | _ACEOF |
| 13774 | rm -f conftest.$ac_objext |
| 13775 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13776 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13777 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13778 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13779 | rm -f conftest.er1 |
| 13780 | cat conftest.err >&5 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13782 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13783 | { ac_try='test -z "$ac_c_werror_flag" |
| 13784 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13786 | (eval $ac_try) 2>&5 |
| 13787 | ac_status=$? |
| 13788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13789 | (exit $ac_status); }; } && |
| 13790 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13792 | (eval $ac_try) 2>&5 |
| 13793 | ac_status=$? |
| 13794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13795 | (exit $ac_status); }; }; then |
| 13796 | |
| 13797 | cat >>confdefs.h <<\_ACEOF |
| 13798 | #define HAVE_LINK 1 |
| 13799 | _ACEOF |
| 13800 | |
| 13801 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13802 | echo "${ECHO_T}yes" >&6 |
| 13803 | else |
| 13804 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13805 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13806 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13807 | echo "$as_me:$LINENO: result: no" >&5 |
| 13808 | echo "${ECHO_T}no" >&6 |
| 13809 | |
| 13810 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13811 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13812 | echo "$as_me:$LINENO: checking for symlink" >&5 |
| 13813 | echo $ECHO_N "checking for symlink... $ECHO_C" >&6 |
| 13814 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13815 | /* confdefs.h. */ |
| 13816 | _ACEOF |
| 13817 | cat confdefs.h >>conftest.$ac_ext |
| 13818 | cat >>conftest.$ac_ext <<_ACEOF |
| 13819 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13820 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13821 | int |
| 13822 | main () |
| 13823 | { |
| 13824 | void *x=symlink |
| 13825 | ; |
| 13826 | return 0; |
| 13827 | } |
| 13828 | _ACEOF |
| 13829 | rm -f conftest.$ac_objext |
| 13830 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13831 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13832 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13833 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13834 | rm -f conftest.er1 |
| 13835 | cat conftest.err >&5 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13837 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13838 | { ac_try='test -z "$ac_c_werror_flag" |
| 13839 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13841 | (eval $ac_try) 2>&5 |
| 13842 | ac_status=$? |
| 13843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13844 | (exit $ac_status); }; } && |
| 13845 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13847 | (eval $ac_try) 2>&5 |
| 13848 | ac_status=$? |
| 13849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13850 | (exit $ac_status); }; }; then |
| 13851 | |
| 13852 | cat >>confdefs.h <<\_ACEOF |
| 13853 | #define HAVE_SYMLINK 1 |
| 13854 | _ACEOF |
| 13855 | |
| 13856 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13857 | echo "${ECHO_T}yes" >&6 |
| 13858 | else |
| 13859 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13860 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13861 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13862 | echo "$as_me:$LINENO: result: no" >&5 |
| 13863 | echo "${ECHO_T}no" >&6 |
| 13864 | |
| 13865 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13866 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13867 | echo "$as_me:$LINENO: checking for fchdir" >&5 |
| 13868 | echo $ECHO_N "checking for fchdir... $ECHO_C" >&6 |
| 13869 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13870 | /* confdefs.h. */ |
| 13871 | _ACEOF |
| 13872 | cat confdefs.h >>conftest.$ac_ext |
| 13873 | cat >>conftest.$ac_ext <<_ACEOF |
| 13874 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13875 | #include <unistd.h> |
| 13876 | int |
| 13877 | main () |
| 13878 | { |
| 13879 | void *x=fchdir |
| 13880 | ; |
| 13881 | return 0; |
| 13882 | } |
| 13883 | _ACEOF |
| 13884 | rm -f conftest.$ac_objext |
| 13885 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13886 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13887 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13888 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13889 | rm -f conftest.er1 |
| 13890 | cat conftest.err >&5 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13892 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13893 | { ac_try='test -z "$ac_c_werror_flag" |
| 13894 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13896 | (eval $ac_try) 2>&5 |
| 13897 | ac_status=$? |
| 13898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13899 | (exit $ac_status); }; } && |
| 13900 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13902 | (eval $ac_try) 2>&5 |
| 13903 | ac_status=$? |
| 13904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13905 | (exit $ac_status); }; }; then |
| 13906 | |
| 13907 | cat >>confdefs.h <<\_ACEOF |
| 13908 | #define HAVE_FCHDIR 1 |
| 13909 | _ACEOF |
| 13910 | |
| 13911 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13912 | echo "${ECHO_T}yes" >&6 |
| 13913 | else |
| 13914 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13915 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13916 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13917 | echo "$as_me:$LINENO: result: no" >&5 |
| 13918 | echo "${ECHO_T}no" >&6 |
| 13919 | |
| 13920 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13921 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13922 | echo "$as_me:$LINENO: checking for fsync" >&5 |
| 13923 | echo $ECHO_N "checking for fsync... $ECHO_C" >&6 |
| 13924 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13925 | /* confdefs.h. */ |
| 13926 | _ACEOF |
| 13927 | cat confdefs.h >>conftest.$ac_ext |
| 13928 | cat >>conftest.$ac_ext <<_ACEOF |
| 13929 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13930 | #include <unistd.h> |
| 13931 | int |
| 13932 | main () |
| 13933 | { |
| 13934 | void *x=fsync |
| 13935 | ; |
| 13936 | return 0; |
| 13937 | } |
| 13938 | _ACEOF |
| 13939 | rm -f conftest.$ac_objext |
| 13940 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13941 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13942 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13943 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13944 | rm -f conftest.er1 |
| 13945 | cat conftest.err >&5 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13947 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13948 | { ac_try='test -z "$ac_c_werror_flag" |
| 13949 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13951 | (eval $ac_try) 2>&5 |
| 13952 | ac_status=$? |
| 13953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13954 | (exit $ac_status); }; } && |
| 13955 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13957 | (eval $ac_try) 2>&5 |
| 13958 | ac_status=$? |
| 13959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13960 | (exit $ac_status); }; }; then |
| 13961 | |
| 13962 | cat >>confdefs.h <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13963 | #define HAVE_FSYNC 1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13964 | _ACEOF |
| 13965 | |
| 13966 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13967 | echo "${ECHO_T}yes" >&6 |
| 13968 | else |
| 13969 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13970 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13971 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13972 | echo "$as_me:$LINENO: result: no" >&5 |
| 13973 | echo "${ECHO_T}no" >&6 |
| 13974 | |
| 13975 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13976 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13977 | echo "$as_me:$LINENO: checking for fdatasync" >&5 |
| 13978 | echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6 |
| 13979 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13980 | /* confdefs.h. */ |
| 13981 | _ACEOF |
| 13982 | cat confdefs.h >>conftest.$ac_ext |
| 13983 | cat >>conftest.$ac_ext <<_ACEOF |
| 13984 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13985 | #include <unistd.h> |
| 13986 | int |
| 13987 | main () |
| 13988 | { |
| 13989 | void *x=fdatasync |
| 13990 | ; |
| 13991 | return 0; |
| 13992 | } |
| 13993 | _ACEOF |
| 13994 | rm -f conftest.$ac_objext |
| 13995 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13996 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13997 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13998 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13999 | rm -f conftest.er1 |
| 14000 | cat conftest.err >&5 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14002 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14003 | { ac_try='test -z "$ac_c_werror_flag" |
| 14004 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14006 | (eval $ac_try) 2>&5 |
| 14007 | ac_status=$? |
| 14008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14009 | (exit $ac_status); }; } && |
| 14010 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14012 | (eval $ac_try) 2>&5 |
| 14013 | ac_status=$? |
| 14014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14015 | (exit $ac_status); }; }; then |
| 14016 | |
| 14017 | cat >>confdefs.h <<\_ACEOF |
| 14018 | #define HAVE_FDATASYNC 1 |
| 14019 | _ACEOF |
| 14020 | |
| 14021 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14022 | echo "${ECHO_T}yes" >&6 |
| 14023 | else |
| 14024 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14025 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14026 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14027 | echo "$as_me:$LINENO: result: no" >&5 |
| 14028 | echo "${ECHO_T}no" >&6 |
| 14029 | |
| 14030 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14031 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14032 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14033 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 14034 | # functions ctermid_r, setgroups in the library, but no prototype |
| 14035 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 14036 | # address to avoid compiler warnings and potential miscompilations |
| 14037 | # because of the missing prototypes. |
| 14038 | |
| 14039 | echo "$as_me:$LINENO: checking for ctermid_r" >&5 |
| 14040 | echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6 |
| 14041 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14042 | /* confdefs.h. */ |
| 14043 | _ACEOF |
| 14044 | cat confdefs.h >>conftest.$ac_ext |
| 14045 | cat >>conftest.$ac_ext <<_ACEOF |
| 14046 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14047 | |
| 14048 | #include "confdefs.h" |
| 14049 | #include <stdio.h> |
| 14050 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14051 | int |
| 14052 | main () |
| 14053 | { |
| 14054 | void* p = ctermid_r |
| 14055 | ; |
| 14056 | return 0; |
| 14057 | } |
| 14058 | _ACEOF |
| 14059 | rm -f conftest.$ac_objext |
| 14060 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14061 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14062 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14063 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14064 | rm -f conftest.er1 |
| 14065 | cat conftest.err >&5 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14067 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14068 | { ac_try='test -z "$ac_c_werror_flag" |
| 14069 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14071 | (eval $ac_try) 2>&5 |
| 14072 | ac_status=$? |
| 14073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14074 | (exit $ac_status); }; } && |
| 14075 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14077 | (eval $ac_try) 2>&5 |
| 14078 | ac_status=$? |
| 14079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14080 | (exit $ac_status); }; }; then |
| 14081 | |
| 14082 | cat >>confdefs.h <<\_ACEOF |
| 14083 | #define HAVE_CTERMID_R 1 |
| 14084 | _ACEOF |
| 14085 | |
| 14086 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14087 | echo "${ECHO_T}yes" >&6 |
| 14088 | else |
| 14089 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14090 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14091 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14092 | echo "$as_me:$LINENO: result: no" >&5 |
| 14093 | echo "${ECHO_T}no" >&6 |
| 14094 | |
| 14095 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14096 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14097 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14098 | echo "$as_me:$LINENO: checking for flock" >&5 |
| 14099 | echo $ECHO_N "checking for flock... $ECHO_C" >&6 |
| 14100 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14101 | /* confdefs.h. */ |
| 14102 | _ACEOF |
| 14103 | cat confdefs.h >>conftest.$ac_ext |
| 14104 | cat >>conftest.$ac_ext <<_ACEOF |
| 14105 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14106 | |
| 14107 | #include "confdefs.h" |
| 14108 | #include <sys/file.h> |
| 14109 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14110 | int |
| 14111 | main () |
| 14112 | { |
| 14113 | void* p = flock |
| 14114 | ; |
| 14115 | return 0; |
| 14116 | } |
| 14117 | _ACEOF |
| 14118 | rm -f conftest.$ac_objext |
| 14119 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14120 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14121 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14122 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14123 | rm -f conftest.er1 |
| 14124 | cat conftest.err >&5 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14126 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14127 | { ac_try='test -z "$ac_c_werror_flag" |
| 14128 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14130 | (eval $ac_try) 2>&5 |
| 14131 | ac_status=$? |
| 14132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14133 | (exit $ac_status); }; } && |
| 14134 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14136 | (eval $ac_try) 2>&5 |
| 14137 | ac_status=$? |
| 14138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14139 | (exit $ac_status); }; }; then |
| 14140 | |
| 14141 | cat >>confdefs.h <<\_ACEOF |
| 14142 | #define HAVE_FLOCK 1 |
| 14143 | _ACEOF |
| 14144 | |
| 14145 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14146 | echo "${ECHO_T}yes" >&6 |
| 14147 | else |
| 14148 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14149 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14150 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14151 | echo "$as_me:$LINENO: result: no" >&5 |
| 14152 | echo "${ECHO_T}no" >&6 |
| 14153 | |
| 14154 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14155 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14156 | |
| 14157 | echo "$as_me:$LINENO: checking for getpagesize" >&5 |
| 14158 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6 |
| 14159 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14160 | /* confdefs.h. */ |
| 14161 | _ACEOF |
| 14162 | cat confdefs.h >>conftest.$ac_ext |
| 14163 | cat >>conftest.$ac_ext <<_ACEOF |
| 14164 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14165 | |
| 14166 | #include "confdefs.h" |
| 14167 | #include <unistd.h> |
| 14168 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14169 | int |
| 14170 | main () |
| 14171 | { |
| 14172 | void* p = getpagesize |
| 14173 | ; |
| 14174 | return 0; |
| 14175 | } |
| 14176 | _ACEOF |
| 14177 | rm -f conftest.$ac_objext |
| 14178 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14179 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14180 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14181 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14182 | rm -f conftest.er1 |
| 14183 | cat conftest.err >&5 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14185 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14186 | { ac_try='test -z "$ac_c_werror_flag" |
| 14187 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14189 | (eval $ac_try) 2>&5 |
| 14190 | ac_status=$? |
| 14191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14192 | (exit $ac_status); }; } && |
| 14193 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14195 | (eval $ac_try) 2>&5 |
| 14196 | ac_status=$? |
| 14197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14198 | (exit $ac_status); }; }; then |
| 14199 | |
| 14200 | cat >>confdefs.h <<\_ACEOF |
| 14201 | #define HAVE_GETPAGESIZE 1 |
| 14202 | _ACEOF |
| 14203 | |
| 14204 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14205 | echo "${ECHO_T}yes" >&6 |
| 14206 | else |
| 14207 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14208 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14209 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14210 | echo "$as_me:$LINENO: result: no" >&5 |
| 14211 | echo "${ECHO_T}no" >&6 |
| 14212 | |
| 14213 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14214 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14215 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14216 | for ac_prog in true |
| 14217 | do |
| 14218 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 14219 | set dummy $ac_prog; ac_word=$2 |
| 14220 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14221 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 14222 | if test "${ac_cv_prog_TRUE+set}" = set; then |
| 14223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14224 | else |
| 14225 | if test -n "$TRUE"; then |
| 14226 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 14227 | else |
| 14228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14229 | for as_dir in $PATH |
| 14230 | do |
| 14231 | IFS=$as_save_IFS |
| 14232 | test -z "$as_dir" && as_dir=. |
| 14233 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14234 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 14235 | ac_cv_prog_TRUE="$ac_prog" |
| 14236 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14237 | break 2 |
| 14238 | fi |
| 14239 | done |
| 14240 | done |
| 14241 | |
| 14242 | fi |
| 14243 | fi |
| 14244 | TRUE=$ac_cv_prog_TRUE |
| 14245 | if test -n "$TRUE"; then |
| 14246 | echo "$as_me:$LINENO: result: $TRUE" >&5 |
| 14247 | echo "${ECHO_T}$TRUE" >&6 |
| 14248 | else |
| 14249 | echo "$as_me:$LINENO: result: no" >&5 |
| 14250 | echo "${ECHO_T}no" >&6 |
| 14251 | fi |
| 14252 | |
| 14253 | test -n "$TRUE" && break |
| 14254 | done |
| 14255 | test -n "$TRUE" || TRUE="/bin/true" |
| 14256 | |
| 14257 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14258 | echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5 |
| 14259 | echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6 |
| 14260 | if test "${ac_cv_lib_c_inet_aton+set}" = set; then |
| 14261 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14262 | else |
| 14263 | ac_check_lib_save_LIBS=$LIBS |
| 14264 | LIBS="-lc $LIBS" |
| 14265 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14266 | /* confdefs.h. */ |
| 14267 | _ACEOF |
| 14268 | cat confdefs.h >>conftest.$ac_ext |
| 14269 | cat >>conftest.$ac_ext <<_ACEOF |
| 14270 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14271 | |
| 14272 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14273 | #ifdef __cplusplus |
| 14274 | extern "C" |
| 14275 | #endif |
| 14276 | /* We use char because int might match the return type of a gcc2 |
| 14277 | builtin and then its argument prototype would still apply. */ |
| 14278 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14279 | int |
| 14280 | main () |
| 14281 | { |
| 14282 | inet_aton (); |
| 14283 | ; |
| 14284 | return 0; |
| 14285 | } |
| 14286 | _ACEOF |
| 14287 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14288 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14289 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14290 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14291 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14292 | rm -f conftest.er1 |
| 14293 | cat conftest.err >&5 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14295 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14296 | { ac_try='test -z "$ac_c_werror_flag" |
| 14297 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14299 | (eval $ac_try) 2>&5 |
| 14300 | ac_status=$? |
| 14301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14302 | (exit $ac_status); }; } && |
| 14303 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14305 | (eval $ac_try) 2>&5 |
| 14306 | ac_status=$? |
| 14307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14308 | (exit $ac_status); }; }; then |
| 14309 | ac_cv_lib_c_inet_aton=yes |
| 14310 | else |
| 14311 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14312 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14313 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14314 | ac_cv_lib_c_inet_aton=no |
| 14315 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14316 | rm -f conftest.err conftest.$ac_objext \ |
| 14317 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14318 | LIBS=$ac_check_lib_save_LIBS |
| 14319 | fi |
| 14320 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5 |
| 14321 | echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6 |
| 14322 | if test $ac_cv_lib_c_inet_aton = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14323 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14324 | else |
| 14325 | |
| 14326 | echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
| 14327 | echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6 |
| 14328 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
| 14329 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14330 | else |
| 14331 | ac_check_lib_save_LIBS=$LIBS |
| 14332 | LIBS="-lresolv $LIBS" |
| 14333 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14334 | /* confdefs.h. */ |
| 14335 | _ACEOF |
| 14336 | cat confdefs.h >>conftest.$ac_ext |
| 14337 | cat >>conftest.$ac_ext <<_ACEOF |
| 14338 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14339 | |
| 14340 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14341 | #ifdef __cplusplus |
| 14342 | extern "C" |
| 14343 | #endif |
| 14344 | /* We use char because int might match the return type of a gcc2 |
| 14345 | builtin and then its argument prototype would still apply. */ |
| 14346 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14347 | int |
| 14348 | main () |
| 14349 | { |
| 14350 | inet_aton (); |
| 14351 | ; |
| 14352 | return 0; |
| 14353 | } |
| 14354 | _ACEOF |
| 14355 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14356 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14357 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14358 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14359 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14360 | rm -f conftest.er1 |
| 14361 | cat conftest.err >&5 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14363 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14364 | { ac_try='test -z "$ac_c_werror_flag" |
| 14365 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14367 | (eval $ac_try) 2>&5 |
| 14368 | ac_status=$? |
| 14369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14370 | (exit $ac_status); }; } && |
| 14371 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14373 | (eval $ac_try) 2>&5 |
| 14374 | ac_status=$? |
| 14375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14376 | (exit $ac_status); }; }; then |
| 14377 | ac_cv_lib_resolv_inet_aton=yes |
| 14378 | else |
| 14379 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14380 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14381 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14382 | ac_cv_lib_resolv_inet_aton=no |
| 14383 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14384 | rm -f conftest.err conftest.$ac_objext \ |
| 14385 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14386 | LIBS=$ac_check_lib_save_LIBS |
| 14387 | fi |
| 14388 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 14389 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6 |
| 14390 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
| 14391 | cat >>confdefs.h <<_ACEOF |
| 14392 | #define HAVE_LIBRESOLV 1 |
| 14393 | _ACEOF |
| 14394 | |
| 14395 | LIBS="-lresolv $LIBS" |
| 14396 | |
| 14397 | fi |
| 14398 | |
| 14399 | |
| 14400 | fi |
| 14401 | |
| 14402 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14403 | echo "$as_me:$LINENO: checking for hstrerror" >&5 |
| 14404 | echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6 |
| 14405 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14406 | /* confdefs.h. */ |
| 14407 | _ACEOF |
| 14408 | cat confdefs.h >>conftest.$ac_ext |
| 14409 | cat >>conftest.$ac_ext <<_ACEOF |
| 14410 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14411 | |
| 14412 | #include "confdefs.h" |
| 14413 | #include <netdb.h> |
| 14414 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14415 | int |
| 14416 | main () |
| 14417 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14418 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14419 | ; |
| 14420 | return 0; |
| 14421 | } |
| 14422 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14423 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14424 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14425 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14426 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14427 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14428 | rm -f conftest.er1 |
| 14429 | cat conftest.err >&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14431 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14432 | { ac_try='test -z "$ac_c_werror_flag" |
| 14433 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14435 | (eval $ac_try) 2>&5 |
| 14436 | ac_status=$? |
| 14437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14438 | (exit $ac_status); }; } && |
| 14439 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14441 | (eval $ac_try) 2>&5 |
| 14442 | ac_status=$? |
| 14443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14444 | (exit $ac_status); }; }; then |
| 14445 | |
| 14446 | cat >>confdefs.h <<\_ACEOF |
| 14447 | #define HAVE_HSTRERROR 1 |
| 14448 | _ACEOF |
| 14449 | |
| 14450 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14451 | echo "${ECHO_T}yes" >&6 |
| 14452 | else |
| 14453 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14454 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14455 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14456 | echo "$as_me:$LINENO: result: no" >&5 |
| 14457 | echo "${ECHO_T}no" >&6 |
| 14458 | |
| 14459 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14460 | rm -f conftest.err conftest.$ac_objext \ |
| 14461 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14462 | |
| 14463 | echo "$as_me:$LINENO: checking for inet_aton" >&5 |
| 14464 | echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6 |
| 14465 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14466 | /* confdefs.h. */ |
| 14467 | _ACEOF |
| 14468 | cat confdefs.h >>conftest.$ac_ext |
| 14469 | cat >>conftest.$ac_ext <<_ACEOF |
| 14470 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14471 | |
| 14472 | #include "confdefs.h" |
| 14473 | #include <sys/socket.h> |
| 14474 | #include <netinet/in.h> |
| 14475 | #include <arpa/inet.h> |
| 14476 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14477 | int |
| 14478 | main () |
| 14479 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14480 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14481 | ; |
| 14482 | return 0; |
| 14483 | } |
| 14484 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14485 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14486 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14487 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14488 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14489 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14490 | rm -f conftest.er1 |
| 14491 | cat conftest.err >&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14493 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14494 | { ac_try='test -z "$ac_c_werror_flag" |
| 14495 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14497 | (eval $ac_try) 2>&5 |
| 14498 | ac_status=$? |
| 14499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14500 | (exit $ac_status); }; } && |
| 14501 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14503 | (eval $ac_try) 2>&5 |
| 14504 | ac_status=$? |
| 14505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14506 | (exit $ac_status); }; }; then |
| 14507 | |
| 14508 | cat >>confdefs.h <<\_ACEOF |
| 14509 | #define HAVE_INET_ATON 1 |
| 14510 | _ACEOF |
| 14511 | |
| 14512 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14513 | echo "${ECHO_T}yes" >&6 |
| 14514 | else |
| 14515 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14516 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14517 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14518 | echo "$as_me:$LINENO: result: no" >&5 |
| 14519 | echo "${ECHO_T}no" >&6 |
| 14520 | |
| 14521 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14522 | rm -f conftest.err conftest.$ac_objext \ |
| 14523 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14524 | |
| 14525 | echo "$as_me:$LINENO: checking for inet_pton" >&5 |
| 14526 | echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6 |
| 14527 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14528 | /* confdefs.h. */ |
| 14529 | _ACEOF |
| 14530 | cat confdefs.h >>conftest.$ac_ext |
| 14531 | cat >>conftest.$ac_ext <<_ACEOF |
| 14532 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14533 | |
| 14534 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 14535 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14536 | #include <sys/socket.h> |
| 14537 | #include <netinet/in.h> |
| 14538 | #include <arpa/inet.h> |
| 14539 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14540 | int |
| 14541 | main () |
| 14542 | { |
| 14543 | void* p = inet_pton |
| 14544 | ; |
| 14545 | return 0; |
| 14546 | } |
| 14547 | _ACEOF |
| 14548 | rm -f conftest.$ac_objext |
| 14549 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14550 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14551 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14552 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14553 | rm -f conftest.er1 |
| 14554 | cat conftest.err >&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14556 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14557 | { ac_try='test -z "$ac_c_werror_flag" |
| 14558 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14560 | (eval $ac_try) 2>&5 |
| 14561 | ac_status=$? |
| 14562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14563 | (exit $ac_status); }; } && |
| 14564 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14566 | (eval $ac_try) 2>&5 |
| 14567 | ac_status=$? |
| 14568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14569 | (exit $ac_status); }; }; then |
| 14570 | |
| 14571 | cat >>confdefs.h <<\_ACEOF |
| 14572 | #define HAVE_INET_PTON 1 |
| 14573 | _ACEOF |
| 14574 | |
| 14575 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14576 | echo "${ECHO_T}yes" >&6 |
| 14577 | else |
| 14578 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14579 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14580 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14581 | echo "$as_me:$LINENO: result: no" >&5 |
| 14582 | echo "${ECHO_T}no" >&6 |
| 14583 | |
| 14584 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14585 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14586 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 14587 | # 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] | 14588 | echo "$as_me:$LINENO: checking for setgroups" >&5 |
| 14589 | echo $ECHO_N "checking for setgroups... $ECHO_C" >&6 |
| 14590 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14591 | /* confdefs.h. */ |
| 14592 | _ACEOF |
| 14593 | cat confdefs.h >>conftest.$ac_ext |
| 14594 | cat >>conftest.$ac_ext <<_ACEOF |
| 14595 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14596 | |
| 14597 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 14598 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 14599 | #ifdef HAVE_GRP_H |
| 14600 | #include <grp.h> |
| 14601 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14602 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14603 | int |
| 14604 | main () |
| 14605 | { |
| 14606 | void* p = setgroups |
| 14607 | ; |
| 14608 | return 0; |
| 14609 | } |
| 14610 | _ACEOF |
| 14611 | rm -f conftest.$ac_objext |
| 14612 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14613 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14614 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14615 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14616 | rm -f conftest.er1 |
| 14617 | cat conftest.err >&5 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14619 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14620 | { ac_try='test -z "$ac_c_werror_flag" |
| 14621 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14623 | (eval $ac_try) 2>&5 |
| 14624 | ac_status=$? |
| 14625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14626 | (exit $ac_status); }; } && |
| 14627 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14629 | (eval $ac_try) 2>&5 |
| 14630 | ac_status=$? |
| 14631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14632 | (exit $ac_status); }; }; then |
| 14633 | |
| 14634 | cat >>confdefs.h <<\_ACEOF |
| 14635 | #define HAVE_SETGROUPS 1 |
| 14636 | _ACEOF |
| 14637 | |
| 14638 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14639 | echo "${ECHO_T}yes" >&6 |
| 14640 | else |
| 14641 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14642 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14643 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14644 | echo "$as_me:$LINENO: result: no" >&5 |
| 14645 | echo "${ECHO_T}no" >&6 |
| 14646 | |
| 14647 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14648 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14649 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14650 | # check for openpty and forkpty |
| 14651 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14652 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14653 | for ac_func in openpty |
| 14654 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14655 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14656 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14657 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14658 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14659 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14660 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14661 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14662 | /* confdefs.h. */ |
| 14663 | _ACEOF |
| 14664 | cat confdefs.h >>conftest.$ac_ext |
| 14665 | cat >>conftest.$ac_ext <<_ACEOF |
| 14666 | /* end confdefs.h. */ |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14667 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14668 | which can conflict with char $ac_func (); below. |
| 14669 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14670 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14671 | including <limits.h> includes <sys/time.h> and causes problems |
| 14672 | checking for functions defined therein. */ |
| 14673 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14674 | # include <limits.h> |
| 14675 | #else |
| 14676 | # include <assert.h> |
| 14677 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14678 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14679 | #ifdef __cplusplus |
| 14680 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14681 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14682 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14683 | /* 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] | 14684 | builtin and then its argument prototype would still apply. */ |
| 14685 | char $ac_func (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14686 | /* The GNU C library defines this for functions which it implements |
| 14687 | to always fail with ENOSYS. Some functions are actually named |
| 14688 | something starting with __ and the normal name is an alias. */ |
| 14689 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14690 | choke me |
| 14691 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14692 | char (*f) () = $ac_func; |
| 14693 | #endif |
| 14694 | #ifdef __cplusplus |
| 14695 | } |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14696 | #endif |
| 14697 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14698 | int |
| 14699 | main () |
| 14700 | { |
| 14701 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14702 | ; |
| 14703 | return 0; |
| 14704 | } |
| 14705 | _ACEOF |
| 14706 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14707 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14708 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14709 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14710 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14711 | rm -f conftest.er1 |
| 14712 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14714 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14715 | { ac_try='test -z "$ac_c_werror_flag" |
| 14716 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14718 | (eval $ac_try) 2>&5 |
| 14719 | ac_status=$? |
| 14720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14721 | (exit $ac_status); }; } && |
| 14722 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14724 | (eval $ac_try) 2>&5 |
| 14725 | ac_status=$? |
| 14726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14727 | (exit $ac_status); }; }; then |
| 14728 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14729 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14730 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14731 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14732 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14733 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14734 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14735 | rm -f conftest.err conftest.$ac_objext \ |
| 14736 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14737 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14738 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14739 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14740 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14741 | cat >>confdefs.h <<_ACEOF |
| 14742 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14743 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14744 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14745 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14746 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 14747 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
| 14748 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
| 14749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14750 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14751 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14752 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14753 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14754 | /* confdefs.h. */ |
| 14755 | _ACEOF |
| 14756 | cat confdefs.h >>conftest.$ac_ext |
| 14757 | cat >>conftest.$ac_ext <<_ACEOF |
| 14758 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14759 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14760 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14761 | #ifdef __cplusplus |
| 14762 | extern "C" |
| 14763 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14764 | /* 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] | 14765 | builtin and then its argument prototype would still apply. */ |
| 14766 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14767 | int |
| 14768 | main () |
| 14769 | { |
| 14770 | openpty (); |
| 14771 | ; |
| 14772 | return 0; |
| 14773 | } |
| 14774 | _ACEOF |
| 14775 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14776 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14777 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14778 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14779 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14780 | rm -f conftest.er1 |
| 14781 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14783 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14784 | { ac_try='test -z "$ac_c_werror_flag" |
| 14785 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14787 | (eval $ac_try) 2>&5 |
| 14788 | ac_status=$? |
| 14789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14790 | (exit $ac_status); }; } && |
| 14791 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14793 | (eval $ac_try) 2>&5 |
| 14794 | ac_status=$? |
| 14795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14796 | (exit $ac_status); }; }; then |
| 14797 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14798 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14799 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14800 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14801 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14802 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14803 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14804 | rm -f conftest.err conftest.$ac_objext \ |
| 14805 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14806 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14807 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14808 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 14809 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
| 14810 | if test $ac_cv_lib_util_openpty = yes; then |
| 14811 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14812 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14813 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14814 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 14815 | else |
| 14816 | echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5 |
| 14817 | echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6 |
| 14818 | if test "${ac_cv_lib_bsd_openpty+set}" = set; then |
| 14819 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14820 | else |
| 14821 | ac_check_lib_save_LIBS=$LIBS |
| 14822 | LIBS="-lbsd $LIBS" |
| 14823 | cat >conftest.$ac_ext <<_ACEOF |
| 14824 | /* confdefs.h. */ |
| 14825 | _ACEOF |
| 14826 | cat confdefs.h >>conftest.$ac_ext |
| 14827 | cat >>conftest.$ac_ext <<_ACEOF |
| 14828 | /* end confdefs.h. */ |
| 14829 | |
| 14830 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14831 | #ifdef __cplusplus |
| 14832 | extern "C" |
| 14833 | #endif |
| 14834 | /* We use char because int might match the return type of a gcc2 |
| 14835 | builtin and then its argument prototype would still apply. */ |
| 14836 | char openpty (); |
| 14837 | int |
| 14838 | main () |
| 14839 | { |
| 14840 | openpty (); |
| 14841 | ; |
| 14842 | return 0; |
| 14843 | } |
| 14844 | _ACEOF |
| 14845 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14846 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14847 | (eval $ac_link) 2>conftest.er1 |
| 14848 | ac_status=$? |
| 14849 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14850 | rm -f conftest.er1 |
| 14851 | cat conftest.err >&5 |
| 14852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14853 | (exit $ac_status); } && |
| 14854 | { ac_try='test -z "$ac_c_werror_flag" |
| 14855 | || test ! -s conftest.err' |
| 14856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14857 | (eval $ac_try) 2>&5 |
| 14858 | ac_status=$? |
| 14859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14860 | (exit $ac_status); }; } && |
| 14861 | { ac_try='test -s conftest$ac_exeext' |
| 14862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14863 | (eval $ac_try) 2>&5 |
| 14864 | ac_status=$? |
| 14865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14866 | (exit $ac_status); }; }; then |
| 14867 | ac_cv_lib_bsd_openpty=yes |
| 14868 | else |
| 14869 | echo "$as_me: failed program was:" >&5 |
| 14870 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14871 | |
| 14872 | ac_cv_lib_bsd_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14873 | fi |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 14874 | rm -f conftest.err conftest.$ac_objext \ |
| 14875 | conftest$ac_exeext conftest.$ac_ext |
| 14876 | LIBS=$ac_check_lib_save_LIBS |
| 14877 | fi |
| 14878 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5 |
| 14879 | echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6 |
| 14880 | if test $ac_cv_lib_bsd_openpty = yes; then |
| 14881 | cat >>confdefs.h <<\_ACEOF |
| 14882 | #define HAVE_OPENPTY 1 |
| 14883 | _ACEOF |
| 14884 | LIBS="$LIBS -lbsd" |
| 14885 | fi |
| 14886 | |
| 14887 | |
| 14888 | fi |
| 14889 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14890 | |
| 14891 | fi |
| 14892 | done |
| 14893 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14894 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14895 | for ac_func in forkpty |
| 14896 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14897 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14898 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14899 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14900 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14901 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14902 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14903 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14904 | /* confdefs.h. */ |
| 14905 | _ACEOF |
| 14906 | cat confdefs.h >>conftest.$ac_ext |
| 14907 | cat >>conftest.$ac_ext <<_ACEOF |
| 14908 | /* end confdefs.h. */ |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14909 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14910 | which can conflict with char $ac_func (); below. |
| 14911 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14912 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14913 | including <limits.h> includes <sys/time.h> and causes problems |
| 14914 | checking for functions defined therein. */ |
| 14915 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14916 | # include <limits.h> |
| 14917 | #else |
| 14918 | # include <assert.h> |
| 14919 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14920 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14921 | #ifdef __cplusplus |
| 14922 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14923 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14924 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14925 | /* 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] | 14926 | builtin and then its argument prototype would still apply. */ |
| 14927 | char $ac_func (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14928 | /* The GNU C library defines this for functions which it implements |
| 14929 | to always fail with ENOSYS. Some functions are actually named |
| 14930 | something starting with __ and the normal name is an alias. */ |
| 14931 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14932 | choke me |
| 14933 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14934 | char (*f) () = $ac_func; |
| 14935 | #endif |
| 14936 | #ifdef __cplusplus |
| 14937 | } |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14938 | #endif |
| 14939 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14940 | int |
| 14941 | main () |
| 14942 | { |
| 14943 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14944 | ; |
| 14945 | return 0; |
| 14946 | } |
| 14947 | _ACEOF |
| 14948 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14949 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14950 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14951 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14952 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14953 | rm -f conftest.er1 |
| 14954 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14956 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14957 | { ac_try='test -z "$ac_c_werror_flag" |
| 14958 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14960 | (eval $ac_try) 2>&5 |
| 14961 | ac_status=$? |
| 14962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14963 | (exit $ac_status); }; } && |
| 14964 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14966 | (eval $ac_try) 2>&5 |
| 14967 | ac_status=$? |
| 14968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14969 | (exit $ac_status); }; }; then |
| 14970 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14971 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14972 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14973 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14974 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14975 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14976 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14977 | rm -f conftest.err conftest.$ac_objext \ |
| 14978 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14979 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14980 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14981 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14982 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14983 | cat >>confdefs.h <<_ACEOF |
| 14984 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14985 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14986 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14987 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14988 | echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 14989 | echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6 |
| 14990 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
| 14991 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14992 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14993 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14994 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14995 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14996 | /* confdefs.h. */ |
| 14997 | _ACEOF |
| 14998 | cat confdefs.h >>conftest.$ac_ext |
| 14999 | cat >>conftest.$ac_ext <<_ACEOF |
| 15000 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15001 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15002 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15003 | #ifdef __cplusplus |
| 15004 | extern "C" |
| 15005 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15006 | /* 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] | 15007 | builtin and then its argument prototype would still apply. */ |
| 15008 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15009 | int |
| 15010 | main () |
| 15011 | { |
| 15012 | forkpty (); |
| 15013 | ; |
| 15014 | return 0; |
| 15015 | } |
| 15016 | _ACEOF |
| 15017 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15018 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15019 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15020 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15021 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15022 | rm -f conftest.er1 |
| 15023 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15025 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15026 | { ac_try='test -z "$ac_c_werror_flag" |
| 15027 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15029 | (eval $ac_try) 2>&5 |
| 15030 | ac_status=$? |
| 15031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15032 | (exit $ac_status); }; } && |
| 15033 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15035 | (eval $ac_try) 2>&5 |
| 15036 | ac_status=$? |
| 15037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15038 | (exit $ac_status); }; }; then |
| 15039 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15040 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15041 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15042 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15043 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15044 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15045 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15046 | rm -f conftest.err conftest.$ac_objext \ |
| 15047 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15048 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15049 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15050 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 15051 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6 |
| 15052 | if test $ac_cv_lib_util_forkpty = yes; then |
| 15053 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15054 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15055 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15056 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 15057 | else |
| 15058 | echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5 |
| 15059 | echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6 |
| 15060 | if test "${ac_cv_lib_bsd_forkpty+set}" = set; then |
| 15061 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15062 | else |
| 15063 | ac_check_lib_save_LIBS=$LIBS |
| 15064 | LIBS="-lbsd $LIBS" |
| 15065 | cat >conftest.$ac_ext <<_ACEOF |
| 15066 | /* confdefs.h. */ |
| 15067 | _ACEOF |
| 15068 | cat confdefs.h >>conftest.$ac_ext |
| 15069 | cat >>conftest.$ac_ext <<_ACEOF |
| 15070 | /* end confdefs.h. */ |
| 15071 | |
| 15072 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15073 | #ifdef __cplusplus |
| 15074 | extern "C" |
| 15075 | #endif |
| 15076 | /* We use char because int might match the return type of a gcc2 |
| 15077 | builtin and then its argument prototype would still apply. */ |
| 15078 | char forkpty (); |
| 15079 | int |
| 15080 | main () |
| 15081 | { |
| 15082 | forkpty (); |
| 15083 | ; |
| 15084 | return 0; |
| 15085 | } |
| 15086 | _ACEOF |
| 15087 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15088 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15089 | (eval $ac_link) 2>conftest.er1 |
| 15090 | ac_status=$? |
| 15091 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15092 | rm -f conftest.er1 |
| 15093 | cat conftest.err >&5 |
| 15094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15095 | (exit $ac_status); } && |
| 15096 | { ac_try='test -z "$ac_c_werror_flag" |
| 15097 | || test ! -s conftest.err' |
| 15098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15099 | (eval $ac_try) 2>&5 |
| 15100 | ac_status=$? |
| 15101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15102 | (exit $ac_status); }; } && |
| 15103 | { ac_try='test -s conftest$ac_exeext' |
| 15104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15105 | (eval $ac_try) 2>&5 |
| 15106 | ac_status=$? |
| 15107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15108 | (exit $ac_status); }; }; then |
| 15109 | ac_cv_lib_bsd_forkpty=yes |
| 15110 | else |
| 15111 | echo "$as_me: failed program was:" >&5 |
| 15112 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15113 | |
| 15114 | ac_cv_lib_bsd_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15115 | fi |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 15116 | rm -f conftest.err conftest.$ac_objext \ |
| 15117 | conftest$ac_exeext conftest.$ac_ext |
| 15118 | LIBS=$ac_check_lib_save_LIBS |
| 15119 | fi |
| 15120 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5 |
| 15121 | echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6 |
| 15122 | if test $ac_cv_lib_bsd_forkpty = yes; then |
| 15123 | cat >>confdefs.h <<\_ACEOF |
| 15124 | #define HAVE_FORKPTY 1 |
| 15125 | _ACEOF |
| 15126 | LIBS="$LIBS -lbsd" |
| 15127 | fi |
| 15128 | |
| 15129 | |
| 15130 | fi |
| 15131 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15132 | |
| 15133 | fi |
| 15134 | done |
| 15135 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15136 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15137 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15138 | |
| 15139 | |
| 15140 | |
| 15141 | |
| 15142 | |
| 15143 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15144 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 15145 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15146 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15147 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15148 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15149 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 15151 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15152 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15153 | /* confdefs.h. */ |
| 15154 | _ACEOF |
| 15155 | cat confdefs.h >>conftest.$ac_ext |
| 15156 | cat >>conftest.$ac_ext <<_ACEOF |
| 15157 | /* end confdefs.h. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 15158 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15159 | which can conflict with char $ac_func (); below. |
| 15160 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 15161 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 15162 | including <limits.h> includes <sys/time.h> and causes problems |
| 15163 | checking for functions defined therein. */ |
| 15164 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15165 | # include <limits.h> |
| 15166 | #else |
| 15167 | # include <assert.h> |
| 15168 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 15169 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15170 | #ifdef __cplusplus |
| 15171 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15172 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15173 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 15174 | /* 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] | 15175 | builtin and then its argument prototype would still apply. */ |
| 15176 | char $ac_func (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 15177 | /* The GNU C library defines this for functions which it implements |
| 15178 | to always fail with ENOSYS. Some functions are actually named |
| 15179 | something starting with __ and the normal name is an alias. */ |
| 15180 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15181 | choke me |
| 15182 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15183 | char (*f) () = $ac_func; |
| 15184 | #endif |
| 15185 | #ifdef __cplusplus |
| 15186 | } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 15187 | #endif |
| 15188 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15189 | int |
| 15190 | main () |
| 15191 | { |
| 15192 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15193 | ; |
| 15194 | return 0; |
| 15195 | } |
| 15196 | _ACEOF |
| 15197 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15198 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15199 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15200 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15201 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15202 | rm -f conftest.er1 |
| 15203 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15205 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15206 | { ac_try='test -z "$ac_c_werror_flag" |
| 15207 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15209 | (eval $ac_try) 2>&5 |
| 15210 | ac_status=$? |
| 15211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15212 | (exit $ac_status); }; } && |
| 15213 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15215 | (eval $ac_try) 2>&5 |
| 15216 | ac_status=$? |
| 15217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15218 | (exit $ac_status); }; }; then |
| 15219 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15220 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15221 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15222 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15223 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15224 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15225 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15226 | rm -f conftest.err conftest.$ac_objext \ |
| 15227 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15228 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15229 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15230 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15231 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15232 | cat >>confdefs.h <<_ACEOF |
| 15233 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15234 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15235 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15236 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15237 | done |
| 15238 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15239 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15240 | |
| 15241 | |
| 15242 | |
| 15243 | |
| 15244 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15245 | for ac_func in dup2 getcwd strdup strerror memmove |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15246 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15247 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15248 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15249 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15250 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15251 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15252 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15253 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15254 | /* confdefs.h. */ |
| 15255 | _ACEOF |
| 15256 | cat confdefs.h >>conftest.$ac_ext |
| 15257 | cat >>conftest.$ac_ext <<_ACEOF |
| 15258 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15259 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15260 | which can conflict with char $ac_func (); below. |
| 15261 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 15262 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 15263 | including <limits.h> includes <sys/time.h> and causes problems |
| 15264 | checking for functions defined therein. */ |
| 15265 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15266 | # include <limits.h> |
| 15267 | #else |
| 15268 | # include <assert.h> |
| 15269 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15270 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15271 | #ifdef __cplusplus |
| 15272 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15273 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15274 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15275 | /* 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] | 15276 | builtin and then its argument prototype would still apply. */ |
| 15277 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15278 | /* The GNU C library defines this for functions which it implements |
| 15279 | to always fail with ENOSYS. Some functions are actually named |
| 15280 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15281 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15282 | choke me |
| 15283 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15284 | char (*f) () = $ac_func; |
| 15285 | #endif |
| 15286 | #ifdef __cplusplus |
| 15287 | } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15288 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15289 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15290 | int |
| 15291 | main () |
| 15292 | { |
| 15293 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15294 | ; |
| 15295 | return 0; |
| 15296 | } |
| 15297 | _ACEOF |
| 15298 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15299 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15300 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15301 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15302 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15303 | rm -f conftest.er1 |
| 15304 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15306 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15307 | { ac_try='test -z "$ac_c_werror_flag" |
| 15308 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15310 | (eval $ac_try) 2>&5 |
| 15311 | ac_status=$? |
| 15312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15313 | (exit $ac_status); }; } && |
| 15314 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15316 | (eval $ac_try) 2>&5 |
| 15317 | ac_status=$? |
| 15318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15319 | (exit $ac_status); }; }; then |
| 15320 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15321 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15322 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15323 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15324 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15325 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15326 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15327 | rm -f conftest.err conftest.$ac_objext \ |
| 15328 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15329 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15330 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15331 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15332 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15333 | cat >>confdefs.h <<_ACEOF |
| 15334 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15335 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15336 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15337 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15338 | case $LIBOBJS in |
| 15339 | "$ac_func.$ac_objext" | \ |
| 15340 | *" $ac_func.$ac_objext" | \ |
| 15341 | "$ac_func.$ac_objext "* | \ |
| 15342 | *" $ac_func.$ac_objext "* ) ;; |
| 15343 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; |
| 15344 | esac |
| 15345 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15346 | fi |
| 15347 | done |
| 15348 | |
| 15349 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15350 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15351 | for ac_func in getpgrp |
| 15352 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15353 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15354 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15355 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15356 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15357 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15358 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15359 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15360 | /* confdefs.h. */ |
| 15361 | _ACEOF |
| 15362 | cat confdefs.h >>conftest.$ac_ext |
| 15363 | cat >>conftest.$ac_ext <<_ACEOF |
| 15364 | /* end confdefs.h. */ |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15365 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15366 | which can conflict with char $ac_func (); below. |
| 15367 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 15368 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 15369 | including <limits.h> includes <sys/time.h> and causes problems |
| 15370 | checking for functions defined therein. */ |
| 15371 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15372 | # include <limits.h> |
| 15373 | #else |
| 15374 | # include <assert.h> |
| 15375 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15376 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15377 | #ifdef __cplusplus |
| 15378 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15379 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15380 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15381 | /* 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] | 15382 | builtin and then its argument prototype would still apply. */ |
| 15383 | char $ac_func (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15384 | /* The GNU C library defines this for functions which it implements |
| 15385 | to always fail with ENOSYS. Some functions are actually named |
| 15386 | something starting with __ and the normal name is an alias. */ |
| 15387 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15388 | choke me |
| 15389 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15390 | char (*f) () = $ac_func; |
| 15391 | #endif |
| 15392 | #ifdef __cplusplus |
| 15393 | } |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15394 | #endif |
| 15395 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15396 | int |
| 15397 | main () |
| 15398 | { |
| 15399 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15400 | ; |
| 15401 | return 0; |
| 15402 | } |
| 15403 | _ACEOF |
| 15404 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15405 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15406 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15407 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15408 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15409 | rm -f conftest.er1 |
| 15410 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15412 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15413 | { ac_try='test -z "$ac_c_werror_flag" |
| 15414 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15416 | (eval $ac_try) 2>&5 |
| 15417 | ac_status=$? |
| 15418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15419 | (exit $ac_status); }; } && |
| 15420 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15422 | (eval $ac_try) 2>&5 |
| 15423 | ac_status=$? |
| 15424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15425 | (exit $ac_status); }; }; then |
| 15426 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15427 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15428 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15429 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15430 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15431 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15432 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15433 | rm -f conftest.err conftest.$ac_objext \ |
| 15434 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15435 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15436 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15437 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15438 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15439 | cat >>confdefs.h <<_ACEOF |
| 15440 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15441 | _ACEOF |
| 15442 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15443 | /* confdefs.h. */ |
| 15444 | _ACEOF |
| 15445 | cat confdefs.h >>conftest.$ac_ext |
| 15446 | cat >>conftest.$ac_ext <<_ACEOF |
| 15447 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15448 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15449 | int |
| 15450 | main () |
| 15451 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15452 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15453 | ; |
| 15454 | return 0; |
| 15455 | } |
| 15456 | _ACEOF |
| 15457 | rm -f conftest.$ac_objext |
| 15458 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15459 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15460 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15461 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15462 | rm -f conftest.er1 |
| 15463 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15465 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15466 | { ac_try='test -z "$ac_c_werror_flag" |
| 15467 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15469 | (eval $ac_try) 2>&5 |
| 15470 | ac_status=$? |
| 15471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15472 | (exit $ac_status); }; } && |
| 15473 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15475 | (eval $ac_try) 2>&5 |
| 15476 | ac_status=$? |
| 15477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15478 | (exit $ac_status); }; }; then |
| 15479 | |
| 15480 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15481 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15482 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15483 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15484 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15485 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15486 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15487 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15488 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15489 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15490 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15491 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15492 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15493 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15494 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15495 | |
| 15496 | for ac_func in setpgrp |
| 15497 | do |
| 15498 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15499 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15500 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15501 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15502 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15503 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15504 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15505 | /* confdefs.h. */ |
| 15506 | _ACEOF |
| 15507 | cat confdefs.h >>conftest.$ac_ext |
| 15508 | cat >>conftest.$ac_ext <<_ACEOF |
| 15509 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15510 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15511 | which can conflict with char $ac_func (); below. |
| 15512 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 15513 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 15514 | including <limits.h> includes <sys/time.h> and causes problems |
| 15515 | checking for functions defined therein. */ |
| 15516 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15517 | # include <limits.h> |
| 15518 | #else |
| 15519 | # include <assert.h> |
| 15520 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15521 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15522 | #ifdef __cplusplus |
| 15523 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15524 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15525 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15526 | /* We use char because int might match the return type of a gcc2 |
| 15527 | builtin and then its argument prototype would still apply. */ |
| 15528 | char $ac_func (); |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15529 | /* The GNU C library defines this for functions which it implements |
| 15530 | to always fail with ENOSYS. Some functions are actually named |
| 15531 | something starting with __ and the normal name is an alias. */ |
| 15532 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15533 | choke me |
| 15534 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15535 | char (*f) () = $ac_func; |
| 15536 | #endif |
| 15537 | #ifdef __cplusplus |
| 15538 | } |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15539 | #endif |
| 15540 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15541 | int |
| 15542 | main () |
| 15543 | { |
| 15544 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15545 | ; |
| 15546 | return 0; |
| 15547 | } |
| 15548 | _ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15549 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15550 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15551 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15552 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15553 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15554 | rm -f conftest.er1 |
| 15555 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15557 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15558 | { ac_try='test -z "$ac_c_werror_flag" |
| 15559 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15561 | (eval $ac_try) 2>&5 |
| 15562 | ac_status=$? |
| 15563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15564 | (exit $ac_status); }; } && |
| 15565 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15567 | (eval $ac_try) 2>&5 |
| 15568 | ac_status=$? |
| 15569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15570 | (exit $ac_status); }; }; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15571 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15572 | else |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15573 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15574 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15575 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15576 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15577 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15578 | rm -f conftest.err conftest.$ac_objext \ |
| 15579 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15580 | fi |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15581 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15582 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15583 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15584 | cat >>confdefs.h <<_ACEOF |
| 15585 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15586 | _ACEOF |
| 15587 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15588 | /* confdefs.h. */ |
| 15589 | _ACEOF |
| 15590 | cat confdefs.h >>conftest.$ac_ext |
| 15591 | cat >>conftest.$ac_ext <<_ACEOF |
| 15592 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15593 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15594 | int |
| 15595 | main () |
| 15596 | { |
| 15597 | setpgrp(0,0); |
| 15598 | ; |
| 15599 | return 0; |
| 15600 | } |
| 15601 | _ACEOF |
| 15602 | rm -f conftest.$ac_objext |
| 15603 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15604 | (eval $ac_compile) 2>conftest.er1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15605 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15606 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15607 | rm -f conftest.er1 |
| 15608 | cat conftest.err >&5 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15610 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15611 | { ac_try='test -z "$ac_c_werror_flag" |
| 15612 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15614 | (eval $ac_try) 2>&5 |
| 15615 | ac_status=$? |
| 15616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15617 | (exit $ac_status); }; } && |
| 15618 | { ac_try='test -s conftest.$ac_objext' |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15620 | (eval $ac_try) 2>&5 |
| 15621 | ac_status=$? |
| 15622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15623 | (exit $ac_status); }; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15624 | |
| 15625 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15626 | #define SETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15627 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 15628 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15629 | |
| 15630 | else |
| 15631 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15632 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15633 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 15634 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15635 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15636 | |
| 15637 | fi |
| 15638 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 15639 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15640 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15641 | for ac_func in gettimeofday |
| 15642 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15643 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15644 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15645 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15646 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15648 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15649 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15650 | /* confdefs.h. */ |
| 15651 | _ACEOF |
| 15652 | cat confdefs.h >>conftest.$ac_ext |
| 15653 | cat >>conftest.$ac_ext <<_ACEOF |
| 15654 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15655 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15656 | which can conflict with char $ac_func (); below. |
| 15657 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 15658 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 15659 | including <limits.h> includes <sys/time.h> and causes problems |
| 15660 | checking for functions defined therein. */ |
| 15661 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15662 | # include <limits.h> |
| 15663 | #else |
| 15664 | # include <assert.h> |
| 15665 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15666 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15667 | #ifdef __cplusplus |
| 15668 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15669 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15670 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15671 | /* 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] | 15672 | builtin and then its argument prototype would still apply. */ |
| 15673 | char $ac_func (); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15674 | /* The GNU C library defines this for functions which it implements |
| 15675 | to always fail with ENOSYS. Some functions are actually named |
| 15676 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15677 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15678 | choke me |
| 15679 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15680 | char (*f) () = $ac_func; |
| 15681 | #endif |
| 15682 | #ifdef __cplusplus |
| 15683 | } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15684 | #endif |
| 15685 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15686 | int |
| 15687 | main () |
| 15688 | { |
| 15689 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15690 | ; |
| 15691 | return 0; |
| 15692 | } |
| 15693 | _ACEOF |
| 15694 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15695 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15696 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15697 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15698 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15699 | rm -f conftest.er1 |
| 15700 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15702 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15703 | { ac_try='test -z "$ac_c_werror_flag" |
| 15704 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15706 | (eval $ac_try) 2>&5 |
| 15707 | ac_status=$? |
| 15708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15709 | (exit $ac_status); }; } && |
| 15710 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15712 | (eval $ac_try) 2>&5 |
| 15713 | ac_status=$? |
| 15714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15715 | (exit $ac_status); }; }; then |
| 15716 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15717 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15718 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15719 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15720 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15721 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15722 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15723 | rm -f conftest.err conftest.$ac_objext \ |
| 15724 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15725 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15726 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15727 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15728 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15729 | cat >>confdefs.h <<_ACEOF |
| 15730 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15731 | _ACEOF |
| 15732 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15733 | /* confdefs.h. */ |
| 15734 | _ACEOF |
| 15735 | cat confdefs.h >>conftest.$ac_ext |
| 15736 | cat >>conftest.$ac_ext <<_ACEOF |
| 15737 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15738 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15739 | int |
| 15740 | main () |
| 15741 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15742 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15743 | ; |
| 15744 | return 0; |
| 15745 | } |
| 15746 | _ACEOF |
| 15747 | rm -f conftest.$ac_objext |
| 15748 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15749 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15750 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15751 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15752 | rm -f conftest.er1 |
| 15753 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15755 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15756 | { ac_try='test -z "$ac_c_werror_flag" |
| 15757 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15759 | (eval $ac_try) 2>&5 |
| 15760 | ac_status=$? |
| 15761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15762 | (exit $ac_status); }; } && |
| 15763 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15765 | (eval $ac_try) 2>&5 |
| 15766 | ac_status=$? |
| 15767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15768 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15769 | : |
| 15770 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15771 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15772 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15773 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15774 | |
| 15775 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15776 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15777 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15778 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15779 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15780 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15781 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15782 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15783 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15784 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15785 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15786 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15787 | echo "$as_me:$LINENO: checking for major" >&5 |
| 15788 | echo $ECHO_N "checking for major... $ECHO_C" >&6 |
| 15789 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15790 | /* confdefs.h. */ |
| 15791 | _ACEOF |
| 15792 | cat confdefs.h >>conftest.$ac_ext |
| 15793 | cat >>conftest.$ac_ext <<_ACEOF |
| 15794 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15795 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 15796 | #if defined(MAJOR_IN_MKDEV) |
| 15797 | #include <sys/mkdev.h> |
| 15798 | #elif defined(MAJOR_IN_SYSMACROS) |
| 15799 | #include <sys/sysmacros.h> |
| 15800 | #else |
| 15801 | #include <sys/types.h> |
| 15802 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15803 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15804 | int |
| 15805 | main () |
| 15806 | { |
| 15807 | |
| 15808 | makedev(major(0),minor(0)); |
| 15809 | |
| 15810 | ; |
| 15811 | return 0; |
| 15812 | } |
| 15813 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 15814 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15815 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15816 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15817 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15818 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15819 | rm -f conftest.er1 |
| 15820 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15822 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15823 | { ac_try='test -z "$ac_c_werror_flag" |
| 15824 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15826 | (eval $ac_try) 2>&5 |
| 15827 | ac_status=$? |
| 15828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15829 | (exit $ac_status); }; } && |
| 15830 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15832 | (eval $ac_try) 2>&5 |
| 15833 | ac_status=$? |
| 15834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15835 | (exit $ac_status); }; }; then |
| 15836 | |
| 15837 | |
| 15838 | cat >>confdefs.h <<\_ACEOF |
| 15839 | #define HAVE_DEVICE_MACROS 1 |
| 15840 | _ACEOF |
| 15841 | |
| 15842 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15843 | echo "${ECHO_T}yes" >&6 |
| 15844 | |
| 15845 | else |
| 15846 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15847 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15848 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15849 | |
| 15850 | echo "$as_me:$LINENO: result: no" >&5 |
| 15851 | echo "${ECHO_T}no" >&6 |
| 15852 | |
| 15853 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15854 | rm -f conftest.err conftest.$ac_objext \ |
| 15855 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15856 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15857 | # 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] | 15858 | # for [no]getaddrinfo in netdb.h. |
| 15859 | echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 15860 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6 |
| 15861 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15862 | /* confdefs.h. */ |
| 15863 | _ACEOF |
| 15864 | cat confdefs.h >>conftest.$ac_ext |
| 15865 | cat >>conftest.$ac_ext <<_ACEOF |
| 15866 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15867 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 15868 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15869 | #include <sys/socket.h> |
| 15870 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 15871 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15872 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15873 | int |
| 15874 | main () |
| 15875 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15876 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15877 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15878 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15879 | ; |
| 15880 | return 0; |
| 15881 | } |
| 15882 | _ACEOF |
| 15883 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15884 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15885 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15886 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15887 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15888 | rm -f conftest.er1 |
| 15889 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15891 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15892 | { ac_try='test -z "$ac_c_werror_flag" |
| 15893 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15895 | (eval $ac_try) 2>&5 |
| 15896 | ac_status=$? |
| 15897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15898 | (exit $ac_status); }; } && |
| 15899 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15901 | (eval $ac_try) 2>&5 |
| 15902 | ac_status=$? |
| 15903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15904 | (exit $ac_status); }; }; then |
| 15905 | |
| 15906 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15907 | echo "${ECHO_T}yes" >&6 |
| 15908 | echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| 15909 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15910 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15911 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 15912 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15913 | buggygetaddrinfo=yes |
| 15914 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15915 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15916 | /* confdefs.h. */ |
| 15917 | _ACEOF |
| 15918 | cat confdefs.h >>conftest.$ac_ext |
| 15919 | cat >>conftest.$ac_ext <<_ACEOF |
| 15920 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15921 | |
| 15922 | #include <sys/types.h> |
| 15923 | #include <netdb.h> |
| 15924 | #include <string.h> |
| 15925 | #include <sys/socket.h> |
| 15926 | #include <netinet/in.h> |
| 15927 | |
| 15928 | main() |
| 15929 | { |
| 15930 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 15931 | struct addrinfo hints, *ai, *aitop; |
| 15932 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 15933 | |
| 15934 | for (passive = 0; passive <= 1; passive++) { |
| 15935 | memset(&hints, 0, sizeof(hints)); |
| 15936 | hints.ai_family = AF_UNSPEC; |
| 15937 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 15938 | hints.ai_socktype = SOCK_STREAM; |
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 15939 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15940 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 15941 | (void)gai_strerror(gaierr); |
| 15942 | goto bad; |
| 15943 | } |
| 15944 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 15945 | if (ai->ai_addr == NULL || |
| 15946 | ai->ai_addrlen == 0 || |
| 15947 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 15948 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 15949 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 15950 | goto bad; |
| 15951 | } |
| 15952 | switch (ai->ai_family) { |
| 15953 | case AF_INET: |
| 15954 | if (strcmp(strport, "54321") != 0) { |
| 15955 | goto bad; |
| 15956 | } |
| 15957 | if (passive) { |
| 15958 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 15959 | goto bad; |
| 15960 | } |
| 15961 | } else { |
| 15962 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 15963 | goto bad; |
| 15964 | } |
| 15965 | } |
| 15966 | inet4++; |
| 15967 | break; |
| 15968 | case AF_INET6: |
| 15969 | if (strcmp(strport, "54321") != 0) { |
| 15970 | goto bad; |
| 15971 | } |
| 15972 | if (passive) { |
| 15973 | if (strcmp(straddr, "::") != 0) { |
| 15974 | goto bad; |
| 15975 | } |
| 15976 | } else { |
| 15977 | if (strcmp(straddr, "::1") != 0) { |
| 15978 | goto bad; |
| 15979 | } |
| 15980 | } |
| 15981 | inet6++; |
| 15982 | break; |
| 15983 | case AF_UNSPEC: |
| 15984 | goto bad; |
| 15985 | break; |
| 15986 | default: |
| 15987 | /* another family support? */ |
| 15988 | break; |
| 15989 | } |
| 15990 | } |
| 15991 | } |
| 15992 | |
| 15993 | if (!(inet4 == 0 || inet4 == 2)) |
| 15994 | goto bad; |
| 15995 | if (!(inet6 == 0 || inet6 == 2)) |
| 15996 | goto bad; |
| 15997 | |
| 15998 | if (aitop) |
| 15999 | freeaddrinfo(aitop); |
| 16000 | exit(0); |
| 16001 | |
| 16002 | bad: |
| 16003 | if (aitop) |
| 16004 | freeaddrinfo(aitop); |
| 16005 | exit(1); |
| 16006 | } |
| 16007 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16008 | _ACEOF |
| 16009 | rm -f conftest$ac_exeext |
| 16010 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16011 | (eval $ac_link) 2>&5 |
| 16012 | ac_status=$? |
| 16013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16014 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16016 | (eval $ac_try) 2>&5 |
| 16017 | ac_status=$? |
| 16018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16019 | (exit $ac_status); }; }; then |
| 16020 | echo "$as_me:$LINENO: result: good" >&5 |
| 16021 | echo "${ECHO_T}good" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16022 | buggygetaddrinfo=no |
| 16023 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16024 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16025 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16026 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16027 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16028 | ( exit $ac_status ) |
| 16029 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 16030 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16031 | buggygetaddrinfo=yes |
| 16032 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16033 | 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] | 16034 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16035 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16036 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16037 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16038 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16039 | |
| 16040 | echo "$as_me:$LINENO: result: no" >&5 |
| 16041 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16042 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16043 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 16044 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16045 | rm -f conftest.err conftest.$ac_objext \ |
| 16046 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16047 | |
| 16048 | if test "$buggygetaddrinfo" = "yes"; then |
| 16049 | if test "$ipv6" = "yes"; then |
| 16050 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 16051 | echo ' or you can specify "--disable-ipv6"'. |
| 16052 | exit 1 |
| 16053 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 16054 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16055 | |
| 16056 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 16057 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16058 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 16059 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16060 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16061 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 16062 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16063 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16064 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16065 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16066 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 16067 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 16068 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16069 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16070 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16071 | /* confdefs.h. */ |
| 16072 | _ACEOF |
| 16073 | cat confdefs.h >>conftest.$ac_ext |
| 16074 | cat >>conftest.$ac_ext <<_ACEOF |
| 16075 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16076 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16077 | which can conflict with char $ac_func (); below. |
| 16078 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 16079 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 16080 | including <limits.h> includes <sys/time.h> and causes problems |
| 16081 | checking for functions defined therein. */ |
| 16082 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16083 | # include <limits.h> |
| 16084 | #else |
| 16085 | # include <assert.h> |
| 16086 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16087 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16088 | #ifdef __cplusplus |
| 16089 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16090 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16091 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16092 | /* 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] | 16093 | builtin and then its argument prototype would still apply. */ |
| 16094 | char $ac_func (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16095 | /* The GNU C library defines this for functions which it implements |
| 16096 | to always fail with ENOSYS. Some functions are actually named |
| 16097 | something starting with __ and the normal name is an alias. */ |
| 16098 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 16099 | choke me |
| 16100 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16101 | char (*f) () = $ac_func; |
| 16102 | #endif |
| 16103 | #ifdef __cplusplus |
| 16104 | } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16105 | #endif |
| 16106 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16107 | int |
| 16108 | main () |
| 16109 | { |
| 16110 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16111 | ; |
| 16112 | return 0; |
| 16113 | } |
| 16114 | _ACEOF |
| 16115 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16116 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16117 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16118 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16119 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16120 | rm -f conftest.er1 |
| 16121 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16123 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16124 | { ac_try='test -z "$ac_c_werror_flag" |
| 16125 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16127 | (eval $ac_try) 2>&5 |
| 16128 | ac_status=$? |
| 16129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16130 | (exit $ac_status); }; } && |
| 16131 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16133 | (eval $ac_try) 2>&5 |
| 16134 | ac_status=$? |
| 16135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16136 | (exit $ac_status); }; }; then |
| 16137 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16138 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16139 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16140 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16141 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16142 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16143 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16144 | rm -f conftest.err conftest.$ac_objext \ |
| 16145 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16146 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16147 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 16148 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 16149 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16150 | cat >>confdefs.h <<_ACEOF |
| 16151 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16152 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16153 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16154 | fi |
| 16155 | done |
| 16156 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16157 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16158 | # checks for structures |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16159 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 16160 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 16161 | if test "${ac_cv_header_time+set}" = set; then |
| 16162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16163 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16164 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16165 | /* confdefs.h. */ |
| 16166 | _ACEOF |
| 16167 | cat confdefs.h >>conftest.$ac_ext |
| 16168 | cat >>conftest.$ac_ext <<_ACEOF |
| 16169 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16170 | #include <sys/types.h> |
| 16171 | #include <sys/time.h> |
| 16172 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16173 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16174 | int |
| 16175 | main () |
| 16176 | { |
| 16177 | if ((struct tm *) 0) |
| 16178 | return 0; |
| 16179 | ; |
| 16180 | return 0; |
| 16181 | } |
| 16182 | _ACEOF |
| 16183 | rm -f conftest.$ac_objext |
| 16184 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16185 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16186 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16187 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16188 | rm -f conftest.er1 |
| 16189 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16191 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16192 | { ac_try='test -z "$ac_c_werror_flag" |
| 16193 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16195 | (eval $ac_try) 2>&5 |
| 16196 | ac_status=$? |
| 16197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16198 | (exit $ac_status); }; } && |
| 16199 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16201 | (eval $ac_try) 2>&5 |
| 16202 | ac_status=$? |
| 16203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16204 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16205 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16206 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16207 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16208 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16209 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16210 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16211 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16212 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16213 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16214 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 16215 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16216 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16217 | |
| 16218 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16219 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16220 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16221 | |
| 16222 | fi |
| 16223 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16224 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 16225 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 16226 | if test "${ac_cv_struct_tm+set}" = set; then |
| 16227 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16228 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16235 | #include <sys/types.h> |
| 16236 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16237 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16238 | int |
| 16239 | main () |
| 16240 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16241 | struct tm *tp; tp->tm_sec; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16248 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16249 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16250 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16251 | rm -f conftest.er1 |
| 16252 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16254 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16255 | { ac_try='test -z "$ac_c_werror_flag" |
| 16256 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 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' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +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 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16268 | ac_cv_struct_tm=time.h |
| 16269 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16270 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 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_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16274 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16275 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16276 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16277 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 16278 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16279 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16280 | |
| 16281 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16282 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16283 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16284 | |
| 16285 | fi |
| 16286 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16287 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 16288 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 16289 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 16290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16291 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16292 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16293 | /* confdefs.h. */ |
| 16294 | _ACEOF |
| 16295 | cat confdefs.h >>conftest.$ac_ext |
| 16296 | cat >>conftest.$ac_ext <<_ACEOF |
| 16297 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16298 | #include <sys/types.h> |
| 16299 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16300 | |
| 16301 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16302 | int |
| 16303 | main () |
| 16304 | { |
| 16305 | static struct tm ac_aggr; |
| 16306 | if (ac_aggr.tm_zone) |
| 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 | f0d5f79 | 2004-08-15 14:08:23 +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 | f0d5f79 | 2004-08-15 14:08:23 +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); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16321 | { ac_try='test -z "$ac_c_werror_flag" |
| 16322 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 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_tm_tm_zone=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 | #include <sys/types.h> |
| 16346 | #include <$ac_cv_struct_tm> |
| 16347 | |
| 16348 | |
| 16349 | int |
| 16350 | main () |
| 16351 | { |
| 16352 | static struct tm ac_aggr; |
| 16353 | if (sizeof ac_aggr.tm_zone) |
| 16354 | return 0; |
| 16355 | ; |
| 16356 | return 0; |
| 16357 | } |
| 16358 | _ACEOF |
| 16359 | rm -f conftest.$ac_objext |
| 16360 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16361 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16362 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16363 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16364 | rm -f conftest.er1 |
| 16365 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16367 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16368 | { ac_try='test -z "$ac_c_werror_flag" |
| 16369 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16371 | (eval $ac_try) 2>&5 |
| 16372 | ac_status=$? |
| 16373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16374 | (exit $ac_status); }; } && |
| 16375 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16377 | (eval $ac_try) 2>&5 |
| 16378 | ac_status=$? |
| 16379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16380 | (exit $ac_status); }; }; then |
| 16381 | ac_cv_member_struct_tm_tm_zone=yes |
| 16382 | else |
| 16383 | echo "$as_me: failed program was:" >&5 |
| 16384 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16385 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16386 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16387 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16388 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16389 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16390 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16391 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16392 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 16393 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 16394 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 16395 | |
| 16396 | cat >>confdefs.h <<_ACEOF |
| 16397 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 16398 | _ACEOF |
| 16399 | |
| 16400 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16401 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 16402 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16403 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 16404 | |
| 16405 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16406 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16407 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16408 | |
| 16409 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16410 | echo "$as_me:$LINENO: checking for tzname" >&5 |
| 16411 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 16412 | if test "${ac_cv_var_tzname+set}" = set; then |
| 16413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16414 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16415 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16416 | /* confdefs.h. */ |
| 16417 | _ACEOF |
| 16418 | cat confdefs.h >>conftest.$ac_ext |
| 16419 | cat >>conftest.$ac_ext <<_ACEOF |
| 16420 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16421 | #include <time.h> |
| 16422 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16423 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16424 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16425 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16426 | int |
| 16427 | main () |
| 16428 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16429 | atoi(*tzname); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16430 | ; |
| 16431 | return 0; |
| 16432 | } |
| 16433 | _ACEOF |
| 16434 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16435 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16436 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16437 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16438 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16439 | rm -f conftest.er1 |
| 16440 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16442 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16443 | { ac_try='test -z "$ac_c_werror_flag" |
| 16444 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16446 | (eval $ac_try) 2>&5 |
| 16447 | ac_status=$? |
| 16448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16449 | (exit $ac_status); }; } && |
| 16450 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16452 | (eval $ac_try) 2>&5 |
| 16453 | ac_status=$? |
| 16454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16455 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16456 | ac_cv_var_tzname=yes |
| 16457 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16458 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16459 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16460 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16461 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16462 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16463 | rm -f conftest.err conftest.$ac_objext \ |
| 16464 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16465 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16466 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 16467 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16468 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16469 | |
| 16470 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16471 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16472 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16473 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16474 | fi |
| 16475 | fi |
| 16476 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16477 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 16478 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 |
| 16479 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
| 16480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16481 | else |
| 16482 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16483 | /* confdefs.h. */ |
| 16484 | _ACEOF |
| 16485 | cat confdefs.h >>conftest.$ac_ext |
| 16486 | cat >>conftest.$ac_ext <<_ACEOF |
| 16487 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16488 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16489 | int |
| 16490 | main () |
| 16491 | { |
| 16492 | static struct stat ac_aggr; |
| 16493 | if (ac_aggr.st_rdev) |
| 16494 | return 0; |
| 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 | f0d5f79 | 2004-08-15 14:08:23 +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 | f0d5f79 | 2004-08-15 14:08:23 +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); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16508 | { ac_try='test -z "$ac_c_werror_flag" |
| 16509 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 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 | ac_cv_member_struct_stat_st_rdev=yes |
| 16522 | else |
| 16523 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16524 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16525 | |
| 16526 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16527 | /* confdefs.h. */ |
| 16528 | _ACEOF |
| 16529 | cat confdefs.h >>conftest.$ac_ext |
| 16530 | cat >>conftest.$ac_ext <<_ACEOF |
| 16531 | /* end confdefs.h. */ |
| 16532 | $ac_includes_default |
| 16533 | int |
| 16534 | main () |
| 16535 | { |
| 16536 | static struct stat ac_aggr; |
| 16537 | if (sizeof ac_aggr.st_rdev) |
| 16538 | return 0; |
| 16539 | ; |
| 16540 | return 0; |
| 16541 | } |
| 16542 | _ACEOF |
| 16543 | rm -f conftest.$ac_objext |
| 16544 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16545 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16546 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16547 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16548 | rm -f conftest.er1 |
| 16549 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16551 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16552 | { ac_try='test -z "$ac_c_werror_flag" |
| 16553 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16555 | (eval $ac_try) 2>&5 |
| 16556 | ac_status=$? |
| 16557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16558 | (exit $ac_status); }; } && |
| 16559 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16561 | (eval $ac_try) 2>&5 |
| 16562 | ac_status=$? |
| 16563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16564 | (exit $ac_status); }; }; then |
| 16565 | ac_cv_member_struct_stat_st_rdev=yes |
| 16566 | else |
| 16567 | echo "$as_me: failed program was:" >&5 |
| 16568 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16569 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16570 | ac_cv_member_struct_stat_st_rdev=no |
| 16571 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16572 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16573 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16574 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16575 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16576 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 16577 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 |
| 16578 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
| 16579 | |
| 16580 | cat >>confdefs.h <<_ACEOF |
| 16581 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 16582 | _ACEOF |
| 16583 | |
| 16584 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 16585 | fi |
| 16586 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16587 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 16588 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 |
| 16589 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
| 16590 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 16591 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16592 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16593 | /* confdefs.h. */ |
| 16594 | _ACEOF |
| 16595 | cat confdefs.h >>conftest.$ac_ext |
| 16596 | cat >>conftest.$ac_ext <<_ACEOF |
| 16597 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16598 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16599 | int |
| 16600 | main () |
| 16601 | { |
| 16602 | static struct stat ac_aggr; |
| 16603 | if (ac_aggr.st_blksize) |
| 16604 | return 0; |
| 16605 | ; |
| 16606 | return 0; |
| 16607 | } |
| 16608 | _ACEOF |
| 16609 | rm -f conftest.$ac_objext |
| 16610 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16611 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16612 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16613 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16614 | rm -f conftest.er1 |
| 16615 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16617 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16618 | { ac_try='test -z "$ac_c_werror_flag" |
| 16619 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16621 | (eval $ac_try) 2>&5 |
| 16622 | ac_status=$? |
| 16623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16624 | (exit $ac_status); }; } && |
| 16625 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16627 | (eval $ac_try) 2>&5 |
| 16628 | ac_status=$? |
| 16629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16630 | (exit $ac_status); }; }; then |
| 16631 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16632 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16633 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16634 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16635 | |
| 16636 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16637 | /* confdefs.h. */ |
| 16638 | _ACEOF |
| 16639 | cat confdefs.h >>conftest.$ac_ext |
| 16640 | cat >>conftest.$ac_ext <<_ACEOF |
| 16641 | /* end confdefs.h. */ |
| 16642 | $ac_includes_default |
| 16643 | int |
| 16644 | main () |
| 16645 | { |
| 16646 | static struct stat ac_aggr; |
| 16647 | if (sizeof ac_aggr.st_blksize) |
| 16648 | return 0; |
| 16649 | ; |
| 16650 | return 0; |
| 16651 | } |
| 16652 | _ACEOF |
| 16653 | rm -f conftest.$ac_objext |
| 16654 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16655 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16656 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16657 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16658 | rm -f conftest.er1 |
| 16659 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16661 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16662 | { ac_try='test -z "$ac_c_werror_flag" |
| 16663 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16665 | (eval $ac_try) 2>&5 |
| 16666 | ac_status=$? |
| 16667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16668 | (exit $ac_status); }; } && |
| 16669 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16671 | (eval $ac_try) 2>&5 |
| 16672 | ac_status=$? |
| 16673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16674 | (exit $ac_status); }; }; then |
| 16675 | ac_cv_member_struct_stat_st_blksize=yes |
| 16676 | else |
| 16677 | echo "$as_me: failed program was:" >&5 |
| 16678 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16679 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16680 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16681 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16682 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16683 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16684 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16685 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16686 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 16687 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 |
| 16688 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16689 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16690 | cat >>confdefs.h <<_ACEOF |
| 16691 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 16692 | _ACEOF |
| 16693 | |
| 16694 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 16695 | fi |
| 16696 | |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 16697 | echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5 |
| 16698 | echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6 |
| 16699 | if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then |
| 16700 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16701 | else |
| 16702 | cat >conftest.$ac_ext <<_ACEOF |
| 16703 | /* confdefs.h. */ |
| 16704 | _ACEOF |
| 16705 | cat confdefs.h >>conftest.$ac_ext |
| 16706 | cat >>conftest.$ac_ext <<_ACEOF |
| 16707 | /* end confdefs.h. */ |
| 16708 | $ac_includes_default |
| 16709 | int |
| 16710 | main () |
| 16711 | { |
| 16712 | static struct stat ac_aggr; |
| 16713 | if (ac_aggr.st_flags) |
| 16714 | return 0; |
| 16715 | ; |
| 16716 | return 0; |
| 16717 | } |
| 16718 | _ACEOF |
| 16719 | rm -f conftest.$ac_objext |
| 16720 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16721 | (eval $ac_compile) 2>conftest.er1 |
| 16722 | ac_status=$? |
| 16723 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16724 | rm -f conftest.er1 |
| 16725 | cat conftest.err >&5 |
| 16726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16727 | (exit $ac_status); } && |
| 16728 | { ac_try='test -z "$ac_c_werror_flag" |
| 16729 | || test ! -s conftest.err' |
| 16730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16731 | (eval $ac_try) 2>&5 |
| 16732 | ac_status=$? |
| 16733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16734 | (exit $ac_status); }; } && |
| 16735 | { ac_try='test -s conftest.$ac_objext' |
| 16736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16737 | (eval $ac_try) 2>&5 |
| 16738 | ac_status=$? |
| 16739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16740 | (exit $ac_status); }; }; then |
| 16741 | ac_cv_member_struct_stat_st_flags=yes |
| 16742 | else |
| 16743 | echo "$as_me: failed program was:" >&5 |
| 16744 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16745 | |
| 16746 | cat >conftest.$ac_ext <<_ACEOF |
| 16747 | /* confdefs.h. */ |
| 16748 | _ACEOF |
| 16749 | cat confdefs.h >>conftest.$ac_ext |
| 16750 | cat >>conftest.$ac_ext <<_ACEOF |
| 16751 | /* end confdefs.h. */ |
| 16752 | $ac_includes_default |
| 16753 | int |
| 16754 | main () |
| 16755 | { |
| 16756 | static struct stat ac_aggr; |
| 16757 | if (sizeof ac_aggr.st_flags) |
| 16758 | return 0; |
| 16759 | ; |
| 16760 | return 0; |
| 16761 | } |
| 16762 | _ACEOF |
| 16763 | rm -f conftest.$ac_objext |
| 16764 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16765 | (eval $ac_compile) 2>conftest.er1 |
| 16766 | ac_status=$? |
| 16767 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16768 | rm -f conftest.er1 |
| 16769 | cat conftest.err >&5 |
| 16770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16771 | (exit $ac_status); } && |
| 16772 | { ac_try='test -z "$ac_c_werror_flag" |
| 16773 | || test ! -s conftest.err' |
| 16774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16775 | (eval $ac_try) 2>&5 |
| 16776 | ac_status=$? |
| 16777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16778 | (exit $ac_status); }; } && |
| 16779 | { ac_try='test -s conftest.$ac_objext' |
| 16780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16781 | (eval $ac_try) 2>&5 |
| 16782 | ac_status=$? |
| 16783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16784 | (exit $ac_status); }; }; then |
| 16785 | ac_cv_member_struct_stat_st_flags=yes |
| 16786 | else |
| 16787 | echo "$as_me: failed program was:" >&5 |
| 16788 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16789 | |
| 16790 | ac_cv_member_struct_stat_st_flags=no |
| 16791 | fi |
| 16792 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16793 | fi |
| 16794 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16795 | fi |
| 16796 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5 |
| 16797 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6 |
| 16798 | if test $ac_cv_member_struct_stat_st_flags = yes; then |
| 16799 | |
| 16800 | cat >>confdefs.h <<_ACEOF |
| 16801 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 |
| 16802 | _ACEOF |
| 16803 | |
| 16804 | |
| 16805 | fi |
| 16806 | |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 16807 | echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5 |
| 16808 | echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6 |
| 16809 | if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then |
| 16810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16811 | else |
| 16812 | cat >conftest.$ac_ext <<_ACEOF |
| 16813 | /* confdefs.h. */ |
| 16814 | _ACEOF |
| 16815 | cat confdefs.h >>conftest.$ac_ext |
| 16816 | cat >>conftest.$ac_ext <<_ACEOF |
| 16817 | /* end confdefs.h. */ |
| 16818 | $ac_includes_default |
| 16819 | int |
| 16820 | main () |
| 16821 | { |
| 16822 | static struct stat ac_aggr; |
| 16823 | if (ac_aggr.st_gen) |
| 16824 | return 0; |
| 16825 | ; |
| 16826 | return 0; |
| 16827 | } |
| 16828 | _ACEOF |
| 16829 | rm -f conftest.$ac_objext |
| 16830 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16831 | (eval $ac_compile) 2>conftest.er1 |
| 16832 | ac_status=$? |
| 16833 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16834 | rm -f conftest.er1 |
| 16835 | cat conftest.err >&5 |
| 16836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16837 | (exit $ac_status); } && |
| 16838 | { ac_try='test -z "$ac_c_werror_flag" |
| 16839 | || test ! -s conftest.err' |
| 16840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16841 | (eval $ac_try) 2>&5 |
| 16842 | ac_status=$? |
| 16843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16844 | (exit $ac_status); }; } && |
| 16845 | { ac_try='test -s conftest.$ac_objext' |
| 16846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16847 | (eval $ac_try) 2>&5 |
| 16848 | ac_status=$? |
| 16849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16850 | (exit $ac_status); }; }; then |
| 16851 | ac_cv_member_struct_stat_st_gen=yes |
| 16852 | else |
| 16853 | echo "$as_me: failed program was:" >&5 |
| 16854 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16855 | |
| 16856 | cat >conftest.$ac_ext <<_ACEOF |
| 16857 | /* confdefs.h. */ |
| 16858 | _ACEOF |
| 16859 | cat confdefs.h >>conftest.$ac_ext |
| 16860 | cat >>conftest.$ac_ext <<_ACEOF |
| 16861 | /* end confdefs.h. */ |
| 16862 | $ac_includes_default |
| 16863 | int |
| 16864 | main () |
| 16865 | { |
| 16866 | static struct stat ac_aggr; |
| 16867 | if (sizeof ac_aggr.st_gen) |
| 16868 | return 0; |
| 16869 | ; |
| 16870 | return 0; |
| 16871 | } |
| 16872 | _ACEOF |
| 16873 | rm -f conftest.$ac_objext |
| 16874 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16875 | (eval $ac_compile) 2>conftest.er1 |
| 16876 | ac_status=$? |
| 16877 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16878 | rm -f conftest.er1 |
| 16879 | cat conftest.err >&5 |
| 16880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16881 | (exit $ac_status); } && |
| 16882 | { ac_try='test -z "$ac_c_werror_flag" |
| 16883 | || test ! -s conftest.err' |
| 16884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16885 | (eval $ac_try) 2>&5 |
| 16886 | ac_status=$? |
| 16887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16888 | (exit $ac_status); }; } && |
| 16889 | { ac_try='test -s conftest.$ac_objext' |
| 16890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16891 | (eval $ac_try) 2>&5 |
| 16892 | ac_status=$? |
| 16893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16894 | (exit $ac_status); }; }; then |
| 16895 | ac_cv_member_struct_stat_st_gen=yes |
| 16896 | else |
| 16897 | echo "$as_me: failed program was:" >&5 |
| 16898 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16899 | |
| 16900 | ac_cv_member_struct_stat_st_gen=no |
| 16901 | fi |
| 16902 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16903 | fi |
| 16904 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16905 | fi |
| 16906 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5 |
| 16907 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6 |
| 16908 | if test $ac_cv_member_struct_stat_st_gen = yes; then |
| 16909 | |
| 16910 | cat >>confdefs.h <<_ACEOF |
| 16911 | #define HAVE_STRUCT_STAT_ST_GEN 1 |
| 16912 | _ACEOF |
| 16913 | |
| 16914 | |
| 16915 | fi |
| 16916 | |
| 16917 | echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5 |
| 16918 | echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6 |
| 16919 | if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then |
| 16920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16921 | else |
| 16922 | cat >conftest.$ac_ext <<_ACEOF |
| 16923 | /* confdefs.h. */ |
| 16924 | _ACEOF |
| 16925 | cat confdefs.h >>conftest.$ac_ext |
| 16926 | cat >>conftest.$ac_ext <<_ACEOF |
| 16927 | /* end confdefs.h. */ |
| 16928 | $ac_includes_default |
| 16929 | int |
| 16930 | main () |
| 16931 | { |
| 16932 | static struct stat ac_aggr; |
| 16933 | if (ac_aggr.st_birthtime) |
| 16934 | return 0; |
| 16935 | ; |
| 16936 | return 0; |
| 16937 | } |
| 16938 | _ACEOF |
| 16939 | rm -f conftest.$ac_objext |
| 16940 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16941 | (eval $ac_compile) 2>conftest.er1 |
| 16942 | ac_status=$? |
| 16943 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16944 | rm -f conftest.er1 |
| 16945 | cat conftest.err >&5 |
| 16946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16947 | (exit $ac_status); } && |
| 16948 | { ac_try='test -z "$ac_c_werror_flag" |
| 16949 | || test ! -s conftest.err' |
| 16950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16951 | (eval $ac_try) 2>&5 |
| 16952 | ac_status=$? |
| 16953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16954 | (exit $ac_status); }; } && |
| 16955 | { ac_try='test -s conftest.$ac_objext' |
| 16956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16957 | (eval $ac_try) 2>&5 |
| 16958 | ac_status=$? |
| 16959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16960 | (exit $ac_status); }; }; then |
| 16961 | ac_cv_member_struct_stat_st_birthtime=yes |
| 16962 | else |
| 16963 | echo "$as_me: failed program was:" >&5 |
| 16964 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16965 | |
| 16966 | cat >conftest.$ac_ext <<_ACEOF |
| 16967 | /* confdefs.h. */ |
| 16968 | _ACEOF |
| 16969 | cat confdefs.h >>conftest.$ac_ext |
| 16970 | cat >>conftest.$ac_ext <<_ACEOF |
| 16971 | /* end confdefs.h. */ |
| 16972 | $ac_includes_default |
| 16973 | int |
| 16974 | main () |
| 16975 | { |
| 16976 | static struct stat ac_aggr; |
| 16977 | if (sizeof ac_aggr.st_birthtime) |
| 16978 | return 0; |
| 16979 | ; |
| 16980 | return 0; |
| 16981 | } |
| 16982 | _ACEOF |
| 16983 | rm -f conftest.$ac_objext |
| 16984 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16985 | (eval $ac_compile) 2>conftest.er1 |
| 16986 | ac_status=$? |
| 16987 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16988 | rm -f conftest.er1 |
| 16989 | cat conftest.err >&5 |
| 16990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16991 | (exit $ac_status); } && |
| 16992 | { ac_try='test -z "$ac_c_werror_flag" |
| 16993 | || test ! -s conftest.err' |
| 16994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16995 | (eval $ac_try) 2>&5 |
| 16996 | ac_status=$? |
| 16997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16998 | (exit $ac_status); }; } && |
| 16999 | { ac_try='test -s conftest.$ac_objext' |
| 17000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17001 | (eval $ac_try) 2>&5 |
| 17002 | ac_status=$? |
| 17003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17004 | (exit $ac_status); }; }; then |
| 17005 | ac_cv_member_struct_stat_st_birthtime=yes |
| 17006 | else |
| 17007 | echo "$as_me: failed program was:" >&5 |
| 17008 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17009 | |
| 17010 | ac_cv_member_struct_stat_st_birthtime=no |
| 17011 | fi |
| 17012 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17013 | fi |
| 17014 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17015 | fi |
| 17016 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5 |
| 17017 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6 |
| 17018 | if test $ac_cv_member_struct_stat_st_birthtime = yes; then |
| 17019 | |
| 17020 | cat >>confdefs.h <<_ACEOF |
| 17021 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 |
| 17022 | _ACEOF |
| 17023 | |
| 17024 | |
| 17025 | fi |
| 17026 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17027 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 17028 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 |
| 17029 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 17030 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 17031 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17032 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17033 | /* confdefs.h. */ |
| 17034 | _ACEOF |
| 17035 | cat confdefs.h >>conftest.$ac_ext |
| 17036 | cat >>conftest.$ac_ext <<_ACEOF |
| 17037 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17038 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17039 | int |
| 17040 | main () |
| 17041 | { |
| 17042 | static struct stat ac_aggr; |
| 17043 | if (ac_aggr.st_blocks) |
| 17044 | return 0; |
| 17045 | ; |
| 17046 | return 0; |
| 17047 | } |
| 17048 | _ACEOF |
| 17049 | rm -f conftest.$ac_objext |
| 17050 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17051 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17052 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17053 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17054 | rm -f conftest.er1 |
| 17055 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17057 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17058 | { ac_try='test -z "$ac_c_werror_flag" |
| 17059 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17061 | (eval $ac_try) 2>&5 |
| 17062 | ac_status=$? |
| 17063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17064 | (exit $ac_status); }; } && |
| 17065 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17067 | (eval $ac_try) 2>&5 |
| 17068 | ac_status=$? |
| 17069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17070 | (exit $ac_status); }; }; then |
| 17071 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17072 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17073 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17074 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17075 | |
| 17076 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17077 | /* confdefs.h. */ |
| 17078 | _ACEOF |
| 17079 | cat confdefs.h >>conftest.$ac_ext |
| 17080 | cat >>conftest.$ac_ext <<_ACEOF |
| 17081 | /* end confdefs.h. */ |
| 17082 | $ac_includes_default |
| 17083 | int |
| 17084 | main () |
| 17085 | { |
| 17086 | static struct stat ac_aggr; |
| 17087 | if (sizeof ac_aggr.st_blocks) |
| 17088 | return 0; |
| 17089 | ; |
| 17090 | return 0; |
| 17091 | } |
| 17092 | _ACEOF |
| 17093 | rm -f conftest.$ac_objext |
| 17094 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17095 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17096 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17097 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17098 | rm -f conftest.er1 |
| 17099 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17101 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17102 | { ac_try='test -z "$ac_c_werror_flag" |
| 17103 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17105 | (eval $ac_try) 2>&5 |
| 17106 | ac_status=$? |
| 17107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17108 | (exit $ac_status); }; } && |
| 17109 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17111 | (eval $ac_try) 2>&5 |
| 17112 | ac_status=$? |
| 17113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17114 | (exit $ac_status); }; }; then |
| 17115 | ac_cv_member_struct_stat_st_blocks=yes |
| 17116 | else |
| 17117 | echo "$as_me: failed program was:" >&5 |
| 17118 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17119 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17120 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17121 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17122 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17123 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17124 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17125 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17126 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 17127 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 |
| 17128 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17129 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17130 | cat >>confdefs.h <<_ACEOF |
| 17131 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 17132 | _ACEOF |
| 17133 | |
| 17134 | |
| 17135 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 17136 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17137 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 17138 | |
| 17139 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17140 | case $LIBOBJS in |
| 17141 | "fileblocks.$ac_objext" | \ |
| 17142 | *" fileblocks.$ac_objext" | \ |
| 17143 | "fileblocks.$ac_objext "* | \ |
| 17144 | *" fileblocks.$ac_objext "* ) ;; |
| 17145 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;; |
| 17146 | esac |
| 17147 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 17148 | fi |
| 17149 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17150 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17151 | |
| 17152 | echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 17153 | echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6 |
| 17154 | if test "${ac_cv_header_time_altzone+set}" = set; then |
| 17155 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17156 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17157 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17158 | /* confdefs.h. */ |
| 17159 | _ACEOF |
| 17160 | cat confdefs.h >>conftest.$ac_ext |
| 17161 | cat >>conftest.$ac_ext <<_ACEOF |
| 17162 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17163 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17164 | int |
| 17165 | main () |
| 17166 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17167 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17168 | ; |
| 17169 | return 0; |
| 17170 | } |
| 17171 | _ACEOF |
| 17172 | rm -f conftest.$ac_objext |
| 17173 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17174 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17175 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17176 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17177 | rm -f conftest.er1 |
| 17178 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17180 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17181 | { ac_try='test -z "$ac_c_werror_flag" |
| 17182 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17184 | (eval $ac_try) 2>&5 |
| 17185 | ac_status=$? |
| 17186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17187 | (exit $ac_status); }; } && |
| 17188 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17190 | (eval $ac_try) 2>&5 |
| 17191 | ac_status=$? |
| 17192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17193 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17194 | ac_cv_header_time_altzone=yes |
| 17195 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17196 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17197 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17198 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17199 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17200 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17201 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17202 | fi |
| 17203 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17204 | echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 17205 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17206 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17207 | |
| 17208 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17209 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17210 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17211 | |
| 17212 | fi |
| 17213 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17214 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17215 | echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 17216 | echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 17217 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17218 | /* confdefs.h. */ |
| 17219 | _ACEOF |
| 17220 | cat confdefs.h >>conftest.$ac_ext |
| 17221 | cat >>conftest.$ac_ext <<_ACEOF |
| 17222 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17223 | |
| 17224 | #include <sys/types.h> |
| 17225 | #include <sys/select.h> |
| 17226 | #include <sys/time.h> |
| 17227 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17228 | int |
| 17229 | main () |
| 17230 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17231 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17232 | ; |
| 17233 | return 0; |
| 17234 | } |
| 17235 | _ACEOF |
| 17236 | rm -f conftest.$ac_objext |
| 17237 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17238 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17239 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17240 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17241 | rm -f conftest.er1 |
| 17242 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17244 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17245 | { ac_try='test -z "$ac_c_werror_flag" |
| 17246 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17248 | (eval $ac_try) 2>&5 |
| 17249 | ac_status=$? |
| 17250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17251 | (exit $ac_status); }; } && |
| 17252 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17254 | (eval $ac_try) 2>&5 |
| 17255 | ac_status=$? |
| 17256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17257 | (exit $ac_status); }; }; then |
| 17258 | |
| 17259 | |
| 17260 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17261 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17262 | _ACEOF |
| 17263 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 17264 | was_it_defined=yes |
| 17265 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 17266 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17267 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17268 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17269 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17270 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17271 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17272 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 17273 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17274 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17275 | echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 17276 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6 |
| 17277 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
| 17278 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17279 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17280 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17281 | /* confdefs.h. */ |
| 17282 | _ACEOF |
| 17283 | cat confdefs.h >>conftest.$ac_ext |
| 17284 | cat >>conftest.$ac_ext <<_ACEOF |
| 17285 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17286 | |
| 17287 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17288 | int |
| 17289 | main () |
| 17290 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17291 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17292 | ; |
| 17293 | return 0; |
| 17294 | } |
| 17295 | _ACEOF |
| 17296 | rm -f conftest.$ac_objext |
| 17297 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17298 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17299 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17300 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17301 | rm -f conftest.er1 |
| 17302 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17304 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17305 | { ac_try='test -z "$ac_c_werror_flag" |
| 17306 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17308 | (eval $ac_try) 2>&5 |
| 17309 | ac_status=$? |
| 17310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17311 | (exit $ac_status); }; } && |
| 17312 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17314 | (eval $ac_try) 2>&5 |
| 17315 | ac_status=$? |
| 17316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17317 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17318 | ac_cv_struct_addrinfo=yes |
| 17319 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17320 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17321 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17322 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17323 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17324 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17325 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17326 | fi |
| 17327 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17328 | echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 17329 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17330 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17331 | |
| 17332 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17333 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17334 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17335 | |
| 17336 | fi |
| 17337 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17338 | echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 17339 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6 |
| 17340 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
| 17341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17342 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17343 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17344 | /* confdefs.h. */ |
| 17345 | _ACEOF |
| 17346 | cat confdefs.h >>conftest.$ac_ext |
| 17347 | cat >>conftest.$ac_ext <<_ACEOF |
| 17348 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17349 | |
| 17350 | # include <sys/types.h> |
| 17351 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17352 | int |
| 17353 | main () |
| 17354 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17355 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17356 | ; |
| 17357 | return 0; |
| 17358 | } |
| 17359 | _ACEOF |
| 17360 | rm -f conftest.$ac_objext |
| 17361 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17362 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17363 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17364 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17365 | rm -f conftest.er1 |
| 17366 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17368 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17369 | { ac_try='test -z "$ac_c_werror_flag" |
| 17370 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17372 | (eval $ac_try) 2>&5 |
| 17373 | ac_status=$? |
| 17374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17375 | (exit $ac_status); }; } && |
| 17376 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17378 | (eval $ac_try) 2>&5 |
| 17379 | ac_status=$? |
| 17380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17381 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17382 | ac_cv_struct_sockaddr_storage=yes |
| 17383 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17384 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17385 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17386 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17387 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17388 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17389 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17390 | fi |
| 17391 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17392 | echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 17393 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17394 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17395 | |
| 17396 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17397 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17398 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17399 | |
| 17400 | fi |
| 17401 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17402 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17403 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17404 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17405 | echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 17406 | echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 |
| 17407 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
| 17408 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17409 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17410 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17411 | /* confdefs.h. */ |
| 17412 | _ACEOF |
| 17413 | cat confdefs.h >>conftest.$ac_ext |
| 17414 | cat >>conftest.$ac_ext <<_ACEOF |
| 17415 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17416 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17417 | int |
| 17418 | main () |
| 17419 | { |
| 17420 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 17421 | test_array [0] = 0 |
| 17422 | |
| 17423 | ; |
| 17424 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17425 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17426 | _ACEOF |
| 17427 | rm -f conftest.$ac_objext |
| 17428 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17429 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17430 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17431 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17432 | rm -f conftest.er1 |
| 17433 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17435 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17436 | { ac_try='test -z "$ac_c_werror_flag" |
| 17437 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17439 | (eval $ac_try) 2>&5 |
| 17440 | ac_status=$? |
| 17441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17442 | (exit $ac_status); }; } && |
| 17443 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17445 | (eval $ac_try) 2>&5 |
| 17446 | ac_status=$? |
| 17447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17448 | (exit $ac_status); }; }; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17449 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17450 | else |
| 17451 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17452 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17453 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17454 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17455 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17456 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17457 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17458 | echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 17459 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17460 | 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] | 17461 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17462 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17463 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17464 | |
| 17465 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17466 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17467 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 17468 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 17469 | if test "${ac_cv_c_const+set}" = set; then |
| 17470 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17471 | else |
| 17472 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17473 | /* confdefs.h. */ |
| 17474 | _ACEOF |
| 17475 | cat confdefs.h >>conftest.$ac_ext |
| 17476 | cat >>conftest.$ac_ext <<_ACEOF |
| 17477 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17478 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17479 | int |
| 17480 | main () |
| 17481 | { |
| 17482 | /* FIXME: Include the comments suggested by Paul. */ |
| 17483 | #ifndef __cplusplus |
| 17484 | /* Ultrix mips cc rejects this. */ |
| 17485 | typedef int charset[2]; |
| 17486 | const charset x; |
| 17487 | /* SunOS 4.1.1 cc rejects this. */ |
| 17488 | char const *const *ccp; |
| 17489 | char **p; |
| 17490 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 17491 | struct point {int x, y;}; |
| 17492 | static struct point const zero = {0,0}; |
| 17493 | /* AIX XL C 1.02.0.0 rejects this. |
| 17494 | It does not let you subtract one const X* pointer from another in |
| 17495 | an arm of an if-expression whose if-part is not a constant |
| 17496 | expression */ |
| 17497 | const char *g = "string"; |
| 17498 | ccp = &g + (g ? g-g : 0); |
| 17499 | /* HPUX 7.0 cc rejects these. */ |
| 17500 | ++ccp; |
| 17501 | p = (char**) ccp; |
| 17502 | ccp = (char const *const *) p; |
| 17503 | { /* SCO 3.2v4 cc rejects this. */ |
| 17504 | char *t; |
| 17505 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17506 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17507 | *t++ = 0; |
| 17508 | } |
| 17509 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 17510 | int x[] = {25, 17}; |
| 17511 | const int *foo = &x[0]; |
| 17512 | ++foo; |
| 17513 | } |
| 17514 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 17515 | typedef const int *iptr; |
| 17516 | iptr p = 0; |
| 17517 | ++p; |
| 17518 | } |
| 17519 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 17520 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 17521 | struct s { int j; const int *ap[3]; }; |
| 17522 | struct s *b; b->j = 5; |
| 17523 | } |
| 17524 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 17525 | const int foo = 10; |
| 17526 | } |
| 17527 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17528 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17529 | ; |
| 17530 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17531 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17532 | _ACEOF |
| 17533 | rm -f conftest.$ac_objext |
| 17534 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17535 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17536 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17537 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17538 | rm -f conftest.er1 |
| 17539 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17541 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17542 | { ac_try='test -z "$ac_c_werror_flag" |
| 17543 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17545 | (eval $ac_try) 2>&5 |
| 17546 | ac_status=$? |
| 17547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17548 | (exit $ac_status); }; } && |
| 17549 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17551 | (eval $ac_try) 2>&5 |
| 17552 | ac_status=$? |
| 17553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17554 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17555 | ac_cv_c_const=yes |
| 17556 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17557 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17558 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17559 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17560 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17561 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17562 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17563 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17564 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 17565 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17566 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17567 | |
| 17568 | cat >>confdefs.h <<\_ACEOF |
| 17569 | #define const |
| 17570 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17571 | |
| 17572 | fi |
| 17573 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17574 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17575 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17576 | echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 17577 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
| 17578 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17579 | /* confdefs.h. */ |
| 17580 | _ACEOF |
| 17581 | cat confdefs.h >>conftest.$ac_ext |
| 17582 | cat >>conftest.$ac_ext <<_ACEOF |
| 17583 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17584 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17585 | int |
| 17586 | main () |
| 17587 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17588 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17589 | ; |
| 17590 | return 0; |
| 17591 | } |
| 17592 | _ACEOF |
| 17593 | rm -f conftest.$ac_objext |
| 17594 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17595 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17596 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17597 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17598 | rm -f conftest.er1 |
| 17599 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17601 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17602 | { ac_try='test -z "$ac_c_werror_flag" |
| 17603 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17605 | (eval $ac_try) 2>&5 |
| 17606 | ac_status=$? |
| 17607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17608 | (exit $ac_status); }; } && |
| 17609 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17611 | (eval $ac_try) 2>&5 |
| 17612 | ac_status=$? |
| 17613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17614 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17615 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17616 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17617 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17618 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17619 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17620 | |
| 17621 | cat >>confdefs.h <<\_ACEOF |
| 17622 | #define volatile |
| 17623 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17624 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 17625 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17626 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17627 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17628 | echo "$as_me:$LINENO: result: $works" >&5 |
| 17629 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17630 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17631 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17632 | echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 17633 | echo $ECHO_N "checking for working signed char... $ECHO_C" >&6 |
| 17634 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17635 | /* confdefs.h. */ |
| 17636 | _ACEOF |
| 17637 | cat confdefs.h >>conftest.$ac_ext |
| 17638 | cat >>conftest.$ac_ext <<_ACEOF |
| 17639 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 17640 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17641 | int |
| 17642 | main () |
| 17643 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17644 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17645 | ; |
| 17646 | return 0; |
| 17647 | } |
| 17648 | _ACEOF |
| 17649 | rm -f conftest.$ac_objext |
| 17650 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17651 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17652 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17653 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17654 | rm -f conftest.er1 |
| 17655 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17657 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17658 | { ac_try='test -z "$ac_c_werror_flag" |
| 17659 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17661 | (eval $ac_try) 2>&5 |
| 17662 | ac_status=$? |
| 17663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17664 | (exit $ac_status); }; } && |
| 17665 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17667 | (eval $ac_try) 2>&5 |
| 17668 | ac_status=$? |
| 17669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17670 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17671 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 17672 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17673 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17674 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17675 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17676 | |
| 17677 | cat >>confdefs.h <<\_ACEOF |
| 17678 | #define signed |
| 17679 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17680 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 17681 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17682 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17683 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17684 | echo "$as_me:$LINENO: result: $works" >&5 |
| 17685 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17686 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17687 | have_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17688 | echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 17689 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6 |
| 17690 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17691 | /* confdefs.h. */ |
| 17692 | _ACEOF |
| 17693 | cat confdefs.h >>conftest.$ac_ext |
| 17694 | cat >>conftest.$ac_ext <<_ACEOF |
| 17695 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17696 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17697 | int |
| 17698 | main () |
| 17699 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17700 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17701 | ; |
| 17702 | return 0; |
| 17703 | } |
| 17704 | _ACEOF |
| 17705 | rm -f conftest.$ac_objext |
| 17706 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17707 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17708 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17709 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17710 | rm -f conftest.er1 |
| 17711 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17713 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17714 | { ac_try='test -z "$ac_c_werror_flag" |
| 17715 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17717 | (eval $ac_try) 2>&5 |
| 17718 | ac_status=$? |
| 17719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17720 | (exit $ac_status); }; } && |
| 17721 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17723 | (eval $ac_try) 2>&5 |
| 17724 | ac_status=$? |
| 17725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17726 | (exit $ac_status); }; }; then |
| 17727 | |
| 17728 | |
| 17729 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17730 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17731 | _ACEOF |
| 17732 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 17733 | have_prototypes=yes |
| 17734 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 17735 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17736 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17737 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17738 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17739 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17740 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17741 | echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 17742 | echo "${ECHO_T}$have_prototypes" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17743 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17744 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17745 | echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 17746 | echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6 |
| 17747 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17748 | /* confdefs.h. */ |
| 17749 | _ACEOF |
| 17750 | cat confdefs.h >>conftest.$ac_ext |
| 17751 | cat >>conftest.$ac_ext <<_ACEOF |
| 17752 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17753 | |
| 17754 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 17755 | int foo(int x, ...) { |
| 17756 | va_list va; |
| 17757 | va_start(va, x); |
| 17758 | va_arg(va, int); |
| 17759 | va_arg(va, char *); |
| 17760 | va_arg(va, double); |
| 17761 | return 0; |
| 17762 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17763 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17764 | int |
| 17765 | main () |
| 17766 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 17767 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17768 | ; |
| 17769 | return 0; |
| 17770 | } |
| 17771 | _ACEOF |
| 17772 | rm -f conftest.$ac_objext |
| 17773 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17774 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17775 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17776 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17777 | rm -f conftest.er1 |
| 17778 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17780 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17781 | { ac_try='test -z "$ac_c_werror_flag" |
| 17782 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17784 | (eval $ac_try) 2>&5 |
| 17785 | ac_status=$? |
| 17786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17787 | (exit $ac_status); }; } && |
| 17788 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17790 | (eval $ac_try) 2>&5 |
| 17791 | ac_status=$? |
| 17792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17793 | (exit $ac_status); }; }; then |
| 17794 | |
| 17795 | |
| 17796 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17797 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17798 | _ACEOF |
| 17799 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 17800 | works=yes |
| 17801 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 17802 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17803 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17804 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17805 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17806 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17807 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17808 | echo "$as_me:$LINENO: result: $works" >&5 |
| 17809 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17810 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 17811 | # check for socketpair |
| 17812 | echo "$as_me:$LINENO: checking for socketpair" >&5 |
| 17813 | echo $ECHO_N "checking for socketpair... $ECHO_C" >&6 |
| 17814 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 17815 | /* confdefs.h. */ |
| 17816 | _ACEOF |
| 17817 | cat confdefs.h >>conftest.$ac_ext |
| 17818 | cat >>conftest.$ac_ext <<_ACEOF |
| 17819 | /* end confdefs.h. */ |
| 17820 | |
| 17821 | #include <sys/types.h> |
| 17822 | #include <sys/socket.h> |
| 17823 | |
| 17824 | int |
| 17825 | main () |
| 17826 | { |
| 17827 | void *x=socketpair |
| 17828 | ; |
| 17829 | return 0; |
| 17830 | } |
| 17831 | _ACEOF |
| 17832 | rm -f conftest.$ac_objext |
| 17833 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17834 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 17835 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17836 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17837 | rm -f conftest.er1 |
| 17838 | cat conftest.err >&5 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 17839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17840 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17841 | { ac_try='test -z "$ac_c_werror_flag" |
| 17842 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17844 | (eval $ac_try) 2>&5 |
| 17845 | ac_status=$? |
| 17846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17847 | (exit $ac_status); }; } && |
| 17848 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 17849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17850 | (eval $ac_try) 2>&5 |
| 17851 | ac_status=$? |
| 17852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17853 | (exit $ac_status); }; }; then |
| 17854 | |
| 17855 | cat >>confdefs.h <<\_ACEOF |
| 17856 | #define HAVE_SOCKETPAIR 1 |
| 17857 | _ACEOF |
| 17858 | |
| 17859 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17860 | echo "${ECHO_T}yes" >&6 |
| 17861 | else |
| 17862 | echo "$as_me: failed program was:" >&5 |
| 17863 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17864 | |
| 17865 | echo "$as_me:$LINENO: result: no" >&5 |
| 17866 | echo "${ECHO_T}no" >&6 |
| 17867 | |
| 17868 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17869 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 17870 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17871 | # check if sockaddr has sa_len member |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17872 | echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 17873 | echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6 |
| 17874 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17875 | /* confdefs.h. */ |
| 17876 | _ACEOF |
| 17877 | cat confdefs.h >>conftest.$ac_ext |
| 17878 | cat >>conftest.$ac_ext <<_ACEOF |
| 17879 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17880 | #include <sys/types.h> |
| 17881 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17882 | int |
| 17883 | main () |
| 17884 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17885 | struct sockaddr x; |
| 17886 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17887 | ; |
| 17888 | return 0; |
| 17889 | } |
| 17890 | _ACEOF |
| 17891 | rm -f conftest.$ac_objext |
| 17892 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17893 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17894 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17895 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17896 | rm -f conftest.er1 |
| 17897 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17899 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17900 | { ac_try='test -z "$ac_c_werror_flag" |
| 17901 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17903 | (eval $ac_try) 2>&5 |
| 17904 | ac_status=$? |
| 17905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17906 | (exit $ac_status); }; } && |
| 17907 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17909 | (eval $ac_try) 2>&5 |
| 17910 | ac_status=$? |
| 17911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17912 | (exit $ac_status); }; }; then |
| 17913 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17914 | echo "${ECHO_T}yes" >&6 |
| 17915 | |
| 17916 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17917 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17918 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17919 | |
| 17920 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17921 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17922 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17923 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17924 | echo "$as_me:$LINENO: result: no" >&5 |
| 17925 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17926 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17927 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17928 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17929 | va_list_is_array=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17930 | echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 17931 | echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6 |
| 17932 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17933 | /* confdefs.h. */ |
| 17934 | _ACEOF |
| 17935 | cat confdefs.h >>conftest.$ac_ext |
| 17936 | cat >>conftest.$ac_ext <<_ACEOF |
| 17937 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17938 | |
| 17939 | #ifdef HAVE_STDARG_PROTOTYPES |
| 17940 | #include <stdarg.h> |
| 17941 | #else |
| 17942 | #include <varargs.h> |
| 17943 | #endif |
| 17944 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17945 | int |
| 17946 | main () |
| 17947 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17948 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17949 | ; |
| 17950 | return 0; |
| 17951 | } |
| 17952 | _ACEOF |
| 17953 | rm -f conftest.$ac_objext |
| 17954 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17955 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17956 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17957 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17958 | rm -f conftest.er1 |
| 17959 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17961 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17962 | { ac_try='test -z "$ac_c_werror_flag" |
| 17963 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17965 | (eval $ac_try) 2>&5 |
| 17966 | ac_status=$? |
| 17967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17968 | (exit $ac_status); }; } && |
| 17969 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17971 | (eval $ac_try) 2>&5 |
| 17972 | ac_status=$? |
| 17973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17974 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17975 | : |
| 17976 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17977 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17978 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17979 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17980 | |
| 17981 | |
| 17982 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17983 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17984 | _ACEOF |
| 17985 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17986 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 17987 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17988 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17989 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17990 | echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 17991 | echo "${ECHO_T}$va_list_is_array" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17992 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17993 | # 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] | 17994 | |
| 17995 | |
| 17996 | |
| 17997 | echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 17998 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6 |
| 17999 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
| 18000 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18001 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18002 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18003 | /* confdefs.h. */ |
| 18004 | _ACEOF |
| 18005 | cat confdefs.h >>conftest.$ac_ext |
| 18006 | cat >>conftest.$ac_ext <<_ACEOF |
| 18007 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18008 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18009 | which can conflict with char gethostbyname_r (); below. |
| 18010 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 18011 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 18012 | including <limits.h> includes <sys/time.h> and causes problems |
| 18013 | checking for functions defined therein. */ |
| 18014 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18015 | # include <limits.h> |
| 18016 | #else |
| 18017 | # include <assert.h> |
| 18018 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18019 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18020 | #ifdef __cplusplus |
| 18021 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18022 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18023 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18024 | /* 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] | 18025 | builtin and then its argument prototype would still apply. */ |
| 18026 | char gethostbyname_r (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18027 | /* The GNU C library defines this for functions which it implements |
| 18028 | to always fail with ENOSYS. Some functions are actually named |
| 18029 | something starting with __ and the normal name is an alias. */ |
| 18030 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 18031 | choke me |
| 18032 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18033 | char (*f) () = gethostbyname_r; |
| 18034 | #endif |
| 18035 | #ifdef __cplusplus |
| 18036 | } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18037 | #endif |
| 18038 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18039 | int |
| 18040 | main () |
| 18041 | { |
| 18042 | return f != gethostbyname_r; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18043 | ; |
| 18044 | return 0; |
| 18045 | } |
| 18046 | _ACEOF |
| 18047 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18048 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18049 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18050 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18051 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18052 | rm -f conftest.er1 |
| 18053 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18055 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18056 | { ac_try='test -z "$ac_c_werror_flag" |
| 18057 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18059 | (eval $ac_try) 2>&5 |
| 18060 | ac_status=$? |
| 18061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18062 | (exit $ac_status); }; } && |
| 18063 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18065 | (eval $ac_try) 2>&5 |
| 18066 | ac_status=$? |
| 18067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18068 | (exit $ac_status); }; }; then |
| 18069 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18070 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18071 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18072 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18073 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18074 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18075 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18076 | rm -f conftest.err conftest.$ac_objext \ |
| 18077 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18078 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18079 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 18080 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6 |
| 18081 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18082 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18083 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18084 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18085 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18086 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18087 | echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 18088 | 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] | 18089 | OLD_CFLAGS=$CFLAGS |
| 18090 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18091 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18092 | /* confdefs.h. */ |
| 18093 | _ACEOF |
| 18094 | cat confdefs.h >>conftest.$ac_ext |
| 18095 | cat >>conftest.$ac_ext <<_ACEOF |
| 18096 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18097 | |
| 18098 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18099 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18100 | int |
| 18101 | main () |
| 18102 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18103 | |
| 18104 | char *name; |
| 18105 | struct hostent *he, *res; |
| 18106 | char buffer[2048]; |
| 18107 | int buflen = 2048; |
| 18108 | int h_errnop; |
| 18109 | |
| 18110 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18111 | |
| 18112 | ; |
| 18113 | return 0; |
| 18114 | } |
| 18115 | _ACEOF |
| 18116 | rm -f conftest.$ac_objext |
| 18117 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18118 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18119 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18120 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18121 | rm -f conftest.er1 |
| 18122 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18124 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18125 | { ac_try='test -z "$ac_c_werror_flag" |
| 18126 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18128 | (eval $ac_try) 2>&5 |
| 18129 | ac_status=$? |
| 18130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18131 | (exit $ac_status); }; } && |
| 18132 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18134 | (eval $ac_try) 2>&5 |
| 18135 | ac_status=$? |
| 18136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18137 | (exit $ac_status); }; }; then |
| 18138 | |
| 18139 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 18140 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18141 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 18142 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18143 | |
| 18144 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18145 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18146 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18147 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18148 | echo "$as_me:$LINENO: result: yes" >&5 |
| 18149 | echo "${ECHO_T}yes" >&6 |
| 18150 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18151 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18152 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18153 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18154 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18155 | |
| 18156 | echo "$as_me:$LINENO: result: no" >&5 |
| 18157 | echo "${ECHO_T}no" >&6 |
| 18158 | echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 18159 | echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6 |
| 18160 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18161 | /* confdefs.h. */ |
| 18162 | _ACEOF |
| 18163 | cat confdefs.h >>conftest.$ac_ext |
| 18164 | cat >>conftest.$ac_ext <<_ACEOF |
| 18165 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18166 | |
| 18167 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18168 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18169 | int |
| 18170 | main () |
| 18171 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18172 | |
| 18173 | char *name; |
| 18174 | struct hostent *he; |
| 18175 | char buffer[2048]; |
| 18176 | int buflen = 2048; |
| 18177 | int h_errnop; |
| 18178 | |
| 18179 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18180 | |
| 18181 | ; |
| 18182 | return 0; |
| 18183 | } |
| 18184 | _ACEOF |
| 18185 | rm -f conftest.$ac_objext |
| 18186 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18187 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18188 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18189 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18190 | rm -f conftest.er1 |
| 18191 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18193 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18194 | { ac_try='test -z "$ac_c_werror_flag" |
| 18195 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18197 | (eval $ac_try) 2>&5 |
| 18198 | ac_status=$? |
| 18199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18200 | (exit $ac_status); }; } && |
| 18201 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18203 | (eval $ac_try) 2>&5 |
| 18204 | ac_status=$? |
| 18205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18206 | (exit $ac_status); }; }; then |
| 18207 | |
| 18208 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 18209 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18210 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 18211 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18212 | |
| 18213 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18214 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18215 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18216 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18217 | echo "$as_me:$LINENO: result: yes" >&5 |
| 18218 | echo "${ECHO_T}yes" >&6 |
| 18219 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18220 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18221 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18222 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18223 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18224 | |
| 18225 | echo "$as_me:$LINENO: result: no" >&5 |
| 18226 | echo "${ECHO_T}no" >&6 |
| 18227 | echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 18228 | echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6 |
| 18229 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18230 | /* confdefs.h. */ |
| 18231 | _ACEOF |
| 18232 | cat confdefs.h >>conftest.$ac_ext |
| 18233 | cat >>conftest.$ac_ext <<_ACEOF |
| 18234 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18235 | |
| 18236 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18237 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18238 | int |
| 18239 | main () |
| 18240 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18241 | |
| 18242 | char *name; |
| 18243 | struct hostent *he; |
| 18244 | struct hostent_data data; |
| 18245 | |
| 18246 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18247 | |
| 18248 | ; |
| 18249 | return 0; |
| 18250 | } |
| 18251 | _ACEOF |
| 18252 | rm -f conftest.$ac_objext |
| 18253 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18254 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18255 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18256 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18257 | rm -f conftest.er1 |
| 18258 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18260 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18261 | { ac_try='test -z "$ac_c_werror_flag" |
| 18262 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18264 | (eval $ac_try) 2>&5 |
| 18265 | ac_status=$? |
| 18266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18267 | (exit $ac_status); }; } && |
| 18268 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18270 | (eval $ac_try) 2>&5 |
| 18271 | ac_status=$? |
| 18272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18273 | (exit $ac_status); }; }; then |
| 18274 | |
| 18275 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 18276 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18277 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 18278 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18279 | |
| 18280 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18281 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18282 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18283 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18284 | echo "$as_me:$LINENO: result: yes" >&5 |
| 18285 | echo "${ECHO_T}yes" >&6 |
| 18286 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18287 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | |
| 18292 | echo "$as_me:$LINENO: result: no" >&5 |
| 18293 | echo "${ECHO_T}no" >&6 |
| 18294 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18295 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18296 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18297 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18298 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18299 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18300 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18301 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18302 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18303 | CFLAGS=$OLD_CFLAGS |
| 18304 | |
| 18305 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18306 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18307 | |
| 18308 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 18309 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18310 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18311 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18312 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 18313 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 18314 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18315 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18316 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18317 | /* confdefs.h. */ |
| 18318 | _ACEOF |
| 18319 | cat confdefs.h >>conftest.$ac_ext |
| 18320 | cat >>conftest.$ac_ext <<_ACEOF |
| 18321 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18322 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18323 | which can conflict with char $ac_func (); below. |
| 18324 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 18325 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 18326 | including <limits.h> includes <sys/time.h> and causes problems |
| 18327 | checking for functions defined therein. */ |
| 18328 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18329 | # include <limits.h> |
| 18330 | #else |
| 18331 | # include <assert.h> |
| 18332 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18333 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18334 | #ifdef __cplusplus |
| 18335 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18336 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18337 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18338 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18339 | builtin and then its argument prototype would still apply. */ |
| 18340 | char $ac_func (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18341 | /* The GNU C library defines this for functions which it implements |
| 18342 | to always fail with ENOSYS. Some functions are actually named |
| 18343 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 18344 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18345 | choke me |
| 18346 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18347 | char (*f) () = $ac_func; |
| 18348 | #endif |
| 18349 | #ifdef __cplusplus |
| 18350 | } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18351 | #endif |
| 18352 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18353 | int |
| 18354 | main () |
| 18355 | { |
| 18356 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18357 | ; |
| 18358 | return 0; |
| 18359 | } |
| 18360 | _ACEOF |
| 18361 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18362 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18363 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18364 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18365 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18366 | rm -f conftest.er1 |
| 18367 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18369 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18370 | { ac_try='test -z "$ac_c_werror_flag" |
| 18371 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18373 | (eval $ac_try) 2>&5 |
| 18374 | ac_status=$? |
| 18375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18376 | (exit $ac_status); }; } && |
| 18377 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18379 | (eval $ac_try) 2>&5 |
| 18380 | ac_status=$? |
| 18381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18382 | (exit $ac_status); }; }; then |
| 18383 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18384 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18385 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18386 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18387 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18388 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18389 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18390 | rm -f conftest.err conftest.$ac_objext \ |
| 18391 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18392 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18393 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 18394 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 18395 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 18396 | cat >>confdefs.h <<_ACEOF |
| 18397 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 18398 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18399 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18400 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 18401 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18402 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18403 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18404 | fi |
| 18405 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18406 | |
| 18407 | |
| 18408 | |
| 18409 | |
| 18410 | |
| 18411 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18412 | # checks for system services |
| 18413 | # (none yet) |
| 18414 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18415 | # Linux requires this for correct f.p. operations |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18416 | echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 18417 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6 |
| 18418 | if test "${ac_cv_func___fpu_control+set}" = set; then |
| 18419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 18420 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18421 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18422 | /* confdefs.h. */ |
| 18423 | _ACEOF |
| 18424 | cat confdefs.h >>conftest.$ac_ext |
| 18425 | cat >>conftest.$ac_ext <<_ACEOF |
| 18426 | /* end confdefs.h. */ |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 18427 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18428 | which can conflict with char __fpu_control (); below. |
| 18429 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 18430 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 18431 | including <limits.h> includes <sys/time.h> and causes problems |
| 18432 | checking for functions defined therein. */ |
| 18433 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18434 | # include <limits.h> |
| 18435 | #else |
| 18436 | # include <assert.h> |
| 18437 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 18438 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18439 | #ifdef __cplusplus |
| 18440 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18441 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18442 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 18443 | /* 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] | 18444 | builtin and then its argument prototype would still apply. */ |
| 18445 | char __fpu_control (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 18446 | /* The GNU C library defines this for functions which it implements |
| 18447 | to always fail with ENOSYS. Some functions are actually named |
| 18448 | something starting with __ and the normal name is an alias. */ |
| 18449 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 18450 | choke me |
| 18451 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18452 | char (*f) () = __fpu_control; |
| 18453 | #endif |
| 18454 | #ifdef __cplusplus |
| 18455 | } |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 18456 | #endif |
| 18457 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18458 | int |
| 18459 | main () |
| 18460 | { |
| 18461 | return f != __fpu_control; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18462 | ; |
| 18463 | return 0; |
| 18464 | } |
| 18465 | _ACEOF |
| 18466 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18467 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18468 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18469 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18470 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18471 | rm -f conftest.er1 |
| 18472 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18474 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18475 | { ac_try='test -z "$ac_c_werror_flag" |
| 18476 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18478 | (eval $ac_try) 2>&5 |
| 18479 | ac_status=$? |
| 18480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18481 | (exit $ac_status); }; } && |
| 18482 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18484 | (eval $ac_try) 2>&5 |
| 18485 | ac_status=$? |
| 18486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18487 | (exit $ac_status); }; }; then |
| 18488 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 18489 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18490 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18491 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18492 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18493 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 18494 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18495 | rm -f conftest.err conftest.$ac_objext \ |
| 18496 | conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 18497 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18498 | echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 18499 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6 |
| 18500 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 18501 | : |
| 18502 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18503 | |
| 18504 | echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 18505 | echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6 |
| 18506 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
| 18507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18508 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18509 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18510 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18511 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18512 | /* confdefs.h. */ |
| 18513 | _ACEOF |
| 18514 | cat confdefs.h >>conftest.$ac_ext |
| 18515 | cat >>conftest.$ac_ext <<_ACEOF |
| 18516 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18517 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 18518 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18519 | #ifdef __cplusplus |
| 18520 | extern "C" |
| 18521 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 18522 | /* 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] | 18523 | builtin and then its argument prototype would still apply. */ |
| 18524 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18525 | int |
| 18526 | main () |
| 18527 | { |
| 18528 | __fpu_control (); |
| 18529 | ; |
| 18530 | return 0; |
| 18531 | } |
| 18532 | _ACEOF |
| 18533 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18534 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18535 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18536 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18537 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18538 | rm -f conftest.er1 |
| 18539 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18541 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18542 | { ac_try='test -z "$ac_c_werror_flag" |
| 18543 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18545 | (eval $ac_try) 2>&5 |
| 18546 | ac_status=$? |
| 18547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18548 | (exit $ac_status); }; } && |
| 18549 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18551 | (eval $ac_try) 2>&5 |
| 18552 | ac_status=$? |
| 18553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18554 | (exit $ac_status); }; }; then |
| 18555 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18556 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18557 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18558 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18559 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18560 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18561 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18562 | rm -f conftest.err conftest.$ac_objext \ |
| 18563 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18564 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18565 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18566 | echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 18567 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6 |
| 18568 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
| 18569 | cat >>confdefs.h <<_ACEOF |
| 18570 | #define HAVE_LIBIEEE 1 |
| 18571 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18572 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18573 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18574 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18575 | fi |
| 18576 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18577 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 18578 | fi |
| 18579 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18580 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18581 | # Check for --with-fpectl |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18582 | echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 18583 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6 |
| 18584 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18585 | # Check whether --with-fpectl or --without-fpectl was given. |
| 18586 | if test "${with_fpectl+set}" = set; then |
| 18587 | withval="$with_fpectl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18588 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18589 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18590 | then |
| 18591 | |
| 18592 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18593 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18594 | _ACEOF |
| 18595 | |
| 18596 | echo "$as_me:$LINENO: result: yes" >&5 |
| 18597 | echo "${ECHO_T}yes" >&6 |
| 18598 | else echo "$as_me:$LINENO: result: no" >&5 |
| 18599 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18600 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18601 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18602 | echo "$as_me:$LINENO: result: no" >&5 |
| 18603 | echo "${ECHO_T}no" >&6 |
| 18604 | fi; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18605 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18606 | # check for --with-libm=... |
| 18607 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 18608 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 18609 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 18610 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 18611 | *) LIBM=-lm |
| 18612 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18613 | echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 18614 | echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6 |
| 18615 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18616 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 18617 | if test "${with_libm+set}" = set; then |
| 18618 | withval="$with_libm" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18619 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18620 | if test "$withval" = no |
| 18621 | then LIBM= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18622 | echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 18623 | echo "${ECHO_T}force LIBM empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18624 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18625 | then LIBM=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18626 | echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 18627 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6 |
| 18628 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 18629 | echo "$as_me: error: proper usage is --with-libm=STRING" >&2;} |
| 18630 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18631 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18632 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18633 | echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 18634 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6 |
| 18635 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18636 | |
| 18637 | # check for --with-libc=... |
| 18638 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18639 | echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 18640 | echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6 |
| 18641 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18642 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 18643 | if test "${with_libc+set}" = set; then |
| 18644 | withval="$with_libc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18645 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18646 | if test "$withval" = no |
| 18647 | then LIBC= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18648 | echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 18649 | echo "${ECHO_T}force LIBC empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18650 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18651 | then LIBC=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18652 | echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 18653 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6 |
| 18654 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 18655 | echo "$as_me: error: proper usage is --with-libc=STRING" >&2;} |
| 18656 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18657 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18658 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18659 | echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 18660 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6 |
| 18661 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18662 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 18663 | # check for hypot() in math library |
| 18664 | LIBS_SAVE=$LIBS |
| 18665 | LIBS="$LIBS $LIBM" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18666 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 18667 | for ac_func in hypot |
| 18668 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18669 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18670 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18671 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 18672 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 18673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 18674 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18675 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18676 | /* confdefs.h. */ |
| 18677 | _ACEOF |
| 18678 | cat confdefs.h >>conftest.$ac_ext |
| 18679 | cat >>conftest.$ac_ext <<_ACEOF |
| 18680 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18681 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18682 | which can conflict with char $ac_func (); below. |
| 18683 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 18684 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 18685 | including <limits.h> includes <sys/time.h> and causes problems |
| 18686 | checking for functions defined therein. */ |
| 18687 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18688 | # include <limits.h> |
| 18689 | #else |
| 18690 | # include <assert.h> |
| 18691 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18692 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18693 | #ifdef __cplusplus |
| 18694 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18695 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18696 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 18697 | /* 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] | 18698 | builtin and then its argument prototype would still apply. */ |
| 18699 | char $ac_func (); |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 18700 | /* The GNU C library defines this for functions which it implements |
| 18701 | to always fail with ENOSYS. Some functions are actually named |
| 18702 | something starting with __ and the normal name is an alias. */ |
| 18703 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 18704 | choke me |
| 18705 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18706 | char (*f) () = $ac_func; |
| 18707 | #endif |
| 18708 | #ifdef __cplusplus |
| 18709 | } |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 18710 | #endif |
| 18711 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18712 | int |
| 18713 | main () |
| 18714 | { |
| 18715 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18716 | ; |
| 18717 | return 0; |
| 18718 | } |
| 18719 | _ACEOF |
| 18720 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18721 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18722 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18723 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18724 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18725 | rm -f conftest.er1 |
| 18726 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18728 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18729 | { ac_try='test -z "$ac_c_werror_flag" |
| 18730 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18732 | (eval $ac_try) 2>&5 |
| 18733 | ac_status=$? |
| 18734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18735 | (exit $ac_status); }; } && |
| 18736 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18738 | (eval $ac_try) 2>&5 |
| 18739 | ac_status=$? |
| 18740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18741 | (exit $ac_status); }; }; then |
| 18742 | eval "$as_ac_var=yes" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 18743 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18744 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18745 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18746 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18747 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18748 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18749 | rm -f conftest.err conftest.$ac_objext \ |
| 18750 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18751 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18752 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 18753 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 18754 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 18755 | cat >>confdefs.h <<_ACEOF |
| 18756 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 18757 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18758 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18759 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18760 | case $LIBOBJS in |
| 18761 | "$ac_func.$ac_objext" | \ |
| 18762 | *" $ac_func.$ac_objext" | \ |
| 18763 | "$ac_func.$ac_objext "* | \ |
| 18764 | *" $ac_func.$ac_objext "* ) ;; |
| 18765 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; |
| 18766 | esac |
| 18767 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 18768 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 18769 | done |
| 18770 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18771 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 18772 | LIBS=$LIBS_SAVE |
| 18773 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18774 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18775 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 18776 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 18777 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 18778 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 18779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18780 | fi |
| 18781 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 18782 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18783 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18784 | # Is the header compilable? |
| 18785 | echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 18786 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6 |
| 18787 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18788 | /* confdefs.h. */ |
| 18789 | _ACEOF |
| 18790 | cat confdefs.h >>conftest.$ac_ext |
| 18791 | cat >>conftest.$ac_ext <<_ACEOF |
| 18792 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18793 | $ac_includes_default |
| 18794 | #include <wchar.h> |
| 18795 | _ACEOF |
| 18796 | rm -f conftest.$ac_objext |
| 18797 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18798 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18799 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18800 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18801 | rm -f conftest.er1 |
| 18802 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18804 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18805 | { ac_try='test -z "$ac_c_werror_flag" |
| 18806 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +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); }; } && |
| 18812 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18814 | (eval $ac_try) 2>&5 |
| 18815 | ac_status=$? |
| 18816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18817 | (exit $ac_status); }; }; then |
| 18818 | ac_header_compiler=yes |
| 18819 | else |
| 18820 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18821 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18822 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18823 | ac_header_compiler=no |
| 18824 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18825 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18826 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 18827 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 18828 | |
| 18829 | # Is the header present? |
| 18830 | echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 18831 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6 |
| 18832 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18833 | /* confdefs.h. */ |
| 18834 | _ACEOF |
| 18835 | cat confdefs.h >>conftest.$ac_ext |
| 18836 | cat >>conftest.$ac_ext <<_ACEOF |
| 18837 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18838 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18839 | _ACEOF |
| 18840 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 18841 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 18842 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18843 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18844 | rm -f conftest.er1 |
| 18845 | cat conftest.err >&5 |
| 18846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18847 | (exit $ac_status); } >/dev/null; then |
| 18848 | if test -s conftest.err; then |
| 18849 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18850 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18851 | else |
| 18852 | ac_cpp_err= |
| 18853 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18854 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18855 | ac_cpp_err=yes |
| 18856 | fi |
| 18857 | if test -z "$ac_cpp_err"; then |
| 18858 | ac_header_preproc=yes |
| 18859 | else |
| 18860 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18861 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18862 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18863 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18864 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18865 | rm -f conftest.err conftest.$ac_ext |
| 18866 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 18867 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 18868 | |
| 18869 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18870 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 18871 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18872 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 18873 | echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18874 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5 |
| 18875 | echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;} |
| 18876 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 18877 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18878 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 18879 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 18880 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18881 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 18882 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 18883 | { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5 |
| 18884 | echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;} |
| 18885 | { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 18886 | echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 18887 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 18888 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18889 | { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5 |
| 18890 | echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 18891 | ( |
| 18892 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 18893 | ## ------------------------------------------------ ## |
| 18894 | ## Report this to http://www.python.org/python-bugs ## |
| 18895 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18896 | _ASBOX |
| 18897 | ) | |
| 18898 | sed "s/^/$as_me: WARNING: /" >&2 |
| 18899 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18900 | esac |
| 18901 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 18902 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 18903 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 18904 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18905 | else |
| 18906 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18907 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18908 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 18909 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
| 18910 | |
| 18911 | fi |
| 18912 | if test $ac_cv_header_wchar_h = yes; then |
| 18913 | |
| 18914 | |
| 18915 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18916 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18917 | _ACEOF |
| 18918 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 18919 | wchar_h="yes" |
| 18920 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18921 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18922 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18923 | |
| 18924 | fi |
| 18925 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18926 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18927 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18928 | # determine wchar_t size |
| 18929 | if test "$wchar_h" = yes |
| 18930 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18931 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 18932 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 |
| 18933 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 18934 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18935 | else |
| 18936 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18937 | /* confdefs.h. */ |
| 18938 | _ACEOF |
| 18939 | cat confdefs.h >>conftest.$ac_ext |
| 18940 | cat >>conftest.$ac_ext <<_ACEOF |
| 18941 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18942 | #include <wchar.h> |
| 18943 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18944 | int |
| 18945 | main () |
| 18946 | { |
| 18947 | if ((wchar_t *) 0) |
| 18948 | return 0; |
| 18949 | if (sizeof (wchar_t)) |
| 18950 | return 0; |
| 18951 | ; |
| 18952 | return 0; |
| 18953 | } |
| 18954 | _ACEOF |
| 18955 | rm -f conftest.$ac_objext |
| 18956 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18957 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18958 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18959 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18960 | rm -f conftest.er1 |
| 18961 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18963 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18964 | { ac_try='test -z "$ac_c_werror_flag" |
| 18965 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18967 | (eval $ac_try) 2>&5 |
| 18968 | ac_status=$? |
| 18969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18970 | (exit $ac_status); }; } && |
| 18971 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18973 | (eval $ac_try) 2>&5 |
| 18974 | ac_status=$? |
| 18975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18976 | (exit $ac_status); }; }; then |
| 18977 | ac_cv_type_wchar_t=yes |
| 18978 | else |
| 18979 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18980 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18981 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18982 | ac_cv_type_wchar_t=no |
| 18983 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18984 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18985 | fi |
| 18986 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 18987 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 |
| 18988 | |
| 18989 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 18990 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 |
| 18991 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
| 18992 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18993 | else |
| 18994 | if test "$ac_cv_type_wchar_t" = yes; then |
| 18995 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 18996 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 18997 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 18998 | # This bug is HP SR number 8606223364. |
| 18999 | if test "$cross_compiling" = yes; then |
| 19000 | # Depending upon the size, compute the lo and hi bounds. |
| 19001 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19002 | /* confdefs.h. */ |
| 19003 | _ACEOF |
| 19004 | cat confdefs.h >>conftest.$ac_ext |
| 19005 | cat >>conftest.$ac_ext <<_ACEOF |
| 19006 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19007 | #include <wchar.h> |
| 19008 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19009 | int |
| 19010 | main () |
| 19011 | { |
| 19012 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; |
| 19013 | test_array [0] = 0 |
| 19014 | |
| 19015 | ; |
| 19016 | return 0; |
| 19017 | } |
| 19018 | _ACEOF |
| 19019 | rm -f conftest.$ac_objext |
| 19020 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19021 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19022 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19023 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19024 | rm -f conftest.er1 |
| 19025 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19027 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19028 | { ac_try='test -z "$ac_c_werror_flag" |
| 19029 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19031 | (eval $ac_try) 2>&5 |
| 19032 | ac_status=$? |
| 19033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19034 | (exit $ac_status); }; } && |
| 19035 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19037 | (eval $ac_try) 2>&5 |
| 19038 | ac_status=$? |
| 19039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19040 | (exit $ac_status); }; }; then |
| 19041 | ac_lo=0 ac_mid=0 |
| 19042 | while :; do |
| 19043 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19044 | /* confdefs.h. */ |
| 19045 | _ACEOF |
| 19046 | cat confdefs.h >>conftest.$ac_ext |
| 19047 | cat >>conftest.$ac_ext <<_ACEOF |
| 19048 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19049 | #include <wchar.h> |
| 19050 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19051 | int |
| 19052 | main () |
| 19053 | { |
| 19054 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 19055 | test_array [0] = 0 |
| 19056 | |
| 19057 | ; |
| 19058 | return 0; |
| 19059 | } |
| 19060 | _ACEOF |
| 19061 | rm -f conftest.$ac_objext |
| 19062 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19063 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19064 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19065 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19066 | rm -f conftest.er1 |
| 19067 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19069 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19070 | { ac_try='test -z "$ac_c_werror_flag" |
| 19071 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19073 | (eval $ac_try) 2>&5 |
| 19074 | ac_status=$? |
| 19075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19076 | (exit $ac_status); }; } && |
| 19077 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19079 | (eval $ac_try) 2>&5 |
| 19080 | ac_status=$? |
| 19081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19082 | (exit $ac_status); }; }; then |
| 19083 | ac_hi=$ac_mid; break |
| 19084 | else |
| 19085 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19086 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19087 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19088 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19089 | if test $ac_lo -le $ac_mid; then |
| 19090 | ac_lo= ac_hi= |
| 19091 | break |
| 19092 | fi |
| 19093 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19094 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19095 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19096 | done |
| 19097 | else |
| 19098 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19099 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19100 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19101 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19102 | /* confdefs.h. */ |
| 19103 | _ACEOF |
| 19104 | cat confdefs.h >>conftest.$ac_ext |
| 19105 | cat >>conftest.$ac_ext <<_ACEOF |
| 19106 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19107 | #include <wchar.h> |
| 19108 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19109 | int |
| 19110 | main () |
| 19111 | { |
| 19112 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; |
| 19113 | test_array [0] = 0 |
| 19114 | |
| 19115 | ; |
| 19116 | return 0; |
| 19117 | } |
| 19118 | _ACEOF |
| 19119 | rm -f conftest.$ac_objext |
| 19120 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19121 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19122 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19123 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19124 | rm -f conftest.er1 |
| 19125 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19127 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19128 | { ac_try='test -z "$ac_c_werror_flag" |
| 19129 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19131 | (eval $ac_try) 2>&5 |
| 19132 | ac_status=$? |
| 19133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19134 | (exit $ac_status); }; } && |
| 19135 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19137 | (eval $ac_try) 2>&5 |
| 19138 | ac_status=$? |
| 19139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19140 | (exit $ac_status); }; }; then |
| 19141 | ac_hi=-1 ac_mid=-1 |
| 19142 | while :; do |
| 19143 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19144 | /* confdefs.h. */ |
| 19145 | _ACEOF |
| 19146 | cat confdefs.h >>conftest.$ac_ext |
| 19147 | cat >>conftest.$ac_ext <<_ACEOF |
| 19148 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19149 | #include <wchar.h> |
| 19150 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19151 | int |
| 19152 | main () |
| 19153 | { |
| 19154 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; |
| 19155 | test_array [0] = 0 |
| 19156 | |
| 19157 | ; |
| 19158 | return 0; |
| 19159 | } |
| 19160 | _ACEOF |
| 19161 | rm -f conftest.$ac_objext |
| 19162 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19163 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19164 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19165 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19166 | rm -f conftest.er1 |
| 19167 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19169 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19170 | { ac_try='test -z "$ac_c_werror_flag" |
| 19171 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19173 | (eval $ac_try) 2>&5 |
| 19174 | ac_status=$? |
| 19175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19176 | (exit $ac_status); }; } && |
| 19177 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19179 | (eval $ac_try) 2>&5 |
| 19180 | ac_status=$? |
| 19181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19182 | (exit $ac_status); }; }; then |
| 19183 | ac_lo=$ac_mid; break |
| 19184 | else |
| 19185 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19186 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19187 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19188 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19189 | if test $ac_mid -le $ac_hi; then |
| 19190 | ac_lo= ac_hi= |
| 19191 | break |
| 19192 | fi |
| 19193 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19194 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19195 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19196 | done |
| 19197 | else |
| 19198 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19199 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19200 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19201 | ac_lo= ac_hi= |
| 19202 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19203 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19204 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19205 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19206 | # Binary search between lo and hi bounds. |
| 19207 | while test "x$ac_lo" != "x$ac_hi"; do |
| 19208 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 19209 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19210 | /* confdefs.h. */ |
| 19211 | _ACEOF |
| 19212 | cat confdefs.h >>conftest.$ac_ext |
| 19213 | cat >>conftest.$ac_ext <<_ACEOF |
| 19214 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19215 | #include <wchar.h> |
| 19216 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19217 | int |
| 19218 | main () |
| 19219 | { |
| 19220 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 19221 | test_array [0] = 0 |
| 19222 | |
| 19223 | ; |
| 19224 | return 0; |
| 19225 | } |
| 19226 | _ACEOF |
| 19227 | rm -f conftest.$ac_objext |
| 19228 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19229 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19230 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19231 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19232 | rm -f conftest.er1 |
| 19233 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19235 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19236 | { ac_try='test -z "$ac_c_werror_flag" |
| 19237 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19239 | (eval $ac_try) 2>&5 |
| 19240 | ac_status=$? |
| 19241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19242 | (exit $ac_status); }; } && |
| 19243 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19245 | (eval $ac_try) 2>&5 |
| 19246 | ac_status=$? |
| 19247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19248 | (exit $ac_status); }; }; then |
| 19249 | ac_hi=$ac_mid |
| 19250 | else |
| 19251 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19252 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19253 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19254 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 19255 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19256 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19257 | done |
| 19258 | case $ac_lo in |
| 19259 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19260 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
| 19261 | See \`config.log' for more details." >&5 |
| 19262 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 |
| 19263 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19264 | { (exit 1); exit 1; }; } ;; |
| 19265 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19266 | else |
| 19267 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19268 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 19269 | See \`config.log' for more details." >&5 |
| 19270 | echo "$as_me: error: cannot run test program while cross compiling |
| 19271 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19272 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19273 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19274 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19275 | /* confdefs.h. */ |
| 19276 | _ACEOF |
| 19277 | cat confdefs.h >>conftest.$ac_ext |
| 19278 | cat >>conftest.$ac_ext <<_ACEOF |
| 19279 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19280 | #include <wchar.h> |
| 19281 | |
| 19282 | long longval () { return (long) (sizeof (wchar_t)); } |
| 19283 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19284 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19285 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19286 | int |
| 19287 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19288 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19289 | |
| 19290 | FILE *f = fopen ("conftest.val", "w"); |
| 19291 | if (! f) |
| 19292 | exit (1); |
| 19293 | if (((long) (sizeof (wchar_t))) < 0) |
| 19294 | { |
| 19295 | long i = longval (); |
| 19296 | if (i != ((long) (sizeof (wchar_t)))) |
| 19297 | exit (1); |
| 19298 | fprintf (f, "%ld\n", i); |
| 19299 | } |
| 19300 | else |
| 19301 | { |
| 19302 | unsigned long i = ulongval (); |
| 19303 | if (i != ((long) (sizeof (wchar_t)))) |
| 19304 | exit (1); |
| 19305 | fprintf (f, "%lu\n", i); |
| 19306 | } |
| 19307 | exit (ferror (f) || fclose (f) != 0); |
| 19308 | |
| 19309 | ; |
| 19310 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19311 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19312 | _ACEOF |
| 19313 | rm -f conftest$ac_exeext |
| 19314 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19315 | (eval $ac_link) 2>&5 |
| 19316 | ac_status=$? |
| 19317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19318 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19320 | (eval $ac_try) 2>&5 |
| 19321 | ac_status=$? |
| 19322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19323 | (exit $ac_status); }; }; then |
| 19324 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19325 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19326 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19327 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19328 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19329 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19330 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19331 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
| 19332 | See \`config.log' for more details." >&5 |
| 19333 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 |
| 19334 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19335 | { (exit 1); exit 1; }; } |
| 19336 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19337 | 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] | 19338 | fi |
| 19339 | fi |
| 19340 | rm -f conftest.val |
| 19341 | else |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19342 | ac_cv_sizeof_wchar_t=0 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19343 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19344 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19345 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 19346 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 |
| 19347 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19348 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19349 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19350 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19351 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19352 | fi |
| 19353 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 19354 | echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5 |
| 19355 | echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6 |
| 19356 | have_ucs4_tcl=no |
| 19357 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19358 | /* confdefs.h. */ |
| 19359 | _ACEOF |
| 19360 | cat confdefs.h >>conftest.$ac_ext |
| 19361 | cat >>conftest.$ac_ext <<_ACEOF |
| 19362 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 19363 | |
| 19364 | #include <tcl.h> |
| 19365 | #if TCL_UTF_MAX != 6 |
| 19366 | # error "NOT UCS4_TCL" |
| 19367 | #endif |
| 19368 | int |
| 19369 | main () |
| 19370 | { |
| 19371 | |
| 19372 | ; |
| 19373 | return 0; |
| 19374 | } |
| 19375 | _ACEOF |
| 19376 | rm -f conftest.$ac_objext |
| 19377 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19378 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 19379 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19380 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19381 | rm -f conftest.er1 |
| 19382 | cat conftest.err >&5 |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 19383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19384 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19385 | { ac_try='test -z "$ac_c_werror_flag" |
| 19386 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19388 | (eval $ac_try) 2>&5 |
| 19389 | ac_status=$? |
| 19390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19391 | (exit $ac_status); }; } && |
| 19392 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 19393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19394 | (eval $ac_try) 2>&5 |
| 19395 | ac_status=$? |
| 19396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19397 | (exit $ac_status); }; }; then |
| 19398 | |
| 19399 | |
| 19400 | cat >>confdefs.h <<\_ACEOF |
| 19401 | #define HAVE_UCS4_TCL 1 |
| 19402 | _ACEOF |
| 19403 | |
| 19404 | have_ucs4_tcl=yes |
| 19405 | |
| 19406 | else |
| 19407 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19408 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19409 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 19410 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19411 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 19412 | echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5 |
| 19413 | echo "${ECHO_T}$have_ucs4_tcl" >&6 |
| 19414 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19415 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 19416 | if test "$wchar_h" = yes |
| 19417 | then |
| 19418 | # check whether wchar_t is signed or not |
| 19419 | echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5 |
| 19420 | echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6 |
| 19421 | if test "${ac_cv_wchar_t_signed+set}" = set; then |
| 19422 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19423 | else |
| 19424 | |
| 19425 | if test "$cross_compiling" = yes; then |
| 19426 | ac_cv_wchar_t_signed=yes |
| 19427 | else |
| 19428 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19429 | /* confdefs.h. */ |
| 19430 | _ACEOF |
| 19431 | cat confdefs.h >>conftest.$ac_ext |
| 19432 | cat >>conftest.$ac_ext <<_ACEOF |
| 19433 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 19434 | |
| 19435 | #include <wchar.h> |
| 19436 | int main() |
| 19437 | { |
| 19438 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 1 : 0); |
| 19439 | } |
| 19440 | |
| 19441 | _ACEOF |
| 19442 | rm -f conftest$ac_exeext |
| 19443 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19444 | (eval $ac_link) 2>&5 |
| 19445 | ac_status=$? |
| 19446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19447 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19449 | (eval $ac_try) 2>&5 |
| 19450 | ac_status=$? |
| 19451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19452 | (exit $ac_status); }; }; then |
| 19453 | ac_cv_wchar_t_signed=yes |
| 19454 | else |
| 19455 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19456 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19457 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19458 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 19459 | ( exit $ac_status ) |
| 19460 | ac_cv_wchar_t_signed=no |
| 19461 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19462 | 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] | 19463 | fi |
| 19464 | fi |
| 19465 | |
| 19466 | echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5 |
| 19467 | echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6 |
| 19468 | fi |
| 19469 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19470 | echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 19471 | 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] | 19472 | # Check whether --enable-unicode or --disable-unicode was given. |
| 19473 | if test "${enable_unicode+set}" = set; then |
| 19474 | enableval="$enable_unicode" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19475 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19476 | else |
| 19477 | enable_unicode=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19478 | fi; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19479 | |
| 19480 | if test $enable_unicode = yes |
| 19481 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 19482 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 19483 | case "$have_ucs4_tcl" in |
| 19484 | yes) enable_unicode="ucs4" |
| 19485 | ;; |
| 19486 | *) enable_unicode="ucs2" |
| 19487 | ;; |
| 19488 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19489 | fi |
| 19490 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 19491 | |
| 19492 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19493 | case "$enable_unicode" in |
| 19494 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19495 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19496 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19497 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19498 | |
| 19499 | ;; |
| 19500 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19501 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19502 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19503 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19504 | |
| 19505 | ;; |
| 19506 | esac |
| 19507 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19508 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19509 | |
| 19510 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 19511 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19512 | if test "$enable_unicode" = "no" |
| 19513 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 19514 | UNICODE_OBJS="" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19515 | echo "$as_me:$LINENO: result: not used" >&5 |
| 19516 | echo "${ECHO_T}not used" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19517 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 19518 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19519 | |
| 19520 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19521 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19522 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19523 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 19524 | |
| 19525 | # wchar_t is only usable if it maps to an unsigned type |
| 19526 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 19527 | -a "$ac_cv_wchar_t_signed" = "no" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19528 | then |
| 19529 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19530 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19531 | cat >>confdefs.h <<\_ACEOF |
| 19532 | #define HAVE_USABLE_WCHAR_T 1 |
| 19533 | _ACEOF |
| 19534 | |
| 19535 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19536 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19537 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19538 | |
| 19539 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 19540 | then |
| 19541 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19542 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19543 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19544 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19545 | |
| 19546 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 19547 | then |
| 19548 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19549 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19550 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19551 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19552 | |
| 19553 | else |
| 19554 | PY_UNICODE_TYPE="no type found" |
| 19555 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19556 | echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 19557 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19558 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19559 | |
| 19560 | # check for endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19561 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 19562 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 19563 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 19564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19565 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19566 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 19567 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19568 | /* confdefs.h. */ |
| 19569 | _ACEOF |
| 19570 | cat confdefs.h >>conftest.$ac_ext |
| 19571 | cat >>conftest.$ac_ext <<_ACEOF |
| 19572 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19573 | #include <sys/types.h> |
| 19574 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19575 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19576 | int |
| 19577 | main () |
| 19578 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19579 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 19580 | bogus endian macros |
| 19581 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19582 | |
| 19583 | ; |
| 19584 | return 0; |
| 19585 | } |
| 19586 | _ACEOF |
| 19587 | rm -f conftest.$ac_objext |
| 19588 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19589 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19590 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19591 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19592 | rm -f conftest.er1 |
| 19593 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19595 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19596 | { ac_try='test -z "$ac_c_werror_flag" |
| 19597 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19599 | (eval $ac_try) 2>&5 |
| 19600 | ac_status=$? |
| 19601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19602 | (exit $ac_status); }; } && |
| 19603 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19605 | (eval $ac_try) 2>&5 |
| 19606 | ac_status=$? |
| 19607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19608 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19609 | # 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] | 19610 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19611 | /* confdefs.h. */ |
| 19612 | _ACEOF |
| 19613 | cat confdefs.h >>conftest.$ac_ext |
| 19614 | cat >>conftest.$ac_ext <<_ACEOF |
| 19615 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19616 | #include <sys/types.h> |
| 19617 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19618 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19619 | int |
| 19620 | main () |
| 19621 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19622 | #if BYTE_ORDER != BIG_ENDIAN |
| 19623 | not big endian |
| 19624 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19625 | |
| 19626 | ; |
| 19627 | return 0; |
| 19628 | } |
| 19629 | _ACEOF |
| 19630 | rm -f conftest.$ac_objext |
| 19631 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19632 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19633 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19634 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19635 | rm -f conftest.er1 |
| 19636 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19638 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19639 | { ac_try='test -z "$ac_c_werror_flag" |
| 19640 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19642 | (eval $ac_try) 2>&5 |
| 19643 | ac_status=$? |
| 19644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19645 | (exit $ac_status); }; } && |
| 19646 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19648 | (eval $ac_try) 2>&5 |
| 19649 | ac_status=$? |
| 19650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19651 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19652 | ac_cv_c_bigendian=yes |
| 19653 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19654 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19655 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19656 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19657 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19658 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19659 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19660 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19661 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19662 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19663 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19664 | # It does not; compile a test program. |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19665 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19666 | # 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] | 19667 | ac_cv_c_bigendian=unknown |
| 19668 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19669 | /* confdefs.h. */ |
| 19670 | _ACEOF |
| 19671 | cat confdefs.h >>conftest.$ac_ext |
| 19672 | cat >>conftest.$ac_ext <<_ACEOF |
| 19673 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19674 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 19675 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 19676 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 19677 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 19678 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 19679 | 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] | 19680 | int |
| 19681 | main () |
| 19682 | { |
| 19683 | _ascii (); _ebcdic (); |
| 19684 | ; |
| 19685 | return 0; |
| 19686 | } |
| 19687 | _ACEOF |
| 19688 | rm -f conftest.$ac_objext |
| 19689 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19690 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19691 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19692 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19693 | rm -f conftest.er1 |
| 19694 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19696 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19697 | { ac_try='test -z "$ac_c_werror_flag" |
| 19698 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19700 | (eval $ac_try) 2>&5 |
| 19701 | ac_status=$? |
| 19702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19703 | (exit $ac_status); }; } && |
| 19704 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19706 | (eval $ac_try) 2>&5 |
| 19707 | ac_status=$? |
| 19708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19709 | (exit $ac_status); }; }; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19710 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19711 | ac_cv_c_bigendian=yes |
| 19712 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19713 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19714 | if test "$ac_cv_c_bigendian" = unknown; then |
| 19715 | ac_cv_c_bigendian=no |
| 19716 | else |
| 19717 | # finding both strings is unlikely to happen, but who knows? |
| 19718 | ac_cv_c_bigendian=unknown |
| 19719 | fi |
| 19720 | fi |
| 19721 | else |
| 19722 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19723 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19724 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19725 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19726 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19727 | else |
| 19728 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19729 | /* confdefs.h. */ |
| 19730 | _ACEOF |
| 19731 | cat confdefs.h >>conftest.$ac_ext |
| 19732 | cat >>conftest.$ac_ext <<_ACEOF |
| 19733 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19734 | int |
| 19735 | main () |
| 19736 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19737 | /* Are we little or big endian? From Harbison&Steele. */ |
| 19738 | union |
| 19739 | { |
| 19740 | long l; |
| 19741 | char c[sizeof (long)]; |
| 19742 | } u; |
| 19743 | u.l = 1; |
| 19744 | exit (u.c[sizeof (long) - 1] == 1); |
| 19745 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19746 | _ACEOF |
| 19747 | rm -f conftest$ac_exeext |
| 19748 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19749 | (eval $ac_link) 2>&5 |
| 19750 | ac_status=$? |
| 19751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19752 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19754 | (eval $ac_try) 2>&5 |
| 19755 | ac_status=$? |
| 19756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19757 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19758 | ac_cv_c_bigendian=no |
| 19759 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19760 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19761 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19762 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19763 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19764 | ( exit $ac_status ) |
| 19765 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19766 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19767 | 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] | 19768 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19769 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19770 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19771 | fi |
| 19772 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 19773 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 19774 | case $ac_cv_c_bigendian in |
| 19775 | yes) |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19776 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19777 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19778 | #define WORDS_BIGENDIAN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19779 | _ACEOF |
| 19780 | ;; |
| 19781 | no) |
| 19782 | ;; |
| 19783 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19784 | { { echo "$as_me:$LINENO: error: unknown endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19785 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19786 | echo "$as_me: error: unknown endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19787 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 19788 | { (exit 1); exit 1; }; } ;; |
| 19789 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19790 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19791 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19792 | # Check whether right shifting a negative integer extends the sign bit |
| 19793 | # 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] | 19794 | echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 19795 | echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6 |
| 19796 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
| 19797 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 19798 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19799 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19800 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 19801 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19802 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19803 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19804 | /* confdefs.h. */ |
| 19805 | _ACEOF |
| 19806 | cat confdefs.h >>conftest.$ac_ext |
| 19807 | cat >>conftest.$ac_ext <<_ACEOF |
| 19808 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19809 | |
| 19810 | int main() |
| 19811 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 19812 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19813 | } |
| 19814 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19815 | _ACEOF |
| 19816 | rm -f conftest$ac_exeext |
| 19817 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19818 | (eval $ac_link) 2>&5 |
| 19819 | ac_status=$? |
| 19820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19821 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19823 | (eval $ac_try) 2>&5 |
| 19824 | ac_status=$? |
| 19825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19826 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 19827 | ac_cv_rshift_extends_sign=yes |
| 19828 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19829 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19830 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19831 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19832 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19833 | ( exit $ac_status ) |
| 19834 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 19835 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19836 | 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] | 19837 | fi |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 19838 | fi |
| 19839 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19840 | echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 19841 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 19842 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19843 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19844 | |
| 19845 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19846 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19847 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19848 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19849 | fi |
| 19850 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19851 | # check for getc_unlocked and related locking functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19852 | echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 19853 | echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6 |
| 19854 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
| 19855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19856 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19857 | |
| 19858 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19859 | /* confdefs.h. */ |
| 19860 | _ACEOF |
| 19861 | cat confdefs.h >>conftest.$ac_ext |
| 19862 | cat >>conftest.$ac_ext <<_ACEOF |
| 19863 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19864 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19865 | int |
| 19866 | main () |
| 19867 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19868 | |
| 19869 | FILE *f = fopen("/dev/null", "r"); |
| 19870 | flockfile(f); |
| 19871 | getc_unlocked(f); |
| 19872 | funlockfile(f); |
| 19873 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19874 | ; |
| 19875 | return 0; |
| 19876 | } |
| 19877 | _ACEOF |
| 19878 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19879 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19880 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19881 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19882 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19883 | rm -f conftest.er1 |
| 19884 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19886 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19887 | { ac_try='test -z "$ac_c_werror_flag" |
| 19888 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19890 | (eval $ac_try) 2>&5 |
| 19891 | ac_status=$? |
| 19892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19893 | (exit $ac_status); }; } && |
| 19894 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19896 | (eval $ac_try) 2>&5 |
| 19897 | ac_status=$? |
| 19898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19899 | (exit $ac_status); }; }; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19900 | ac_cv_have_getc_unlocked=yes |
| 19901 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19902 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19903 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19904 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19905 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19906 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19907 | rm -f conftest.err conftest.$ac_objext \ |
| 19908 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19909 | fi |
| 19910 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19911 | echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 19912 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19913 | if test "$ac_cv_have_getc_unlocked" = yes |
| 19914 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19915 | |
| 19916 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19917 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19918 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19919 | |
| 19920 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19921 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 19922 | # check where readline lives |
| 19923 | |
| 19924 | echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
| 19925 | echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6 |
| 19926 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
| 19927 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19928 | else |
| 19929 | ac_check_lib_save_LIBS=$LIBS |
| 19930 | LIBS="-lreadline $LIBS" |
| 19931 | cat >conftest.$ac_ext <<_ACEOF |
| 19932 | /* confdefs.h. */ |
| 19933 | _ACEOF |
| 19934 | cat confdefs.h >>conftest.$ac_ext |
| 19935 | cat >>conftest.$ac_ext <<_ACEOF |
| 19936 | /* end confdefs.h. */ |
| 19937 | |
| 19938 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 19939 | #ifdef __cplusplus |
| 19940 | extern "C" |
| 19941 | #endif |
| 19942 | /* We use char because int might match the return type of a gcc2 |
| 19943 | builtin and then its argument prototype would still apply. */ |
| 19944 | char readline (); |
| 19945 | int |
| 19946 | main () |
| 19947 | { |
| 19948 | readline (); |
| 19949 | ; |
| 19950 | return 0; |
| 19951 | } |
| 19952 | _ACEOF |
| 19953 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19954 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19955 | (eval $ac_link) 2>conftest.er1 |
| 19956 | ac_status=$? |
| 19957 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19958 | rm -f conftest.er1 |
| 19959 | cat conftest.err >&5 |
| 19960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19961 | (exit $ac_status); } && |
| 19962 | { ac_try='test -z "$ac_c_werror_flag" |
| 19963 | || test ! -s conftest.err' |
| 19964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19965 | (eval $ac_try) 2>&5 |
| 19966 | ac_status=$? |
| 19967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19968 | (exit $ac_status); }; } && |
| 19969 | { ac_try='test -s conftest$ac_exeext' |
| 19970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19971 | (eval $ac_try) 2>&5 |
| 19972 | ac_status=$? |
| 19973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19974 | (exit $ac_status); }; }; then |
| 19975 | ac_cv_lib_readline_readline=yes |
| 19976 | else |
| 19977 | echo "$as_me: failed program was:" >&5 |
| 19978 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19979 | |
| 19980 | ac_cv_lib_readline_readline=no |
| 19981 | fi |
| 19982 | rm -f conftest.err conftest.$ac_objext \ |
| 19983 | conftest$ac_exeext conftest.$ac_ext |
| 19984 | LIBS=$ac_check_lib_save_LIBS |
| 19985 | fi |
| 19986 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
| 19987 | echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6 |
| 19988 | if test $ac_cv_lib_readline_readline = yes; then |
| 19989 | cat >>confdefs.h <<_ACEOF |
| 19990 | #define HAVE_LIBREADLINE 1 |
| 19991 | _ACEOF |
| 19992 | |
| 19993 | LIBS="-lreadline $LIBS" |
| 19994 | |
| 19995 | fi |
| 19996 | |
| 19997 | if test "$ac_cv_have_readline_readline" = no |
| 19998 | then |
| 19999 | |
| 20000 | echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5 |
| 20001 | echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6 |
| 20002 | if test "${ac_cv_lib_termcap_readline+set}" = set; then |
| 20003 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20004 | else |
| 20005 | ac_check_lib_save_LIBS=$LIBS |
| 20006 | LIBS="-ltermcap $LIBS" |
| 20007 | cat >conftest.$ac_ext <<_ACEOF |
| 20008 | /* confdefs.h. */ |
| 20009 | _ACEOF |
| 20010 | cat confdefs.h >>conftest.$ac_ext |
| 20011 | cat >>conftest.$ac_ext <<_ACEOF |
| 20012 | /* end confdefs.h. */ |
| 20013 | |
| 20014 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 20015 | #ifdef __cplusplus |
| 20016 | extern "C" |
| 20017 | #endif |
| 20018 | /* We use char because int might match the return type of a gcc2 |
| 20019 | builtin and then its argument prototype would still apply. */ |
| 20020 | char readline (); |
| 20021 | int |
| 20022 | main () |
| 20023 | { |
| 20024 | readline (); |
| 20025 | ; |
| 20026 | return 0; |
| 20027 | } |
| 20028 | _ACEOF |
| 20029 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20030 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20031 | (eval $ac_link) 2>conftest.er1 |
| 20032 | ac_status=$? |
| 20033 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20034 | rm -f conftest.er1 |
| 20035 | cat conftest.err >&5 |
| 20036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20037 | (exit $ac_status); } && |
| 20038 | { ac_try='test -z "$ac_c_werror_flag" |
| 20039 | || test ! -s conftest.err' |
| 20040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20041 | (eval $ac_try) 2>&5 |
| 20042 | ac_status=$? |
| 20043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20044 | (exit $ac_status); }; } && |
| 20045 | { ac_try='test -s conftest$ac_exeext' |
| 20046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20047 | (eval $ac_try) 2>&5 |
| 20048 | ac_status=$? |
| 20049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20050 | (exit $ac_status); }; }; then |
| 20051 | ac_cv_lib_termcap_readline=yes |
| 20052 | else |
| 20053 | echo "$as_me: failed program was:" >&5 |
| 20054 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20055 | |
| 20056 | ac_cv_lib_termcap_readline=no |
| 20057 | fi |
| 20058 | rm -f conftest.err conftest.$ac_objext \ |
| 20059 | conftest$ac_exeext conftest.$ac_ext |
| 20060 | LIBS=$ac_check_lib_save_LIBS |
| 20061 | fi |
| 20062 | echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5 |
| 20063 | echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6 |
| 20064 | if test $ac_cv_lib_termcap_readline = yes; then |
| 20065 | cat >>confdefs.h <<_ACEOF |
| 20066 | #define HAVE_LIBTERMCAP 1 |
| 20067 | _ACEOF |
| 20068 | |
| 20069 | LIBS="-ltermcap $LIBS" |
| 20070 | |
| 20071 | fi |
| 20072 | |
| 20073 | fi |
| 20074 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20075 | # check for readline 2.1 |
| 20076 | echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5 |
| 20077 | echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6 |
| 20078 | if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then |
| 20079 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20080 | else |
| 20081 | ac_check_lib_save_LIBS=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 20082 | LIBS="-lreadline $LIBS" |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20083 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20084 | /* confdefs.h. */ |
| 20085 | _ACEOF |
| 20086 | cat confdefs.h >>conftest.$ac_ext |
| 20087 | cat >>conftest.$ac_ext <<_ACEOF |
| 20088 | /* end confdefs.h. */ |
| 20089 | |
| 20090 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 20091 | #ifdef __cplusplus |
| 20092 | extern "C" |
| 20093 | #endif |
| 20094 | /* We use char because int might match the return type of a gcc2 |
| 20095 | builtin and then its argument prototype would still apply. */ |
| 20096 | char rl_callback_handler_install (); |
| 20097 | int |
| 20098 | main () |
| 20099 | { |
| 20100 | rl_callback_handler_install (); |
| 20101 | ; |
| 20102 | return 0; |
| 20103 | } |
| 20104 | _ACEOF |
| 20105 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20106 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20107 | (eval $ac_link) 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20108 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20109 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20110 | rm -f conftest.er1 |
| 20111 | cat conftest.err >&5 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20113 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20114 | { ac_try='test -z "$ac_c_werror_flag" |
| 20115 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20117 | (eval $ac_try) 2>&5 |
| 20118 | ac_status=$? |
| 20119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20120 | (exit $ac_status); }; } && |
| 20121 | { ac_try='test -s conftest$ac_exeext' |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20123 | (eval $ac_try) 2>&5 |
| 20124 | ac_status=$? |
| 20125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20126 | (exit $ac_status); }; }; then |
| 20127 | ac_cv_lib_readline_rl_callback_handler_install=yes |
| 20128 | else |
| 20129 | echo "$as_me: failed program was:" >&5 |
| 20130 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20131 | |
| 20132 | ac_cv_lib_readline_rl_callback_handler_install=no |
| 20133 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20134 | rm -f conftest.err conftest.$ac_objext \ |
| 20135 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20136 | LIBS=$ac_check_lib_save_LIBS |
| 20137 | fi |
| 20138 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 |
| 20139 | echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6 |
| 20140 | if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then |
| 20141 | |
| 20142 | cat >>confdefs.h <<\_ACEOF |
| 20143 | #define HAVE_RL_CALLBACK 1 |
| 20144 | _ACEOF |
| 20145 | |
| 20146 | fi |
| 20147 | |
| 20148 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 20149 | # check for readline 2.2 |
| 20150 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20151 | /* confdefs.h. */ |
| 20152 | _ACEOF |
| 20153 | cat confdefs.h >>conftest.$ac_ext |
| 20154 | cat >>conftest.$ac_ext <<_ACEOF |
| 20155 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 20156 | #include <readline/readline.h> |
| 20157 | _ACEOF |
| 20158 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 20159 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 20160 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20161 | grep -v '^ *+' conftest.er1 >conftest.err |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 20162 | rm -f conftest.er1 |
| 20163 | cat conftest.err >&5 |
| 20164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20165 | (exit $ac_status); } >/dev/null; then |
| 20166 | if test -s conftest.err; then |
| 20167 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20168 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 20169 | else |
| 20170 | ac_cpp_err= |
| 20171 | fi |
| 20172 | else |
| 20173 | ac_cpp_err=yes |
| 20174 | fi |
| 20175 | if test -z "$ac_cpp_err"; then |
| 20176 | have_readline=yes |
| 20177 | else |
| 20178 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20179 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20180 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 20181 | have_readline=no |
| 20182 | fi |
| 20183 | rm -f conftest.err conftest.$ac_ext |
| 20184 | if test $have_readline = yes |
| 20185 | then |
| 20186 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20187 | /* confdefs.h. */ |
| 20188 | _ACEOF |
| 20189 | cat confdefs.h >>conftest.$ac_ext |
| 20190 | cat >>conftest.$ac_ext <<_ACEOF |
| 20191 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 20192 | #include <readline/readline.h> |
| 20193 | |
| 20194 | _ACEOF |
| 20195 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20196 | $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] | 20197 | |
| 20198 | cat >>confdefs.h <<\_ACEOF |
| 20199 | #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1 |
| 20200 | _ACEOF |
| 20201 | |
| 20202 | fi |
| 20203 | rm -f conftest* |
| 20204 | |
| 20205 | fi |
| 20206 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 20207 | # check for readline 4.0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20208 | echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 20209 | echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6 |
| 20210 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
| 20211 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 20212 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20213 | ac_check_lib_save_LIBS=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 20214 | LIBS="-lreadline $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20215 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20216 | /* confdefs.h. */ |
| 20217 | _ACEOF |
| 20218 | cat confdefs.h >>conftest.$ac_ext |
| 20219 | cat >>conftest.$ac_ext <<_ACEOF |
| 20220 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20221 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 20222 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20223 | #ifdef __cplusplus |
| 20224 | extern "C" |
| 20225 | #endif |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 20226 | /* 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] | 20227 | builtin and then its argument prototype would still apply. */ |
| 20228 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20229 | int |
| 20230 | main () |
| 20231 | { |
| 20232 | rl_pre_input_hook (); |
| 20233 | ; |
| 20234 | return 0; |
| 20235 | } |
| 20236 | _ACEOF |
| 20237 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20238 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20239 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20240 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20241 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20242 | rm -f conftest.er1 |
| 20243 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20245 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20246 | { ac_try='test -z "$ac_c_werror_flag" |
| 20247 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20249 | (eval $ac_try) 2>&5 |
| 20250 | ac_status=$? |
| 20251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20252 | (exit $ac_status); }; } && |
| 20253 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20255 | (eval $ac_try) 2>&5 |
| 20256 | ac_status=$? |
| 20257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20258 | (exit $ac_status); }; }; then |
| 20259 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 20260 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20261 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20262 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20263 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20264 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 20265 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20266 | rm -f conftest.err conftest.$ac_objext \ |
| 20267 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20268 | LIBS=$ac_check_lib_save_LIBS |
| 20269 | fi |
| 20270 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 20271 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6 |
| 20272 | 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] | 20273 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20274 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 20275 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20276 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 20277 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 20278 | fi |
| 20279 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20280 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 20281 | # check for readline 4.2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20282 | echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 20283 | echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6 |
| 20284 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
| 20285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 20286 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20287 | ac_check_lib_save_LIBS=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 20288 | LIBS="-lreadline $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20289 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20290 | /* confdefs.h. */ |
| 20291 | _ACEOF |
| 20292 | cat confdefs.h >>conftest.$ac_ext |
| 20293 | cat >>conftest.$ac_ext <<_ACEOF |
| 20294 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20295 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 20296 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20297 | #ifdef __cplusplus |
| 20298 | extern "C" |
| 20299 | #endif |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 20300 | /* 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] | 20301 | builtin and then its argument prototype would still apply. */ |
| 20302 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20303 | int |
| 20304 | main () |
| 20305 | { |
| 20306 | rl_completion_matches (); |
| 20307 | ; |
| 20308 | return 0; |
| 20309 | } |
| 20310 | _ACEOF |
| 20311 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20312 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20313 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20314 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20315 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20316 | rm -f conftest.er1 |
| 20317 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20319 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20320 | { ac_try='test -z "$ac_c_werror_flag" |
| 20321 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20323 | (eval $ac_try) 2>&5 |
| 20324 | ac_status=$? |
| 20325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20326 | (exit $ac_status); }; } && |
| 20327 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20329 | (eval $ac_try) 2>&5 |
| 20330 | ac_status=$? |
| 20331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20332 | (exit $ac_status); }; }; then |
| 20333 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 20334 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20335 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20336 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20337 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20338 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 20339 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20340 | rm -f conftest.err conftest.$ac_objext \ |
| 20341 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20342 | LIBS=$ac_check_lib_save_LIBS |
| 20343 | fi |
| 20344 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 20345 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6 |
| 20346 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20347 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20348 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 20349 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20350 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 20351 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 20352 | fi |
| 20353 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20354 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20355 | # also in readline 4.2 |
| 20356 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20357 | /* confdefs.h. */ |
| 20358 | _ACEOF |
| 20359 | cat confdefs.h >>conftest.$ac_ext |
| 20360 | cat >>conftest.$ac_ext <<_ACEOF |
| 20361 | /* end confdefs.h. */ |
| 20362 | #include <readline/readline.h> |
| 20363 | _ACEOF |
| 20364 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 20365 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 20366 | ac_status=$? |
| 20367 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20368 | rm -f conftest.er1 |
| 20369 | cat conftest.err >&5 |
| 20370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20371 | (exit $ac_status); } >/dev/null; then |
| 20372 | if test -s conftest.err; then |
| 20373 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20374 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20375 | else |
| 20376 | ac_cpp_err= |
| 20377 | fi |
| 20378 | else |
| 20379 | ac_cpp_err=yes |
| 20380 | fi |
| 20381 | if test -z "$ac_cpp_err"; then |
| 20382 | have_readline=yes |
| 20383 | else |
| 20384 | echo "$as_me: failed program was:" >&5 |
| 20385 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20386 | |
| 20387 | have_readline=no |
| 20388 | fi |
| 20389 | rm -f conftest.err conftest.$ac_ext |
| 20390 | if test $have_readline = yes |
| 20391 | then |
| 20392 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20393 | /* confdefs.h. */ |
| 20394 | _ACEOF |
| 20395 | cat confdefs.h >>conftest.$ac_ext |
| 20396 | cat >>conftest.$ac_ext <<_ACEOF |
| 20397 | /* end confdefs.h. */ |
| 20398 | #include <readline/readline.h> |
| 20399 | |
| 20400 | _ACEOF |
| 20401 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 20402 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then |
| 20403 | |
| 20404 | cat >>confdefs.h <<\_ACEOF |
| 20405 | #define HAVE_RL_CATCH_SIGNAL 1 |
| 20406 | _ACEOF |
| 20407 | |
| 20408 | fi |
| 20409 | rm -f conftest* |
| 20410 | |
| 20411 | fi |
| 20412 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20413 | echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 20414 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6 |
| 20415 | if test "${ac_cv_broken_nice+set}" = set; then |
| 20416 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20417 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20418 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 20419 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 20420 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 20421 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20422 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20423 | /* confdefs.h. */ |
| 20424 | _ACEOF |
| 20425 | cat confdefs.h >>conftest.$ac_ext |
| 20426 | cat >>conftest.$ac_ext <<_ACEOF |
| 20427 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 20428 | |
| 20429 | int main() |
| 20430 | { |
| 20431 | int val1 = nice(1); |
| 20432 | if (val1 != -1 && val1 == nice(2)) |
| 20433 | exit(0); |
| 20434 | exit(1); |
| 20435 | } |
| 20436 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20437 | _ACEOF |
| 20438 | rm -f conftest$ac_exeext |
| 20439 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20440 | (eval $ac_link) 2>&5 |
| 20441 | ac_status=$? |
| 20442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20443 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20445 | (eval $ac_try) 2>&5 |
| 20446 | ac_status=$? |
| 20447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20448 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 20449 | ac_cv_broken_nice=yes |
| 20450 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20451 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20452 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20453 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20454 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20455 | ( exit $ac_status ) |
| 20456 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 20457 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20458 | 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] | 20459 | fi |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 20460 | fi |
| 20461 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20462 | echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 20463 | echo "${ECHO_T}$ac_cv_broken_nice" >&6 |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 20464 | if test "$ac_cv_broken_nice" = yes |
| 20465 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20466 | |
| 20467 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 20468 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20469 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 20470 | |
| 20471 | fi |
| 20472 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 20473 | echo "$as_me:$LINENO: checking for broken poll()" >&5 |
| 20474 | echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6 |
| 20475 | if test "$cross_compiling" = yes; then |
| 20476 | ac_cv_broken_poll=no |
| 20477 | else |
| 20478 | cat >conftest.$ac_ext <<_ACEOF |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 20479 | /* confdefs.h. */ |
| 20480 | _ACEOF |
| 20481 | cat confdefs.h >>conftest.$ac_ext |
| 20482 | cat >>conftest.$ac_ext <<_ACEOF |
| 20483 | /* end confdefs.h. */ |
| 20484 | |
| 20485 | #include <poll.h> |
| 20486 | |
| 20487 | int main (void) |
| 20488 | { |
| 20489 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
| 20490 | |
| 20491 | close (42); |
| 20492 | |
| 20493 | int poll_test = poll (&poll_struct, 1, 0); |
| 20494 | |
| 20495 | if (poll_test < 0) |
| 20496 | { |
| 20497 | exit(0); |
| 20498 | } |
| 20499 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
| 20500 | { |
| 20501 | exit(0); |
| 20502 | } |
| 20503 | else |
| 20504 | { |
| 20505 | exit(1); |
| 20506 | } |
| 20507 | } |
| 20508 | |
| 20509 | _ACEOF |
| 20510 | rm -f conftest$ac_exeext |
| 20511 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20512 | (eval $ac_link) 2>&5 |
| 20513 | ac_status=$? |
| 20514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20515 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20517 | (eval $ac_try) 2>&5 |
| 20518 | ac_status=$? |
| 20519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20520 | (exit $ac_status); }; }; then |
| 20521 | ac_cv_broken_poll=yes |
| 20522 | else |
| 20523 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20524 | echo "$as_me: failed program was:" >&5 |
| 20525 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20526 | |
| 20527 | ( exit $ac_status ) |
| 20528 | ac_cv_broken_poll=no |
| 20529 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20530 | 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] | 20531 | fi |
| 20532 | echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5 |
| 20533 | echo "${ECHO_T}$ac_cv_broken_poll" >&6 |
| 20534 | if test "$ac_cv_broken_poll" = yes |
| 20535 | then |
| 20536 | |
| 20537 | cat >>confdefs.h <<\_ACEOF |
| 20538 | #define HAVE_BROKEN_POLL 1 |
| 20539 | _ACEOF |
| 20540 | |
| 20541 | fi |
| 20542 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20543 | # Before we can test tzset, we need to check if struct tm has a tm_zone |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 20544 | # (which is not required by ISO C or UNIX spec) and/or if we support |
| 20545 | # tzname[] |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20546 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 20547 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 20548 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 20549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20550 | else |
| 20551 | cat >conftest.$ac_ext <<_ACEOF |
| 20552 | /* confdefs.h. */ |
| 20553 | _ACEOF |
| 20554 | cat confdefs.h >>conftest.$ac_ext |
| 20555 | cat >>conftest.$ac_ext <<_ACEOF |
| 20556 | /* end confdefs.h. */ |
| 20557 | #include <sys/types.h> |
| 20558 | #include <$ac_cv_struct_tm> |
| 20559 | |
| 20560 | |
| 20561 | int |
| 20562 | main () |
| 20563 | { |
| 20564 | static struct tm ac_aggr; |
| 20565 | if (ac_aggr.tm_zone) |
| 20566 | return 0; |
| 20567 | ; |
| 20568 | return 0; |
| 20569 | } |
| 20570 | _ACEOF |
| 20571 | rm -f conftest.$ac_objext |
| 20572 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20573 | (eval $ac_compile) 2>conftest.er1 |
| 20574 | ac_status=$? |
| 20575 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20576 | rm -f conftest.er1 |
| 20577 | cat conftest.err >&5 |
| 20578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20579 | (exit $ac_status); } && |
| 20580 | { ac_try='test -z "$ac_c_werror_flag" |
| 20581 | || test ! -s conftest.err' |
| 20582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20583 | (eval $ac_try) 2>&5 |
| 20584 | ac_status=$? |
| 20585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20586 | (exit $ac_status); }; } && |
| 20587 | { ac_try='test -s conftest.$ac_objext' |
| 20588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20589 | (eval $ac_try) 2>&5 |
| 20590 | ac_status=$? |
| 20591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20592 | (exit $ac_status); }; }; then |
| 20593 | ac_cv_member_struct_tm_tm_zone=yes |
| 20594 | else |
| 20595 | echo "$as_me: failed program was:" >&5 |
| 20596 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20597 | |
| 20598 | cat >conftest.$ac_ext <<_ACEOF |
| 20599 | /* confdefs.h. */ |
| 20600 | _ACEOF |
| 20601 | cat confdefs.h >>conftest.$ac_ext |
| 20602 | cat >>conftest.$ac_ext <<_ACEOF |
| 20603 | /* end confdefs.h. */ |
| 20604 | #include <sys/types.h> |
| 20605 | #include <$ac_cv_struct_tm> |
| 20606 | |
| 20607 | |
| 20608 | int |
| 20609 | main () |
| 20610 | { |
| 20611 | static struct tm ac_aggr; |
| 20612 | if (sizeof ac_aggr.tm_zone) |
| 20613 | return 0; |
| 20614 | ; |
| 20615 | return 0; |
| 20616 | } |
| 20617 | _ACEOF |
| 20618 | rm -f conftest.$ac_objext |
| 20619 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20620 | (eval $ac_compile) 2>conftest.er1 |
| 20621 | ac_status=$? |
| 20622 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20623 | rm -f conftest.er1 |
| 20624 | cat conftest.err >&5 |
| 20625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20626 | (exit $ac_status); } && |
| 20627 | { ac_try='test -z "$ac_c_werror_flag" |
| 20628 | || test ! -s conftest.err' |
| 20629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20630 | (eval $ac_try) 2>&5 |
| 20631 | ac_status=$? |
| 20632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20633 | (exit $ac_status); }; } && |
| 20634 | { ac_try='test -s conftest.$ac_objext' |
| 20635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20636 | (eval $ac_try) 2>&5 |
| 20637 | ac_status=$? |
| 20638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20639 | (exit $ac_status); }; }; then |
| 20640 | ac_cv_member_struct_tm_tm_zone=yes |
| 20641 | else |
| 20642 | echo "$as_me: failed program was:" >&5 |
| 20643 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20644 | |
| 20645 | ac_cv_member_struct_tm_tm_zone=no |
| 20646 | fi |
| 20647 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20648 | fi |
| 20649 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20650 | fi |
| 20651 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 20652 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 20653 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 20654 | |
| 20655 | cat >>confdefs.h <<_ACEOF |
| 20656 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 20657 | _ACEOF |
| 20658 | |
| 20659 | |
| 20660 | fi |
| 20661 | |
| 20662 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 20663 | |
| 20664 | cat >>confdefs.h <<\_ACEOF |
| 20665 | #define HAVE_TM_ZONE 1 |
| 20666 | _ACEOF |
| 20667 | |
| 20668 | else |
| 20669 | echo "$as_me:$LINENO: checking for tzname" >&5 |
| 20670 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 20671 | if test "${ac_cv_var_tzname+set}" = set; then |
| 20672 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20673 | else |
| 20674 | cat >conftest.$ac_ext <<_ACEOF |
| 20675 | /* confdefs.h. */ |
| 20676 | _ACEOF |
| 20677 | cat confdefs.h >>conftest.$ac_ext |
| 20678 | cat >>conftest.$ac_ext <<_ACEOF |
| 20679 | /* end confdefs.h. */ |
| 20680 | #include <time.h> |
| 20681 | #ifndef tzname /* For SGI. */ |
| 20682 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
| 20683 | #endif |
| 20684 | |
| 20685 | int |
| 20686 | main () |
| 20687 | { |
| 20688 | atoi(*tzname); |
| 20689 | ; |
| 20690 | return 0; |
| 20691 | } |
| 20692 | _ACEOF |
| 20693 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20694 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20695 | (eval $ac_link) 2>conftest.er1 |
| 20696 | ac_status=$? |
| 20697 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20698 | rm -f conftest.er1 |
| 20699 | cat conftest.err >&5 |
| 20700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20701 | (exit $ac_status); } && |
| 20702 | { ac_try='test -z "$ac_c_werror_flag" |
| 20703 | || test ! -s conftest.err' |
| 20704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20705 | (eval $ac_try) 2>&5 |
| 20706 | ac_status=$? |
| 20707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20708 | (exit $ac_status); }; } && |
| 20709 | { ac_try='test -s conftest$ac_exeext' |
| 20710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20711 | (eval $ac_try) 2>&5 |
| 20712 | ac_status=$? |
| 20713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20714 | (exit $ac_status); }; }; then |
| 20715 | ac_cv_var_tzname=yes |
| 20716 | else |
| 20717 | echo "$as_me: failed program was:" >&5 |
| 20718 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20719 | |
| 20720 | ac_cv_var_tzname=no |
| 20721 | fi |
| 20722 | rm -f conftest.err conftest.$ac_objext \ |
| 20723 | conftest$ac_exeext conftest.$ac_ext |
| 20724 | fi |
| 20725 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 20726 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
| 20727 | if test $ac_cv_var_tzname = yes; then |
| 20728 | |
| 20729 | cat >>confdefs.h <<\_ACEOF |
| 20730 | #define HAVE_TZNAME 1 |
| 20731 | _ACEOF |
| 20732 | |
| 20733 | fi |
| 20734 | fi |
| 20735 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 20736 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 20737 | # check tzset(3) exists and works like we expect it to |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 20738 | echo "$as_me:$LINENO: checking for working tzset()" >&5 |
| 20739 | echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6 |
| 20740 | if test "${ac_cv_working_tzset+set}" = set; then |
| 20741 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20742 | else |
| 20743 | |
| 20744 | if test "$cross_compiling" = yes; then |
| 20745 | ac_cv_working_tzset=no |
| 20746 | else |
| 20747 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20748 | /* confdefs.h. */ |
| 20749 | _ACEOF |
| 20750 | cat confdefs.h >>conftest.$ac_ext |
| 20751 | cat >>conftest.$ac_ext <<_ACEOF |
| 20752 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 20753 | |
| 20754 | #include <stdlib.h> |
| 20755 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20756 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20757 | |
| 20758 | #if HAVE_TZNAME |
| 20759 | extern char *tzname[]; |
| 20760 | #endif |
| 20761 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 20762 | int main() |
| 20763 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20764 | /* Note that we need to ensure that not only does tzset(3) |
| 20765 | do 'something' with localtime, but it works as documented |
| 20766 | in the library reference and as expected by the test suite. |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 20767 | This includes making sure that tzname is set properly if |
| 20768 | tm->tm_zone does not exist since it is the alternative way |
| 20769 | of getting timezone info. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20770 | |
| 20771 | Red Hat 6.2 doesn't understand the southern hemisphere |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 20772 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20773 | */ |
| 20774 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 20775 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20776 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 20777 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 20778 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 20779 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20780 | if (localtime(&groundhogday)->tm_hour != 0) |
| 20781 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20782 | #if HAVE_TZNAME |
| 20783 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ |
| 20784 | if (strcmp(tzname[0], "UTC") || |
| 20785 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) |
| 20786 | exit(1); |
| 20787 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20788 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 20789 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 20790 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20791 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 20792 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20793 | #if HAVE_TZNAME |
| 20794 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) |
| 20795 | exit(1); |
| 20796 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20797 | |
| 20798 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 20799 | tzset(); |
| 20800 | if (localtime(&groundhogday)->tm_hour != 11) |
| 20801 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20802 | #if HAVE_TZNAME |
| 20803 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) |
| 20804 | exit(1); |
| 20805 | #endif |
| 20806 | |
| 20807 | #if HAVE_STRUCT_TM_TM_ZONE |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20808 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 20809 | exit(1); |
| 20810 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 20811 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20812 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20813 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 20814 | exit(0); |
| 20815 | } |
| 20816 | |
| 20817 | _ACEOF |
| 20818 | rm -f conftest$ac_exeext |
| 20819 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20820 | (eval $ac_link) 2>&5 |
| 20821 | ac_status=$? |
| 20822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20823 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20825 | (eval $ac_try) 2>&5 |
| 20826 | ac_status=$? |
| 20827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20828 | (exit $ac_status); }; }; then |
| 20829 | ac_cv_working_tzset=yes |
| 20830 | else |
| 20831 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20832 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20833 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20834 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 20835 | ( exit $ac_status ) |
| 20836 | ac_cv_working_tzset=no |
| 20837 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20838 | 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] | 20839 | fi |
| 20840 | fi |
| 20841 | |
| 20842 | echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5 |
| 20843 | echo "${ECHO_T}$ac_cv_working_tzset" >&6 |
| 20844 | if test "$ac_cv_working_tzset" = yes |
| 20845 | then |
| 20846 | |
| 20847 | cat >>confdefs.h <<\_ACEOF |
| 20848 | #define HAVE_WORKING_TZSET 1 |
| 20849 | _ACEOF |
| 20850 | |
| 20851 | fi |
| 20852 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 20853 | # Look for subsecond timestamps in struct stat |
| 20854 | echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 20855 | echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6 |
| 20856 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
| 20857 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20858 | else |
| 20859 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20860 | /* confdefs.h. */ |
| 20861 | _ACEOF |
| 20862 | cat confdefs.h >>conftest.$ac_ext |
| 20863 | cat >>conftest.$ac_ext <<_ACEOF |
| 20864 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 20865 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 20866 | int |
| 20867 | main () |
| 20868 | { |
| 20869 | |
| 20870 | struct stat st; |
| 20871 | st.st_mtim.tv_nsec = 1; |
| 20872 | |
| 20873 | ; |
| 20874 | return 0; |
| 20875 | } |
| 20876 | _ACEOF |
| 20877 | rm -f conftest.$ac_objext |
| 20878 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20879 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 20880 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20881 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20882 | rm -f conftest.er1 |
| 20883 | cat conftest.err >&5 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 20884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20885 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20886 | { ac_try='test -z "$ac_c_werror_flag" |
| 20887 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20889 | (eval $ac_try) 2>&5 |
| 20890 | ac_status=$? |
| 20891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20892 | (exit $ac_status); }; } && |
| 20893 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 20894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20895 | (eval $ac_try) 2>&5 |
| 20896 | ac_status=$? |
| 20897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20898 | (exit $ac_status); }; }; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 20899 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 20900 | else |
| 20901 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20902 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20903 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 20904 | ac_cv_stat_tv_nsec=no |
| 20905 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20906 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 20907 | fi |
| 20908 | |
| 20909 | echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 20910 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6 |
| 20911 | if test "$ac_cv_stat_tv_nsec" = yes |
| 20912 | then |
| 20913 | |
| 20914 | cat >>confdefs.h <<\_ACEOF |
| 20915 | #define HAVE_STAT_TV_NSEC 1 |
| 20916 | _ACEOF |
| 20917 | |
| 20918 | fi |
| 20919 | |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20920 | # Look for BSD style subsecond timestamps in struct stat |
| 20921 | echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5 |
| 20922 | echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6 |
| 20923 | if test "${ac_cv_stat_tv_nsec2+set}" = set; then |
| 20924 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20925 | else |
| 20926 | cat >conftest.$ac_ext <<_ACEOF |
| 20927 | /* confdefs.h. */ |
| 20928 | _ACEOF |
| 20929 | cat confdefs.h >>conftest.$ac_ext |
| 20930 | cat >>conftest.$ac_ext <<_ACEOF |
| 20931 | /* end confdefs.h. */ |
| 20932 | #include <sys/stat.h> |
| 20933 | int |
| 20934 | main () |
| 20935 | { |
| 20936 | |
| 20937 | struct stat st; |
| 20938 | st.st_mtimespec.tv_nsec = 1; |
| 20939 | |
| 20940 | ; |
| 20941 | return 0; |
| 20942 | } |
| 20943 | _ACEOF |
| 20944 | rm -f conftest.$ac_objext |
| 20945 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20946 | (eval $ac_compile) 2>conftest.er1 |
| 20947 | ac_status=$? |
| 20948 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20949 | rm -f conftest.er1 |
| 20950 | cat conftest.err >&5 |
| 20951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20952 | (exit $ac_status); } && |
| 20953 | { ac_try='test -z "$ac_c_werror_flag" |
| 20954 | || test ! -s conftest.err' |
| 20955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20956 | (eval $ac_try) 2>&5 |
| 20957 | ac_status=$? |
| 20958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20959 | (exit $ac_status); }; } && |
| 20960 | { ac_try='test -s conftest.$ac_objext' |
| 20961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20962 | (eval $ac_try) 2>&5 |
| 20963 | ac_status=$? |
| 20964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20965 | (exit $ac_status); }; }; then |
| 20966 | ac_cv_stat_tv_nsec2=yes |
| 20967 | else |
| 20968 | echo "$as_me: failed program was:" >&5 |
| 20969 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20970 | |
| 20971 | ac_cv_stat_tv_nsec2=no |
| 20972 | fi |
| 20973 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20974 | fi |
| 20975 | |
| 20976 | echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5 |
| 20977 | echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6 |
| 20978 | if test "$ac_cv_stat_tv_nsec2" = yes |
| 20979 | then |
| 20980 | |
| 20981 | cat >>confdefs.h <<\_ACEOF |
| 20982 | #define HAVE_STAT_TV_NSEC2 1 |
| 20983 | _ACEOF |
| 20984 | |
| 20985 | fi |
| 20986 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20987 | # 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] | 20988 | echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 20989 | echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6 |
| 20990 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
| 20991 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20992 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20993 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20994 | /* confdefs.h. */ |
| 20995 | _ACEOF |
| 20996 | cat confdefs.h >>conftest.$ac_ext |
| 20997 | cat >>conftest.$ac_ext <<_ACEOF |
| 20998 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20999 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21000 | int |
| 21001 | main () |
| 21002 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21003 | |
| 21004 | int rtn; |
| 21005 | rtn = mvwdelch(0,0,0); |
| 21006 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21007 | ; |
| 21008 | return 0; |
| 21009 | } |
| 21010 | _ACEOF |
| 21011 | rm -f conftest.$ac_objext |
| 21012 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21013 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21014 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21015 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21016 | rm -f conftest.er1 |
| 21017 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21019 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 21020 | { ac_try='test -z "$ac_c_werror_flag" |
| 21021 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21023 | (eval $ac_try) 2>&5 |
| 21024 | ac_status=$? |
| 21025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21026 | (exit $ac_status); }; } && |
| 21027 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21029 | (eval $ac_try) 2>&5 |
| 21030 | ac_status=$? |
| 21031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21032 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21033 | ac_cv_mvwdelch_is_expression=yes |
| 21034 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21035 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21036 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21037 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21038 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21039 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21040 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21041 | fi |
| 21042 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21043 | echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 21044 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21045 | |
| 21046 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 21047 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21048 | |
| 21049 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21050 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21051 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21052 | |
| 21053 | fi |
| 21054 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21055 | echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 21056 | echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6 |
| 21057 | if test "${ac_cv_window_has_flags+set}" = set; then |
| 21058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21059 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21060 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21061 | /* confdefs.h. */ |
| 21062 | _ACEOF |
| 21063 | cat confdefs.h >>conftest.$ac_ext |
| 21064 | cat >>conftest.$ac_ext <<_ACEOF |
| 21065 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21066 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21067 | int |
| 21068 | main () |
| 21069 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21070 | |
| 21071 | WINDOW *w; |
| 21072 | w->_flags = 0; |
| 21073 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21074 | ; |
| 21075 | return 0; |
| 21076 | } |
| 21077 | _ACEOF |
| 21078 | rm -f conftest.$ac_objext |
| 21079 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21080 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21081 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21082 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21083 | rm -f conftest.er1 |
| 21084 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21086 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 21087 | { ac_try='test -z "$ac_c_werror_flag" |
| 21088 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21090 | (eval $ac_try) 2>&5 |
| 21091 | ac_status=$? |
| 21092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21093 | (exit $ac_status); }; } && |
| 21094 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21096 | (eval $ac_try) 2>&5 |
| 21097 | ac_status=$? |
| 21098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21099 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21100 | ac_cv_window_has_flags=yes |
| 21101 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21102 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21103 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21104 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21105 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21106 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21107 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21108 | fi |
| 21109 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21110 | echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 21111 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21112 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21113 | |
| 21114 | if test "$ac_cv_window_has_flags" = yes |
| 21115 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21116 | |
| 21117 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21118 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21119 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21120 | |
| 21121 | fi |
| 21122 | |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 21123 | echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
| 21124 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6 |
| 21125 | |
| 21126 | if test -e /dev/ptmx |
| 21127 | then |
| 21128 | echo "$as_me:$LINENO: result: yes" >&5 |
| 21129 | echo "${ECHO_T}yes" >&6 |
| 21130 | |
| 21131 | cat >>confdefs.h <<\_ACEOF |
| 21132 | #define HAVE_DEV_PTMX 1 |
| 21133 | _ACEOF |
| 21134 | |
| 21135 | else |
| 21136 | echo "$as_me:$LINENO: result: no" >&5 |
| 21137 | echo "${ECHO_T}no" >&6 |
| 21138 | fi |
| 21139 | |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 21140 | echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 21141 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6 |
| 21142 | |
| 21143 | if test -e /dev/ptc |
| 21144 | then |
| 21145 | echo "$as_me:$LINENO: result: yes" >&5 |
| 21146 | echo "${ECHO_T}yes" >&6 |
| 21147 | |
| 21148 | cat >>confdefs.h <<\_ACEOF |
| 21149 | #define HAVE_DEV_PTC 1 |
| 21150 | _ACEOF |
| 21151 | |
| 21152 | else |
| 21153 | echo "$as_me:$LINENO: result: no" >&5 |
| 21154 | echo "${ECHO_T}no" >&6 |
| 21155 | fi |
| 21156 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21157 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 21158 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
| 21159 | if test "${ac_cv_type_socklen_t+set}" = set; then |
| 21160 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 21161 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21162 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21163 | /* confdefs.h. */ |
| 21164 | _ACEOF |
| 21165 | cat confdefs.h >>conftest.$ac_ext |
| 21166 | cat >>conftest.$ac_ext <<_ACEOF |
| 21167 | /* end confdefs.h. */ |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 21168 | |
| 21169 | #ifdef HAVE_SYS_TYPES_H |
| 21170 | #include <sys/types.h> |
| 21171 | #endif |
| 21172 | #ifdef HAVE_SYS_SOCKET_H |
| 21173 | #include <sys/socket.h> |
| 21174 | #endif |
| 21175 | |
| 21176 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21177 | int |
| 21178 | main () |
| 21179 | { |
| 21180 | if ((socklen_t *) 0) |
| 21181 | return 0; |
| 21182 | if (sizeof (socklen_t)) |
| 21183 | return 0; |
| 21184 | ; |
| 21185 | return 0; |
| 21186 | } |
| 21187 | _ACEOF |
| 21188 | rm -f conftest.$ac_objext |
| 21189 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21190 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21191 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21192 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21193 | rm -f conftest.er1 |
| 21194 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21196 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 21197 | { ac_try='test -z "$ac_c_werror_flag" |
| 21198 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21200 | (eval $ac_try) 2>&5 |
| 21201 | ac_status=$? |
| 21202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21203 | (exit $ac_status); }; } && |
| 21204 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21206 | (eval $ac_try) 2>&5 |
| 21207 | ac_status=$? |
| 21208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21209 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 21210 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 21211 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21212 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21213 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21214 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21215 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 21216 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21217 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21218 | fi |
| 21219 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 21220 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 |
| 21221 | if test $ac_cv_type_socklen_t = yes; then |
| 21222 | : |
| 21223 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 21224 | |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 21225 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 21226 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21227 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 21228 | |
| 21229 | fi |
| 21230 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21231 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21232 | |
| 21233 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 21234 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 21235 | do |
| 21236 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 21237 | done |
| 21238 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21239 | |
Neal Norwitz | d24499d | 2005-12-18 21:36:39 +0000 | [diff] [blame] | 21240 | SRCDIRS="Parser Grammar Objects Python Modules Mac" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21241 | echo "$as_me:$LINENO: checking for build directories" >&5 |
| 21242 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 21243 | for dir in $SRCDIRS; do |
| 21244 | if test ! -d $dir; then |
| 21245 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 21246 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 21247 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21248 | echo "$as_me:$LINENO: result: done" >&5 |
| 21249 | echo "${ECHO_T}done" >&6 |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 21250 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21251 | # generate output files |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21252 | 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] | 21253 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21254 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21255 | # This file is a shell script that caches the results of configure |
| 21256 | # 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] | 21257 | # scripts and configure runs, see configure's option --config-cache. |
| 21258 | # It is not useful on other systems. If it contains results you don't |
| 21259 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21260 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21261 | # config.status only pays attention to the cache file if you give it |
| 21262 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21263 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21264 | # `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] | 21265 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 21266 | # following values. |
| 21267 | |
| 21268 | _ACEOF |
| 21269 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 21270 | # The following way of writing the cache mishandles newlines in values, |
| 21271 | # but we know of no workaround that is simple, portable, and efficient. |
| 21272 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 21273 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 21274 | # 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] | 21275 | { |
| 21276 | (set) 2>&1 | |
| 21277 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 21278 | *ac_space=\ *) |
| 21279 | # `set' does not quote correctly, so add quotes (double-quote |
| 21280 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 21281 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21282 | "s/'/'\\\\''/g; |
| 21283 | 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] | 21284 | ;; |
| 21285 | *) |
| 21286 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 21287 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21288 | "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] | 21289 | ;; |
| 21290 | esac; |
| 21291 | } | |
| 21292 | sed ' |
| 21293 | t clear |
| 21294 | : clear |
| 21295 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 21296 | t end |
| 21297 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 21298 | : end' >>confcache |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21299 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 21300 | if test -w $cache_file; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21301 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 21302 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 21303 | else |
| 21304 | echo "not updating unwritable cache $cache_file" |
| 21305 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21306 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 21307 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 21308 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21309 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 21310 | # Let make expand exec_prefix. |
| 21311 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 21312 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21313 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 21314 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 21315 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 21316 | # (actually we leave an empty line to preserve line numbers). |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21317 | if test "x$srcdir" = x.; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21318 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21319 | s/:*\$(srcdir):*/:/; |
| 21320 | s/:*\${srcdir}:*/:/; |
| 21321 | s/:*@srcdir@:*/:/; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21322 | s/^\([^=]*=[ ]*\):*/\1/; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21323 | s/:*$//; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21324 | s/^[^=]*=[ ]*$//; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21325 | }' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21326 | fi |
| 21327 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21328 | DEFS=-DHAVE_CONFIG_H |
| 21329 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21330 | ac_libobjs= |
| 21331 | ac_ltlibobjs= |
| 21332 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 21333 | # 1. Remove the extension, and $U if already installed. |
| 21334 | ac_i=`echo "$ac_i" | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21335 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21336 | # 2. Add them. |
| 21337 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 21338 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 21339 | done |
| 21340 | LIBOBJS=$ac_libobjs |
| 21341 | |
| 21342 | LTLIBOBJS=$ac_ltlibobjs |
| 21343 | |
| 21344 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21345 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21346 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21347 | ac_clean_files_save=$ac_clean_files |
| 21348 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 21349 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 21350 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 21351 | cat >$CONFIG_STATUS <<_ACEOF |
| 21352 | #! $SHELL |
| 21353 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21354 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21355 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21356 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21357 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21358 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21359 | ac_cs_recheck=false |
| 21360 | ac_cs_silent=false |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21361 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 21362 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21363 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21364 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21365 | ## --------------------- ## |
| 21366 | ## M4sh Initialization. ## |
| 21367 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21368 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21369 | # Be Bourne compatible |
| 21370 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 21371 | emulate sh |
| 21372 | NULLCMD=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21373 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 21374 | # is contrary to our usage. Disable this feature. |
| 21375 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21376 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 21377 | set -o posix |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21378 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21379 | DUALCASE=1; export DUALCASE # for MKS sh |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21380 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21381 | # Support unset when possible. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21382 | 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] | 21383 | as_unset=unset |
| 21384 | else |
| 21385 | as_unset=false |
| 21386 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21387 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21388 | |
| 21389 | # Work around bugs in pre-3.0 UWIN ksh. |
| 21390 | $as_unset ENV MAIL MAILPATH |
| 21391 | PS1='$ ' |
| 21392 | PS2='> ' |
| 21393 | PS4='+ ' |
| 21394 | |
| 21395 | # NLS nuisances. |
| 21396 | for as_var in \ |
| 21397 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 21398 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 21399 | LC_TELEPHONE LC_TIME |
| 21400 | do |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21401 | 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] | 21402 | eval $as_var=C; export $as_var |
| 21403 | else |
| 21404 | $as_unset $as_var |
| 21405 | fi |
| 21406 | done |
| 21407 | |
| 21408 | # Required to use basename. |
| 21409 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 21410 | as_expr=expr |
| 21411 | else |
| 21412 | as_expr=false |
| 21413 | fi |
| 21414 | |
| 21415 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 21416 | as_basename=basename |
| 21417 | else |
| 21418 | as_basename=false |
| 21419 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21420 | |
| 21421 | |
| 21422 | # Name of the executable. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21423 | as_me=`$as_basename "$0" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21424 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 21425 | X"$0" : 'X\(//\)$' \| \ |
| 21426 | X"$0" : 'X\(/\)$' \| \ |
| 21427 | . : '\(.\)' 2>/dev/null || |
| 21428 | echo X/"$0" | |
| 21429 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 21430 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 21431 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 21432 | s/.*/./; q'` |
| 21433 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21434 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21435 | # PATH needs CR, and LINENO needs CR and PATH. |
| 21436 | # Avoid depending upon Character Ranges. |
| 21437 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 21438 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 21439 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 21440 | as_cr_digits='0123456789' |
| 21441 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 21442 | |
| 21443 | # The user is always right. |
| 21444 | if test "${PATH_SEPARATOR+set}" != set; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21445 | echo "#! /bin/sh" >conf$$.sh |
| 21446 | echo "exit 0" >>conf$$.sh |
| 21447 | chmod +x conf$$.sh |
| 21448 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21449 | PATH_SEPARATOR=';' |
| 21450 | else |
| 21451 | PATH_SEPARATOR=: |
| 21452 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21453 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21454 | fi |
| 21455 | |
| 21456 | |
| 21457 | as_lineno_1=$LINENO |
| 21458 | as_lineno_2=$LINENO |
| 21459 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 21460 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 21461 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 21462 | # Find who we are. Look in the path if we contain no path at all |
| 21463 | # relative or not. |
| 21464 | case $0 in |
| 21465 | *[\\/]* ) as_myself=$0 ;; |
| 21466 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 21467 | for as_dir in $PATH |
| 21468 | do |
| 21469 | IFS=$as_save_IFS |
| 21470 | test -z "$as_dir" && as_dir=. |
| 21471 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 21472 | done |
| 21473 | |
| 21474 | ;; |
| 21475 | esac |
| 21476 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 21477 | # in which case we are not to be found in the path. |
| 21478 | if test "x$as_myself" = x; then |
| 21479 | as_myself=$0 |
| 21480 | fi |
| 21481 | if test ! -f "$as_myself"; then |
| 21482 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 21483 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 21484 | { (exit 1); exit 1; }; } |
| 21485 | fi |
| 21486 | case $CONFIG_SHELL in |
| 21487 | '') |
| 21488 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 21489 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 21490 | do |
| 21491 | IFS=$as_save_IFS |
| 21492 | test -z "$as_dir" && as_dir=. |
| 21493 | for as_base in sh bash ksh sh5; do |
| 21494 | case $as_dir in |
| 21495 | /*) |
| 21496 | if ("$as_dir/$as_base" -c ' |
| 21497 | as_lineno_1=$LINENO |
| 21498 | as_lineno_2=$LINENO |
| 21499 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 21500 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 21501 | 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] | 21502 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 21503 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21504 | CONFIG_SHELL=$as_dir/$as_base |
| 21505 | export CONFIG_SHELL |
| 21506 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 21507 | fi;; |
| 21508 | esac |
| 21509 | done |
| 21510 | done |
| 21511 | ;; |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21512 | esac |
| 21513 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21514 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 21515 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 21516 | # line-number line before each line; the second 'sed' does the real |
| 21517 | # work. The second script uses 'N' to pair each line-number line |
| 21518 | # with the numbered line, and appends trailing '-' during |
| 21519 | # substitution so that $LINENO is not a special case at line end. |
| 21520 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 21521 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 21522 | sed '=' <$as_myself | |
| 21523 | sed ' |
| 21524 | N |
| 21525 | s,$,-, |
| 21526 | : loop |
| 21527 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 21528 | t loop |
| 21529 | s,-$,, |
| 21530 | s,^['$as_cr_digits']*\n,, |
| 21531 | ' >$as_me.lineno && |
| 21532 | chmod +x $as_me.lineno || |
| 21533 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 21534 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 21535 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21536 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21537 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 21538 | # (the dirname of $[0] is not the place where we might find the |
| 21539 | # original and so on. Autoconf is especially sensible to this). |
| 21540 | . ./$as_me.lineno |
| 21541 | # Exit status is that of the last command. |
| 21542 | exit |
| 21543 | } |
| 21544 | |
| 21545 | |
| 21546 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 21547 | *c*,-n*) ECHO_N= ECHO_C=' |
| 21548 | ' ECHO_T=' ' ;; |
| 21549 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 21550 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 21551 | esac |
| 21552 | |
| 21553 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 21554 | as_expr=expr |
| 21555 | else |
| 21556 | as_expr=false |
| 21557 | fi |
| 21558 | |
| 21559 | rm -f conf$$ conf$$.exe conf$$.file |
| 21560 | echo >conf$$.file |
| 21561 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 21562 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 21563 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 21564 | if test -f conf$$.exe; then |
| 21565 | # Don't use ln at all; we don't have any links |
| 21566 | as_ln_s='cp -p' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21567 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21568 | as_ln_s='ln -s' |
| 21569 | fi |
| 21570 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 21571 | as_ln_s=ln |
| 21572 | else |
| 21573 | as_ln_s='cp -p' |
| 21574 | fi |
| 21575 | rm -f conf$$ conf$$.exe conf$$.file |
| 21576 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21577 | if mkdir -p . 2>/dev/null; then |
| 21578 | as_mkdir_p=: |
| 21579 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21580 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21581 | as_mkdir_p=false |
| 21582 | fi |
| 21583 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21584 | as_executable_p="test -f" |
| 21585 | |
| 21586 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21587 | 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] | 21588 | |
| 21589 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21590 | 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] | 21591 | |
| 21592 | |
| 21593 | # IFS |
| 21594 | # We need space, tab and new line, in precisely that order. |
| 21595 | as_nl=' |
| 21596 | ' |
| 21597 | IFS=" $as_nl" |
| 21598 | |
| 21599 | # CDPATH. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21600 | $as_unset CDPATH |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21601 | |
| 21602 | exec 6>&1 |
| 21603 | |
| 21604 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 21605 | # report actual input values of CONFIG_FILES etc. instead of their |
| 21606 | # values after options handling. Logging --version etc. is OK. |
| 21607 | exec 5>>config.log |
| 21608 | { |
| 21609 | echo |
| 21610 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 21611 | ## Running $as_me. ## |
| 21612 | _ASBOX |
| 21613 | } >&5 |
| 21614 | cat >&5 <<_CSEOF |
| 21615 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 21616 | This file was extended by python $as_me 2.5, which was |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21617 | generated by GNU Autoconf 2.59. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21618 | |
| 21619 | CONFIG_FILES = $CONFIG_FILES |
| 21620 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 21621 | CONFIG_LINKS = $CONFIG_LINKS |
| 21622 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 21623 | $ $0 $@ |
| 21624 | |
| 21625 | _CSEOF |
| 21626 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 21627 | echo >&5 |
| 21628 | _ACEOF |
| 21629 | |
| 21630 | # Files that config.status was made for. |
| 21631 | if test -n "$ac_config_files"; then |
| 21632 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 21633 | fi |
| 21634 | |
| 21635 | if test -n "$ac_config_headers"; then |
| 21636 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 21637 | fi |
| 21638 | |
| 21639 | if test -n "$ac_config_links"; then |
| 21640 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 21641 | fi |
| 21642 | |
| 21643 | if test -n "$ac_config_commands"; then |
| 21644 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 21645 | fi |
| 21646 | |
| 21647 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21648 | |
| 21649 | ac_cs_usage="\ |
| 21650 | \`$as_me' instantiates files from templates according to the |
| 21651 | current configuration. |
| 21652 | |
| 21653 | Usage: $0 [OPTIONS] [FILE]... |
| 21654 | |
| 21655 | -h, --help print this help, then exit |
| 21656 | -V, --version print version number, then exit |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21657 | -q, --quiet do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21658 | -d, --debug don't remove temporary files |
| 21659 | --recheck update $as_me by reconfiguring in the same conditions |
| 21660 | --file=FILE[:TEMPLATE] |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21661 | instantiate the configuration file FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21662 | --header=FILE[:TEMPLATE] |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21663 | instantiate the configuration header FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21664 | |
| 21665 | Configuration files: |
| 21666 | $config_files |
| 21667 | |
| 21668 | Configuration headers: |
| 21669 | $config_headers |
| 21670 | |
| 21671 | Report bugs to <bug-autoconf@gnu.org>." |
| 21672 | _ACEOF |
| 21673 | |
| 21674 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21675 | ac_cs_version="\\ |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 21676 | python config.status 2.5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21677 | configured by $0, generated by GNU Autoconf 2.59, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21678 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 21679 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21680 | Copyright (C) 2003 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21681 | This config.status script is free software; the Free Software Foundation |
| 21682 | gives unlimited permission to copy, distribute and modify it." |
| 21683 | srcdir=$srcdir |
| 21684 | INSTALL="$INSTALL" |
| 21685 | _ACEOF |
| 21686 | |
| 21687 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21688 | # If no file are specified by the user, then we need to provide default |
| 21689 | # value. By we need to know if files were specified by the user. |
| 21690 | ac_need_defaults=: |
| 21691 | while test $# != 0 |
| 21692 | do |
| 21693 | case $1 in |
| 21694 | --*=*) |
| 21695 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 21696 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21697 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21698 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21699 | -*) |
| 21700 | ac_option=$1 |
| 21701 | ac_optarg=$2 |
| 21702 | ac_shift=shift |
| 21703 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21704 | *) # This is not an option, so the user has probably given explicit |
| 21705 | # arguments. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21706 | ac_option=$1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21707 | ac_need_defaults=false;; |
| 21708 | esac |
| 21709 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21710 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21711 | # Handling of the options. |
| 21712 | _ACEOF |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 21713 | cat >>$CONFIG_STATUS <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21714 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 21715 | ac_cs_recheck=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21716 | --version | --vers* | -V ) |
| 21717 | echo "$ac_cs_version"; exit 0 ;; |
| 21718 | --he | --h) |
| 21719 | # Conflict between --help and --header |
| 21720 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 21721 | Try \`$0 --help' for more information." >&5 |
| 21722 | echo "$as_me: error: ambiguous option: $1 |
| 21723 | Try \`$0 --help' for more information." >&2;} |
| 21724 | { (exit 1); exit 1; }; };; |
| 21725 | --help | --hel | -h ) |
| 21726 | echo "$ac_cs_usage"; exit 0 ;; |
| 21727 | --debug | --d* | -d ) |
| 21728 | debug=: ;; |
| 21729 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21730 | $ac_shift |
| 21731 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21732 | ac_need_defaults=false;; |
| 21733 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21734 | $ac_shift |
| 21735 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21736 | ac_need_defaults=false;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21737 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 21738 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 21739 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21740 | |
| 21741 | # This is an error. |
| 21742 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 21743 | Try \`$0 --help' for more information." >&5 |
| 21744 | echo "$as_me: error: unrecognized option: $1 |
| 21745 | Try \`$0 --help' for more information." >&2;} |
| 21746 | { (exit 1); exit 1; }; } ;; |
| 21747 | |
| 21748 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 21749 | |
| 21750 | esac |
| 21751 | shift |
| 21752 | done |
| 21753 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21754 | ac_configure_extra_args= |
| 21755 | |
| 21756 | if $ac_cs_silent; then |
| 21757 | exec 6>/dev/null |
| 21758 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 21759 | fi |
| 21760 | |
| 21761 | _ACEOF |
| 21762 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21763 | if \$ac_cs_recheck; then |
| 21764 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 21765 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 21766 | fi |
| 21767 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21768 | _ACEOF |
| 21769 | |
| 21770 | |
| 21771 | |
| 21772 | |
| 21773 | |
| 21774 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21775 | for ac_config_target in $ac_config_targets |
| 21776 | do |
| 21777 | case "$ac_config_target" in |
| 21778 | # Handling of arguments. |
| 21779 | "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 21780 | "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
| 21781 | "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 21782 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 21783 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 21784 | { (exit 1); exit 1; }; };; |
| 21785 | esac |
| 21786 | done |
| 21787 | |
| 21788 | # If the user did not use the arguments to specify the items to instantiate, |
| 21789 | # then the envvar interface is used. Set only those that are not. |
| 21790 | # We use the long form for the default assignment because of an extremely |
| 21791 | # bizarre bug on SunOS 4.1.3. |
| 21792 | if $ac_need_defaults; then |
| 21793 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 21794 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 21795 | fi |
| 21796 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21797 | # Have a temporary directory for convenience. Make it in the build tree |
| 21798 | # simply because there is no reason to put it here, and in addition, |
| 21799 | # creating and moving files from /tmp can sometimes cause problems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21800 | # Create a temporary directory, and hook for its removal unless debugging. |
| 21801 | $debug || |
| 21802 | { |
| 21803 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 21804 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 21805 | } |
| 21806 | |
| 21807 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21808 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21809 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21810 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21811 | test -n "$tmp" && test -d "$tmp" |
| 21812 | } || |
| 21813 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21814 | tmp=./confstat$$-$RANDOM |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21815 | (umask 077 && mkdir $tmp) |
| 21816 | } || |
| 21817 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21818 | echo "$me: cannot create a temporary directory in ." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21819 | { (exit 1); exit 1; } |
| 21820 | } |
| 21821 | |
| 21822 | _ACEOF |
| 21823 | |
| 21824 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21825 | |
| 21826 | # |
| 21827 | # CONFIG_FILES section. |
| 21828 | # |
| 21829 | |
| 21830 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 21831 | # This happens for instance when ./config.status config.h |
| 21832 | if test -n "\$CONFIG_FILES"; then |
| 21833 | # Protect against being on the right side of a sed subst in config.status. |
| 21834 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 21835 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 21836 | s,@SHELL@,$SHELL,;t t |
| 21837 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 21838 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 21839 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 21840 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 21841 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 21842 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 21843 | s,@exec_prefix@,$exec_prefix,;t t |
| 21844 | s,@prefix@,$prefix,;t t |
| 21845 | s,@program_transform_name@,$program_transform_name,;t t |
| 21846 | s,@bindir@,$bindir,;t t |
| 21847 | s,@sbindir@,$sbindir,;t t |
| 21848 | s,@libexecdir@,$libexecdir,;t t |
| 21849 | s,@datadir@,$datadir,;t t |
| 21850 | s,@sysconfdir@,$sysconfdir,;t t |
| 21851 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 21852 | s,@localstatedir@,$localstatedir,;t t |
| 21853 | s,@libdir@,$libdir,;t t |
| 21854 | s,@includedir@,$includedir,;t t |
| 21855 | s,@oldincludedir@,$oldincludedir,;t t |
| 21856 | s,@infodir@,$infodir,;t t |
| 21857 | s,@mandir@,$mandir,;t t |
| 21858 | s,@build_alias@,$build_alias,;t t |
| 21859 | s,@host_alias@,$host_alias,;t t |
| 21860 | s,@target_alias@,$target_alias,;t t |
| 21861 | s,@DEFS@,$DEFS,;t t |
| 21862 | s,@ECHO_C@,$ECHO_C,;t t |
| 21863 | s,@ECHO_N@,$ECHO_N,;t t |
| 21864 | s,@ECHO_T@,$ECHO_T,;t t |
| 21865 | s,@LIBS@,$LIBS,;t t |
| 21866 | s,@VERSION@,$VERSION,;t t |
| 21867 | s,@SOVERSION@,$SOVERSION,;t t |
| 21868 | s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t |
| 21869 | s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t |
| 21870 | s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t |
| 21871 | s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t |
| 21872 | s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t |
| 21873 | s,@MACHDEP@,$MACHDEP,;t t |
| 21874 | s,@SGI_ABI@,$SGI_ABI,;t t |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 21875 | s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 21876 | s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 21877 | 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] | 21878 | s,@CXX@,$CXX,;t t |
| 21879 | s,@MAINOBJ@,$MAINOBJ,;t t |
| 21880 | s,@EXEEXT@,$EXEEXT,;t t |
| 21881 | s,@CC@,$CC,;t t |
| 21882 | s,@CFLAGS@,$CFLAGS,;t t |
| 21883 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 21884 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 21885 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 21886 | s,@OBJEXT@,$OBJEXT,;t t |
| 21887 | s,@CPP@,$CPP,;t t |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21888 | s,@EGREP@,$EGREP,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21889 | s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t |
| 21890 | s,@LIBRARY@,$LIBRARY,;t t |
| 21891 | s,@LDLIBRARY@,$LDLIBRARY,;t t |
| 21892 | s,@DLLLIBRARY@,$DLLLIBRARY,;t t |
| 21893 | s,@BLDLIBRARY@,$BLDLIBRARY,;t t |
| 21894 | s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t |
| 21895 | s,@INSTSONAME@,$INSTSONAME,;t t |
| 21896 | s,@RUNSHARED@,$RUNSHARED,;t t |
| 21897 | s,@LINKCC@,$LINKCC,;t t |
| 21898 | s,@RANLIB@,$RANLIB,;t t |
| 21899 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 21900 | s,@AR@,$AR,;t t |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 21901 | s,@SVNVERSION@,$SVNVERSION,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21902 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 21903 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 21904 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 21905 | s,@LN@,$LN,;t t |
| 21906 | s,@OPT@,$OPT,;t t |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 21907 | s,@BASECFLAGS@,$BASECFLAGS,;t t |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 21908 | s,@OTHER_LIBTOOL_OPT@,$OTHER_LIBTOOL_OPT,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21909 | s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t |
| 21910 | s,@SO@,$SO,;t t |
| 21911 | s,@LDSHARED@,$LDSHARED,;t t |
| 21912 | s,@BLDSHARED@,$BLDSHARED,;t t |
| 21913 | s,@CCSHARED@,$CCSHARED,;t t |
| 21914 | s,@LINKFORSHARED@,$LINKFORSHARED,;t t |
| 21915 | s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 21916 | s,@SHLIBS@,$SHLIBS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21917 | s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t |
| 21918 | s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t |
| 21919 | s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t |
| 21920 | s,@LDLAST@,$LDLAST,;t t |
| 21921 | s,@THREADOBJ@,$THREADOBJ,;t t |
| 21922 | s,@DLINCLDIR@,$DLINCLDIR,;t t |
| 21923 | s,@DYNLOADFILE@,$DYNLOADFILE,;t t |
| 21924 | s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 21925 | s,@TRUE@,$TRUE,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21926 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 21927 | s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t |
| 21928 | s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t |
| 21929 | s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t |
| 21930 | s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t |
| 21931 | s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t |
| 21932 | s,@LIBM@,$LIBM,;t t |
| 21933 | s,@LIBC@,$LIBC,;t t |
| 21934 | s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t |
| 21935 | s,@THREADHEADERS@,$THREADHEADERS,;t t |
| 21936 | s,@SRCDIRS@,$SRCDIRS,;t t |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21937 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21938 | CEOF |
| 21939 | |
| 21940 | _ACEOF |
| 21941 | |
| 21942 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21943 | # Split the substitutions into bite-sized pieces for seds with |
| 21944 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 21945 | ac_max_sed_lines=48 |
| 21946 | ac_sed_frag=1 # Number of current file. |
| 21947 | ac_beg=1 # First line for current file. |
| 21948 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 21949 | ac_more_lines=: |
| 21950 | ac_sed_cmds= |
| 21951 | while $ac_more_lines; do |
| 21952 | if test $ac_beg -gt 1; then |
| 21953 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 21954 | else |
| 21955 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 21956 | fi |
| 21957 | if test ! -s $tmp/subs.frag; then |
| 21958 | ac_more_lines=false |
| 21959 | else |
| 21960 | # The purpose of the label and of the branching condition is to |
| 21961 | # speed up the sed processing (if there are no `@' at all, there |
| 21962 | # is no need to browse any of the substitutions). |
| 21963 | # These are the two extra sed commands mentioned above. |
| 21964 | (echo ':t |
| 21965 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 21966 | if test -z "$ac_sed_cmds"; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21967 | 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] | 21968 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21969 | 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] | 21970 | fi |
| 21971 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 21972 | ac_beg=$ac_end |
| 21973 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 21974 | fi |
| 21975 | done |
| 21976 | if test -z "$ac_sed_cmds"; then |
| 21977 | ac_sed_cmds=cat |
| 21978 | fi |
| 21979 | fi # test -n "$CONFIG_FILES" |
| 21980 | |
| 21981 | _ACEOF |
| 21982 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21983 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 21984 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 21985 | case $ac_file in |
| 21986 | - | *:- | *:-:* ) # input from stdin |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21987 | cat >$tmp/stdin |
| 21988 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 21989 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21990 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21991 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21992 | * ) ac_file_in=$ac_file.in ;; |
| 21993 | esac |
| 21994 | |
| 21995 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 21996 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 21997 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21998 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 21999 | X"$ac_file" : 'X\(//\)$' \| \ |
| 22000 | X"$ac_file" : 'X\(/\)' \| \ |
| 22001 | . : '\(.\)' 2>/dev/null || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22002 | echo X"$ac_file" | |
| 22003 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 22004 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 22005 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 22006 | /^X\(\/\).*/{ s//\1/; q; } |
| 22007 | s/.*/./; q'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22008 | { if $as_mkdir_p; then |
| 22009 | mkdir -p "$ac_dir" |
| 22010 | else |
| 22011 | as_dir="$ac_dir" |
| 22012 | as_dirs= |
| 22013 | while test ! -d "$as_dir"; do |
| 22014 | as_dirs="$as_dir $as_dirs" |
| 22015 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 22016 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22017 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 22018 | X"$as_dir" : 'X\(//\)$' \| \ |
| 22019 | X"$as_dir" : 'X\(/\)' \| \ |
| 22020 | . : '\(.\)' 2>/dev/null || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22021 | echo X"$as_dir" | |
| 22022 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 22023 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 22024 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 22025 | /^X\(\/\).*/{ s//\1/; q; } |
| 22026 | s/.*/./; q'` |
| 22027 | done |
| 22028 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 22029 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 22030 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 22031 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22032 | |
| 22033 | ac_builddir=. |
| 22034 | |
| 22035 | if test "$ac_dir" != .; then |
| 22036 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 22037 | # A "../" for each directory in $ac_dir_suffix. |
| 22038 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 22039 | else |
| 22040 | ac_dir_suffix= ac_top_builddir= |
| 22041 | fi |
| 22042 | |
| 22043 | case $srcdir in |
| 22044 | .) # No --srcdir option. We are building in place. |
| 22045 | ac_srcdir=. |
| 22046 | if test -z "$ac_top_builddir"; then |
| 22047 | ac_top_srcdir=. |
| 22048 | else |
| 22049 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 22050 | fi ;; |
| 22051 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 22052 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 22053 | ac_top_srcdir=$srcdir ;; |
| 22054 | *) # Relative path. |
| 22055 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 22056 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 22057 | esac |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22058 | |
| 22059 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 22060 | # the directories may not exist. |
| 22061 | case `pwd` in |
| 22062 | .) ac_abs_builddir="$ac_dir";; |
| 22063 | *) |
| 22064 | case "$ac_dir" in |
| 22065 | .) ac_abs_builddir=`pwd`;; |
| 22066 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 22067 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 22068 | esac;; |
| 22069 | esac |
| 22070 | case $ac_abs_builddir in |
| 22071 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 22072 | *) |
| 22073 | case ${ac_top_builddir}. in |
| 22074 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 22075 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 22076 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 22077 | esac;; |
| 22078 | esac |
| 22079 | case $ac_abs_builddir in |
| 22080 | .) ac_abs_srcdir=$ac_srcdir;; |
| 22081 | *) |
| 22082 | case $ac_srcdir in |
| 22083 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 22084 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 22085 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 22086 | esac;; |
| 22087 | esac |
| 22088 | case $ac_abs_builddir in |
| 22089 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 22090 | *) |
| 22091 | case $ac_top_srcdir in |
| 22092 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 22093 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 22094 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 22095 | esac;; |
| 22096 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22097 | |
| 22098 | |
| 22099 | case $INSTALL in |
| 22100 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 22101 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 22102 | esac |
| 22103 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22104 | if test x"$ac_file" != x-; then |
| 22105 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 22106 | echo "$as_me: creating $ac_file" >&6;} |
| 22107 | rm -f "$ac_file" |
| 22108 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22109 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 22110 | # use $as_me), people would be surprised to read: |
| 22111 | # /* config.h. Generated by config.status. */ |
| 22112 | if test x"$ac_file" = x-; then |
| 22113 | configure_input= |
| 22114 | else |
| 22115 | configure_input="$ac_file. " |
| 22116 | fi |
| 22117 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22118 | sed 's,.*/,,'` by configure." |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22119 | |
| 22120 | # First look for the input files in the build tree, otherwise in the |
| 22121 | # src tree. |
| 22122 | ac_file_inputs=`IFS=: |
| 22123 | for f in $ac_file_in; do |
| 22124 | case $f in |
| 22125 | -) echo $tmp/stdin ;; |
| 22126 | [\\/$]*) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22127 | # Absolute (can't be DOS-style, as IFS=:) |
| 22128 | 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] | 22129 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 22130 | { (exit 1); exit 1; }; } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22131 | echo "$f";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22132 | *) # Relative |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22133 | if test -f "$f"; then |
| 22134 | # Build tree |
| 22135 | echo "$f" |
| 22136 | elif test -f "$srcdir/$f"; then |
| 22137 | # Source tree |
| 22138 | echo "$srcdir/$f" |
| 22139 | else |
| 22140 | # /dev/null tree |
| 22141 | { { 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] | 22142 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 22143 | { (exit 1); exit 1; }; } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22144 | fi;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22145 | esac |
| 22146 | done` || { (exit 1); exit 1; } |
| 22147 | _ACEOF |
| 22148 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22149 | sed "$ac_vpsub |
| 22150 | $extrasub |
| 22151 | _ACEOF |
| 22152 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 22153 | :t |
| 22154 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 22155 | s,@configure_input@,$configure_input,;t t |
| 22156 | s,@srcdir@,$ac_srcdir,;t t |
| 22157 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 22158 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 22159 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 22160 | s,@builddir@,$ac_builddir,;t t |
| 22161 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 22162 | s,@top_builddir@,$ac_top_builddir,;t t |
| 22163 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 22164 | s,@INSTALL@,$ac_INSTALL,;t t |
| 22165 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 22166 | rm -f $tmp/stdin |
| 22167 | if test x"$ac_file" != x-; then |
| 22168 | mv $tmp/out $ac_file |
| 22169 | else |
| 22170 | cat $tmp/out |
| 22171 | rm -f $tmp/out |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22172 | fi |
| 22173 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22174 | done |
| 22175 | _ACEOF |
| 22176 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22177 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22178 | # |
| 22179 | # CONFIG_HEADER section. |
| 22180 | # |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22181 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22182 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 22183 | # 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] | 22184 | # |
| 22185 | # ac_d sets the value in "#define NAME VALUE" lines. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22186 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 22187 | ac_dB='[ ].*$,\1#\2' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22188 | ac_dC=' ' |
| 22189 | ac_dD=',;t' |
| 22190 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22191 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22192 | ac_uB='$,\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22193 | ac_uC=' ' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22194 | ac_uD=',;t' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22195 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22196 | 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] | 22197 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22198 | case $ac_file in |
| 22199 | - | *:- | *:-:* ) # input from stdin |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22200 | cat >$tmp/stdin |
| 22201 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 22202 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22203 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22204 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22205 | * ) ac_file_in=$ac_file.in ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22206 | esac |
| 22207 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22208 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 22209 | echo "$as_me: creating $ac_file" >&6;} |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22210 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22211 | # First look for the input files in the build tree, otherwise in the |
| 22212 | # src tree. |
| 22213 | ac_file_inputs=`IFS=: |
| 22214 | for f in $ac_file_in; do |
| 22215 | case $f in |
| 22216 | -) echo $tmp/stdin ;; |
| 22217 | [\\/$]*) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22218 | # Absolute (can't be DOS-style, as IFS=:) |
| 22219 | 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] | 22220 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 22221 | { (exit 1); exit 1; }; } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22222 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 22223 | echo "$f";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22224 | *) # Relative |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22225 | if test -f "$f"; then |
| 22226 | # Build tree |
| 22227 | echo "$f" |
| 22228 | elif test -f "$srcdir/$f"; then |
| 22229 | # Source tree |
| 22230 | echo "$srcdir/$f" |
| 22231 | else |
| 22232 | # /dev/null tree |
| 22233 | { { 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] | 22234 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 22235 | { (exit 1); exit 1; }; } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22236 | fi;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22237 | esac |
| 22238 | done` || { (exit 1); exit 1; } |
| 22239 | # Remove the trailing spaces. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22240 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22241 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22242 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22243 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22244 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 22245 | # `conftest.undefs', that substitutes the proper values into |
| 22246 | # config.h.in to produce config.h. The first handles `#define' |
| 22247 | # templates, and the second `#undef' templates. |
| 22248 | # And first: Protect against being on the right side of a sed subst in |
| 22249 | # config.status. Protect against being in an unquoted here document |
| 22250 | # in config.status. |
| 22251 | rm -f conftest.defines conftest.undefs |
| 22252 | # Using a here document instead of a string reduces the quoting nightmare. |
| 22253 | # Putting comments in sed scripts is not portable. |
| 22254 | # |
| 22255 | # `end' is used to avoid that the second main sed command (meant for |
| 22256 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 22257 | # See the Autoconf documentation for `clear'. |
| 22258 | cat >confdef2sed.sed <<\_ACEOF |
| 22259 | s/[\\&,]/\\&/g |
| 22260 | s,[\\$`],\\&,g |
| 22261 | t clear |
| 22262 | : clear |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22263 | 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] | 22264 | t end |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22265 | 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] | 22266 | : end |
| 22267 | _ACEOF |
| 22268 | # If some macros were called several times there might be several times |
| 22269 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 22270 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 22271 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 22272 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 22273 | rm -f confdef2sed.sed |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22274 | |
| 22275 | # This sed command replaces #undef with comments. This is necessary, for |
| 22276 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 22277 | # 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] | 22278 | cat >>conftest.undefs <<\_ACEOF |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22279 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22280 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22281 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22282 | # Break up conftest.defines because some shells have a limit on the size |
| 22283 | # of here documents, and old seds have small limits too (100 cmds). |
| 22284 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22285 | 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] | 22286 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 22287 | echo ' :' >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 22288 | rm -f conftest.tail |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22289 | while grep . conftest.defines >/dev/null |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 22290 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22291 | # Write a limited-size here document to $tmp/defines.sed. |
| 22292 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 22293 | # Speed up: don't consider the non `#define' lines. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22294 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22295 | # Work around the forget-to-reset-the-flag bug. |
| 22296 | echo 't clr' >>$CONFIG_STATUS |
| 22297 | echo ': clr' >>$CONFIG_STATUS |
| 22298 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 22299 | echo 'CEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22300 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 22301 | rm -f $tmp/in |
| 22302 | mv $tmp/out $tmp/in |
| 22303 | ' >>$CONFIG_STATUS |
| 22304 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 22305 | rm -f conftest.defines |
| 22306 | mv conftest.tail conftest.defines |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 22307 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22308 | rm -f conftest.defines |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22309 | echo ' fi # grep' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22310 | echo >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 22311 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22312 | # Break up conftest.undefs because some shells have a limit on the size |
| 22313 | # of here documents, and old seds have small limits too (100 cmds). |
| 22314 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 22315 | rm -f conftest.tail |
| 22316 | while grep . conftest.undefs >/dev/null |
| 22317 | do |
| 22318 | # Write a limited-size here document to $tmp/undefs.sed. |
| 22319 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 22320 | # Speed up: don't consider the non `#undef' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22321 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22322 | # Work around the forget-to-reset-the-flag bug. |
| 22323 | echo 't clr' >>$CONFIG_STATUS |
| 22324 | echo ': clr' >>$CONFIG_STATUS |
| 22325 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 22326 | echo 'CEOF |
| 22327 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 22328 | rm -f $tmp/in |
| 22329 | mv $tmp/out $tmp/in |
| 22330 | ' >>$CONFIG_STATUS |
| 22331 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 22332 | rm -f conftest.undefs |
| 22333 | mv conftest.tail conftest.undefs |
| 22334 | done |
| 22335 | rm -f conftest.undefs |
| 22336 | |
| 22337 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 22338 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 22339 | # use $as_me), people would be surprised to read: |
| 22340 | # /* config.h. Generated by config.status. */ |
| 22341 | if test x"$ac_file" = x-; then |
| 22342 | echo "/* Generated by configure. */" >$tmp/config.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22343 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22344 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 22345 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22346 | cat $tmp/in >>$tmp/config.h |
| 22347 | rm -f $tmp/in |
| 22348 | if test x"$ac_file" != x-; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22349 | 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] | 22350 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 22351 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 22352 | else |
| 22353 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 22354 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22355 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 22356 | X"$ac_file" : 'X\(//\)$' \| \ |
| 22357 | X"$ac_file" : 'X\(/\)' \| \ |
| 22358 | . : '\(.\)' 2>/dev/null || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22359 | echo X"$ac_file" | |
| 22360 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 22361 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 22362 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 22363 | /^X\(\/\).*/{ s//\1/; q; } |
| 22364 | s/.*/./; q'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22365 | { if $as_mkdir_p; then |
| 22366 | mkdir -p "$ac_dir" |
| 22367 | else |
| 22368 | as_dir="$ac_dir" |
| 22369 | as_dirs= |
| 22370 | while test ! -d "$as_dir"; do |
| 22371 | as_dirs="$as_dir $as_dirs" |
| 22372 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 22373 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22374 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 22375 | X"$as_dir" : 'X\(//\)$' \| \ |
| 22376 | X"$as_dir" : 'X\(/\)' \| \ |
| 22377 | . : '\(.\)' 2>/dev/null || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22378 | echo X"$as_dir" | |
| 22379 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 22380 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 22381 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 22382 | /^X\(\/\).*/{ s//\1/; q; } |
| 22383 | s/.*/./; q'` |
| 22384 | done |
| 22385 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 22386 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 22387 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 22388 | { (exit 1); exit 1; }; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22389 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22390 | rm -f $ac_file |
| 22391 | mv $tmp/config.h $ac_file |
| 22392 | fi |
| 22393 | else |
| 22394 | cat $tmp/config.h |
| 22395 | rm -f $tmp/config.h |
| 22396 | fi |
| 22397 | done |
| 22398 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22399 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22400 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22401 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22402 | { (exit 0); exit 0; } |
| 22403 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22404 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22405 | ac_clean_files=$ac_clean_files_save |
| 22406 | |
| 22407 | |
| 22408 | # configure is writing to config.log, and then calls config.status. |
| 22409 | # config.status does its own redirection, appending to config.log. |
| 22410 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 22411 | # by configure, so config.status won't be able to write to it; its |
| 22412 | # output is simply discarded. So we exec the FD to /dev/null, |
| 22413 | # effectively closing config.log, so it can be properly (re)opened and |
| 22414 | # appended to by config.status. When coming back to configure, we |
| 22415 | # need to make the FD available again. |
| 22416 | if test "$no_create" != yes; then |
| 22417 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22418 | ac_config_status_args= |
| 22419 | test "$silent" = yes && |
| 22420 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22421 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22422 | $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] | 22423 | exec 5>>config.log |
| 22424 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 22425 | # would make configure fail if this is the last instruction. |
| 22426 | $ac_cs_success || { (exit 1); exit 1; } |
| 22427 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22428 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 22429 | |
| 22430 | echo "creating Setup" |
| 22431 | if test ! -f Modules/Setup |
| 22432 | then |
| 22433 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 22434 | fi |
| 22435 | |
| 22436 | echo "creating Setup.local" |
| 22437 | if test ! -f Modules/Setup.local |
| 22438 | then |
| 22439 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 22440 | fi |
| 22441 | |
| 22442 | echo "creating Makefile" |
| 22443 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 22444 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 22445 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 22446 | mv config.c Modules |