Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame^] | 2 | # From configure.in Revision: 52843 . |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. |
Neal Norwitz | 9be5732 | 2006-08-18 05:39:20 +0000 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.59 for python 2.6. |
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' |
Neal Norwitz | 9be5732 | 2006-08-18 05:39:20 +0000 | [diff] [blame] | 273 | PACKAGE_VERSION='2.6' |
| 274 | PACKAGE_STRING='python 2.6' |
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 | |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +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 UNIVERSALSDK PYTHONFRAMEWORK PYTHONFRAMEWORKDIR PYTHONFRAMEWORKPREFIX PYTHONFRAMEWORKINSTALLDIR FRAMEWORKINSTALLFIRST FRAMEWORKINSTALLLAST FRAMEWORKALTINSTALLFIRST FRAMEWORKALTINSTALLLAST FRAMEWORKUNIXTOOLSPREFIX MACHDEP SGI_ABI EXTRAPLATDIR EXTRAMACHDEPPATH CONFIGURE_MACOSX_DEPLOYMENT_TARGET EXPORT_MACOSX_DEPLOYMENT_TARGET CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX MAINCC 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 |
Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 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 |
Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +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 |
Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 740 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 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 |
Neal Norwitz | 9be5732 | 2006-08-18 05:39:20 +0000 | [diff] [blame] | 784 | \`configure' configures python 2.6 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 |
Neal Norwitz | 9be5732 | 2006-08-18 05:39:20 +0000 | [diff] [blame] | 841 | short | recursive ) echo "Configuration of python 2.6:";; |
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] |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 848 | --enable-universalsdk[SDKDIR] |
| 849 | Build agains Mac OS X 10.4u SDK (ppc/i386) |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 850 | --enable-framework[=INSTALLDIR] |
| 851 | Build (MacOSX|Darwin) framework |
| 852 | --enable-shared disable/enable building shared python library |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 853 | --enable-profiling enable C-level code profiling |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 854 | --enable-toolbox-glue disable/enable MacOSX glue code for extensions |
| 855 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 856 | --disable-ipv6 Disable ipv6 support |
| 857 | --enable-unicode[=ucs[24]] |
| 858 | Enable Unicode strings (default is yes) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 859 | |
| 860 | Optional Packages: |
| 861 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 862 | --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] | 863 | --without-gcc never use gcc |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 864 | --with-cxx-main=<compiler> |
| 865 | compile main() and link python executable with C++ |
| 866 | compiler |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 867 | --with-suffix=.exe set executable suffix |
| 868 | --with-pydebug build with Py_DEBUG defined |
| 869 | --with-libs='lib1 ...' link against additional libs |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 870 | --with-system-ffi build _ctypes module using an installed ffi library |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 871 | --with-signal-module disable/enable signal module |
| 872 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries |
| 873 | --with(out)-threads[=DIRECTORY] |
| 874 | disable/enable thread support |
| 875 | --with(out)-thread[=DIRECTORY] |
| 876 | deprecated; use --with(out)-threads |
| 877 | --with-pth use GNU pth threading libraries |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 878 | --with(out)-doc-strings disable/enable documentation strings |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 879 | --with(out)-tsc enable/disable timestamp counter profile |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 880 | --with(out)-pymalloc disable/enable specialized mallocs |
| 881 | --with-wctype-functions use wctype.h functions |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 882 | --with-fpectl enable SIGFPE catching |
| 883 | --with-libm=STRING math library |
| 884 | --with-libc=STRING C library |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 885 | |
| 886 | Some influential environment variables: |
| 887 | CC C compiler command |
| 888 | CFLAGS C compiler flags |
| 889 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 890 | nonstandard directory <lib dir> |
| 891 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 892 | headers in a nonstandard directory <include dir> |
| 893 | CPP C preprocessor |
| 894 | |
| 895 | Use these variables to override the choices made by `configure' or to help |
| 896 | it to find libraries and programs with nonstandard names/locations. |
| 897 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 898 | Report bugs to <http://www.python.org/python-bugs>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 899 | _ACEOF |
| 900 | fi |
| 901 | |
| 902 | if test "$ac_init_help" = "recursive"; then |
| 903 | # If there are subdirs, report their specific --help. |
| 904 | ac_popdir=`pwd` |
| 905 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 906 | test -d $ac_dir || continue |
| 907 | ac_builddir=. |
| 908 | |
| 909 | if test "$ac_dir" != .; then |
| 910 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 911 | # A "../" for each directory in $ac_dir_suffix. |
| 912 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 913 | else |
| 914 | ac_dir_suffix= ac_top_builddir= |
| 915 | fi |
| 916 | |
| 917 | case $srcdir in |
| 918 | .) # No --srcdir option. We are building in place. |
| 919 | ac_srcdir=. |
| 920 | if test -z "$ac_top_builddir"; then |
| 921 | ac_top_srcdir=. |
| 922 | else |
| 923 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 924 | fi ;; |
| 925 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 926 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 927 | ac_top_srcdir=$srcdir ;; |
| 928 | *) # Relative path. |
| 929 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 930 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 931 | esac |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 932 | |
| 933 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 934 | # the directories may not exist. |
| 935 | case `pwd` in |
| 936 | .) ac_abs_builddir="$ac_dir";; |
| 937 | *) |
| 938 | case "$ac_dir" in |
| 939 | .) ac_abs_builddir=`pwd`;; |
| 940 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 941 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 942 | esac;; |
| 943 | esac |
| 944 | case $ac_abs_builddir in |
| 945 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 946 | *) |
| 947 | case ${ac_top_builddir}. in |
| 948 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 949 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 950 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 951 | esac;; |
| 952 | esac |
| 953 | case $ac_abs_builddir in |
| 954 | .) ac_abs_srcdir=$ac_srcdir;; |
| 955 | *) |
| 956 | case $ac_srcdir in |
| 957 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 958 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 959 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 960 | esac;; |
| 961 | esac |
| 962 | case $ac_abs_builddir in |
| 963 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 964 | *) |
| 965 | case $ac_top_srcdir in |
| 966 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 967 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 968 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 969 | esac;; |
| 970 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 971 | |
| 972 | cd $ac_dir |
| 973 | # Check for guested configure; otherwise get Cygnus style configure. |
| 974 | if test -f $ac_srcdir/configure.gnu; then |
| 975 | echo |
| 976 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 977 | elif test -f $ac_srcdir/configure; then |
| 978 | echo |
| 979 | $SHELL $ac_srcdir/configure --help=recursive |
| 980 | elif test -f $ac_srcdir/configure.ac || |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 981 | test -f $ac_srcdir/configure.in; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 982 | echo |
| 983 | $ac_configure --help |
| 984 | else |
| 985 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 986 | fi |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 987 | cd $ac_popdir |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 988 | done |
| 989 | fi |
| 990 | |
| 991 | test -n "$ac_init_help" && exit 0 |
| 992 | if $ac_init_version; then |
| 993 | cat <<\_ACEOF |
Neal Norwitz | 9be5732 | 2006-08-18 05:39:20 +0000 | [diff] [blame] | 994 | python configure 2.6 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 995 | generated by GNU Autoconf 2.59 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 996 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 997 | Copyright (C) 2003 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 998 | This configure script is free software; the Free Software Foundation |
| 999 | gives unlimited permission to copy, distribute and modify it. |
| 1000 | _ACEOF |
| 1001 | exit 0 |
| 1002 | fi |
| 1003 | exec 5>config.log |
| 1004 | cat >&5 <<_ACEOF |
| 1005 | This file contains any messages produced by compilers while |
| 1006 | running configure, to aid debugging if configure makes a mistake. |
| 1007 | |
Neal Norwitz | 9be5732 | 2006-08-18 05:39:20 +0000 | [diff] [blame] | 1008 | It was created by python $as_me 2.6, which was |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1009 | generated by GNU Autoconf 2.59. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1010 | |
| 1011 | $ $0 $@ |
| 1012 | |
| 1013 | _ACEOF |
| 1014 | { |
| 1015 | cat <<_ASUNAME |
| 1016 | ## --------- ## |
| 1017 | ## Platform. ## |
| 1018 | ## --------- ## |
| 1019 | |
| 1020 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1021 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1022 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1023 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1024 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1025 | |
| 1026 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1027 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1028 | |
| 1029 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1030 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1031 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1032 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1033 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1034 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1035 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1036 | |
| 1037 | _ASUNAME |
| 1038 | |
| 1039 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1040 | for as_dir in $PATH |
| 1041 | do |
| 1042 | IFS=$as_save_IFS |
| 1043 | test -z "$as_dir" && as_dir=. |
| 1044 | echo "PATH: $as_dir" |
| 1045 | done |
| 1046 | |
| 1047 | } >&5 |
| 1048 | |
| 1049 | cat >&5 <<_ACEOF |
| 1050 | |
| 1051 | |
| 1052 | ## ----------- ## |
| 1053 | ## Core tests. ## |
| 1054 | ## ----------- ## |
| 1055 | |
| 1056 | _ACEOF |
| 1057 | |
| 1058 | |
| 1059 | # Keep a trace of the command line. |
| 1060 | # 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] | 1061 | # 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] | 1062 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1063 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1064 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1065 | ac_configure_args0= |
| 1066 | ac_configure_args1= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1067 | ac_sep= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1068 | ac_must_keep_next=false |
| 1069 | for ac_pass in 1 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1070 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1071 | for ac_arg |
| 1072 | do |
| 1073 | case $ac_arg in |
| 1074 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1075 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1076 | | -silent | --silent | --silen | --sile | --sil) |
| 1077 | continue ;; |
| 1078 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1079 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1080 | esac |
| 1081 | case $ac_pass in |
| 1082 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1083 | 2) |
| 1084 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1085 | if test $ac_must_keep_next = true; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1086 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1087 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1088 | case $ac_arg in |
| 1089 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1090 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1091 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1092 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1093 | case "$ac_configure_args0 " in |
| 1094 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1095 | esac |
| 1096 | ;; |
| 1097 | -* ) ac_must_keep_next=true ;; |
| 1098 | esac |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1099 | fi |
| 1100 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1101 | # Get rid of the leading space. |
| 1102 | ac_sep=" " |
| 1103 | ;; |
| 1104 | esac |
| 1105 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1106 | done |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1107 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1108 | $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] | 1109 | |
| 1110 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1111 | # config.log. We remove comments because anyway the quotes in there |
| 1112 | # would cause problems or look ugly. |
| 1113 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1114 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1115 | trap 'exit_status=$? |
| 1116 | # Save into config.log some information that might help in debugging. |
| 1117 | { |
| 1118 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1119 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1120 | cat <<\_ASBOX |
| 1121 | ## ---------------- ## |
| 1122 | ## Cache variables. ## |
| 1123 | ## ---------------- ## |
| 1124 | _ASBOX |
| 1125 | echo |
| 1126 | # The following way of writing the cache mishandles newlines in values, |
| 1127 | { |
| 1128 | (set) 2>&1 | |
| 1129 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1130 | *ac_space=\ *) |
| 1131 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1132 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1133 | 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] | 1134 | ;; |
| 1135 | *) |
| 1136 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1137 | "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] | 1138 | ;; |
| 1139 | esac; |
| 1140 | } |
| 1141 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1142 | |
| 1143 | cat <<\_ASBOX |
| 1144 | ## ----------------- ## |
| 1145 | ## Output variables. ## |
| 1146 | ## ----------------- ## |
| 1147 | _ASBOX |
| 1148 | echo |
| 1149 | for ac_var in $ac_subst_vars |
| 1150 | do |
| 1151 | eval ac_val=$`echo $ac_var` |
| 1152 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1153 | done | sort |
| 1154 | echo |
| 1155 | |
| 1156 | if test -n "$ac_subst_files"; then |
| 1157 | cat <<\_ASBOX |
| 1158 | ## ------------- ## |
| 1159 | ## Output files. ## |
| 1160 | ## ------------- ## |
| 1161 | _ASBOX |
| 1162 | echo |
| 1163 | for ac_var in $ac_subst_files |
| 1164 | do |
| 1165 | eval ac_val=$`echo $ac_var` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1166 | echo "$ac_var='"'"'$ac_val'"'"'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1167 | done | sort |
| 1168 | echo |
| 1169 | fi |
| 1170 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1171 | if test -s confdefs.h; then |
| 1172 | cat <<\_ASBOX |
| 1173 | ## ----------- ## |
| 1174 | ## confdefs.h. ## |
| 1175 | ## ----------- ## |
| 1176 | _ASBOX |
| 1177 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1178 | sed "/^$/d" confdefs.h | sort |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1179 | echo |
| 1180 | fi |
| 1181 | test "$ac_signal" != 0 && |
| 1182 | echo "$as_me: caught signal $ac_signal" |
| 1183 | echo "$as_me: exit $exit_status" |
| 1184 | } >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1185 | rm -f core *.core && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1186 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1187 | exit $exit_status |
| 1188 | ' 0 |
| 1189 | for ac_signal in 1 2 13 15; do |
| 1190 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1191 | done |
| 1192 | ac_signal=0 |
| 1193 | |
| 1194 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1195 | rm -rf conftest* confdefs.h |
| 1196 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1197 | echo >confdefs.h |
| 1198 | |
| 1199 | # Predefined preprocessor variables. |
| 1200 | |
| 1201 | cat >>confdefs.h <<_ACEOF |
| 1202 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1203 | _ACEOF |
| 1204 | |
| 1205 | |
| 1206 | cat >>confdefs.h <<_ACEOF |
| 1207 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1208 | _ACEOF |
| 1209 | |
| 1210 | |
| 1211 | cat >>confdefs.h <<_ACEOF |
| 1212 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1213 | _ACEOF |
| 1214 | |
| 1215 | |
| 1216 | cat >>confdefs.h <<_ACEOF |
| 1217 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1218 | _ACEOF |
| 1219 | |
| 1220 | |
| 1221 | cat >>confdefs.h <<_ACEOF |
| 1222 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1223 | _ACEOF |
| 1224 | |
| 1225 | |
| 1226 | # 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] | 1227 | # Prefer explicitly selected file to automatically selected ones. |
| 1228 | if test -z "$CONFIG_SITE"; then |
| 1229 | if test "x$prefix" != xNONE; then |
| 1230 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1231 | else |
| 1232 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1233 | fi |
| 1234 | fi |
| 1235 | for ac_site_file in $CONFIG_SITE; do |
| 1236 | if test -r "$ac_site_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1237 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1238 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1239 | sed 's/^/| /' "$ac_site_file" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1240 | . "$ac_site_file" |
| 1241 | fi |
| 1242 | done |
| 1243 | |
| 1244 | if test -r "$cache_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1245 | # Some versions of bash will fail to source /dev/null (special |
| 1246 | # files actually), so we avoid doing that. |
| 1247 | if test -f "$cache_file"; then |
| 1248 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1249 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1250 | case $cache_file in |
| 1251 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1252 | *) . ./$cache_file;; |
| 1253 | esac |
| 1254 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1255 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1256 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1257 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1258 | >$cache_file |
| 1259 | fi |
| 1260 | |
| 1261 | # Check that the precious variables saved in the cache have kept the same |
| 1262 | # value. |
| 1263 | ac_cache_corrupted=false |
| 1264 | for ac_var in `(set) 2>&1 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1265 | 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] | 1266 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1267 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1268 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1269 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1270 | case $ac_old_set,$ac_new_set in |
| 1271 | set,) |
| 1272 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1273 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1274 | ac_cache_corrupted=: ;; |
| 1275 | ,set) |
| 1276 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1277 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1278 | ac_cache_corrupted=: ;; |
| 1279 | ,);; |
| 1280 | *) |
| 1281 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1282 | { 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] | 1283 | 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] | 1284 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1285 | echo "$as_me: former value: $ac_old_val" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1286 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1287 | echo "$as_me: current value: $ac_new_val" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1288 | ac_cache_corrupted=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1289 | fi;; |
| 1290 | esac |
| 1291 | # Pass precious variables to config.status. |
| 1292 | if test "$ac_new_set" = set; then |
| 1293 | case $ac_new_val in |
| 1294 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1295 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1296 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1297 | esac |
| 1298 | case " $ac_configure_args " in |
| 1299 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1300 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1301 | esac |
| 1302 | fi |
| 1303 | done |
| 1304 | if $ac_cache_corrupted; then |
| 1305 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1306 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1307 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1308 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1309 | { (exit 1); exit 1; }; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1310 | fi |
| 1311 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1312 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1313 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1314 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1315 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1316 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1317 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1318 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1319 | |
| 1320 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1321 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1322 | |
| 1323 | |
| 1324 | |
| 1325 | |
| 1326 | |
| 1327 | |
| 1328 | |
| 1329 | |
| 1330 | |
| 1331 | |
| 1332 | |
| 1333 | |
| 1334 | |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1335 | |
| 1336 | |
| 1337 | |
| 1338 | |
| 1339 | |
| 1340 | |
| 1341 | |
| 1342 | |
| 1343 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1344 | |
| 1345 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1346 | |
| 1347 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1348 | |
| 1349 | |
| 1350 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1351 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1352 | |
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 1353 | # We don't use PACKAGE_ variables, and they cause conflicts |
| 1354 | # with other autoconf-based packages that include Python.h |
| 1355 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| 1356 | rm confdefs.h |
| 1357 | mv confdefs.h.new confdefs.h |
| 1358 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1359 | |
Neal Norwitz | 9be5732 | 2006-08-18 05:39:20 +0000 | [diff] [blame] | 1360 | VERSION=2.6 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1361 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 1362 | |
| 1363 | SOVERSION=1.0 |
| 1364 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1365 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 1366 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 1367 | |
| 1368 | cat >>confdefs.h <<\_ACEOF |
| 1369 | #define _GNU_SOURCE 1 |
| 1370 | _ACEOF |
| 1371 | |
| 1372 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 1373 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1374 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 1375 | # them. |
| 1376 | |
| 1377 | cat >>confdefs.h <<\_ACEOF |
| 1378 | #define _NETBSD_SOURCE 1 |
| 1379 | _ACEOF |
| 1380 | |
| 1381 | |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 1382 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1383 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| 1384 | # them. |
| 1385 | |
| 1386 | cat >>confdefs.h <<\_ACEOF |
| 1387 | #define __BSD_VISIBLE 1 |
| 1388 | _ACEOF |
| 1389 | |
| 1390 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 1391 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1392 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. |
| 1393 | |
| 1394 | cat >>confdefs.h <<\_ACEOF |
| 1395 | #define _BSD_TYPES 1 |
| 1396 | _ACEOF |
| 1397 | |
| 1398 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1399 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1400 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 1401 | # Arguments passed to configure. |
| 1402 | |
| 1403 | CONFIG_ARGS="$ac_configure_args" |
| 1404 | |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1405 | # Check whether --enable-universalsdk or --disable-universalsdk was given. |
| 1406 | if test "${enable_universalsdk+set}" = set; then |
| 1407 | enableval="$enable_universalsdk" |
| 1408 | |
| 1409 | case $enableval in |
| 1410 | yes) |
| 1411 | enableval=/Developer/SDKs/MacOSX10.4u.sdk |
| 1412 | ;; |
| 1413 | esac |
| 1414 | case $enableval in |
| 1415 | no) |
| 1416 | UNIVERSALSDK= |
| 1417 | enable_universalsdk= |
| 1418 | ;; |
| 1419 | *) |
| 1420 | UNIVERSALSDK=$enableval |
| 1421 | ;; |
| 1422 | esac |
| 1423 | |
| 1424 | else |
| 1425 | |
| 1426 | UNIVERSALSDK= |
| 1427 | enable_universalsdk= |
| 1428 | |
| 1429 | fi; |
| 1430 | |
| 1431 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1432 | # Check whether --enable-framework or --disable-framework was given. |
| 1433 | if test "${enable_framework+set}" = set; then |
| 1434 | enableval="$enable_framework" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1435 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1436 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1437 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1438 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1439 | esac |
| 1440 | case $enableval in |
| 1441 | no) |
| 1442 | PYTHONFRAMEWORK= |
| 1443 | PYTHONFRAMEWORKDIR=no-framework |
| 1444 | PYTHONFRAMEWORKPREFIX= |
| 1445 | PYTHONFRAMEWORKINSTALLDIR= |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 1446 | FRAMEWORKINSTALLFIRST= |
| 1447 | FRAMEWORKINSTALLLAST= |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 1448 | FRAMEWORKALTINSTALLFIRST= |
| 1449 | FRAMEWORKALTINSTALLLAST= |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 1450 | if test "x${prefix}" = "xNONE"; then |
| 1451 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 1452 | else |
| 1453 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 1454 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1455 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1456 | ;; |
| 1457 | *) |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1458 | PYTHONFRAMEWORK=Python |
| 1459 | PYTHONFRAMEWORKDIR=Python.framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1460 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1461 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 1462 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" |
| 1463 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 1464 | FRAMEWORKALTINSTALLFIRST="${FRAMEWORKINSTALLFIRST} bininstall maninstall" |
| 1465 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 1466 | if test "x${prefix}" = "xNONE" ; then |
| 1467 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 1468 | else |
| 1469 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 1470 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1471 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 1472 | |
| 1473 | # Add makefiles for Mac specific code to the list of output |
| 1474 | # files: |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 1475 | ac_config_files="$ac_config_files Mac/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 1476 | |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 1477 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 1478 | |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 1479 | ac_config_files="$ac_config_files Mac/IDLE/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 1480 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1481 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1482 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1483 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1484 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1485 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1486 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1487 | PYTHONFRAMEWORKPREFIX= |
| 1488 | PYTHONFRAMEWORKINSTALLDIR= |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 1489 | FRAMEWORKINSTALLFIRST= |
| 1490 | FRAMEWORKINSTALLLAST= |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 1491 | FRAMEWORKALTINSTALLFIRST= |
| 1492 | FRAMEWORKALTINSTALLLAST= |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 1493 | if test "x${prefix}" = "xNONE" ; then |
| 1494 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 1495 | else |
| 1496 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 1497 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1498 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1499 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1500 | fi; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1501 | |
| 1502 | |
| 1503 | |
| 1504 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1505 | |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 1506 | |
| 1507 | |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 1508 | |
| 1509 | |
| 1510 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1511 | ##AC_ARG_WITH(dyld, |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1512 | ## AC_HELP_STRING(--with-dyld, |
| 1513 | ## Use (OpenStep|Rhapsody) dynamic linker)) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1514 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1515 | # Set name for machine-dependent library files |
| 1516 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1517 | echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 1518 | echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1519 | if test -z "$MACHDEP" |
| 1520 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1521 | ac_sys_system=`uname -s` |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 1522 | if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \ |
| 1523 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1524 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1525 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1526 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1527 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1528 | ac_md_system=`echo $ac_sys_system | |
| 1529 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 1530 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 1531 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1532 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1533 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 1534 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 1535 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 1536 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 1537 | atheos*) MACHDEP="atheos";; |
Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 1538 | irix646) MACHDEP="irix6";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1539 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1540 | esac |
| 1541 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1542 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1543 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 1544 | # disable features if it is defined, without any means to access these |
| 1545 | # features as extensions. For these systems, we skip the definition of |
| 1546 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 1547 | # some feature, make sure there is no alternative way to access this |
| 1548 | # feature. Also, when using wildcards, make sure you have verified the |
| 1549 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 1550 | # wildcard, and that the wildcard does not include future systems |
| 1551 | # (which may remove their limitations). |
| 1552 | case $ac_sys_system/$ac_sys_release in |
| 1553 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 1554 | # 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] | 1555 | # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. |
Neal Norwitz | 4bc2c09 | 2006-09-05 02:57:01 +0000 | [diff] [blame] | 1556 | OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0]) |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1557 | define_xopen_source=no;; |
Martin v. Löwis | 4d542ec | 2006-11-25 15:39:19 +0000 | [diff] [blame] | 1558 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of |
| 1559 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by |
| 1560 | # Marc Recht |
| 1561 | NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6A-S) |
| 1562 | define_xopen_source=no;; |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 1563 | # On Solaris 2.6, sys/wait.h is inconsistent in the usage |
| 1564 | # of union __?sigval. Reported by Stuart Bishop. |
| 1565 | SunOS/5.6) |
| 1566 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 1567 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| 1568 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 1569 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 1570 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 1571 | define_xopen_source=no;; |
| 1572 | # 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] | 1573 | # 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] | 1574 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 1575 | define_xopen_source=no;; |
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 1576 | # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that |
| 1577 | # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently, |
| 1578 | # this is fixed in 10.3, which identifies itself as Darwin/7.* |
| 1579 | # This should hopefully be fixed in FreeBSD 4.9 |
| 1580 | FreeBSD/4.8* | Darwin/6* ) |
| 1581 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 1582 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but |
| 1583 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined |
| 1584 | # 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] | 1585 | AIX/4) |
| 1586 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 1587 | AIX/5) |
| 1588 | if test `uname -r` -eq 1; then |
| 1589 | define_xopen_source=no |
| 1590 | fi |
| 1591 | ;; |
Neal Norwitz | e8fb992 | 2006-04-04 05:32:17 +0000 | [diff] [blame] | 1592 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 1593 | # disables platform specific features beyond repair. |
Martin v. Löwis | a058836 | 2006-04-04 06:03:50 +0000 | [diff] [blame] | 1594 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
Neal Norwitz | 7659f0f | 2006-06-12 02:09:03 +0000 | [diff] [blame] | 1595 | # has no effect, don't bother defining them |
Ronald Oussoren | c95f756 | 2006-08-09 14:56:33 +0000 | [diff] [blame] | 1596 | Darwin/[789].*) |
Neal Norwitz | e8fb992 | 2006-04-04 05:32:17 +0000 | [diff] [blame] | 1597 | define_xopen_source=no |
| 1598 | ;; |
Martin v. Löwis | a058836 | 2006-04-04 06:03:50 +0000 | [diff] [blame] | 1599 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1600 | esac |
| 1601 | |
| 1602 | if test $define_xopen_source = yes |
| 1603 | then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1604 | # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be |
| 1605 | # defined precisely as g++ defines it |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 1606 | # Furthermore, on Solaris 10, XPG6 requires the use of a C99 |
| 1607 | # compiler |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1608 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 1609 | SunOS/5.8|SunOS/5.9|SunOS/5.10) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1610 | |
| 1611 | cat >>confdefs.h <<\_ACEOF |
| 1612 | #define _XOPEN_SOURCE 500 |
| 1613 | _ACEOF |
| 1614 | |
| 1615 | ;; |
| 1616 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1617 | |
| 1618 | cat >>confdefs.h <<\_ACEOF |
| 1619 | #define _XOPEN_SOURCE 600 |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1620 | _ACEOF |
| 1621 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1622 | ;; |
| 1623 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1624 | |
| 1625 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 1626 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 1627 | # several APIs are not declared. Since this is also needed in some |
| 1628 | # cases for HP-UX, we define it globally. |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 1629 | # except for Solaris 10, where it must not be defined, |
| 1630 | # as it implies XPG4.2 |
| 1631 | case $ac_sys_system/$ac_sys_release in |
| 1632 | SunOS/5.10) |
| 1633 | ;; |
| 1634 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1635 | |
| 1636 | cat >>confdefs.h <<\_ACEOF |
| 1637 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 1638 | _ACEOF |
| 1639 | |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 1640 | ;; |
| 1641 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1642 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 1643 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1644 | cat >>confdefs.h <<\_ACEOF |
| 1645 | #define _POSIX_C_SOURCE 200112L |
| 1646 | _ACEOF |
| 1647 | |
| 1648 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1649 | fi |
| 1650 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1651 | # |
| 1652 | # SGI compilers allow the specification of the both the ABI and the |
| 1653 | # ISA on the command line. Depending on the values of these switches, |
| 1654 | # different and often incompatable code will be generated. |
| 1655 | # |
| 1656 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 1657 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 1658 | # variable is also adjusted. |
| 1659 | # |
| 1660 | |
| 1661 | if test ! -z "$SGI_ABI" |
| 1662 | then |
| 1663 | CC="cc $SGI_ABI" |
| 1664 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 1665 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 1666 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1667 | echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 1668 | echo "${ECHO_T}$MACHDEP" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1669 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1670 | # And add extra plat-mac for darwin |
| 1671 | |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 1672 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1673 | echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5 |
| 1674 | echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6 |
| 1675 | if test -z "$EXTRAPLATDIR" |
| 1676 | then |
| 1677 | case $MACHDEP in |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 1678 | darwin) |
| 1679 | EXTRAPLATDIR="\$(PLATMACDIRS)" |
| 1680 | EXTRAMACHDEPPATH="\$(PLATMACPATH)" |
| 1681 | ;; |
| 1682 | *) |
| 1683 | EXTRAPLATDIR="" |
| 1684 | EXTRAMACHDEPPATH="" |
| 1685 | ;; |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1686 | esac |
| 1687 | fi |
| 1688 | echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5 |
| 1689 | echo "${ECHO_T}$EXTRAPLATDIR" >&6 |
| 1690 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 1691 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
| 1692 | # it may influence the way we can build extensions, so distutils |
| 1693 | # needs to check it |
| 1694 | |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1695 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 1696 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1697 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 1698 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1699 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1700 | |
| 1701 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 1702 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 1703 | # just to get things to compile and link. Users are free to override OPT |
| 1704 | # when running configure or make. The build should not break if they do. |
| 1705 | # BASECFLAGS should generally not be messed with, however. |
| 1706 | |
| 1707 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 1708 | # on that fiddles with OPT and BASECFLAGS? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1709 | echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 1710 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6 |
| 1711 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1712 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1713 | if test "${with_gcc+set}" = set; then |
| 1714 | withval="$with_gcc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1715 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1716 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1717 | no) CC=cc |
| 1718 | without_gcc=yes;; |
| 1719 | yes) CC=gcc |
| 1720 | without_gcc=no;; |
| 1721 | *) CC=$withval |
| 1722 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1723 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1724 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1725 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1726 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1727 | AIX*) CC=cc_r |
| 1728 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1729 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1730 | case $BE_HOST_CPU in |
| 1731 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1732 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1733 | without_gcc=yes |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1734 | BASECFLAGS="$BASECFLAGS -export pragma" |
| 1735 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1736 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1737 | ;; |
| 1738 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1739 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1740 | without_gcc=no |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1741 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1742 | ;; |
| 1743 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1744 | { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| 1745 | echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;} |
| 1746 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1747 | ;; |
| 1748 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1749 | AR="\$(srcdir)/Modules/ar_beos" |
| 1750 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1751 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1752 | Monterey*) |
| 1753 | RANLIB=: |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1754 | without_gcc=;; |
| 1755 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1756 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1757 | fi; |
| 1758 | echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 1759 | echo "${ECHO_T}$without_gcc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1760 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1761 | # If the user switches compilers, we can't believe the cache |
| 1762 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 1763 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1764 | { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file |
| 1765 | (it is also a good idea to do 'make clean' before compiling)" >&5 |
| 1766 | echo "$as_me: error: cached CC is different -- throw away $cache_file |
| 1767 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 1768 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1769 | fi |
| 1770 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1771 | ac_ext=c |
| 1772 | ac_cpp='$CPP $CPPFLAGS' |
| 1773 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1774 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1775 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1776 | if test -n "$ac_tool_prefix"; then |
| 1777 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1778 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1779 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1780 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1781 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1783 | else |
| 1784 | if test -n "$CC"; then |
| 1785 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1786 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1788 | for as_dir in $PATH |
| 1789 | do |
| 1790 | IFS=$as_save_IFS |
| 1791 | test -z "$as_dir" && as_dir=. |
| 1792 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1793 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1794 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1795 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1796 | break 2 |
| 1797 | fi |
| 1798 | done |
| 1799 | done |
| 1800 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1801 | fi |
| 1802 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1803 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1804 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1805 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1806 | echo "${ECHO_T}$CC" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1807 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1808 | echo "$as_me:$LINENO: result: no" >&5 |
| 1809 | echo "${ECHO_T}no" >&6 |
| 1810 | fi |
| 1811 | |
| 1812 | fi |
| 1813 | if test -z "$ac_cv_prog_CC"; then |
| 1814 | ac_ct_CC=$CC |
| 1815 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1816 | set dummy gcc; ac_word=$2 |
| 1817 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1818 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1819 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1820 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1821 | else |
| 1822 | if test -n "$ac_ct_CC"; then |
| 1823 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1824 | else |
| 1825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1826 | for as_dir in $PATH |
| 1827 | do |
| 1828 | IFS=$as_save_IFS |
| 1829 | test -z "$as_dir" && as_dir=. |
| 1830 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1831 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1832 | ac_cv_prog_ac_ct_CC="gcc" |
| 1833 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1834 | break 2 |
| 1835 | fi |
| 1836 | done |
| 1837 | done |
| 1838 | |
| 1839 | fi |
| 1840 | fi |
| 1841 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1842 | if test -n "$ac_ct_CC"; then |
| 1843 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1844 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1845 | else |
| 1846 | echo "$as_me:$LINENO: result: no" >&5 |
| 1847 | echo "${ECHO_T}no" >&6 |
| 1848 | fi |
| 1849 | |
| 1850 | CC=$ac_ct_CC |
| 1851 | else |
| 1852 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1853 | fi |
| 1854 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1855 | if test -z "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1856 | if test -n "$ac_tool_prefix"; then |
| 1857 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1858 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1859 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1860 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1861 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1862 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1863 | else |
| 1864 | if test -n "$CC"; then |
| 1865 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1866 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1868 | for as_dir in $PATH |
| 1869 | do |
| 1870 | IFS=$as_save_IFS |
| 1871 | test -z "$as_dir" && as_dir=. |
| 1872 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1873 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1874 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1875 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1876 | break 2 |
| 1877 | fi |
| 1878 | done |
| 1879 | done |
| 1880 | |
| 1881 | fi |
| 1882 | fi |
| 1883 | CC=$ac_cv_prog_CC |
| 1884 | if test -n "$CC"; then |
| 1885 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1886 | echo "${ECHO_T}$CC" >&6 |
| 1887 | else |
| 1888 | echo "$as_me:$LINENO: result: no" >&5 |
| 1889 | echo "${ECHO_T}no" >&6 |
| 1890 | fi |
| 1891 | |
| 1892 | fi |
| 1893 | if test -z "$ac_cv_prog_CC"; then |
| 1894 | ac_ct_CC=$CC |
| 1895 | # Extract the first word of "cc", so it can be a program name with args. |
| 1896 | set dummy cc; ac_word=$2 |
| 1897 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1898 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1899 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1901 | else |
| 1902 | if test -n "$ac_ct_CC"; then |
| 1903 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1904 | else |
| 1905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1906 | for as_dir in $PATH |
| 1907 | do |
| 1908 | IFS=$as_save_IFS |
| 1909 | test -z "$as_dir" && as_dir=. |
| 1910 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1911 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1912 | ac_cv_prog_ac_ct_CC="cc" |
| 1913 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1914 | break 2 |
| 1915 | fi |
| 1916 | done |
| 1917 | done |
| 1918 | |
| 1919 | fi |
| 1920 | fi |
| 1921 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1922 | if test -n "$ac_ct_CC"; then |
| 1923 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1924 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1925 | else |
| 1926 | echo "$as_me:$LINENO: result: no" >&5 |
| 1927 | echo "${ECHO_T}no" >&6 |
| 1928 | fi |
| 1929 | |
| 1930 | CC=$ac_ct_CC |
| 1931 | else |
| 1932 | CC="$ac_cv_prog_CC" |
| 1933 | fi |
| 1934 | |
| 1935 | fi |
| 1936 | if test -z "$CC"; then |
| 1937 | # Extract the first word of "cc", so it can be a program name with args. |
| 1938 | set dummy cc; ac_word=$2 |
| 1939 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1940 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1941 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1942 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1943 | else |
| 1944 | if test -n "$CC"; then |
| 1945 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1946 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1947 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1948 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1949 | for as_dir in $PATH |
| 1950 | do |
| 1951 | IFS=$as_save_IFS |
| 1952 | test -z "$as_dir" && as_dir=. |
| 1953 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1954 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1955 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1956 | ac_prog_rejected=yes |
| 1957 | continue |
| 1958 | fi |
| 1959 | ac_cv_prog_CC="cc" |
| 1960 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1961 | break 2 |
| 1962 | fi |
| 1963 | done |
| 1964 | done |
| 1965 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1966 | if test $ac_prog_rejected = yes; then |
| 1967 | # We found a bogon in the path, so make sure we never use it. |
| 1968 | set dummy $ac_cv_prog_CC |
| 1969 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1970 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1971 | # We chose a different compiler from the bogus one. |
| 1972 | # However, it has the same basename, so the bogon will be chosen |
| 1973 | # first if we set CC to just the basename; use the full file name. |
| 1974 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1975 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1976 | fi |
| 1977 | fi |
| 1978 | fi |
| 1979 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1980 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1981 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1982 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1983 | echo "${ECHO_T}$CC" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1984 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1985 | echo "$as_me:$LINENO: result: no" >&5 |
| 1986 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1987 | fi |
| 1988 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1989 | fi |
| 1990 | if test -z "$CC"; then |
| 1991 | if test -n "$ac_tool_prefix"; then |
| 1992 | for ac_prog in cl |
| 1993 | do |
| 1994 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1995 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1996 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1997 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1998 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2000 | else |
| 2001 | if test -n "$CC"; then |
| 2002 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2003 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2004 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2005 | for as_dir in $PATH |
| 2006 | do |
| 2007 | IFS=$as_save_IFS |
| 2008 | test -z "$as_dir" && as_dir=. |
| 2009 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2010 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2011 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2012 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2013 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2014 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2015 | done |
| 2016 | done |
| 2017 | |
| 2018 | fi |
| 2019 | fi |
| 2020 | CC=$ac_cv_prog_CC |
| 2021 | if test -n "$CC"; then |
| 2022 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2023 | echo "${ECHO_T}$CC" >&6 |
| 2024 | else |
| 2025 | echo "$as_me:$LINENO: result: no" >&5 |
| 2026 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2027 | fi |
| 2028 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2029 | test -n "$CC" && break |
| 2030 | done |
| 2031 | fi |
| 2032 | if test -z "$CC"; then |
| 2033 | ac_ct_CC=$CC |
| 2034 | for ac_prog in cl |
| 2035 | do |
| 2036 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2037 | set dummy $ac_prog; ac_word=$2 |
| 2038 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2039 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2040 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2042 | else |
| 2043 | if test -n "$ac_ct_CC"; then |
| 2044 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2045 | else |
| 2046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2047 | for as_dir in $PATH |
| 2048 | do |
| 2049 | IFS=$as_save_IFS |
| 2050 | test -z "$as_dir" && as_dir=. |
| 2051 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2052 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2053 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2054 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2055 | break 2 |
| 2056 | fi |
| 2057 | done |
| 2058 | done |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2059 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2060 | fi |
| 2061 | fi |
| 2062 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2063 | if test -n "$ac_ct_CC"; then |
| 2064 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2065 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2066 | else |
| 2067 | echo "$as_me:$LINENO: result: no" >&5 |
| 2068 | echo "${ECHO_T}no" >&6 |
| 2069 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2070 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2071 | test -n "$ac_ct_CC" && break |
| 2072 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2073 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2074 | CC=$ac_ct_CC |
| 2075 | fi |
| 2076 | |
| 2077 | fi |
| 2078 | |
| 2079 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2080 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2081 | See \`config.log' for more details." >&5 |
| 2082 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2083 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2084 | { (exit 1); exit 1; }; } |
| 2085 | |
| 2086 | # Provide some information about the compiler. |
| 2087 | echo "$as_me:$LINENO:" \ |
| 2088 | "checking for C compiler version" >&5 |
| 2089 | ac_compiler=`set X $ac_compile; echo $2` |
| 2090 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2091 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2092 | ac_status=$? |
| 2093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2094 | (exit $ac_status); } |
| 2095 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2096 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2097 | ac_status=$? |
| 2098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2099 | (exit $ac_status); } |
| 2100 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2101 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2102 | ac_status=$? |
| 2103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2104 | (exit $ac_status); } |
| 2105 | |
| 2106 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2107 | /* confdefs.h. */ |
| 2108 | _ACEOF |
| 2109 | cat confdefs.h >>conftest.$ac_ext |
| 2110 | cat >>conftest.$ac_ext <<_ACEOF |
| 2111 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2112 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2113 | int |
| 2114 | main () |
| 2115 | { |
| 2116 | |
| 2117 | ; |
| 2118 | return 0; |
| 2119 | } |
| 2120 | _ACEOF |
| 2121 | ac_clean_files_save=$ac_clean_files |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2122 | 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] | 2123 | # Try to create an executable without -o first, disregard a.out. |
| 2124 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2125 | # of exeext. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2126 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2127 | 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] | 2128 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2129 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2130 | (eval $ac_link_default) 2>&5 |
| 2131 | ac_status=$? |
| 2132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2133 | (exit $ac_status); }; then |
| 2134 | # Find the output, starting from the most likely. This scheme is |
| 2135 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2136 | # resort. |
| 2137 | |
| 2138 | # Be careful to initialize this variable, since it used to be cached. |
| 2139 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2140 | ac_cv_exeext= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2141 | # b.out is created by i960 compilers. |
| 2142 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 2143 | do |
| 2144 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2145 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2146 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2147 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2148 | conftest.$ac_ext ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2149 | # This is the source file. |
| 2150 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2151 | [ab].out ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2152 | # We found the default executable, but exeext='' is most |
| 2153 | # certainly right. |
| 2154 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2155 | *.* ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2156 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2157 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 2158 | # but it would be cool to find out if it's true. Does anybody |
| 2159 | # maintain Libtool? --akim. |
| 2160 | export ac_cv_exeext |
| 2161 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2162 | * ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2163 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2164 | esac |
| 2165 | done |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2166 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2167 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2168 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2169 | |
| 2170 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2171 | See \`config.log' for more details." >&5 |
| 2172 | echo "$as_me: error: C compiler cannot create executables |
| 2173 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2174 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2175 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2176 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2177 | ac_exeext=$ac_cv_exeext |
| 2178 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2179 | echo "${ECHO_T}$ac_file" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2180 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2181 | # Check the compiler produces executables we can run. If not, either |
| 2182 | # the compiler is broken, or we cross compile. |
| 2183 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2184 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2185 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2186 | # If not cross compiling, check that we can run a simple program. |
| 2187 | if test "$cross_compiling" != yes; then |
| 2188 | if { ac_try='./$ac_file' |
| 2189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2190 | (eval $ac_try) 2>&5 |
| 2191 | ac_status=$? |
| 2192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2193 | (exit $ac_status); }; }; then |
| 2194 | cross_compiling=no |
| 2195 | else |
| 2196 | if test "$cross_compiling" = maybe; then |
| 2197 | cross_compiling=yes |
| 2198 | else |
| 2199 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2200 | If you meant to cross compile, use \`--host'. |
| 2201 | See \`config.log' for more details." >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2202 | echo "$as_me: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2203 | If you meant to cross compile, use \`--host'. |
| 2204 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2205 | { (exit 1); exit 1; }; } |
| 2206 | fi |
| 2207 | fi |
| 2208 | fi |
| 2209 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2210 | echo "${ECHO_T}yes" >&6 |
| 2211 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2212 | 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] | 2213 | ac_clean_files=$ac_clean_files_save |
| 2214 | # Check the compiler produces executables we can run. If not, either |
| 2215 | # the compiler is broken, or we cross compile. |
| 2216 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2217 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2218 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2219 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2220 | |
| 2221 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2222 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2223 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2224 | (eval $ac_link) 2>&5 |
| 2225 | ac_status=$? |
| 2226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2227 | (exit $ac_status); }; then |
| 2228 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2229 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2230 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2231 | # `rm'. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2232 | for ac_file in conftest.exe conftest conftest.*; do |
| 2233 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2234 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2235 | *.$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] | 2236 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2237 | export ac_cv_exeext |
| 2238 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2239 | * ) break;; |
| 2240 | esac |
| 2241 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2242 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2243 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2244 | See \`config.log' for more details." >&5 |
| 2245 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2246 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2247 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2248 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2249 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2250 | rm -f conftest$ac_cv_exeext |
| 2251 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2252 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2253 | |
| 2254 | rm -f conftest.$ac_ext |
| 2255 | EXEEXT=$ac_cv_exeext |
| 2256 | ac_exeext=$EXEEXT |
| 2257 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2258 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2259 | if test "${ac_cv_objext+set}" = set; then |
| 2260 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2261 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2262 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2263 | /* confdefs.h. */ |
| 2264 | _ACEOF |
| 2265 | cat confdefs.h >>conftest.$ac_ext |
| 2266 | cat >>conftest.$ac_ext <<_ACEOF |
| 2267 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2268 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2269 | int |
| 2270 | main () |
| 2271 | { |
| 2272 | |
| 2273 | ; |
| 2274 | return 0; |
| 2275 | } |
| 2276 | _ACEOF |
| 2277 | rm -f conftest.o conftest.obj |
| 2278 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2279 | (eval $ac_compile) 2>&5 |
| 2280 | ac_status=$? |
| 2281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2282 | (exit $ac_status); }; then |
| 2283 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2284 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2285 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2286 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2287 | break;; |
| 2288 | esac |
| 2289 | done |
| 2290 | else |
| 2291 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2292 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2293 | |
| 2294 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2295 | See \`config.log' for more details." >&5 |
| 2296 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2297 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2298 | { (exit 1); exit 1; }; } |
| 2299 | fi |
| 2300 | |
| 2301 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2302 | fi |
| 2303 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2304 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2305 | OBJEXT=$ac_cv_objext |
| 2306 | ac_objext=$OBJEXT |
| 2307 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2308 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2309 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2311 | else |
| 2312 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2313 | /* confdefs.h. */ |
| 2314 | _ACEOF |
| 2315 | cat confdefs.h >>conftest.$ac_ext |
| 2316 | cat >>conftest.$ac_ext <<_ACEOF |
| 2317 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2318 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2319 | int |
| 2320 | main () |
| 2321 | { |
| 2322 | #ifndef __GNUC__ |
| 2323 | choke me |
| 2324 | #endif |
| 2325 | |
| 2326 | ; |
| 2327 | return 0; |
| 2328 | } |
| 2329 | _ACEOF |
| 2330 | rm -f conftest.$ac_objext |
| 2331 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2332 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2333 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2334 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2335 | rm -f conftest.er1 |
| 2336 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2338 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 2339 | { ac_try='test -z "$ac_c_werror_flag" |
| 2340 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2342 | (eval $ac_try) 2>&5 |
| 2343 | ac_status=$? |
| 2344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2345 | (exit $ac_status); }; } && |
| 2346 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2348 | (eval $ac_try) 2>&5 |
| 2349 | ac_status=$? |
| 2350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2351 | (exit $ac_status); }; }; then |
| 2352 | ac_compiler_gnu=yes |
| 2353 | else |
| 2354 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2355 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2356 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2357 | ac_compiler_gnu=no |
| 2358 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2359 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2360 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2361 | |
| 2362 | fi |
| 2363 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2364 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2365 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2366 | ac_test_CFLAGS=${CFLAGS+set} |
| 2367 | ac_save_CFLAGS=$CFLAGS |
| 2368 | CFLAGS="-g" |
| 2369 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2370 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2371 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2372 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2373 | else |
| 2374 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2375 | /* confdefs.h. */ |
| 2376 | _ACEOF |
| 2377 | cat confdefs.h >>conftest.$ac_ext |
| 2378 | cat >>conftest.$ac_ext <<_ACEOF |
| 2379 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2380 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2381 | int |
| 2382 | main () |
| 2383 | { |
| 2384 | |
| 2385 | ; |
| 2386 | return 0; |
| 2387 | } |
| 2388 | _ACEOF |
| 2389 | rm -f conftest.$ac_objext |
| 2390 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2391 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2392 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2393 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2394 | rm -f conftest.er1 |
| 2395 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2397 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 2398 | { ac_try='test -z "$ac_c_werror_flag" |
| 2399 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2401 | (eval $ac_try) 2>&5 |
| 2402 | ac_status=$? |
| 2403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2404 | (exit $ac_status); }; } && |
| 2405 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2407 | (eval $ac_try) 2>&5 |
| 2408 | ac_status=$? |
| 2409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2410 | (exit $ac_status); }; }; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2411 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2412 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2413 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2414 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2415 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2416 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2417 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2418 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2419 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2420 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2421 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2422 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2423 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2424 | elif test $ac_cv_prog_cc_g = yes; then |
| 2425 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2426 | CFLAGS="-g -O2" |
| 2427 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2428 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2429 | fi |
| 2430 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2431 | if test "$GCC" = yes; then |
| 2432 | CFLAGS="-O2" |
| 2433 | else |
| 2434 | CFLAGS= |
| 2435 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2436 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2437 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2438 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2439 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2441 | else |
| 2442 | ac_cv_prog_cc_stdc=no |
| 2443 | ac_save_CC=$CC |
| 2444 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2445 | /* confdefs.h. */ |
| 2446 | _ACEOF |
| 2447 | cat confdefs.h >>conftest.$ac_ext |
| 2448 | cat >>conftest.$ac_ext <<_ACEOF |
| 2449 | /* end confdefs.h. */ |
| 2450 | #include <stdarg.h> |
| 2451 | #include <stdio.h> |
| 2452 | #include <sys/types.h> |
| 2453 | #include <sys/stat.h> |
| 2454 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2455 | struct buf { int x; }; |
| 2456 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2457 | static char *e (p, i) |
| 2458 | char **p; |
| 2459 | int i; |
| 2460 | { |
| 2461 | return p[i]; |
| 2462 | } |
| 2463 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2464 | { |
| 2465 | char *s; |
| 2466 | va_list v; |
| 2467 | va_start (v,p); |
| 2468 | s = g (p, va_arg (v,int)); |
| 2469 | va_end (v); |
| 2470 | return s; |
| 2471 | } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2472 | |
| 2473 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2474 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2475 | These don't provoke an error unfortunately, instead are silently treated |
| 2476 | as 'x'. The following induces an error, until -std1 is added to get |
| 2477 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2478 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2479 | that's true only with -std1. */ |
| 2480 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2481 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2482 | int test (int i, double x); |
| 2483 | struct s1 {int (*f) (int a);}; |
| 2484 | struct s2 {int (*f) (double a);}; |
| 2485 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2486 | int argc; |
| 2487 | char **argv; |
| 2488 | int |
| 2489 | main () |
| 2490 | { |
| 2491 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2492 | ; |
| 2493 | return 0; |
| 2494 | } |
| 2495 | _ACEOF |
| 2496 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2497 | # breaks some systems' header files. |
| 2498 | # AIX -qlanglvl=ansi |
| 2499 | # Ultrix and OSF/1 -std1 |
| 2500 | # HP-UX 10.20 and later -Ae |
| 2501 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2502 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2503 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2504 | do |
| 2505 | CC="$ac_save_CC $ac_arg" |
| 2506 | rm -f conftest.$ac_objext |
| 2507 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2508 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2509 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2510 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2511 | rm -f conftest.er1 |
| 2512 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2514 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 2515 | { ac_try='test -z "$ac_c_werror_flag" |
| 2516 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +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); }; } && |
| 2522 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2524 | (eval $ac_try) 2>&5 |
| 2525 | ac_status=$? |
| 2526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2527 | (exit $ac_status); }; }; then |
| 2528 | ac_cv_prog_cc_stdc=$ac_arg |
| 2529 | break |
| 2530 | else |
| 2531 | echo "$as_me: failed program was:" >&5 |
| 2532 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2533 | |
| 2534 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2535 | rm -f conftest.err conftest.$ac_objext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2536 | done |
| 2537 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2538 | CC=$ac_save_CC |
| 2539 | |
| 2540 | fi |
| 2541 | |
| 2542 | case "x$ac_cv_prog_cc_stdc" in |
| 2543 | x|xno) |
| 2544 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2545 | echo "${ECHO_T}none needed" >&6 ;; |
| 2546 | *) |
| 2547 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2548 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2549 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2550 | esac |
| 2551 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2552 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2553 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2554 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2555 | # the declaration of exit, since it's the most demanding environment. |
| 2556 | cat >conftest.$ac_ext <<_ACEOF |
| 2557 | #ifndef __cplusplus |
| 2558 | choke me |
| 2559 | #endif |
| 2560 | _ACEOF |
| 2561 | rm -f conftest.$ac_objext |
| 2562 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2563 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2564 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2565 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2566 | rm -f conftest.er1 |
| 2567 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2569 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 2570 | { ac_try='test -z "$ac_c_werror_flag" |
| 2571 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2573 | (eval $ac_try) 2>&5 |
| 2574 | ac_status=$? |
| 2575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2576 | (exit $ac_status); }; } && |
| 2577 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2579 | (eval $ac_try) 2>&5 |
| 2580 | ac_status=$? |
| 2581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2582 | (exit $ac_status); }; }; then |
| 2583 | for ac_declaration in \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2584 | '' \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2585 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2586 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2587 | 'extern "C" void exit (int) throw ();' \ |
| 2588 | 'extern "C" void exit (int);' \ |
| 2589 | 'void exit (int);' |
| 2590 | do |
| 2591 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2592 | /* confdefs.h. */ |
| 2593 | _ACEOF |
| 2594 | cat confdefs.h >>conftest.$ac_ext |
| 2595 | cat >>conftest.$ac_ext <<_ACEOF |
| 2596 | /* end confdefs.h. */ |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 2597 | $ac_declaration |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2598 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2599 | int |
| 2600 | main () |
| 2601 | { |
| 2602 | exit (42); |
| 2603 | ; |
| 2604 | return 0; |
| 2605 | } |
| 2606 | _ACEOF |
| 2607 | rm -f conftest.$ac_objext |
| 2608 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2609 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2610 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2611 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2612 | rm -f conftest.er1 |
| 2613 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2615 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 2616 | { ac_try='test -z "$ac_c_werror_flag" |
| 2617 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2619 | (eval $ac_try) 2>&5 |
| 2620 | ac_status=$? |
| 2621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2622 | (exit $ac_status); }; } && |
| 2623 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2625 | (eval $ac_try) 2>&5 |
| 2626 | ac_status=$? |
| 2627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2628 | (exit $ac_status); }; }; then |
| 2629 | : |
| 2630 | else |
| 2631 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2632 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2633 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2634 | continue |
| 2635 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2636 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2637 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2638 | /* confdefs.h. */ |
| 2639 | _ACEOF |
| 2640 | cat confdefs.h >>conftest.$ac_ext |
| 2641 | cat >>conftest.$ac_ext <<_ACEOF |
| 2642 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2643 | $ac_declaration |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2644 | int |
| 2645 | main () |
| 2646 | { |
| 2647 | exit (42); |
| 2648 | ; |
| 2649 | return 0; |
| 2650 | } |
| 2651 | _ACEOF |
| 2652 | rm -f conftest.$ac_objext |
| 2653 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2654 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2655 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2656 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2657 | rm -f conftest.er1 |
| 2658 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2660 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 2661 | { ac_try='test -z "$ac_c_werror_flag" |
| 2662 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2664 | (eval $ac_try) 2>&5 |
| 2665 | ac_status=$? |
| 2666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2667 | (exit $ac_status); }; } && |
| 2668 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2670 | (eval $ac_try) 2>&5 |
| 2671 | ac_status=$? |
| 2672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2673 | (exit $ac_status); }; }; then |
| 2674 | break |
| 2675 | else |
| 2676 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2677 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2678 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2679 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2680 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2681 | done |
| 2682 | rm -f conftest* |
| 2683 | if test -n "$ac_declaration"; then |
| 2684 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2685 | echo $ac_declaration >>confdefs.h |
| 2686 | echo '#endif' >>confdefs.h |
| 2687 | fi |
| 2688 | |
| 2689 | else |
| 2690 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2691 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2692 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2693 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2694 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2695 | ac_ext=c |
| 2696 | ac_cpp='$CPP $CPPFLAGS' |
| 2697 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2698 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2699 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2700 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2701 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 2702 | |
| 2703 | |
| 2704 | echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5 |
| 2705 | echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6 |
| 2706 | |
| 2707 | # Check whether --with-cxx_main or --without-cxx_main was given. |
| 2708 | if test "${with_cxx_main+set}" = set; then |
| 2709 | withval="$with_cxx_main" |
| 2710 | |
| 2711 | |
| 2712 | case $withval in |
| 2713 | no) with_cxx_main=no |
| 2714 | MAINCC='$(CC)';; |
| 2715 | yes) with_cxx_main=yes |
| 2716 | MAINCC='$(CXX)';; |
| 2717 | *) with_cxx_main=yes |
| 2718 | MAINCC=$withval |
| 2719 | if test -z "$CXX" |
| 2720 | then |
| 2721 | CXX=$withval |
| 2722 | fi;; |
| 2723 | esac |
| 2724 | else |
| 2725 | |
| 2726 | with_cxx_main=no |
| 2727 | MAINCC='$(CC)' |
| 2728 | |
| 2729 | fi; |
| 2730 | echo "$as_me:$LINENO: result: $with_cxx_main" >&5 |
| 2731 | echo "${ECHO_T}$with_cxx_main" >&6 |
| 2732 | |
| 2733 | preset_cxx="$CXX" |
| 2734 | if test -z "$CXX" |
| 2735 | then |
| 2736 | case "$CC" in |
| 2737 | gcc) # Extract the first word of "g++", so it can be a program name with args. |
| 2738 | set dummy g++; ac_word=$2 |
| 2739 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2740 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2741 | if test "${ac_cv_path_CXX+set}" = set; then |
| 2742 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2743 | else |
| 2744 | case $CXX in |
| 2745 | [\\/]* | ?:[\\/]*) |
| 2746 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 2747 | ;; |
| 2748 | *) |
| 2749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2750 | for as_dir in notfound |
| 2751 | do |
| 2752 | IFS=$as_save_IFS |
| 2753 | test -z "$as_dir" && as_dir=. |
| 2754 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2755 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2756 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
| 2757 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2758 | break 2 |
| 2759 | fi |
| 2760 | done |
| 2761 | done |
| 2762 | |
| 2763 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++" |
| 2764 | ;; |
| 2765 | esac |
| 2766 | fi |
| 2767 | CXX=$ac_cv_path_CXX |
| 2768 | |
| 2769 | if test -n "$CXX"; then |
| 2770 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 2771 | echo "${ECHO_T}$CXX" >&6 |
| 2772 | else |
| 2773 | echo "$as_me:$LINENO: result: no" >&5 |
| 2774 | echo "${ECHO_T}no" >&6 |
| 2775 | fi |
| 2776 | ;; |
| 2777 | cc) # Extract the first word of "c++", so it can be a program name with args. |
| 2778 | set dummy c++; ac_word=$2 |
| 2779 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2780 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2781 | if test "${ac_cv_path_CXX+set}" = set; then |
| 2782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2783 | else |
| 2784 | case $CXX in |
| 2785 | [\\/]* | ?:[\\/]*) |
| 2786 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 2787 | ;; |
| 2788 | *) |
| 2789 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2790 | for as_dir in notfound |
| 2791 | do |
| 2792 | IFS=$as_save_IFS |
| 2793 | test -z "$as_dir" && as_dir=. |
| 2794 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2795 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2796 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
| 2797 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2798 | break 2 |
| 2799 | fi |
| 2800 | done |
| 2801 | done |
| 2802 | |
| 2803 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++" |
| 2804 | ;; |
| 2805 | esac |
| 2806 | fi |
| 2807 | CXX=$ac_cv_path_CXX |
| 2808 | |
| 2809 | if test -n "$CXX"; then |
| 2810 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 2811 | echo "${ECHO_T}$CXX" >&6 |
| 2812 | else |
| 2813 | echo "$as_me:$LINENO: result: no" >&5 |
| 2814 | echo "${ECHO_T}no" >&6 |
| 2815 | fi |
| 2816 | ;; |
| 2817 | esac |
| 2818 | if test "$CXX" = "notfound" |
| 2819 | then |
| 2820 | CXX="" |
| 2821 | fi |
| 2822 | fi |
| 2823 | if test -z "$CXX" |
| 2824 | then |
| 2825 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 2826 | do |
| 2827 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2828 | set dummy $ac_prog; ac_word=$2 |
| 2829 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2830 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2831 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 2832 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2833 | else |
| 2834 | if test -n "$CXX"; then |
| 2835 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 2836 | else |
| 2837 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2838 | for as_dir in $PATH |
| 2839 | do |
| 2840 | IFS=$as_save_IFS |
| 2841 | test -z "$as_dir" && as_dir=. |
| 2842 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2843 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2844 | ac_cv_prog_CXX="$ac_prog" |
| 2845 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2846 | break 2 |
| 2847 | fi |
| 2848 | done |
| 2849 | done |
| 2850 | |
| 2851 | fi |
| 2852 | fi |
| 2853 | CXX=$ac_cv_prog_CXX |
| 2854 | if test -n "$CXX"; then |
| 2855 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 2856 | echo "${ECHO_T}$CXX" >&6 |
| 2857 | else |
| 2858 | echo "$as_me:$LINENO: result: no" >&5 |
| 2859 | echo "${ECHO_T}no" >&6 |
| 2860 | fi |
| 2861 | |
| 2862 | test -n "$CXX" && break |
| 2863 | done |
| 2864 | test -n "$CXX" || CXX="notfound" |
| 2865 | |
| 2866 | if test "$CXX" = "notfound" |
| 2867 | then |
| 2868 | CXX="" |
| 2869 | fi |
| 2870 | fi |
| 2871 | if test "$preset_cxx" != "$CXX" |
| 2872 | then |
| 2873 | { echo "$as_me:$LINENO: WARNING: |
| 2874 | |
| 2875 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 2876 | If this is not intended, then set CXX on the configure command line. |
| 2877 | " >&5 |
| 2878 | echo "$as_me: WARNING: |
| 2879 | |
| 2880 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 2881 | If this is not intended, then set CXX on the configure command line. |
| 2882 | " >&2;} |
| 2883 | fi |
| 2884 | |
| 2885 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2886 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2887 | |
| 2888 | ac_ext=c |
| 2889 | ac_cpp='$CPP $CPPFLAGS' |
| 2890 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2891 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2892 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2893 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2894 | 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] | 2895 | # On Suns, sometimes $CPP names a directory. |
| 2896 | if test -n "$CPP" && test -d "$CPP"; then |
| 2897 | CPP= |
| 2898 | fi |
| 2899 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2900 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2901 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2902 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2903 | # Double quotes because CPP needs to be expanded |
| 2904 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2905 | do |
| 2906 | ac_preproc_ok=false |
| 2907 | for ac_c_preproc_warn_flag in '' yes |
| 2908 | do |
| 2909 | # Use a header file that comes with gcc, so configuring glibc |
| 2910 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2911 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2912 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2913 | # 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] | 2914 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2915 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2916 | /* confdefs.h. */ |
| 2917 | _ACEOF |
| 2918 | cat confdefs.h >>conftest.$ac_ext |
| 2919 | cat >>conftest.$ac_ext <<_ACEOF |
| 2920 | /* end confdefs.h. */ |
| 2921 | #ifdef __STDC__ |
| 2922 | # include <limits.h> |
| 2923 | #else |
| 2924 | # include <assert.h> |
| 2925 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2926 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2927 | _ACEOF |
| 2928 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2929 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2930 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2931 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2932 | rm -f conftest.er1 |
| 2933 | cat conftest.err >&5 |
| 2934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2935 | (exit $ac_status); } >/dev/null; then |
| 2936 | if test -s conftest.err; then |
| 2937 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2938 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2939 | else |
| 2940 | ac_cpp_err= |
| 2941 | fi |
| 2942 | else |
| 2943 | ac_cpp_err=yes |
| 2944 | fi |
| 2945 | if test -z "$ac_cpp_err"; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2946 | : |
| 2947 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2948 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2949 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2950 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2951 | # Broken: fails on valid input. |
| 2952 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2953 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2954 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2955 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2956 | # OK, works on sane cases. Now check whether non-existent headers |
| 2957 | # can be detected and how. |
| 2958 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2959 | /* confdefs.h. */ |
| 2960 | _ACEOF |
| 2961 | cat confdefs.h >>conftest.$ac_ext |
| 2962 | cat >>conftest.$ac_ext <<_ACEOF |
| 2963 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2964 | #include <ac_nonexistent.h> |
| 2965 | _ACEOF |
| 2966 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2967 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2968 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2969 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2970 | rm -f conftest.er1 |
| 2971 | cat conftest.err >&5 |
| 2972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2973 | (exit $ac_status); } >/dev/null; then |
| 2974 | if test -s conftest.err; then |
| 2975 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2976 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2977 | else |
| 2978 | ac_cpp_err= |
| 2979 | fi |
| 2980 | else |
| 2981 | ac_cpp_err=yes |
| 2982 | fi |
| 2983 | if test -z "$ac_cpp_err"; then |
| 2984 | # Broken: success on invalid input. |
| 2985 | continue |
| 2986 | else |
| 2987 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2988 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2989 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2990 | # Passes both tests. |
| 2991 | ac_preproc_ok=: |
| 2992 | break |
| 2993 | fi |
| 2994 | rm -f conftest.err conftest.$ac_ext |
| 2995 | |
| 2996 | done |
| 2997 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2998 | rm -f conftest.err conftest.$ac_ext |
| 2999 | if $ac_preproc_ok; then |
| 3000 | break |
| 3001 | fi |
| 3002 | |
| 3003 | done |
| 3004 | ac_cv_prog_CPP=$CPP |
| 3005 | |
| 3006 | fi |
| 3007 | CPP=$ac_cv_prog_CPP |
| 3008 | else |
| 3009 | ac_cv_prog_CPP=$CPP |
| 3010 | fi |
| 3011 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3012 | echo "${ECHO_T}$CPP" >&6 |
| 3013 | ac_preproc_ok=false |
| 3014 | for ac_c_preproc_warn_flag in '' yes |
| 3015 | do |
| 3016 | # Use a header file that comes with gcc, so configuring glibc |
| 3017 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3018 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3019 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3020 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3021 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3022 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3023 | /* confdefs.h. */ |
| 3024 | _ACEOF |
| 3025 | cat confdefs.h >>conftest.$ac_ext |
| 3026 | cat >>conftest.$ac_ext <<_ACEOF |
| 3027 | /* end confdefs.h. */ |
| 3028 | #ifdef __STDC__ |
| 3029 | # include <limits.h> |
| 3030 | #else |
| 3031 | # include <assert.h> |
| 3032 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3033 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3034 | _ACEOF |
| 3035 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3036 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3037 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3038 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3039 | rm -f conftest.er1 |
| 3040 | cat conftest.err >&5 |
| 3041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3042 | (exit $ac_status); } >/dev/null; then |
| 3043 | if test -s conftest.err; then |
| 3044 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3045 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3046 | else |
| 3047 | ac_cpp_err= |
| 3048 | fi |
| 3049 | else |
| 3050 | ac_cpp_err=yes |
| 3051 | fi |
| 3052 | if test -z "$ac_cpp_err"; then |
| 3053 | : |
| 3054 | else |
| 3055 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3056 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3057 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3058 | # Broken: fails on valid input. |
| 3059 | continue |
| 3060 | fi |
| 3061 | rm -f conftest.err conftest.$ac_ext |
| 3062 | |
| 3063 | # OK, works on sane cases. Now check whether non-existent headers |
| 3064 | # can be detected and how. |
| 3065 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3066 | /* confdefs.h. */ |
| 3067 | _ACEOF |
| 3068 | cat confdefs.h >>conftest.$ac_ext |
| 3069 | cat >>conftest.$ac_ext <<_ACEOF |
| 3070 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3071 | #include <ac_nonexistent.h> |
| 3072 | _ACEOF |
| 3073 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3074 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3075 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3076 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3077 | rm -f conftest.er1 |
| 3078 | cat conftest.err >&5 |
| 3079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3080 | (exit $ac_status); } >/dev/null; then |
| 3081 | if test -s conftest.err; then |
| 3082 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3083 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3084 | else |
| 3085 | ac_cpp_err= |
| 3086 | fi |
| 3087 | else |
| 3088 | ac_cpp_err=yes |
| 3089 | fi |
| 3090 | if test -z "$ac_cpp_err"; then |
| 3091 | # Broken: success on invalid input. |
| 3092 | continue |
| 3093 | else |
| 3094 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3095 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3096 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3097 | # Passes both tests. |
| 3098 | ac_preproc_ok=: |
| 3099 | break |
| 3100 | fi |
| 3101 | rm -f conftest.err conftest.$ac_ext |
| 3102 | |
| 3103 | done |
| 3104 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3105 | rm -f conftest.err conftest.$ac_ext |
| 3106 | if $ac_preproc_ok; then |
| 3107 | : |
| 3108 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3109 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3110 | See \`config.log' for more details." >&5 |
| 3111 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3112 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3113 | { (exit 1); exit 1; }; } |
| 3114 | fi |
| 3115 | |
| 3116 | ac_ext=c |
| 3117 | ac_cpp='$CPP $CPPFLAGS' |
| 3118 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3119 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3120 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3121 | |
| 3122 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3123 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3124 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 3125 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 3126 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3127 | else |
| 3128 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 3129 | then ac_cv_prog_egrep='grep -E' |
| 3130 | else ac_cv_prog_egrep='egrep' |
| 3131 | fi |
| 3132 | fi |
| 3133 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 3134 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 3135 | EGREP=$ac_cv_prog_egrep |
| 3136 | |
| 3137 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3138 | |
| 3139 | echo "$as_me:$LINENO: checking for AIX" >&5 |
| 3140 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
| 3141 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3142 | /* confdefs.h. */ |
| 3143 | _ACEOF |
| 3144 | cat confdefs.h >>conftest.$ac_ext |
| 3145 | cat >>conftest.$ac_ext <<_ACEOF |
| 3146 | /* end confdefs.h. */ |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3147 | #ifdef _AIX |
| 3148 | yes |
| 3149 | #endif |
| 3150 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3151 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3152 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3153 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3154 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3155 | echo "${ECHO_T}yes" >&6 |
| 3156 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3157 | #define _ALL_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3158 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3159 | |
| 3160 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3161 | echo "$as_me:$LINENO: result: no" >&5 |
| 3162 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3163 | fi |
| 3164 | rm -f conftest* |
| 3165 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3166 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3167 | |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 3168 | # Check for unsupported systems |
| 3169 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 3170 | Linux*/1*) |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 3171 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 3172 | echo See README for details. |
| 3173 | exit 1;; |
| 3174 | esac |
| 3175 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3176 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3177 | echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 3178 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3179 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3180 | # Check whether --with-suffix or --without-suffix was given. |
| 3181 | if test "${with_suffix+set}" = set; then |
| 3182 | withval="$with_suffix" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3183 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3184 | case $withval in |
| 3185 | no) EXEEXT=;; |
| 3186 | yes) EXEEXT=.exe;; |
| 3187 | *) EXEEXT=$withval;; |
| 3188 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3189 | fi; |
| 3190 | echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 3191 | echo "${ECHO_T}$EXEEXT" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3192 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3193 | # Test whether we're running on a non-case-sensitive system, in which |
| 3194 | # case we give a warning if no ext is given |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3195 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3196 | echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 3197 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6 |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3198 | if test ! -d CaseSensitiveTestDir; then |
| 3199 | mkdir CaseSensitiveTestDir |
| 3200 | fi |
| 3201 | |
| 3202 | if test -d casesensitivetestdir |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3203 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3204 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3205 | echo "${ECHO_T}yes" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3206 | BUILDEXEEXT=.exe |
| 3207 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3208 | echo "$as_me:$LINENO: result: no" >&5 |
| 3209 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3210 | BUILDEXEEXT=$EXEEXT |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3211 | fi |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3212 | rmdir CaseSensitiveTestDir |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 3213 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 3214 | case $MACHDEP in |
| 3215 | bsdos*) |
| 3216 | case $CC in |
| 3217 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 3218 | esac;; |
| 3219 | esac |
| 3220 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3221 | case $ac_sys_system in |
| 3222 | hp*|HP*) |
| 3223 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 3224 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3225 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3226 | Monterey*) |
| 3227 | case $CC in |
| 3228 | cc) CC="$CC -Wl,-Bexport";; |
| 3229 | esac;; |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3230 | SunOS*) |
| 3231 | # 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] | 3232 | |
| 3233 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3234 | #define __EXTENSIONS__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3235 | _ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3236 | |
| 3237 | ;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3238 | esac |
| 3239 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3240 | |
| 3241 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3242 | echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 3243 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3244 | if test -z "$LIBRARY" |
| 3245 | then |
| 3246 | LIBRARY='libpython$(VERSION).a' |
| 3247 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3248 | echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 3249 | echo "${ECHO_T}$LIBRARY" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3250 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3251 | # 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] | 3252 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3253 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3254 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3255 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3256 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3257 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3258 | # DLLLIBRARY is the shared (i.e., DLL) library. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3259 | # |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3260 | # RUNSHARED is used to run shared python without installed libraries |
| 3261 | # |
| 3262 | # INSTSONAME is the name of the shared library that will be use to install |
| 3263 | # on the system - some systems like version suffix, others don't |
| 3264 | |
| 3265 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3266 | |
| 3267 | |
| 3268 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3269 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3270 | LDLIBRARY="$LIBRARY" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3271 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 09bdf72 | 2002-05-08 08:51:29 +0000 | [diff] [blame] | 3272 | INSTSONAME='$(LDLIBRARY)' |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 3273 | DLLLIBRARY='' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3274 | LDLIBRARYDIR='' |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3275 | RUNSHARED='' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3276 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3277 | # 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] | 3278 | # If CXX is set, and if it is needed to link a main function that was |
| 3279 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 3280 | # python might then depend on the C++ runtime |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3281 | # 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] | 3282 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3283 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3284 | echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 3285 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3286 | if test -z "$LINKCC" |
| 3287 | then |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3288 | LINKCC='$(PURIFY) $(MAINCC)' |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3289 | case $ac_sys_system in |
| 3290 | AIX*) |
Neal Norwitz | 0b27ff9 | 2003-03-31 15:53:49 +0000 | [diff] [blame] | 3291 | exp_extra="\"\"" |
| 3292 | if test $ac_sys_release -ge 5 -o \ |
| 3293 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 3294 | exp_extra="." |
| 3295 | fi |
| 3296 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3297 | Monterey64*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3298 | LINKCC="$LINKCC -L/usr/lib/ia64l64";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3299 | esac |
| 3300 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3301 | echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 3302 | echo "${ECHO_T}$LINKCC" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3303 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3304 | echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 3305 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3306 | # Check whether --enable-shared or --disable-shared was given. |
| 3307 | if test "${enable_shared+set}" = set; then |
| 3308 | enableval="$enable_shared" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3309 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3310 | fi; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3311 | |
| 3312 | if test -z "$enable_shared" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3313 | then |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3314 | case $ac_sys_system in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3315 | CYGWIN* | atheos*) |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3316 | enable_shared="yes";; |
| 3317 | *) |
| 3318 | enable_shared="no";; |
| 3319 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3320 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3321 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 3322 | echo "${ECHO_T}$enable_shared" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3323 | |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 3324 | echo "$as_me:$LINENO: checking for --enable-profiling" >&5 |
| 3325 | echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6 |
| 3326 | # Check whether --enable-profiling or --disable-profiling was given. |
| 3327 | if test "${enable_profiling+set}" = set; then |
| 3328 | enableval="$enable_profiling" |
| 3329 | ac_save_cc="$CC" |
| 3330 | CC="$CC -pg" |
| 3331 | if test "$cross_compiling" = yes; then |
| 3332 | ac_enable_profiling="no" |
| 3333 | else |
| 3334 | cat >conftest.$ac_ext <<_ACEOF |
| 3335 | /* confdefs.h. */ |
| 3336 | _ACEOF |
| 3337 | cat confdefs.h >>conftest.$ac_ext |
| 3338 | cat >>conftest.$ac_ext <<_ACEOF |
| 3339 | /* end confdefs.h. */ |
| 3340 | int main() { return 0; } |
| 3341 | _ACEOF |
| 3342 | rm -f conftest$ac_exeext |
| 3343 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3344 | (eval $ac_link) 2>&5 |
| 3345 | ac_status=$? |
| 3346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3347 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3349 | (eval $ac_try) 2>&5 |
| 3350 | ac_status=$? |
| 3351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3352 | (exit $ac_status); }; }; then |
| 3353 | ac_enable_profiling="yes" |
| 3354 | else |
| 3355 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3356 | echo "$as_me: failed program was:" >&5 |
| 3357 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3358 | |
| 3359 | ( exit $ac_status ) |
| 3360 | ac_enable_profiling="no" |
| 3361 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3362 | 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] | 3363 | fi |
| 3364 | CC="$ac_save_cc" |
| 3365 | fi; |
| 3366 | echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5 |
| 3367 | echo "${ECHO_T}$ac_enable_profiling" >&6 |
| 3368 | |
| 3369 | case "$ac_enable_profiling" in |
| 3370 | "yes") |
| 3371 | BASECFLAGS="-pg $BASECFLAGS" |
| 3372 | LDFLAGS="-pg $LDFLAGS" |
| 3373 | ;; |
| 3374 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3375 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3376 | echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 3377 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3378 | |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 3379 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 3380 | # library that we build, but we do not want to link against it (we |
| 3381 | # will find it with a -framework option). For this reason there is an |
| 3382 | # extra variable BLDLIBRARY against which Python and the extension |
| 3383 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 3384 | # LDLIBRARY, but empty for MacOSX framework builds. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3385 | if test "$enable_framework" |
| 3386 | then |
| 3387 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 66b8483 | 2003-07-04 12:14:39 +0000 | [diff] [blame] | 3388 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3389 | BLDLIBRARY='' |
| 3390 | else |
| 3391 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3392 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3393 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3394 | # Other platforms follow |
| 3395 | if test $enable_shared = "yes"; then |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 3396 | |
| 3397 | cat >>confdefs.h <<\_ACEOF |
| 3398 | #define Py_ENABLE_SHARED 1 |
| 3399 | _ACEOF |
| 3400 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3401 | case $ac_sys_system in |
| 3402 | BeOS*) |
| 3403 | LDLIBRARY='libpython$(VERSION).so' |
| 3404 | ;; |
| 3405 | CYGWIN*) |
| 3406 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3407 | DLLLIBRARY='libpython$(VERSION).dll' |
| 3408 | ;; |
| 3409 | SunOS*) |
| 3410 | LDLIBRARY='libpython$(VERSION).so' |
Martin v. Löwis | d141a8c | 2003-06-14 15:20:28 +0000 | [diff] [blame] | 3411 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3412 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 2389c41 | 2003-10-31 15:42:07 +0000 | [diff] [blame] | 3413 | INSTSONAME="$LDLIBRARY".$SOVERSION |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3414 | ;; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 3415 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3416 | LDLIBRARY='libpython$(VERSION).so' |
| 3417 | BLDLIBRARY='-L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3418 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Hye-Shik Chang | 3376149 | 2004-10-26 09:53:46 +0000 | [diff] [blame] | 3419 | case $ac_sys_system in |
| 3420 | FreeBSD*) |
| 3421 | SOVERSION=`echo $SOVERSION|cut -d "." -f 1` |
| 3422 | ;; |
| 3423 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3424 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 3425 | ;; |
| 3426 | hp*|HP*) |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 3427 | case `uname -m` in |
| 3428 | ia64) |
| 3429 | LDLIBRARY='libpython$(VERSION).so' |
| 3430 | ;; |
| 3431 | *) |
| 3432 | LDLIBRARY='libpython$(VERSION).sl' |
| 3433 | ;; |
| 3434 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3435 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3436 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3437 | ;; |
| 3438 | OSF*) |
| 3439 | LDLIBRARY='libpython$(VERSION).so' |
Neal Norwitz | 671b9e3 | 2006-01-09 07:07:12 +0000 | [diff] [blame] | 3440 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3441 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3442 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3443 | atheos*) |
| 3444 | LDLIBRARY='libpython$(VERSION).so' |
| 3445 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3446 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 3447 | ;; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3448 | esac |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 3449 | else # shared is disabled |
| 3450 | case $ac_sys_system in |
| 3451 | CYGWIN*) |
| 3452 | BLDLIBRARY='$(LIBRARY)' |
| 3453 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3454 | ;; |
| 3455 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3456 | fi |
| 3457 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3458 | echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 3459 | echo "${ECHO_T}$LDLIBRARY" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3460 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3461 | if test -n "$ac_tool_prefix"; then |
| 3462 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3463 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3464 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3465 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3466 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3467 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3468 | else |
| 3469 | if test -n "$RANLIB"; then |
| 3470 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3471 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3473 | for as_dir in $PATH |
| 3474 | do |
| 3475 | IFS=$as_save_IFS |
| 3476 | test -z "$as_dir" && as_dir=. |
| 3477 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3478 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3479 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3480 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3481 | break 2 |
| 3482 | fi |
| 3483 | done |
| 3484 | done |
| 3485 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3486 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3487 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3488 | RANLIB=$ac_cv_prog_RANLIB |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3489 | if test -n "$RANLIB"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3490 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3491 | echo "${ECHO_T}$RANLIB" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3492 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3493 | echo "$as_me:$LINENO: result: no" >&5 |
| 3494 | echo "${ECHO_T}no" >&6 |
| 3495 | fi |
| 3496 | |
| 3497 | fi |
| 3498 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3499 | ac_ct_RANLIB=$RANLIB |
| 3500 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3501 | set dummy ranlib; ac_word=$2 |
| 3502 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3503 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3504 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3505 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3506 | else |
| 3507 | if test -n "$ac_ct_RANLIB"; then |
| 3508 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3509 | else |
| 3510 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3511 | for as_dir in $PATH |
| 3512 | do |
| 3513 | IFS=$as_save_IFS |
| 3514 | test -z "$as_dir" && as_dir=. |
| 3515 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3516 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3517 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3518 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3519 | break 2 |
| 3520 | fi |
| 3521 | done |
| 3522 | done |
| 3523 | |
| 3524 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3525 | fi |
| 3526 | fi |
| 3527 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3528 | if test -n "$ac_ct_RANLIB"; then |
| 3529 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3530 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3531 | else |
| 3532 | echo "$as_me:$LINENO: result: no" >&5 |
| 3533 | echo "${ECHO_T}no" >&6 |
| 3534 | fi |
| 3535 | |
| 3536 | RANLIB=$ac_ct_RANLIB |
| 3537 | else |
| 3538 | RANLIB="$ac_cv_prog_RANLIB" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3539 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3540 | |
| 3541 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3542 | for ac_prog in ar aal |
| 3543 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3544 | # 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] | 3545 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3546 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3547 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3548 | if test "${ac_cv_prog_AR+set}" = set; then |
| 3549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3550 | else |
| 3551 | if test -n "$AR"; then |
| 3552 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 3553 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3554 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3555 | for as_dir in $PATH |
| 3556 | do |
| 3557 | IFS=$as_save_IFS |
| 3558 | test -z "$as_dir" && as_dir=. |
| 3559 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3560 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3561 | ac_cv_prog_AR="$ac_prog" |
| 3562 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3563 | break 2 |
| 3564 | fi |
| 3565 | done |
| 3566 | done |
| 3567 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3568 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3569 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3570 | AR=$ac_cv_prog_AR |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3571 | if test -n "$AR"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3572 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 3573 | echo "${ECHO_T}$AR" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3574 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3575 | echo "$as_me:$LINENO: result: no" >&5 |
| 3576 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3577 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3578 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3579 | test -n "$AR" && break |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3580 | done |
| 3581 | test -n "$AR" || AR="ar" |
| 3582 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3583 | |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 3584 | |
Martin v. Löwis | c5bf5a0 | 2006-01-05 10:33:59 +0000 | [diff] [blame] | 3585 | # Extract the first word of "svnversion", so it can be a program name with args. |
| 3586 | set dummy svnversion; ac_word=$2 |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 3587 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3588 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3589 | if test "${ac_cv_prog_SVNVERSION+set}" = set; then |
| 3590 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3591 | else |
| 3592 | if test -n "$SVNVERSION"; then |
| 3593 | ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test. |
| 3594 | else |
| 3595 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3596 | for as_dir in $PATH |
| 3597 | do |
| 3598 | IFS=$as_save_IFS |
| 3599 | test -z "$as_dir" && as_dir=. |
| 3600 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3601 | 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] | 3602 | ac_cv_prog_SVNVERSION="found" |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 3603 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3604 | break 2 |
| 3605 | fi |
| 3606 | done |
| 3607 | done |
| 3608 | |
Martin v. Löwis | ff60023 | 2006-04-03 19:12:32 +0000 | [diff] [blame] | 3609 | test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found" |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 3610 | fi |
| 3611 | fi |
| 3612 | SVNVERSION=$ac_cv_prog_SVNVERSION |
| 3613 | if test -n "$SVNVERSION"; then |
| 3614 | echo "$as_me:$LINENO: result: $SVNVERSION" >&5 |
| 3615 | echo "${ECHO_T}$SVNVERSION" >&6 |
| 3616 | else |
| 3617 | echo "$as_me:$LINENO: result: no" >&5 |
| 3618 | echo "${ECHO_T}no" >&6 |
| 3619 | fi |
| 3620 | |
Martin v. Löwis | c5bf5a0 | 2006-01-05 10:33:59 +0000 | [diff] [blame] | 3621 | if test $SVNVERSION = found |
| 3622 | then |
| 3623 | SVNVERSION="svnversion \$(srcdir)" |
| 3624 | else |
| 3625 | SVNVERSION="echo exported" |
| 3626 | fi |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 3627 | |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3628 | case $MACHDEP in |
Neil Schemenauer | af5567f | 2001-10-21 22:32:04 +0000 | [diff] [blame] | 3629 | bsdos*|hp*|HP*) |
| 3630 | # install -d does not work on BSDI or HP-UX |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3631 | if test -z "$INSTALL" |
| 3632 | then |
| 3633 | INSTALL="${srcdir}/install-sh -c" |
| 3634 | fi |
| 3635 | esac |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3636 | ac_aux_dir= |
| 3637 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 3638 | if test -f $ac_dir/install-sh; then |
| 3639 | ac_aux_dir=$ac_dir |
| 3640 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3641 | break |
| 3642 | elif test -f $ac_dir/install.sh; then |
| 3643 | ac_aux_dir=$ac_dir |
| 3644 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3645 | break |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3646 | elif test -f $ac_dir/shtool; then |
| 3647 | ac_aux_dir=$ac_dir |
| 3648 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3649 | break |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3650 | fi |
| 3651 | done |
| 3652 | if test -z "$ac_aux_dir"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3653 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 3654 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 3655 | { (exit 1); exit 1; }; } |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3656 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3657 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 3658 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 3659 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3660 | |
| 3661 | # Find a good install program. We prefer a C program (faster), |
| 3662 | # so one script is as good as another. But avoid the broken or |
| 3663 | # incompatible versions: |
| 3664 | # SysV /etc/install, /usr/sbin/install |
| 3665 | # SunOS /usr/etc/install |
| 3666 | # IRIX /sbin/install |
| 3667 | # AIX /bin/install |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3668 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3669 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3670 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3671 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3672 | # OS/2's system install, which has a completely different semantic |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3673 | # ./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] | 3674 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 3675 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3676 | if test -z "$INSTALL"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3677 | if test "${ac_cv_path_install+set}" = set; then |
| 3678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3679 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3680 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3681 | for as_dir in $PATH |
| 3682 | do |
| 3683 | IFS=$as_save_IFS |
| 3684 | test -z "$as_dir" && as_dir=. |
| 3685 | # Account for people who put trailing slashes in PATH elements. |
| 3686 | case $as_dir/ in |
| 3687 | ./ | .// | /cC/* | \ |
| 3688 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3689 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3690 | /usr/ucb/* ) ;; |
| 3691 | *) |
| 3692 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3693 | # Don't use installbsd from OSF since it installs stuff as root |
| 3694 | # by default. |
| 3695 | for ac_prog in ginstall scoinst install; do |
| 3696 | for ac_exec_ext in '' $ac_executable_extensions; do |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3697 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3698 | if test $ac_prog = install && |
| 3699 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3700 | # AIX install. It has an incompatible calling convention. |
| 3701 | : |
| 3702 | elif test $ac_prog = install && |
| 3703 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3704 | # program-specific install script used by HP pwplus--don't use. |
| 3705 | : |
| 3706 | else |
| 3707 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3708 | break 3 |
| 3709 | fi |
| 3710 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3711 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3712 | done |
| 3713 | ;; |
| 3714 | esac |
| 3715 | done |
| 3716 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3717 | |
| 3718 | fi |
| 3719 | if test "${ac_cv_path_install+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3720 | INSTALL=$ac_cv_path_install |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3721 | else |
| 3722 | # As a last resort, use the slow shell script. We don't cache a |
| 3723 | # path for INSTALL within a source directory, because that will |
| 3724 | # break other packages using the cache if that directory is |
| 3725 | # removed, or if the path is relative. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3726 | INSTALL=$ac_install_sh |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3727 | fi |
| 3728 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3729 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 3730 | echo "${ECHO_T}$INSTALL" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3731 | |
| 3732 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3733 | # It thinks the first close brace ends the variable substitution. |
| 3734 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3735 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3736 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3737 | |
| 3738 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3739 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3740 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3741 | # Not every filesystem supports hard links |
| 3742 | |
| 3743 | if test -z "$LN" ; then |
| 3744 | case $ac_sys_system in |
| 3745 | BeOS*) LN="ln -s";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3746 | CYGWIN*) LN="ln -s";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3747 | atheos*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3748 | *) LN=ln;; |
| 3749 | esac |
| 3750 | fi |
| 3751 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3752 | # Check for --with-pydebug |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3753 | echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 3754 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6 |
| 3755 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3756 | # Check whether --with-pydebug or --without-pydebug was given. |
| 3757 | if test "${with_pydebug+set}" = set; then |
| 3758 | withval="$with_pydebug" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3759 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3760 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3761 | then |
| 3762 | |
| 3763 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3764 | #define Py_DEBUG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3765 | _ACEOF |
| 3766 | |
| 3767 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3768 | echo "${ECHO_T}yes" >&6; |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 3769 | Py_DEBUG='true' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3770 | else echo "$as_me:$LINENO: result: no" >&5 |
| 3771 | echo "${ECHO_T}no" >&6; Py_DEBUG='false' |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3772 | fi |
| 3773 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3774 | echo "$as_me:$LINENO: result: no" >&5 |
| 3775 | echo "${ECHO_T}no" >&6 |
| 3776 | fi; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3777 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3778 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 3779 | # merged with this chunk of code? |
| 3780 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3781 | # Optimizer/debugger flags |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3782 | # ------------------------ |
| 3783 | # (The following bit of code is complicated enough - please keep things |
| 3784 | # indented properly. Just pretend you're editing Python code. ;-) |
| 3785 | |
| 3786 | # There are two parallel sets of case statements below, one that checks to |
| 3787 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 3788 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 3789 | # user set OPT. |
| 3790 | |
| 3791 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 3792 | # it on the command line |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3793 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3794 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3795 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3796 | case $GCC in |
| 3797 | yes) |
Skip Montanaro | 288a5be | 2006-04-13 02:00:56 +0000 | [diff] [blame] | 3798 | if test "$CC" != 'g++' ; then |
| 3799 | STRICT_PROTO="-Wstrict-prototypes" |
| 3800 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3801 | case $ac_cv_prog_cc_g in |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3802 | yes) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3803 | if test "$Py_DEBUG" = 'true' ; then |
| 3804 | # Optimization messes up debuggers, so turn it off for |
| 3805 | # debug builds. |
Skip Montanaro | 288a5be | 2006-04-13 02:00:56 +0000 | [diff] [blame] | 3806 | OPT="-g -Wall $STRICT_PROTO" |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3807 | else |
Skip Montanaro | 288a5be | 2006-04-13 02:00:56 +0000 | [diff] [blame] | 3808 | OPT="-g -O3 -Wall $STRICT_PROTO" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3809 | fi |
| 3810 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3811 | *) |
Skip Montanaro | 288a5be | 2006-04-13 02:00:56 +0000 | [diff] [blame] | 3812 | OPT="-O3 -Wall $STRICT_PROTO" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3813 | ;; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3814 | esac |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3815 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3816 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 3817 | ;; |
| 3818 | esac |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3819 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3820 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3821 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3822 | OPT="-O" |
| 3823 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3824 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3825 | |
| 3826 | # The current (beta) Monterey compiler dies with optimizations |
| 3827 | # 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] | 3828 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3829 | Monterey*) |
| 3830 | OPT="" |
| 3831 | ;; |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3832 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3833 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3834 | fi |
| 3835 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3836 | |
| 3837 | # tweak BASECFLAGS based on compiler and platform |
| 3838 | case $GCC in |
| 3839 | yes) |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3840 | # Python violates C99 rules, by casting between incompatible |
| 3841 | # pointer types. GCC may generate bad code as a result of that, |
| 3842 | # so use -fno-strict-aliasing if supported. |
| 3843 | echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5 |
| 3844 | echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6 |
| 3845 | ac_save_cc="$CC" |
| 3846 | CC="$CC -fno-strict-aliasing" |
| 3847 | if test "$cross_compiling" = yes; then |
| 3848 | ac_cv_no_strict_aliasing_ok=no |
| 3849 | else |
| 3850 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3851 | /* confdefs.h. */ |
| 3852 | _ACEOF |
| 3853 | cat confdefs.h >>conftest.$ac_ext |
| 3854 | cat >>conftest.$ac_ext <<_ACEOF |
| 3855 | /* end confdefs.h. */ |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3856 | int main() { return 0; } |
| 3857 | _ACEOF |
| 3858 | rm -f conftest$ac_exeext |
| 3859 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3860 | (eval $ac_link) 2>&5 |
| 3861 | ac_status=$? |
| 3862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3863 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3865 | (eval $ac_try) 2>&5 |
| 3866 | ac_status=$? |
| 3867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3868 | (exit $ac_status); }; }; then |
| 3869 | ac_cv_no_strict_aliasing_ok=yes |
| 3870 | else |
| 3871 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3872 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3873 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3874 | |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3875 | ( exit $ac_status ) |
| 3876 | ac_cv_no_strict_aliasing_ok=no |
| 3877 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3878 | 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] | 3879 | fi |
| 3880 | CC="$ac_save_cc" |
| 3881 | echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5 |
| 3882 | echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6 |
| 3883 | if test $ac_cv_no_strict_aliasing_ok = yes |
| 3884 | then |
| 3885 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 3886 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3887 | case $ac_sys_system in |
| 3888 | SCO_SV*) |
| 3889 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 3890 | ;; |
| 3891 | # is there any other compiler on Darwin besides gcc? |
| 3892 | Darwin*) |
Jack Jansen | e004041 | 2003-07-23 22:17:28 +0000 | [diff] [blame] | 3893 | BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd" |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 3894 | if test "${enable_universalsdk}"; then |
| 3895 | BASECFLAGS="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}" |
| 3896 | fi |
| 3897 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3898 | ;; |
Neal Norwitz | dedeeaa | 2006-03-31 06:54:45 +0000 | [diff] [blame] | 3899 | OSF*) |
| 3900 | BASECFLAGS="$BASECFLAGS -mieee" |
| 3901 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3902 | esac |
| 3903 | ;; |
| 3904 | |
| 3905 | *) |
| 3906 | case $ac_sys_system in |
| 3907 | OpenUNIX*|UnixWare*) |
| 3908 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 3909 | ;; |
Neal Norwitz | b44f165 | 2003-05-26 14:11:55 +0000 | [diff] [blame] | 3910 | OSF*) |
| 3911 | BASECFLAGS="$BASECFLAGS -ieee -std" |
| 3912 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3913 | SCO_SV*) |
| 3914 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 3915 | ;; |
| 3916 | esac |
| 3917 | ;; |
| 3918 | esac |
| 3919 | |
Fred Drake | e1ceaa0 | 2001-12-04 20:55:47 +0000 | [diff] [blame] | 3920 | if test "$Py_DEBUG" = 'true'; then |
| 3921 | : |
| 3922 | else |
| 3923 | OPT="-DNDEBUG $OPT" |
| 3924 | fi |
| 3925 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3926 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3927 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3928 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3929 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3930 | |
Neal Norwitz | 020c46a | 2006-01-07 21:39:28 +0000 | [diff] [blame] | 3931 | # disable check for icc since it seems to pass, but generates a warning |
| 3932 | if test "$CC" = icc |
| 3933 | then |
| 3934 | ac_cv_opt_olimit_ok=no |
| 3935 | fi |
| 3936 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3937 | echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 3938 | echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6 |
| 3939 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
| 3940 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3941 | else |
| 3942 | ac_save_cc="$CC" |
| 3943 | CC="$CC -OPT:Olimit=0" |
| 3944 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3945 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3946 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3947 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3948 | /* confdefs.h. */ |
| 3949 | _ACEOF |
| 3950 | cat confdefs.h >>conftest.$ac_ext |
| 3951 | cat >>conftest.$ac_ext <<_ACEOF |
| 3952 | /* end confdefs.h. */ |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3953 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3954 | _ACEOF |
| 3955 | rm -f conftest$ac_exeext |
| 3956 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3957 | (eval $ac_link) 2>&5 |
| 3958 | ac_status=$? |
| 3959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3960 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3962 | (eval $ac_try) 2>&5 |
| 3963 | ac_status=$? |
| 3964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3965 | (exit $ac_status); }; }; then |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3966 | ac_cv_opt_olimit_ok=yes |
| 3967 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3968 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3969 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3970 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3971 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3972 | ( exit $ac_status ) |
| 3973 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3974 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3975 | 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] | 3976 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3977 | CC="$ac_save_cc" |
| 3978 | fi |
| 3979 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3980 | echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 3981 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 3982 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3983 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3984 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 3985 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 3986 | # environment? |
| 3987 | Darwin*) |
| 3988 | ;; |
| 3989 | *) |
| 3990 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 3991 | ;; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3992 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3993 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3994 | echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 3995 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6 |
| 3996 | if test "${ac_cv_olimit_ok+set}" = set; then |
| 3997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3998 | else |
| 3999 | ac_save_cc="$CC" |
| 4000 | CC="$CC -Olimit 1500" |
| 4001 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 4002 | ac_cv_olimit_ok=no |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4003 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4004 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4005 | /* confdefs.h. */ |
| 4006 | _ACEOF |
| 4007 | cat confdefs.h >>conftest.$ac_ext |
| 4008 | cat >>conftest.$ac_ext <<_ACEOF |
| 4009 | /* end confdefs.h. */ |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4010 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4011 | _ACEOF |
| 4012 | rm -f conftest$ac_exeext |
| 4013 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4014 | (eval $ac_link) 2>&5 |
| 4015 | ac_status=$? |
| 4016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4017 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4019 | (eval $ac_try) 2>&5 |
| 4020 | ac_status=$? |
| 4021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4022 | (exit $ac_status); }; }; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4023 | ac_cv_olimit_ok=yes |
| 4024 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4025 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4026 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4027 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4028 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4029 | ( exit $ac_status ) |
| 4030 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 4031 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4032 | 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] | 4033 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4034 | CC="$ac_save_cc" |
| 4035 | fi |
| 4036 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4037 | echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 4038 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4039 | if test $ac_cv_olimit_ok = yes; then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4040 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4041 | fi |
| 4042 | fi |
| 4043 | |
Martin v. Löwis | aac1316 | 2006-10-19 10:58:46 +0000 | [diff] [blame] | 4044 | # Check whether GCC supports PyArg_ParseTuple format |
| 4045 | if test "$GCC" = "yes" |
| 4046 | then |
| 4047 | echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5 |
| 4048 | echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6 |
| 4049 | save_CFLAGS=$CFLAGS |
| 4050 | CFLAGS="$CFLAGS -Werror" |
| 4051 | cat >conftest.$ac_ext <<_ACEOF |
| 4052 | /* confdefs.h. */ |
| 4053 | _ACEOF |
| 4054 | cat confdefs.h >>conftest.$ac_ext |
| 4055 | cat >>conftest.$ac_ext <<_ACEOF |
| 4056 | /* end confdefs.h. */ |
| 4057 | |
| 4058 | void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2))); |
| 4059 | |
| 4060 | int |
| 4061 | main () |
| 4062 | { |
| 4063 | |
| 4064 | ; |
| 4065 | return 0; |
| 4066 | } |
| 4067 | _ACEOF |
| 4068 | rm -f conftest.$ac_objext |
| 4069 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4070 | (eval $ac_compile) 2>conftest.er1 |
| 4071 | ac_status=$? |
| 4072 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4073 | rm -f conftest.er1 |
| 4074 | cat conftest.err >&5 |
| 4075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4076 | (exit $ac_status); } && |
| 4077 | { ac_try='test -z "$ac_c_werror_flag" |
| 4078 | || test ! -s conftest.err' |
| 4079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4080 | (eval $ac_try) 2>&5 |
| 4081 | ac_status=$? |
| 4082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4083 | (exit $ac_status); }; } && |
| 4084 | { ac_try='test -s conftest.$ac_objext' |
| 4085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4086 | (eval $ac_try) 2>&5 |
| 4087 | ac_status=$? |
| 4088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4089 | (exit $ac_status); }; }; then |
| 4090 | |
| 4091 | cat >>confdefs.h <<\_ACEOF |
| 4092 | #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1 |
| 4093 | _ACEOF |
| 4094 | |
| 4095 | echo "$as_me:$LINENO: result: yes" >&5 |
| 4096 | echo "${ECHO_T}yes" >&6 |
| 4097 | else |
| 4098 | echo "$as_me: failed program was:" >&5 |
| 4099 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4100 | |
| 4101 | echo "$as_me:$LINENO: result: no" >&5 |
| 4102 | echo "${ECHO_T}no" >&6 |
| 4103 | |
| 4104 | fi |
| 4105 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c1d7597 | 2006-10-19 16:01:37 +0000 | [diff] [blame] | 4106 | CFLAGS=$save_CFLAGS |
Martin v. Löwis | aac1316 | 2006-10-19 10:58:46 +0000 | [diff] [blame] | 4107 | fi |
| 4108 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4109 | # On some compilers, pthreads are available without further options |
| 4110 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 4111 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 4112 | # So we have to see first whether pthreads are available without |
| 4113 | # options before we can check whether -Kpthread improves anything. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4114 | echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 4115 | echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6 |
| 4116 | if test "${ac_cv_pthread_is_default+set}" = set; then |
| 4117 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4118 | else |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4119 | if test "$cross_compiling" = yes; then |
| 4120 | ac_cv_pthread_is_default=no |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4121 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4122 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4123 | /* confdefs.h. */ |
| 4124 | _ACEOF |
| 4125 | cat confdefs.h >>conftest.$ac_ext |
| 4126 | cat >>conftest.$ac_ext <<_ACEOF |
| 4127 | /* end confdefs.h. */ |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4128 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4129 | #include <pthread.h> |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4130 | |
| 4131 | void* routine(void* p){return NULL;} |
| 4132 | |
| 4133 | int main(){ |
| 4134 | pthread_t p; |
| 4135 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4136 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 4137 | (void)pthread_detach(p); |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4138 | return 0; |
| 4139 | } |
| 4140 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4141 | _ACEOF |
| 4142 | rm -f conftest$ac_exeext |
| 4143 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4144 | (eval $ac_link) 2>&5 |
| 4145 | ac_status=$? |
| 4146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4147 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4149 | (eval $ac_try) 2>&5 |
| 4150 | ac_status=$? |
| 4151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4152 | (exit $ac_status); }; }; then |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4153 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4154 | ac_cv_pthread_is_default=yes |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4155 | ac_cv_kthread=no |
| 4156 | ac_cv_pthread=no |
| 4157 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4158 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4159 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4160 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4161 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4162 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4163 | ( exit $ac_status ) |
| 4164 | ac_cv_pthread_is_default=no |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4165 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4166 | 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] | 4167 | fi |
| 4168 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4169 | fi |
| 4170 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4171 | echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 4172 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4173 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4174 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4175 | if test $ac_cv_pthread_is_default = yes |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4176 | then |
| 4177 | ac_cv_kpthread=no |
| 4178 | else |
| 4179 | # -Kpthread, if available, provides the right #defines |
| 4180 | # and linker options to make pthread_create available |
| 4181 | # Some compilers won't report that they do not support -Kpthread, |
| 4182 | # so we need to run a program to see whether it really made the |
| 4183 | # function available. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4184 | echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 4185 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6 |
| 4186 | if test "${ac_cv_kpthread+set}" = set; then |
| 4187 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4188 | else |
| 4189 | ac_save_cc="$CC" |
| 4190 | CC="$CC -Kpthread" |
| 4191 | if test "$cross_compiling" = yes; then |
| 4192 | ac_cv_kpthread=no |
| 4193 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4194 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4195 | /* confdefs.h. */ |
| 4196 | _ACEOF |
| 4197 | cat confdefs.h >>conftest.$ac_ext |
| 4198 | cat >>conftest.$ac_ext <<_ACEOF |
| 4199 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4200 | |
| 4201 | #include <pthread.h> |
| 4202 | |
| 4203 | void* routine(void* p){return NULL;} |
| 4204 | |
| 4205 | int main(){ |
| 4206 | pthread_t p; |
| 4207 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4208 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 4209 | (void)pthread_detach(p); |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4210 | return 0; |
| 4211 | } |
| 4212 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4213 | _ACEOF |
| 4214 | rm -f conftest$ac_exeext |
| 4215 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4216 | (eval $ac_link) 2>&5 |
| 4217 | ac_status=$? |
| 4218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4219 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4221 | (eval $ac_try) 2>&5 |
| 4222 | ac_status=$? |
| 4223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4224 | (exit $ac_status); }; }; then |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4225 | ac_cv_kpthread=yes |
| 4226 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4227 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4228 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4229 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4230 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4231 | ( exit $ac_status ) |
| 4232 | ac_cv_kpthread=no |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4233 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4234 | 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] | 4235 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4236 | CC="$ac_save_cc" |
| 4237 | fi |
| 4238 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4239 | echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 4240 | echo "${ECHO_T}$ac_cv_kpthread" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4241 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4242 | |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4243 | 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] | 4244 | then |
| 4245 | # -Kthread, if available, provides the right #defines |
| 4246 | # and linker options to make pthread_create available |
| 4247 | # Some compilers won't report that they do not support -Kthread, |
| 4248 | # so we need to run a program to see whether it really made the |
| 4249 | # function available. |
| 4250 | echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5 |
| 4251 | echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6 |
| 4252 | if test "${ac_cv_kthread+set}" = set; then |
| 4253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4254 | else |
| 4255 | ac_save_cc="$CC" |
| 4256 | CC="$CC -Kthread" |
| 4257 | if test "$cross_compiling" = yes; then |
| 4258 | ac_cv_kthread=no |
| 4259 | else |
| 4260 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4261 | /* confdefs.h. */ |
| 4262 | _ACEOF |
| 4263 | cat confdefs.h >>conftest.$ac_ext |
| 4264 | cat >>conftest.$ac_ext <<_ACEOF |
| 4265 | /* end confdefs.h. */ |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4266 | |
| 4267 | #include <pthread.h> |
| 4268 | |
| 4269 | void* routine(void* p){return NULL;} |
| 4270 | |
| 4271 | int main(){ |
| 4272 | pthread_t p; |
| 4273 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4274 | return 1; |
| 4275 | (void)pthread_detach(p); |
| 4276 | return 0; |
| 4277 | } |
| 4278 | |
| 4279 | _ACEOF |
| 4280 | rm -f conftest$ac_exeext |
| 4281 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4282 | (eval $ac_link) 2>&5 |
| 4283 | ac_status=$? |
| 4284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4285 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4287 | (eval $ac_try) 2>&5 |
| 4288 | ac_status=$? |
| 4289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4290 | (exit $ac_status); }; }; then |
| 4291 | ac_cv_kthread=yes |
| 4292 | else |
| 4293 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4294 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4295 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4296 | |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4297 | ( exit $ac_status ) |
| 4298 | ac_cv_kthread=no |
| 4299 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4300 | 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] | 4301 | fi |
| 4302 | CC="$ac_save_cc" |
| 4303 | fi |
| 4304 | |
| 4305 | echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5 |
| 4306 | echo "${ECHO_T}$ac_cv_kthread" >&6 |
| 4307 | fi |
| 4308 | |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4309 | 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] | 4310 | then |
| 4311 | # -pthread, if available, provides the right #defines |
| 4312 | # and linker options to make pthread_create available |
| 4313 | # Some compilers won't report that they do not support -pthread, |
| 4314 | # so we need to run a program to see whether it really made the |
| 4315 | # function available. |
| 4316 | echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5 |
| 4317 | echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6 |
| 4318 | if test "${ac_cv_thread+set}" = set; then |
| 4319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4320 | else |
| 4321 | ac_save_cc="$CC" |
| 4322 | CC="$CC -pthread" |
| 4323 | if test "$cross_compiling" = yes; then |
| 4324 | ac_cv_pthread=no |
| 4325 | else |
| 4326 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4327 | /* confdefs.h. */ |
| 4328 | _ACEOF |
| 4329 | cat confdefs.h >>conftest.$ac_ext |
| 4330 | cat >>conftest.$ac_ext <<_ACEOF |
| 4331 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 4332 | |
| 4333 | #include <pthread.h> |
| 4334 | |
| 4335 | void* routine(void* p){return NULL;} |
| 4336 | |
| 4337 | int main(){ |
| 4338 | pthread_t p; |
| 4339 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4340 | return 1; |
| 4341 | (void)pthread_detach(p); |
| 4342 | return 0; |
| 4343 | } |
| 4344 | |
| 4345 | _ACEOF |
| 4346 | rm -f conftest$ac_exeext |
| 4347 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4348 | (eval $ac_link) 2>&5 |
| 4349 | ac_status=$? |
| 4350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4351 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4353 | (eval $ac_try) 2>&5 |
| 4354 | ac_status=$? |
| 4355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4356 | (exit $ac_status); }; }; then |
| 4357 | ac_cv_pthread=yes |
| 4358 | else |
| 4359 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4360 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4361 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4362 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 4363 | ( exit $ac_status ) |
| 4364 | ac_cv_pthread=no |
| 4365 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4366 | 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] | 4367 | fi |
| 4368 | CC="$ac_save_cc" |
| 4369 | fi |
| 4370 | |
| 4371 | echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5 |
| 4372 | echo "${ECHO_T}$ac_cv_pthread" >&6 |
| 4373 | fi |
| 4374 | |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4375 | # If we have set a CC compiler flag for thread support then |
| 4376 | # check if it works for CXX, too. |
| 4377 | ac_cv_cxx_thread=no |
| 4378 | if test ! -z "$CXX" |
| 4379 | then |
| 4380 | echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5 |
| 4381 | echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6 |
| 4382 | ac_save_cxx="$CXX" |
| 4383 | |
| 4384 | if test "$ac_cv_kpthread" = "yes" |
| 4385 | then |
| 4386 | CXX="$CXX -Kpthread" |
| 4387 | ac_cv_cxx_thread=yes |
| 4388 | elif test "$ac_cv_kthread" = "yes" |
| 4389 | then |
| 4390 | CXX="$CXX -Kthread" |
| 4391 | ac_cv_cxx_thread=yes |
| 4392 | elif test "$ac_cv_pthread" = "yes" |
| 4393 | then |
| 4394 | CXX="$CXX -pthread" |
| 4395 | ac_cv_cxx_thread=yes |
| 4396 | fi |
| 4397 | |
| 4398 | if test $ac_cv_cxx_thread = yes |
| 4399 | then |
| 4400 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 4401 | $CXX -c conftest.$ac_ext 2>&5 |
| 4402 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 4403 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 4404 | then |
| 4405 | ac_cv_cxx_thread=yes |
| 4406 | else |
| 4407 | ac_cv_cxx_thread=no |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4408 | fi |
| 4409 | rm -fr conftest* |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4410 | fi |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4411 | echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5 |
| 4412 | echo "${ECHO_T}$ac_cv_cxx_thread" >&6 |
Brett Cannon | c601e0f | 2004-11-07 01:24:12 +0000 | [diff] [blame] | 4413 | fi |
| 4414 | CXX="$ac_save_cxx" |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4415 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4416 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4417 | # checks for header files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4418 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4419 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 4420 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4422 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4423 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4424 | /* confdefs.h. */ |
| 4425 | _ACEOF |
| 4426 | cat confdefs.h >>conftest.$ac_ext |
| 4427 | cat >>conftest.$ac_ext <<_ACEOF |
| 4428 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4429 | #include <stdlib.h> |
| 4430 | #include <stdarg.h> |
| 4431 | #include <string.h> |
| 4432 | #include <float.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4433 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4434 | int |
| 4435 | main () |
| 4436 | { |
| 4437 | |
| 4438 | ; |
| 4439 | return 0; |
| 4440 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4441 | _ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4442 | rm -f conftest.$ac_objext |
| 4443 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4444 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4445 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4446 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4447 | rm -f conftest.er1 |
| 4448 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4450 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 4451 | { ac_try='test -z "$ac_c_werror_flag" |
| 4452 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4454 | (eval $ac_try) 2>&5 |
| 4455 | ac_status=$? |
| 4456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4457 | (exit $ac_status); }; } && |
| 4458 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4460 | (eval $ac_try) 2>&5 |
| 4461 | ac_status=$? |
| 4462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4463 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4464 | ac_cv_header_stdc=yes |
| 4465 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4466 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4467 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4468 | |
| 4469 | ac_cv_header_stdc=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4470 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4471 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4472 | |
| 4473 | if test $ac_cv_header_stdc = yes; then |
| 4474 | # 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] | 4475 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4476 | /* confdefs.h. */ |
| 4477 | _ACEOF |
| 4478 | cat confdefs.h >>conftest.$ac_ext |
| 4479 | cat >>conftest.$ac_ext <<_ACEOF |
| 4480 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4481 | #include <string.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4482 | |
| 4483 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4484 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4485 | $EGREP "memchr" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4486 | : |
| 4487 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4488 | ac_cv_header_stdc=no |
| 4489 | fi |
| 4490 | rm -f conftest* |
| 4491 | |
| 4492 | fi |
| 4493 | |
| 4494 | if test $ac_cv_header_stdc = yes; then |
| 4495 | # 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] | 4496 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4497 | /* confdefs.h. */ |
| 4498 | _ACEOF |
| 4499 | cat confdefs.h >>conftest.$ac_ext |
| 4500 | cat >>conftest.$ac_ext <<_ACEOF |
| 4501 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4502 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4503 | |
| 4504 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4505 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4506 | $EGREP "free" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4507 | : |
| 4508 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4509 | ac_cv_header_stdc=no |
| 4510 | fi |
| 4511 | rm -f conftest* |
| 4512 | |
| 4513 | fi |
| 4514 | |
| 4515 | if test $ac_cv_header_stdc = yes; then |
| 4516 | # /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] | 4517 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4518 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4519 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4520 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4521 | /* confdefs.h. */ |
| 4522 | _ACEOF |
| 4523 | cat confdefs.h >>conftest.$ac_ext |
| 4524 | cat >>conftest.$ac_ext <<_ACEOF |
| 4525 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4526 | #include <ctype.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4527 | #if ((' ' & 0x0FF) == 0x020) |
| 4528 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4529 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4530 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4531 | # define ISLOWER(c) \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4532 | (('a' <= (c) && (c) <= 'i') \ |
| 4533 | || ('j' <= (c) && (c) <= 'r') \ |
| 4534 | || ('s' <= (c) && (c) <= 'z')) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4535 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4536 | #endif |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4537 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4538 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4539 | int |
| 4540 | main () |
| 4541 | { |
| 4542 | int i; |
| 4543 | for (i = 0; i < 256; i++) |
| 4544 | if (XOR (islower (i), ISLOWER (i)) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4545 | || toupper (i) != TOUPPER (i)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4546 | exit(2); |
| 4547 | exit (0); |
| 4548 | } |
| 4549 | _ACEOF |
| 4550 | rm -f conftest$ac_exeext |
| 4551 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4552 | (eval $ac_link) 2>&5 |
| 4553 | ac_status=$? |
| 4554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4555 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4557 | (eval $ac_try) 2>&5 |
| 4558 | ac_status=$? |
| 4559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4560 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4561 | : |
| 4562 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4563 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4564 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4565 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4566 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4567 | ( exit $ac_status ) |
| 4568 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4569 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4570 | 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] | 4571 | fi |
| 4572 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4573 | fi |
| 4574 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4575 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4576 | if test $ac_cv_header_stdc = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4577 | |
| 4578 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4579 | #define STDC_HEADERS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4580 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4581 | |
| 4582 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4583 | |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4584 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4585 | |
| 4586 | |
| 4587 | |
| 4588 | |
| 4589 | |
| 4590 | |
| 4591 | |
| 4592 | |
| 4593 | |
| 4594 | 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] | 4595 | inttypes.h stdint.h unistd.h |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4596 | do |
| 4597 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4598 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4599 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4600 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4602 | else |
| 4603 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4604 | /* confdefs.h. */ |
| 4605 | _ACEOF |
| 4606 | cat confdefs.h >>conftest.$ac_ext |
| 4607 | cat >>conftest.$ac_ext <<_ACEOF |
| 4608 | /* end confdefs.h. */ |
| 4609 | $ac_includes_default |
| 4610 | |
| 4611 | #include <$ac_header> |
| 4612 | _ACEOF |
| 4613 | rm -f conftest.$ac_objext |
| 4614 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4615 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4616 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4617 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4618 | rm -f conftest.er1 |
| 4619 | cat conftest.err >&5 |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4621 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 4622 | { ac_try='test -z "$ac_c_werror_flag" |
| 4623 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4625 | (eval $ac_try) 2>&5 |
| 4626 | ac_status=$? |
| 4627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4628 | (exit $ac_status); }; } && |
| 4629 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4631 | (eval $ac_try) 2>&5 |
| 4632 | ac_status=$? |
| 4633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4634 | (exit $ac_status); }; }; then |
| 4635 | eval "$as_ac_Header=yes" |
| 4636 | else |
| 4637 | echo "$as_me: failed program was:" >&5 |
| 4638 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4639 | |
| 4640 | eval "$as_ac_Header=no" |
| 4641 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4642 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4643 | fi |
| 4644 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4645 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4646 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4647 | cat >>confdefs.h <<_ACEOF |
| 4648 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4649 | _ACEOF |
| 4650 | |
| 4651 | fi |
| 4652 | |
| 4653 | done |
| 4654 | |
| 4655 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4656 | |
| 4657 | |
| 4658 | |
| 4659 | |
| 4660 | |
| 4661 | |
| 4662 | |
| 4663 | |
| 4664 | |
| 4665 | |
| 4666 | |
| 4667 | |
| 4668 | |
| 4669 | |
| 4670 | |
| 4671 | |
| 4672 | |
| 4673 | |
| 4674 | |
| 4675 | |
| 4676 | |
| 4677 | |
| 4678 | |
| 4679 | |
| 4680 | |
| 4681 | |
| 4682 | |
| 4683 | |
| 4684 | |
| 4685 | |
| 4686 | |
| 4687 | |
| 4688 | |
| 4689 | |
| 4690 | |
| 4691 | |
Anthony Baxter | 8a560de | 2004-10-13 15:30:56 +0000 | [diff] [blame] | 4692 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 4693 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 4694 | |
Martin v. Löwis | 5f5d99c | 2006-05-16 07:05:37 +0000 | [diff] [blame] | 4695 | |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 4696 | |
| 4697 | |
| 4698 | |
| 4699 | |
| 4700 | |
| 4701 | |
| 4702 | |
| 4703 | |
Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 4704 | |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 4705 | for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \ |
| 4706 | fcntl.h grp.h \ |
Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 4707 | io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \ |
| 4708 | shadow.h signal.h stdint.h stropts.h termios.h thread.h \ |
Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 4709 | unistd.h utime.h \ |
Anthony Baxter | 8a560de | 2004-10-13 15:30:56 +0000 | [diff] [blame] | 4710 | sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \ |
| 4711 | sys/modem.h \ |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 4712 | sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \ |
| 4713 | sys/time.h \ |
| 4714 | sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \ |
Martin v. Löwis | 0347a9a | 2006-10-27 07:06:52 +0000 | [diff] [blame] | 4715 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
Hye-Shik Chang | 8126860 | 2004-02-02 06:05:24 +0000 | [diff] [blame] | 4716 | bluetooth/bluetooth.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4717 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4718 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4719 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4720 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4721 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4722 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4723 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4724 | fi |
| 4725 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4726 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4727 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4728 | # Is the header compilable? |
| 4729 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 4730 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 4731 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4732 | /* confdefs.h. */ |
| 4733 | _ACEOF |
| 4734 | cat confdefs.h >>conftest.$ac_ext |
| 4735 | cat >>conftest.$ac_ext <<_ACEOF |
| 4736 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4737 | $ac_includes_default |
| 4738 | #include <$ac_header> |
| 4739 | _ACEOF |
| 4740 | rm -f conftest.$ac_objext |
| 4741 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4742 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4743 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4744 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4745 | rm -f conftest.er1 |
| 4746 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4748 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 4749 | { ac_try='test -z "$ac_c_werror_flag" |
| 4750 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4752 | (eval $ac_try) 2>&5 |
| 4753 | ac_status=$? |
| 4754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4755 | (exit $ac_status); }; } && |
| 4756 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4758 | (eval $ac_try) 2>&5 |
| 4759 | ac_status=$? |
| 4760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4761 | (exit $ac_status); }; }; then |
| 4762 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4763 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4764 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4765 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4766 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4767 | ac_header_compiler=no |
| 4768 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4769 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4770 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4771 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4772 | |
| 4773 | # Is the header present? |
| 4774 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4775 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4776 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4777 | /* confdefs.h. */ |
| 4778 | _ACEOF |
| 4779 | cat confdefs.h >>conftest.$ac_ext |
| 4780 | cat >>conftest.$ac_ext <<_ACEOF |
| 4781 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4782 | #include <$ac_header> |
| 4783 | _ACEOF |
| 4784 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4785 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4786 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4787 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4788 | rm -f conftest.er1 |
| 4789 | cat conftest.err >&5 |
| 4790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4791 | (exit $ac_status); } >/dev/null; then |
| 4792 | if test -s conftest.err; then |
| 4793 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4794 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4795 | else |
| 4796 | ac_cpp_err= |
| 4797 | fi |
| 4798 | else |
| 4799 | ac_cpp_err=yes |
| 4800 | fi |
| 4801 | if test -z "$ac_cpp_err"; then |
| 4802 | ac_header_preproc=yes |
| 4803 | else |
| 4804 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4805 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4806 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4807 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4808 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4809 | rm -f conftest.err conftest.$ac_ext |
| 4810 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4811 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4812 | |
| 4813 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4814 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4815 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4816 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4817 | 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] | 4818 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 4819 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 4820 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 4821 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4822 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 4823 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4824 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4825 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4826 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4827 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 4828 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 4829 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 4830 | 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] | 4831 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4832 | 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] | 4833 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 4834 | 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] | 4835 | ( |
| 4836 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 4837 | ## ------------------------------------------------ ## |
| 4838 | ## Report this to http://www.python.org/python-bugs ## |
| 4839 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4840 | _ASBOX |
| 4841 | ) | |
| 4842 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4843 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4844 | esac |
| 4845 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4846 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4847 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4849 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4850 | eval "$as_ac_Header=\$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4851 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4852 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4853 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4854 | |
| 4855 | fi |
| 4856 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4857 | cat >>confdefs.h <<_ACEOF |
| 4858 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4859 | _ACEOF |
| 4860 | |
| 4861 | fi |
| 4862 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4863 | done |
| 4864 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4865 | |
| 4866 | |
| 4867 | |
| 4868 | |
| 4869 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4870 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4871 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 4872 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 4873 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 4874 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 4875 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4877 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4878 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4879 | /* confdefs.h. */ |
| 4880 | _ACEOF |
| 4881 | cat confdefs.h >>conftest.$ac_ext |
| 4882 | cat >>conftest.$ac_ext <<_ACEOF |
| 4883 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4884 | #include <sys/types.h> |
| 4885 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4886 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4887 | int |
| 4888 | main () |
| 4889 | { |
| 4890 | if ((DIR *) 0) |
| 4891 | return 0; |
| 4892 | ; |
| 4893 | return 0; |
| 4894 | } |
| 4895 | _ACEOF |
| 4896 | rm -f conftest.$ac_objext |
| 4897 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4898 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4899 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4900 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4901 | rm -f conftest.er1 |
| 4902 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4904 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 4905 | { ac_try='test -z "$ac_c_werror_flag" |
| 4906 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4908 | (eval $ac_try) 2>&5 |
| 4909 | ac_status=$? |
| 4910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4911 | (exit $ac_status); }; } && |
| 4912 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4914 | (eval $ac_try) 2>&5 |
| 4915 | ac_status=$? |
| 4916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4917 | (exit $ac_status); }; }; then |
| 4918 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4919 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4920 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4921 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4922 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4923 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4924 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4925 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4926 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4927 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4928 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4929 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4930 | cat >>confdefs.h <<_ACEOF |
| 4931 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 4932 | _ACEOF |
| 4933 | |
| 4934 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4935 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4936 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4937 | done |
| 4938 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 4939 | if test $ac_header_dirent = dirent.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4940 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4941 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4942 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4944 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4945 | ac_func_search_save_LIBS=$LIBS |
| 4946 | ac_cv_search_opendir=no |
| 4947 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4948 | /* confdefs.h. */ |
| 4949 | _ACEOF |
| 4950 | cat confdefs.h >>conftest.$ac_ext |
| 4951 | cat >>conftest.$ac_ext <<_ACEOF |
| 4952 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4953 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4954 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4955 | #ifdef __cplusplus |
| 4956 | extern "C" |
| 4957 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4958 | /* 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] | 4959 | builtin and then its argument prototype would still apply. */ |
| 4960 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4961 | int |
| 4962 | main () |
| 4963 | { |
| 4964 | opendir (); |
| 4965 | ; |
| 4966 | return 0; |
| 4967 | } |
| 4968 | _ACEOF |
| 4969 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4970 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4971 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4972 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4973 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4974 | rm -f conftest.er1 |
| 4975 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4977 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 4978 | { ac_try='test -z "$ac_c_werror_flag" |
| 4979 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4981 | (eval $ac_try) 2>&5 |
| 4982 | ac_status=$? |
| 4983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4984 | (exit $ac_status); }; } && |
| 4985 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4987 | (eval $ac_try) 2>&5 |
| 4988 | ac_status=$? |
| 4989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4990 | (exit $ac_status); }; }; then |
| 4991 | ac_cv_search_opendir="none required" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4992 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4993 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4994 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4995 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4996 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4997 | rm -f conftest.err conftest.$ac_objext \ |
| 4998 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4999 | if test "$ac_cv_search_opendir" = no; then |
| 5000 | for ac_lib in dir; do |
| 5001 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 5002 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5003 | /* confdefs.h. */ |
| 5004 | _ACEOF |
| 5005 | cat confdefs.h >>conftest.$ac_ext |
| 5006 | cat >>conftest.$ac_ext <<_ACEOF |
| 5007 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5008 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5009 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5010 | #ifdef __cplusplus |
| 5011 | extern "C" |
| 5012 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5013 | /* 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] | 5014 | builtin and then its argument prototype would still apply. */ |
| 5015 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5016 | int |
| 5017 | main () |
| 5018 | { |
| 5019 | opendir (); |
| 5020 | ; |
| 5021 | return 0; |
| 5022 | } |
| 5023 | _ACEOF |
| 5024 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5025 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5026 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5027 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5028 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5029 | rm -f conftest.er1 |
| 5030 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5032 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5033 | { ac_try='test -z "$ac_c_werror_flag" |
| 5034 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5036 | (eval $ac_try) 2>&5 |
| 5037 | ac_status=$? |
| 5038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5039 | (exit $ac_status); }; } && |
| 5040 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5042 | (eval $ac_try) 2>&5 |
| 5043 | ac_status=$? |
| 5044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5045 | (exit $ac_status); }; }; then |
| 5046 | ac_cv_search_opendir="-l$ac_lib" |
| 5047 | break |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5048 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5049 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5050 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5051 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5052 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5053 | rm -f conftest.err conftest.$ac_objext \ |
| 5054 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5055 | done |
| 5056 | fi |
| 5057 | LIBS=$ac_func_search_save_LIBS |
| 5058 | fi |
| 5059 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 5060 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 5061 | if test "$ac_cv_search_opendir" != no; then |
| 5062 | 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] | 5063 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5064 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5065 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5066 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5067 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 5068 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 5069 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5071 | else |
| 5072 | ac_func_search_save_LIBS=$LIBS |
| 5073 | ac_cv_search_opendir=no |
| 5074 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5075 | /* confdefs.h. */ |
| 5076 | _ACEOF |
| 5077 | cat confdefs.h >>conftest.$ac_ext |
| 5078 | cat >>conftest.$ac_ext <<_ACEOF |
| 5079 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5080 | |
| 5081 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5082 | #ifdef __cplusplus |
| 5083 | extern "C" |
| 5084 | #endif |
| 5085 | /* We use char because int might match the return type of a gcc2 |
| 5086 | builtin and then its argument prototype would still apply. */ |
| 5087 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5088 | int |
| 5089 | main () |
| 5090 | { |
| 5091 | opendir (); |
| 5092 | ; |
| 5093 | return 0; |
| 5094 | } |
| 5095 | _ACEOF |
| 5096 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5097 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5098 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5099 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5100 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5101 | rm -f conftest.er1 |
| 5102 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5104 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5105 | { ac_try='test -z "$ac_c_werror_flag" |
| 5106 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5108 | (eval $ac_try) 2>&5 |
| 5109 | ac_status=$? |
| 5110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5111 | (exit $ac_status); }; } && |
| 5112 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5114 | (eval $ac_try) 2>&5 |
| 5115 | ac_status=$? |
| 5116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5117 | (exit $ac_status); }; }; then |
| 5118 | ac_cv_search_opendir="none required" |
| 5119 | else |
| 5120 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5121 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5122 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5123 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5124 | rm -f conftest.err conftest.$ac_objext \ |
| 5125 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5126 | if test "$ac_cv_search_opendir" = no; then |
| 5127 | for ac_lib in x; do |
| 5128 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 5129 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5130 | /* confdefs.h. */ |
| 5131 | _ACEOF |
| 5132 | cat confdefs.h >>conftest.$ac_ext |
| 5133 | cat >>conftest.$ac_ext <<_ACEOF |
| 5134 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5135 | |
| 5136 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5137 | #ifdef __cplusplus |
| 5138 | extern "C" |
| 5139 | #endif |
| 5140 | /* We use char because int might match the return type of a gcc2 |
| 5141 | builtin and then its argument prototype would still apply. */ |
| 5142 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5143 | int |
| 5144 | main () |
| 5145 | { |
| 5146 | opendir (); |
| 5147 | ; |
| 5148 | return 0; |
| 5149 | } |
| 5150 | _ACEOF |
| 5151 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5152 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5153 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5154 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5155 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5156 | rm -f conftest.er1 |
| 5157 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5159 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5160 | { ac_try='test -z "$ac_c_werror_flag" |
| 5161 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5163 | (eval $ac_try) 2>&5 |
| 5164 | ac_status=$? |
| 5165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5166 | (exit $ac_status); }; } && |
| 5167 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5169 | (eval $ac_try) 2>&5 |
| 5170 | ac_status=$? |
| 5171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5172 | (exit $ac_status); }; }; then |
| 5173 | ac_cv_search_opendir="-l$ac_lib" |
| 5174 | break |
| 5175 | else |
| 5176 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5177 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5178 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5179 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5180 | rm -f conftest.err conftest.$ac_objext \ |
| 5181 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5182 | done |
| 5183 | fi |
| 5184 | LIBS=$ac_func_search_save_LIBS |
| 5185 | fi |
| 5186 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 5187 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 5188 | if test "$ac_cv_search_opendir" != no; then |
| 5189 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 5190 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5191 | fi |
| 5192 | |
| 5193 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5194 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5195 | echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 5196 | echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6 |
| 5197 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
| 5198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5199 | else |
| 5200 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5201 | /* confdefs.h. */ |
| 5202 | _ACEOF |
| 5203 | cat confdefs.h >>conftest.$ac_ext |
| 5204 | cat >>conftest.$ac_ext <<_ACEOF |
| 5205 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5206 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5207 | int |
| 5208 | main () |
| 5209 | { |
| 5210 | return makedev(0, 0); |
| 5211 | ; |
| 5212 | return 0; |
| 5213 | } |
| 5214 | _ACEOF |
| 5215 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5216 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5217 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5218 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5219 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5220 | rm -f conftest.er1 |
| 5221 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5223 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5224 | { ac_try='test -z "$ac_c_werror_flag" |
| 5225 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5227 | (eval $ac_try) 2>&5 |
| 5228 | ac_status=$? |
| 5229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5230 | (exit $ac_status); }; } && |
| 5231 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5233 | (eval $ac_try) 2>&5 |
| 5234 | ac_status=$? |
| 5235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5236 | (exit $ac_status); }; }; then |
| 5237 | ac_cv_header_sys_types_h_makedev=yes |
| 5238 | else |
| 5239 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5240 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5241 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5242 | ac_cv_header_sys_types_h_makedev=no |
| 5243 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5244 | rm -f conftest.err conftest.$ac_objext \ |
| 5245 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5246 | |
| 5247 | fi |
| 5248 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 5249 | echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6 |
| 5250 | |
| 5251 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 5252 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5253 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 5254 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 5255 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5257 | fi |
| 5258 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 5259 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 5260 | else |
| 5261 | # Is the header compilable? |
| 5262 | echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 5263 | echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6 |
| 5264 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5265 | /* confdefs.h. */ |
| 5266 | _ACEOF |
| 5267 | cat confdefs.h >>conftest.$ac_ext |
| 5268 | cat >>conftest.$ac_ext <<_ACEOF |
| 5269 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5270 | $ac_includes_default |
| 5271 | #include <sys/mkdev.h> |
| 5272 | _ACEOF |
| 5273 | rm -f conftest.$ac_objext |
| 5274 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5275 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5276 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5277 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5278 | rm -f conftest.er1 |
| 5279 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5281 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5282 | { ac_try='test -z "$ac_c_werror_flag" |
| 5283 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5285 | (eval $ac_try) 2>&5 |
| 5286 | ac_status=$? |
| 5287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5288 | (exit $ac_status); }; } && |
| 5289 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5291 | (eval $ac_try) 2>&5 |
| 5292 | ac_status=$? |
| 5293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5294 | (exit $ac_status); }; }; then |
| 5295 | ac_header_compiler=yes |
| 5296 | else |
| 5297 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5298 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5299 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5300 | ac_header_compiler=no |
| 5301 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5302 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5303 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5304 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5305 | |
| 5306 | # Is the header present? |
| 5307 | echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 5308 | echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6 |
| 5309 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5310 | /* confdefs.h. */ |
| 5311 | _ACEOF |
| 5312 | cat confdefs.h >>conftest.$ac_ext |
| 5313 | cat >>conftest.$ac_ext <<_ACEOF |
| 5314 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5315 | #include <sys/mkdev.h> |
| 5316 | _ACEOF |
| 5317 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5318 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5319 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5320 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5321 | rm -f conftest.er1 |
| 5322 | cat conftest.err >&5 |
| 5323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5324 | (exit $ac_status); } >/dev/null; then |
| 5325 | if test -s conftest.err; then |
| 5326 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5327 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5328 | else |
| 5329 | ac_cpp_err= |
| 5330 | fi |
| 5331 | else |
| 5332 | ac_cpp_err=yes |
| 5333 | fi |
| 5334 | if test -z "$ac_cpp_err"; then |
| 5335 | ac_header_preproc=yes |
| 5336 | else |
| 5337 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5338 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5339 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5340 | ac_header_preproc=no |
| 5341 | fi |
| 5342 | rm -f conftest.err conftest.$ac_ext |
| 5343 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5344 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5345 | |
| 5346 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5347 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5348 | yes:no: ) |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5349 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5350 | 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] | 5351 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5 |
| 5352 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;} |
| 5353 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5354 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5355 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5356 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 5357 | 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] | 5358 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 5359 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 5360 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5 |
| 5361 | echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;} |
| 5362 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5363 | 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] | 5364 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 5365 | 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] | 5366 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5 |
| 5367 | 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] | 5368 | ( |
| 5369 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 5370 | ## ------------------------------------------------ ## |
| 5371 | ## Report this to http://www.python.org/python-bugs ## |
| 5372 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5373 | _ASBOX |
| 5374 | ) | |
| 5375 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5376 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5377 | esac |
| 5378 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 5379 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 5380 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5382 | else |
| 5383 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 5384 | fi |
| 5385 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 5386 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 5387 | |
| 5388 | fi |
| 5389 | if test $ac_cv_header_sys_mkdev_h = yes; then |
| 5390 | |
| 5391 | cat >>confdefs.h <<\_ACEOF |
| 5392 | #define MAJOR_IN_MKDEV 1 |
| 5393 | _ACEOF |
| 5394 | |
| 5395 | fi |
| 5396 | |
| 5397 | |
| 5398 | |
| 5399 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 5400 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 5401 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 5402 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 5403 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 5404 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5405 | fi |
| 5406 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 5407 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 5408 | else |
| 5409 | # Is the header compilable? |
| 5410 | echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 5411 | echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6 |
| 5412 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5413 | /* confdefs.h. */ |
| 5414 | _ACEOF |
| 5415 | cat confdefs.h >>conftest.$ac_ext |
| 5416 | cat >>conftest.$ac_ext <<_ACEOF |
| 5417 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5418 | $ac_includes_default |
| 5419 | #include <sys/sysmacros.h> |
| 5420 | _ACEOF |
| 5421 | rm -f conftest.$ac_objext |
| 5422 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5423 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5424 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5425 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5426 | rm -f conftest.er1 |
| 5427 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5429 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5430 | { ac_try='test -z "$ac_c_werror_flag" |
| 5431 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5433 | (eval $ac_try) 2>&5 |
| 5434 | ac_status=$? |
| 5435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5436 | (exit $ac_status); }; } && |
| 5437 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5439 | (eval $ac_try) 2>&5 |
| 5440 | ac_status=$? |
| 5441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5442 | (exit $ac_status); }; }; then |
| 5443 | ac_header_compiler=yes |
| 5444 | else |
| 5445 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5446 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5447 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5448 | ac_header_compiler=no |
| 5449 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5450 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5451 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5452 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5453 | |
| 5454 | # Is the header present? |
| 5455 | echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 5456 | echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6 |
| 5457 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5458 | /* confdefs.h. */ |
| 5459 | _ACEOF |
| 5460 | cat confdefs.h >>conftest.$ac_ext |
| 5461 | cat >>conftest.$ac_ext <<_ACEOF |
| 5462 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5463 | #include <sys/sysmacros.h> |
| 5464 | _ACEOF |
| 5465 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5466 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5467 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5468 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5469 | rm -f conftest.er1 |
| 5470 | cat conftest.err >&5 |
| 5471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5472 | (exit $ac_status); } >/dev/null; then |
| 5473 | if test -s conftest.err; then |
| 5474 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5475 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5476 | else |
| 5477 | ac_cpp_err= |
| 5478 | fi |
| 5479 | else |
| 5480 | ac_cpp_err=yes |
| 5481 | fi |
| 5482 | if test -z "$ac_cpp_err"; then |
| 5483 | ac_header_preproc=yes |
| 5484 | else |
| 5485 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5486 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5487 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5488 | ac_header_preproc=no |
| 5489 | fi |
| 5490 | rm -f conftest.err conftest.$ac_ext |
| 5491 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5492 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5493 | |
| 5494 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5495 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5496 | yes:no: ) |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5497 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5498 | 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] | 5499 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5 |
| 5500 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;} |
| 5501 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5502 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5503 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5504 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 5505 | 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] | 5506 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 5507 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 5508 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5 |
| 5509 | echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;} |
| 5510 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5511 | 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] | 5512 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 5513 | 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] | 5514 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5 |
| 5515 | 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] | 5516 | ( |
| 5517 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 5518 | ## ------------------------------------------------ ## |
| 5519 | ## Report this to http://www.python.org/python-bugs ## |
| 5520 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5521 | _ASBOX |
| 5522 | ) | |
| 5523 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5524 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5525 | esac |
| 5526 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 5527 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 5528 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 5529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5530 | else |
| 5531 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 5532 | fi |
| 5533 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 5534 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 5535 | |
| 5536 | fi |
| 5537 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
| 5538 | |
| 5539 | cat >>confdefs.h <<\_ACEOF |
| 5540 | #define MAJOR_IN_SYSMACROS 1 |
| 5541 | _ACEOF |
| 5542 | |
| 5543 | fi |
| 5544 | |
| 5545 | |
| 5546 | fi |
| 5547 | fi |
| 5548 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5549 | |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5550 | # On Solaris, term.h requires curses.h |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5551 | |
| 5552 | for ac_header in term.h |
| 5553 | do |
| 5554 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5555 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5556 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5557 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5559 | else |
| 5560 | cat >conftest.$ac_ext <<_ACEOF |
| 5561 | /* confdefs.h. */ |
| 5562 | _ACEOF |
| 5563 | cat confdefs.h >>conftest.$ac_ext |
| 5564 | cat >>conftest.$ac_ext <<_ACEOF |
| 5565 | /* end confdefs.h. */ |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5566 | |
Martin v. Löwis | 5d52e78 | 2004-09-18 10:07:03 +0000 | [diff] [blame] | 5567 | #ifdef HAVE_CURSES_H |
| 5568 | #include <curses.h> |
| 5569 | #endif |
| 5570 | |
| 5571 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5572 | #include <$ac_header> |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5573 | _ACEOF |
| 5574 | rm -f conftest.$ac_objext |
| 5575 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5576 | (eval $ac_compile) 2>conftest.er1 |
| 5577 | ac_status=$? |
| 5578 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5579 | rm -f conftest.er1 |
| 5580 | cat conftest.err >&5 |
| 5581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5582 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5583 | { ac_try='test -z "$ac_c_werror_flag" |
| 5584 | || test ! -s conftest.err' |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5586 | (eval $ac_try) 2>&5 |
| 5587 | ac_status=$? |
| 5588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5589 | (exit $ac_status); }; } && |
| 5590 | { ac_try='test -s conftest.$ac_objext' |
| 5591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5592 | (eval $ac_try) 2>&5 |
| 5593 | ac_status=$? |
| 5594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5595 | (exit $ac_status); }; }; then |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5596 | eval "$as_ac_Header=yes" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5597 | else |
| 5598 | echo "$as_me: failed program was:" >&5 |
| 5599 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5600 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5601 | eval "$as_ac_Header=no" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5602 | fi |
| 5603 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5604 | fi |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5605 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5606 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5607 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5608 | cat >>confdefs.h <<_ACEOF |
| 5609 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5610 | _ACEOF |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5611 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5612 | fi |
| 5613 | |
| 5614 | done |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5615 | |
| 5616 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 5617 | # On Linux, netlink.h requires asm/types.h |
| 5618 | |
| 5619 | for ac_header in linux/netlink.h |
| 5620 | do |
| 5621 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5622 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5623 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5624 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5625 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5626 | else |
| 5627 | cat >conftest.$ac_ext <<_ACEOF |
| 5628 | /* confdefs.h. */ |
| 5629 | _ACEOF |
| 5630 | cat confdefs.h >>conftest.$ac_ext |
| 5631 | cat >>conftest.$ac_ext <<_ACEOF |
| 5632 | /* end confdefs.h. */ |
| 5633 | |
| 5634 | #ifdef HAVE_ASM_TYPES_H |
| 5635 | #include <asm/types.h> |
| 5636 | #endif |
| 5637 | #ifdef HAVE_SYS_SOCKET_H |
| 5638 | #include <sys/socket.h> |
| 5639 | #endif |
| 5640 | |
| 5641 | |
| 5642 | #include <$ac_header> |
| 5643 | _ACEOF |
| 5644 | rm -f conftest.$ac_objext |
| 5645 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5646 | (eval $ac_compile) 2>conftest.er1 |
| 5647 | ac_status=$? |
| 5648 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5649 | rm -f conftest.er1 |
| 5650 | cat conftest.err >&5 |
| 5651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5652 | (exit $ac_status); } && |
| 5653 | { ac_try='test -z "$ac_c_werror_flag" |
| 5654 | || test ! -s conftest.err' |
| 5655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5656 | (eval $ac_try) 2>&5 |
| 5657 | ac_status=$? |
| 5658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5659 | (exit $ac_status); }; } && |
| 5660 | { ac_try='test -s conftest.$ac_objext' |
| 5661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5662 | (eval $ac_try) 2>&5 |
| 5663 | ac_status=$? |
| 5664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5665 | (exit $ac_status); }; }; then |
| 5666 | eval "$as_ac_Header=yes" |
| 5667 | else |
| 5668 | echo "$as_me: failed program was:" >&5 |
| 5669 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5670 | |
| 5671 | eval "$as_ac_Header=no" |
| 5672 | fi |
| 5673 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5674 | fi |
| 5675 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5676 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5677 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5678 | cat >>confdefs.h <<_ACEOF |
| 5679 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5680 | _ACEOF |
| 5681 | |
| 5682 | fi |
| 5683 | |
| 5684 | done |
| 5685 | |
| 5686 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5687 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5688 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5689 | echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 5690 | echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6 |
| 5691 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5692 | /* confdefs.h. */ |
| 5693 | _ACEOF |
| 5694 | cat confdefs.h >>conftest.$ac_ext |
| 5695 | cat >>conftest.$ac_ext <<_ACEOF |
| 5696 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5697 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5698 | |
| 5699 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5700 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5701 | $EGREP "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5702 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5703 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5704 | |
| 5705 | |
| 5706 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5707 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5708 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5709 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 5710 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5711 | fi |
| 5712 | rm -f conftest* |
| 5713 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5714 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 5715 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5716 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5717 | # Check whether using makedev requires defining _OSF_SOURCE |
| 5718 | echo "$as_me:$LINENO: checking for makedev" >&5 |
| 5719 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6 |
| 5720 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5721 | /* confdefs.h. */ |
| 5722 | _ACEOF |
| 5723 | cat confdefs.h >>conftest.$ac_ext |
| 5724 | cat >>conftest.$ac_ext <<_ACEOF |
| 5725 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 5726 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5727 | int |
| 5728 | main () |
| 5729 | { |
| 5730 | makedev(0, 0) |
| 5731 | ; |
| 5732 | return 0; |
| 5733 | } |
| 5734 | _ACEOF |
| 5735 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5736 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5737 | (eval $ac_link) 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5738 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5739 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5740 | rm -f conftest.er1 |
| 5741 | cat conftest.err >&5 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5743 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5744 | { ac_try='test -z "$ac_c_werror_flag" |
| 5745 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5747 | (eval $ac_try) 2>&5 |
| 5748 | ac_status=$? |
| 5749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5750 | (exit $ac_status); }; } && |
| 5751 | { ac_try='test -s conftest$ac_exeext' |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5753 | (eval $ac_try) 2>&5 |
| 5754 | ac_status=$? |
| 5755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5756 | (exit $ac_status); }; }; then |
| 5757 | ac_cv_has_makedev=yes |
| 5758 | else |
| 5759 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5760 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5761 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5762 | ac_cv_has_makedev=no |
| 5763 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5764 | rm -f conftest.err conftest.$ac_objext \ |
| 5765 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5766 | if test "$ac_cv_has_makedev" = "no"; then |
| 5767 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 5768 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5769 | /* confdefs.h. */ |
| 5770 | _ACEOF |
| 5771 | cat confdefs.h >>conftest.$ac_ext |
| 5772 | cat >>conftest.$ac_ext <<_ACEOF |
| 5773 | /* end confdefs.h. */ |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5774 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 5775 | #define _OSF_SOURCE 1 |
| 5776 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5777 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5778 | int |
| 5779 | main () |
| 5780 | { |
| 5781 | makedev(0, 0) |
| 5782 | ; |
| 5783 | return 0; |
| 5784 | } |
| 5785 | _ACEOF |
| 5786 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5787 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5788 | (eval $ac_link) 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5789 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5790 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5791 | rm -f conftest.er1 |
| 5792 | cat conftest.err >&5 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5794 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5795 | { ac_try='test -z "$ac_c_werror_flag" |
| 5796 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5798 | (eval $ac_try) 2>&5 |
| 5799 | ac_status=$? |
| 5800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5801 | (exit $ac_status); }; } && |
| 5802 | { ac_try='test -s conftest$ac_exeext' |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5804 | (eval $ac_try) 2>&5 |
| 5805 | ac_status=$? |
| 5806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5807 | (exit $ac_status); }; }; then |
| 5808 | ac_cv_has_makedev=yes |
| 5809 | else |
| 5810 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5811 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5812 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5813 | ac_cv_has_makedev=no |
| 5814 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5815 | rm -f conftest.err conftest.$ac_objext \ |
| 5816 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5817 | if test "$ac_cv_has_makedev" = "yes"; then |
| 5818 | |
| 5819 | cat >>confdefs.h <<\_ACEOF |
| 5820 | #define _OSF_SOURCE 1 |
| 5821 | _ACEOF |
| 5822 | |
| 5823 | fi |
| 5824 | fi |
| 5825 | echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 5826 | echo "${ECHO_T}$ac_cv_has_makedev" >&6 |
| 5827 | if test "$ac_cv_has_makedev" = "yes"; then |
| 5828 | |
| 5829 | cat >>confdefs.h <<\_ACEOF |
| 5830 | #define HAVE_MAKEDEV 1 |
| 5831 | _ACEOF |
| 5832 | |
| 5833 | fi |
| 5834 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5835 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 5836 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 5837 | # defined, but the compiler does not support pragma redefine_extname, |
| 5838 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 5839 | # structures (such as rlimit64) without declaring them. As a |
| 5840 | # work-around, disable LFS on such configurations |
| 5841 | |
| 5842 | use_lfs=yes |
| 5843 | echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 5844 | echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6 |
| 5845 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5846 | /* confdefs.h. */ |
| 5847 | _ACEOF |
| 5848 | cat confdefs.h >>conftest.$ac_ext |
| 5849 | cat >>conftest.$ac_ext <<_ACEOF |
| 5850 | /* end confdefs.h. */ |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5851 | |
| 5852 | #define _LARGEFILE_SOURCE 1 |
| 5853 | #define _FILE_OFFSET_BITS 64 |
| 5854 | #include <sys/resource.h> |
| 5855 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5856 | int |
| 5857 | main () |
| 5858 | { |
| 5859 | struct rlimit foo; |
| 5860 | ; |
| 5861 | return 0; |
| 5862 | } |
| 5863 | _ACEOF |
| 5864 | rm -f conftest.$ac_objext |
| 5865 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5866 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5867 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5868 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5869 | rm -f conftest.er1 |
| 5870 | cat conftest.err >&5 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5872 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5873 | { ac_try='test -z "$ac_c_werror_flag" |
| 5874 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5876 | (eval $ac_try) 2>&5 |
| 5877 | ac_status=$? |
| 5878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5879 | (exit $ac_status); }; } && |
| 5880 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5882 | (eval $ac_try) 2>&5 |
| 5883 | ac_status=$? |
| 5884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5885 | (exit $ac_status); }; }; then |
| 5886 | sol_lfs_bug=no |
| 5887 | else |
| 5888 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5889 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5890 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5891 | sol_lfs_bug=yes |
| 5892 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5893 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5894 | echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 5895 | echo "${ECHO_T}$sol_lfs_bug" >&6 |
| 5896 | if test "$sol_lfs_bug" = "yes"; then |
| 5897 | use_lfs=no |
| 5898 | fi |
| 5899 | |
| 5900 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5901 | # Two defines needed to enable largefile support on various platforms |
| 5902 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5903 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5904 | cat >>confdefs.h <<\_ACEOF |
| 5905 | #define _LARGEFILE_SOURCE 1 |
| 5906 | _ACEOF |
| 5907 | |
| 5908 | |
| 5909 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5910 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5911 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5912 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5913 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5914 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 5915 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 5916 | cat >> confdefs.h <<\EOF |
| 5917 | #if defined(SCO_DS) |
| 5918 | #undef _OFF_T |
| 5919 | #endif |
| 5920 | EOF |
| 5921 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5922 | # Type availability checks |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5923 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 5924 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 5925 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 5926 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5927 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5928 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5929 | /* confdefs.h. */ |
| 5930 | _ACEOF |
| 5931 | cat confdefs.h >>conftest.$ac_ext |
| 5932 | cat >>conftest.$ac_ext <<_ACEOF |
| 5933 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5934 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5935 | int |
| 5936 | main () |
| 5937 | { |
| 5938 | if ((mode_t *) 0) |
| 5939 | return 0; |
| 5940 | if (sizeof (mode_t)) |
| 5941 | return 0; |
| 5942 | ; |
| 5943 | return 0; |
| 5944 | } |
| 5945 | _ACEOF |
| 5946 | rm -f conftest.$ac_objext |
| 5947 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5948 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5949 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5950 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5951 | rm -f conftest.er1 |
| 5952 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5954 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5955 | { ac_try='test -z "$ac_c_werror_flag" |
| 5956 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5958 | (eval $ac_try) 2>&5 |
| 5959 | ac_status=$? |
| 5960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5961 | (exit $ac_status); }; } && |
| 5962 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5964 | (eval $ac_try) 2>&5 |
| 5965 | ac_status=$? |
| 5966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5967 | (exit $ac_status); }; }; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5968 | ac_cv_type_mode_t=yes |
| 5969 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5970 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5971 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5972 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5973 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5974 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5975 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5976 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5977 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 5978 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 5979 | if test $ac_cv_type_mode_t = yes; then |
| 5980 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5981 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5982 | |
| 5983 | cat >>confdefs.h <<_ACEOF |
| 5984 | #define mode_t int |
| 5985 | _ACEOF |
| 5986 | |
| 5987 | fi |
| 5988 | |
| 5989 | echo "$as_me:$LINENO: checking for off_t" >&5 |
| 5990 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 5991 | if test "${ac_cv_type_off_t+set}" = set; then |
| 5992 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5993 | else |
| 5994 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5995 | /* confdefs.h. */ |
| 5996 | _ACEOF |
| 5997 | cat confdefs.h >>conftest.$ac_ext |
| 5998 | cat >>conftest.$ac_ext <<_ACEOF |
| 5999 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6000 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6001 | int |
| 6002 | main () |
| 6003 | { |
| 6004 | if ((off_t *) 0) |
| 6005 | return 0; |
| 6006 | if (sizeof (off_t)) |
| 6007 | return 0; |
| 6008 | ; |
| 6009 | return 0; |
| 6010 | } |
| 6011 | _ACEOF |
| 6012 | rm -f conftest.$ac_objext |
| 6013 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6014 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6015 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6016 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6017 | rm -f conftest.er1 |
| 6018 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6020 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6021 | { ac_try='test -z "$ac_c_werror_flag" |
| 6022 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6024 | (eval $ac_try) 2>&5 |
| 6025 | ac_status=$? |
| 6026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6027 | (exit $ac_status); }; } && |
| 6028 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6030 | (eval $ac_try) 2>&5 |
| 6031 | ac_status=$? |
| 6032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6033 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6034 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6035 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6036 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6037 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6038 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6039 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6040 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6041 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6042 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6043 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 6044 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 6045 | if test $ac_cv_type_off_t = yes; then |
| 6046 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6047 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6048 | |
| 6049 | cat >>confdefs.h <<_ACEOF |
| 6050 | #define off_t long |
| 6051 | _ACEOF |
| 6052 | |
| 6053 | fi |
| 6054 | |
| 6055 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 6056 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 6057 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 6058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6059 | else |
| 6060 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6061 | /* confdefs.h. */ |
| 6062 | _ACEOF |
| 6063 | cat confdefs.h >>conftest.$ac_ext |
| 6064 | cat >>conftest.$ac_ext <<_ACEOF |
| 6065 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6066 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6067 | int |
| 6068 | main () |
| 6069 | { |
| 6070 | if ((pid_t *) 0) |
| 6071 | return 0; |
| 6072 | if (sizeof (pid_t)) |
| 6073 | return 0; |
| 6074 | ; |
| 6075 | return 0; |
| 6076 | } |
| 6077 | _ACEOF |
| 6078 | rm -f conftest.$ac_objext |
| 6079 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6080 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6081 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6082 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6083 | rm -f conftest.er1 |
| 6084 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6086 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6087 | { ac_try='test -z "$ac_c_werror_flag" |
| 6088 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6090 | (eval $ac_try) 2>&5 |
| 6091 | ac_status=$? |
| 6092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6093 | (exit $ac_status); }; } && |
| 6094 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6096 | (eval $ac_try) 2>&5 |
| 6097 | ac_status=$? |
| 6098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6099 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6100 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6101 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6102 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6103 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6104 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6105 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6106 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6107 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6108 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6109 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 6110 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 6111 | if test $ac_cv_type_pid_t = yes; then |
| 6112 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6113 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6114 | |
| 6115 | cat >>confdefs.h <<_ACEOF |
| 6116 | #define pid_t int |
| 6117 | _ACEOF |
| 6118 | |
| 6119 | fi |
| 6120 | |
| 6121 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 6122 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 6123 | if test "${ac_cv_type_signal+set}" = set; then |
| 6124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6125 | else |
| 6126 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6127 | /* confdefs.h. */ |
| 6128 | _ACEOF |
| 6129 | cat confdefs.h >>conftest.$ac_ext |
| 6130 | cat >>conftest.$ac_ext <<_ACEOF |
| 6131 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6132 | #include <sys/types.h> |
| 6133 | #include <signal.h> |
| 6134 | #ifdef signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6135 | # undef signal |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6136 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6137 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6138 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 6139 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6140 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6141 | #endif |
| 6142 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6143 | int |
| 6144 | main () |
| 6145 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6146 | int i; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6147 | ; |
| 6148 | return 0; |
| 6149 | } |
| 6150 | _ACEOF |
| 6151 | rm -f conftest.$ac_objext |
| 6152 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6153 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6154 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6155 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6156 | rm -f conftest.er1 |
| 6157 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6159 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6160 | { ac_try='test -z "$ac_c_werror_flag" |
| 6161 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6163 | (eval $ac_try) 2>&5 |
| 6164 | ac_status=$? |
| 6165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6166 | (exit $ac_status); }; } && |
| 6167 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6169 | (eval $ac_try) 2>&5 |
| 6170 | ac_status=$? |
| 6171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6172 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6173 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6174 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6175 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6176 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6177 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6178 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6179 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6180 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6181 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6182 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 6183 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6184 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6185 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6186 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6187 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6188 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6189 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6190 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 6191 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 6192 | if test "${ac_cv_type_size_t+set}" = set; then |
| 6193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6194 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6195 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6196 | /* confdefs.h. */ |
| 6197 | _ACEOF |
| 6198 | cat confdefs.h >>conftest.$ac_ext |
| 6199 | cat >>conftest.$ac_ext <<_ACEOF |
| 6200 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6201 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6202 | int |
| 6203 | main () |
| 6204 | { |
| 6205 | if ((size_t *) 0) |
| 6206 | return 0; |
| 6207 | if (sizeof (size_t)) |
| 6208 | return 0; |
| 6209 | ; |
| 6210 | return 0; |
| 6211 | } |
| 6212 | _ACEOF |
| 6213 | rm -f conftest.$ac_objext |
| 6214 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6215 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6216 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6217 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6218 | rm -f conftest.er1 |
| 6219 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6221 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6222 | { ac_try='test -z "$ac_c_werror_flag" |
| 6223 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6225 | (eval $ac_try) 2>&5 |
| 6226 | ac_status=$? |
| 6227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6228 | (exit $ac_status); }; } && |
| 6229 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6231 | (eval $ac_try) 2>&5 |
| 6232 | ac_status=$? |
| 6233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6234 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6235 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6236 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6237 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6238 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6239 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6240 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6241 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6242 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6243 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6244 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 6245 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 6246 | if test $ac_cv_type_size_t = yes; then |
| 6247 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6248 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6249 | |
| 6250 | cat >>confdefs.h <<_ACEOF |
| 6251 | #define size_t unsigned |
| 6252 | _ACEOF |
| 6253 | |
| 6254 | fi |
| 6255 | |
| 6256 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 6257 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
| 6258 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 6259 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6260 | else |
| 6261 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6262 | /* confdefs.h. */ |
| 6263 | _ACEOF |
| 6264 | cat confdefs.h >>conftest.$ac_ext |
| 6265 | cat >>conftest.$ac_ext <<_ACEOF |
| 6266 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6267 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6268 | |
| 6269 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6270 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6271 | $EGREP "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6272 | ac_cv_type_uid_t=yes |
| 6273 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6274 | ac_cv_type_uid_t=no |
| 6275 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6276 | rm -f conftest* |
| 6277 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6278 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6279 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 6280 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6281 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6282 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6283 | cat >>confdefs.h <<\_ACEOF |
| 6284 | #define uid_t int |
| 6285 | _ACEOF |
| 6286 | |
| 6287 | |
| 6288 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6289 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6290 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6291 | |
| 6292 | fi |
| 6293 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6294 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 6295 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 |
| 6296 | if test "${ac_cv_type_ssize_t+set}" = set; then |
| 6297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6298 | else |
| 6299 | cat >conftest.$ac_ext <<_ACEOF |
| 6300 | /* confdefs.h. */ |
| 6301 | _ACEOF |
| 6302 | cat confdefs.h >>conftest.$ac_ext |
| 6303 | cat >>conftest.$ac_ext <<_ACEOF |
| 6304 | /* end confdefs.h. */ |
| 6305 | $ac_includes_default |
| 6306 | int |
| 6307 | main () |
| 6308 | { |
| 6309 | if ((ssize_t *) 0) |
| 6310 | return 0; |
| 6311 | if (sizeof (ssize_t)) |
| 6312 | return 0; |
| 6313 | ; |
| 6314 | return 0; |
| 6315 | } |
| 6316 | _ACEOF |
| 6317 | rm -f conftest.$ac_objext |
| 6318 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6319 | (eval $ac_compile) 2>conftest.er1 |
| 6320 | ac_status=$? |
| 6321 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6322 | rm -f conftest.er1 |
| 6323 | cat conftest.err >&5 |
| 6324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6325 | (exit $ac_status); } && |
| 6326 | { ac_try='test -z "$ac_c_werror_flag" |
| 6327 | || test ! -s conftest.err' |
| 6328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6329 | (eval $ac_try) 2>&5 |
| 6330 | ac_status=$? |
| 6331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6332 | (exit $ac_status); }; } && |
| 6333 | { ac_try='test -s conftest.$ac_objext' |
| 6334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6335 | (eval $ac_try) 2>&5 |
| 6336 | ac_status=$? |
| 6337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6338 | (exit $ac_status); }; }; then |
| 6339 | ac_cv_type_ssize_t=yes |
| 6340 | else |
| 6341 | echo "$as_me: failed program was:" >&5 |
| 6342 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6343 | |
| 6344 | ac_cv_type_ssize_t=no |
| 6345 | fi |
| 6346 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6347 | fi |
| 6348 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 6349 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 |
| 6350 | if test $ac_cv_type_ssize_t = yes; then |
| 6351 | |
| 6352 | cat >>confdefs.h <<\_ACEOF |
| 6353 | #define HAVE_SSIZE_T 1 |
| 6354 | _ACEOF |
| 6355 | |
| 6356 | fi |
| 6357 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6358 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6359 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 6360 | # 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] | 6361 | echo "$as_me:$LINENO: checking for int" >&5 |
| 6362 | echo $ECHO_N "checking for int... $ECHO_C" >&6 |
| 6363 | if test "${ac_cv_type_int+set}" = set; then |
| 6364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6365 | else |
| 6366 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6367 | /* confdefs.h. */ |
| 6368 | _ACEOF |
| 6369 | cat confdefs.h >>conftest.$ac_ext |
| 6370 | cat >>conftest.$ac_ext <<_ACEOF |
| 6371 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6372 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6373 | int |
| 6374 | main () |
| 6375 | { |
| 6376 | if ((int *) 0) |
| 6377 | return 0; |
| 6378 | if (sizeof (int)) |
| 6379 | return 0; |
| 6380 | ; |
| 6381 | return 0; |
| 6382 | } |
| 6383 | _ACEOF |
| 6384 | rm -f conftest.$ac_objext |
| 6385 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6386 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6387 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6388 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6389 | rm -f conftest.er1 |
| 6390 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6392 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6393 | { ac_try='test -z "$ac_c_werror_flag" |
| 6394 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6396 | (eval $ac_try) 2>&5 |
| 6397 | ac_status=$? |
| 6398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6399 | (exit $ac_status); }; } && |
| 6400 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6402 | (eval $ac_try) 2>&5 |
| 6403 | ac_status=$? |
| 6404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6405 | (exit $ac_status); }; }; then |
| 6406 | ac_cv_type_int=yes |
| 6407 | else |
| 6408 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6409 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6410 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6411 | ac_cv_type_int=no |
| 6412 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6413 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6414 | fi |
| 6415 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 6416 | echo "${ECHO_T}$ac_cv_type_int" >&6 |
| 6417 | |
| 6418 | echo "$as_me:$LINENO: checking size of int" >&5 |
| 6419 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| 6420 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 6421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6422 | else |
| 6423 | if test "$ac_cv_type_int" = yes; then |
| 6424 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6425 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6426 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6427 | # This bug is HP SR number 8606223364. |
| 6428 | if test "$cross_compiling" = yes; then |
| 6429 | # Depending upon the size, compute the lo and hi bounds. |
| 6430 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6431 | /* confdefs.h. */ |
| 6432 | _ACEOF |
| 6433 | cat confdefs.h >>conftest.$ac_ext |
| 6434 | cat >>conftest.$ac_ext <<_ACEOF |
| 6435 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6436 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6437 | int |
| 6438 | main () |
| 6439 | { |
| 6440 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
| 6441 | test_array [0] = 0 |
| 6442 | |
| 6443 | ; |
| 6444 | return 0; |
| 6445 | } |
| 6446 | _ACEOF |
| 6447 | rm -f conftest.$ac_objext |
| 6448 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6449 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6450 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6451 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6452 | rm -f conftest.er1 |
| 6453 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6455 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6456 | { ac_try='test -z "$ac_c_werror_flag" |
| 6457 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6459 | (eval $ac_try) 2>&5 |
| 6460 | ac_status=$? |
| 6461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6462 | (exit $ac_status); }; } && |
| 6463 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6465 | (eval $ac_try) 2>&5 |
| 6466 | ac_status=$? |
| 6467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6468 | (exit $ac_status); }; }; then |
| 6469 | ac_lo=0 ac_mid=0 |
| 6470 | while :; do |
| 6471 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6472 | /* confdefs.h. */ |
| 6473 | _ACEOF |
| 6474 | cat confdefs.h >>conftest.$ac_ext |
| 6475 | cat >>conftest.$ac_ext <<_ACEOF |
| 6476 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6477 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6478 | int |
| 6479 | main () |
| 6480 | { |
| 6481 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 6482 | test_array [0] = 0 |
| 6483 | |
| 6484 | ; |
| 6485 | return 0; |
| 6486 | } |
| 6487 | _ACEOF |
| 6488 | rm -f conftest.$ac_objext |
| 6489 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6490 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6491 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6492 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6493 | rm -f conftest.er1 |
| 6494 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6496 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6497 | { ac_try='test -z "$ac_c_werror_flag" |
| 6498 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6500 | (eval $ac_try) 2>&5 |
| 6501 | ac_status=$? |
| 6502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6503 | (exit $ac_status); }; } && |
| 6504 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6506 | (eval $ac_try) 2>&5 |
| 6507 | ac_status=$? |
| 6508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6509 | (exit $ac_status); }; }; then |
| 6510 | ac_hi=$ac_mid; break |
| 6511 | else |
| 6512 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6513 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6514 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6515 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6516 | if test $ac_lo -le $ac_mid; then |
| 6517 | ac_lo= ac_hi= |
| 6518 | break |
| 6519 | fi |
| 6520 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | else |
| 6525 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6526 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6527 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6528 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6529 | /* confdefs.h. */ |
| 6530 | _ACEOF |
| 6531 | cat confdefs.h >>conftest.$ac_ext |
| 6532 | cat >>conftest.$ac_ext <<_ACEOF |
| 6533 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6534 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6535 | int |
| 6536 | main () |
| 6537 | { |
| 6538 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
| 6539 | test_array [0] = 0 |
| 6540 | |
| 6541 | ; |
| 6542 | return 0; |
| 6543 | } |
| 6544 | _ACEOF |
| 6545 | rm -f conftest.$ac_objext |
| 6546 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6547 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6548 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6549 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6550 | rm -f conftest.er1 |
| 6551 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6553 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6554 | { ac_try='test -z "$ac_c_werror_flag" |
| 6555 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6557 | (eval $ac_try) 2>&5 |
| 6558 | ac_status=$? |
| 6559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6560 | (exit $ac_status); }; } && |
| 6561 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6563 | (eval $ac_try) 2>&5 |
| 6564 | ac_status=$? |
| 6565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6566 | (exit $ac_status); }; }; then |
| 6567 | ac_hi=-1 ac_mid=-1 |
| 6568 | while :; do |
| 6569 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6570 | /* confdefs.h. */ |
| 6571 | _ACEOF |
| 6572 | cat confdefs.h >>conftest.$ac_ext |
| 6573 | cat >>conftest.$ac_ext <<_ACEOF |
| 6574 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6575 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6576 | int |
| 6577 | main () |
| 6578 | { |
| 6579 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
| 6580 | test_array [0] = 0 |
| 6581 | |
| 6582 | ; |
| 6583 | return 0; |
| 6584 | } |
| 6585 | _ACEOF |
| 6586 | rm -f conftest.$ac_objext |
| 6587 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6588 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6589 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6590 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6591 | rm -f conftest.er1 |
| 6592 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6594 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6595 | { ac_try='test -z "$ac_c_werror_flag" |
| 6596 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6598 | (eval $ac_try) 2>&5 |
| 6599 | ac_status=$? |
| 6600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6601 | (exit $ac_status); }; } && |
| 6602 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6604 | (eval $ac_try) 2>&5 |
| 6605 | ac_status=$? |
| 6606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6607 | (exit $ac_status); }; }; then |
| 6608 | ac_lo=$ac_mid; break |
| 6609 | else |
| 6610 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6611 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6612 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6613 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6614 | if test $ac_mid -le $ac_hi; then |
| 6615 | ac_lo= ac_hi= |
| 6616 | break |
| 6617 | fi |
| 6618 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6619 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6620 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6621 | done |
| 6622 | else |
| 6623 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6624 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6625 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6626 | ac_lo= ac_hi= |
| 6627 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6628 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6629 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6630 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6631 | # Binary search between lo and hi bounds. |
| 6632 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6633 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6634 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6635 | /* confdefs.h. */ |
| 6636 | _ACEOF |
| 6637 | cat confdefs.h >>conftest.$ac_ext |
| 6638 | cat >>conftest.$ac_ext <<_ACEOF |
| 6639 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6640 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6641 | int |
| 6642 | main () |
| 6643 | { |
| 6644 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 6645 | test_array [0] = 0 |
| 6646 | |
| 6647 | ; |
| 6648 | return 0; |
| 6649 | } |
| 6650 | _ACEOF |
| 6651 | rm -f conftest.$ac_objext |
| 6652 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6653 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6654 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6655 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6656 | rm -f conftest.er1 |
| 6657 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6659 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6660 | { ac_try='test -z "$ac_c_werror_flag" |
| 6661 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6663 | (eval $ac_try) 2>&5 |
| 6664 | ac_status=$? |
| 6665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6666 | (exit $ac_status); }; } && |
| 6667 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6669 | (eval $ac_try) 2>&5 |
| 6670 | ac_status=$? |
| 6671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6672 | (exit $ac_status); }; }; then |
| 6673 | ac_hi=$ac_mid |
| 6674 | else |
| 6675 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6676 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6677 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6678 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6679 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6680 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6681 | done |
| 6682 | case $ac_lo in |
| 6683 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6684 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
| 6685 | See \`config.log' for more details." >&5 |
| 6686 | echo "$as_me: error: cannot compute sizeof (int), 77 |
| 6687 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6688 | { (exit 1); exit 1; }; } ;; |
| 6689 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6690 | else |
| 6691 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6692 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 6693 | See \`config.log' for more details." >&5 |
| 6694 | echo "$as_me: error: cannot run test program while cross compiling |
| 6695 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6696 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6697 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6698 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6699 | /* confdefs.h. */ |
| 6700 | _ACEOF |
| 6701 | cat confdefs.h >>conftest.$ac_ext |
| 6702 | cat >>conftest.$ac_ext <<_ACEOF |
| 6703 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6704 | $ac_includes_default |
| 6705 | long longval () { return (long) (sizeof (int)); } |
| 6706 | unsigned long ulongval () { return (long) (sizeof (int)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6707 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6708 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6709 | int |
| 6710 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6711 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6712 | |
| 6713 | FILE *f = fopen ("conftest.val", "w"); |
| 6714 | if (! f) |
| 6715 | exit (1); |
| 6716 | if (((long) (sizeof (int))) < 0) |
| 6717 | { |
| 6718 | long i = longval (); |
| 6719 | if (i != ((long) (sizeof (int)))) |
| 6720 | exit (1); |
| 6721 | fprintf (f, "%ld\n", i); |
| 6722 | } |
| 6723 | else |
| 6724 | { |
| 6725 | unsigned long i = ulongval (); |
| 6726 | if (i != ((long) (sizeof (int)))) |
| 6727 | exit (1); |
| 6728 | fprintf (f, "%lu\n", i); |
| 6729 | } |
| 6730 | exit (ferror (f) || fclose (f) != 0); |
| 6731 | |
| 6732 | ; |
| 6733 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6734 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6735 | _ACEOF |
| 6736 | rm -f conftest$ac_exeext |
| 6737 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6738 | (eval $ac_link) 2>&5 |
| 6739 | ac_status=$? |
| 6740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6741 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6743 | (eval $ac_try) 2>&5 |
| 6744 | ac_status=$? |
| 6745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6746 | (exit $ac_status); }; }; then |
| 6747 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6748 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6749 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6750 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6751 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6752 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6753 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6754 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
| 6755 | See \`config.log' for more details." >&5 |
| 6756 | echo "$as_me: error: cannot compute sizeof (int), 77 |
| 6757 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6758 | { (exit 1); exit 1; }; } |
| 6759 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6760 | 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] | 6761 | fi |
| 6762 | fi |
| 6763 | rm -f conftest.val |
| 6764 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6765 | ac_cv_sizeof_int=0 |
| 6766 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6767 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6768 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 6769 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| 6770 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6771 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6772 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6773 | |
| 6774 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6775 | echo "$as_me:$LINENO: checking for long" >&5 |
| 6776 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
| 6777 | if test "${ac_cv_type_long+set}" = set; then |
| 6778 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6779 | else |
| 6780 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6781 | /* confdefs.h. */ |
| 6782 | _ACEOF |
| 6783 | cat confdefs.h >>conftest.$ac_ext |
| 6784 | cat >>conftest.$ac_ext <<_ACEOF |
| 6785 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6786 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6787 | int |
| 6788 | main () |
| 6789 | { |
| 6790 | if ((long *) 0) |
| 6791 | return 0; |
| 6792 | if (sizeof (long)) |
| 6793 | return 0; |
| 6794 | ; |
| 6795 | return 0; |
| 6796 | } |
| 6797 | _ACEOF |
| 6798 | rm -f conftest.$ac_objext |
| 6799 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6800 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6801 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6802 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6803 | rm -f conftest.er1 |
| 6804 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6806 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6807 | { ac_try='test -z "$ac_c_werror_flag" |
| 6808 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6810 | (eval $ac_try) 2>&5 |
| 6811 | ac_status=$? |
| 6812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6813 | (exit $ac_status); }; } && |
| 6814 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6816 | (eval $ac_try) 2>&5 |
| 6817 | ac_status=$? |
| 6818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6819 | (exit $ac_status); }; }; then |
| 6820 | ac_cv_type_long=yes |
| 6821 | else |
| 6822 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6823 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6824 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6825 | ac_cv_type_long=no |
| 6826 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6827 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6828 | fi |
| 6829 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 6830 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
| 6831 | |
| 6832 | echo "$as_me:$LINENO: checking size of long" >&5 |
| 6833 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
| 6834 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 6835 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6836 | else |
| 6837 | if test "$ac_cv_type_long" = yes; then |
| 6838 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6839 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6840 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6841 | # This bug is HP SR number 8606223364. |
| 6842 | if test "$cross_compiling" = yes; then |
| 6843 | # Depending upon the size, compute the lo and hi bounds. |
| 6844 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6845 | /* confdefs.h. */ |
| 6846 | _ACEOF |
| 6847 | cat confdefs.h >>conftest.$ac_ext |
| 6848 | cat >>conftest.$ac_ext <<_ACEOF |
| 6849 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6850 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6851 | int |
| 6852 | main () |
| 6853 | { |
| 6854 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
| 6855 | test_array [0] = 0 |
| 6856 | |
| 6857 | ; |
| 6858 | return 0; |
| 6859 | } |
| 6860 | _ACEOF |
| 6861 | rm -f conftest.$ac_objext |
| 6862 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6863 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6864 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6865 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6866 | rm -f conftest.er1 |
| 6867 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6869 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6870 | { ac_try='test -z "$ac_c_werror_flag" |
| 6871 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6873 | (eval $ac_try) 2>&5 |
| 6874 | ac_status=$? |
| 6875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6876 | (exit $ac_status); }; } && |
| 6877 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6879 | (eval $ac_try) 2>&5 |
| 6880 | ac_status=$? |
| 6881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6882 | (exit $ac_status); }; }; then |
| 6883 | ac_lo=0 ac_mid=0 |
| 6884 | while :; do |
| 6885 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6886 | /* confdefs.h. */ |
| 6887 | _ACEOF |
| 6888 | cat confdefs.h >>conftest.$ac_ext |
| 6889 | cat >>conftest.$ac_ext <<_ACEOF |
| 6890 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6891 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6892 | int |
| 6893 | main () |
| 6894 | { |
| 6895 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 6896 | test_array [0] = 0 |
| 6897 | |
| 6898 | ; |
| 6899 | return 0; |
| 6900 | } |
| 6901 | _ACEOF |
| 6902 | rm -f conftest.$ac_objext |
| 6903 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6904 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6905 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6906 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6907 | rm -f conftest.er1 |
| 6908 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6910 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6911 | { ac_try='test -z "$ac_c_werror_flag" |
| 6912 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6914 | (eval $ac_try) 2>&5 |
| 6915 | ac_status=$? |
| 6916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6917 | (exit $ac_status); }; } && |
| 6918 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6920 | (eval $ac_try) 2>&5 |
| 6921 | ac_status=$? |
| 6922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6923 | (exit $ac_status); }; }; then |
| 6924 | ac_hi=$ac_mid; break |
| 6925 | else |
| 6926 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6927 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6928 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6929 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6930 | if test $ac_lo -le $ac_mid; then |
| 6931 | ac_lo= ac_hi= |
| 6932 | break |
| 6933 | fi |
| 6934 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | else |
| 6939 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6940 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6941 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6942 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6943 | /* confdefs.h. */ |
| 6944 | _ACEOF |
| 6945 | cat confdefs.h >>conftest.$ac_ext |
| 6946 | cat >>conftest.$ac_ext <<_ACEOF |
| 6947 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6948 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6949 | int |
| 6950 | main () |
| 6951 | { |
| 6952 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
| 6953 | test_array [0] = 0 |
| 6954 | |
| 6955 | ; |
| 6956 | return 0; |
| 6957 | } |
| 6958 | _ACEOF |
| 6959 | rm -f conftest.$ac_objext |
| 6960 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6961 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6962 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6963 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6964 | rm -f conftest.er1 |
| 6965 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6967 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6968 | { ac_try='test -z "$ac_c_werror_flag" |
| 6969 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6971 | (eval $ac_try) 2>&5 |
| 6972 | ac_status=$? |
| 6973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6974 | (exit $ac_status); }; } && |
| 6975 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6977 | (eval $ac_try) 2>&5 |
| 6978 | ac_status=$? |
| 6979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6980 | (exit $ac_status); }; }; then |
| 6981 | ac_hi=-1 ac_mid=-1 |
| 6982 | while :; do |
| 6983 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6984 | /* confdefs.h. */ |
| 6985 | _ACEOF |
| 6986 | cat confdefs.h >>conftest.$ac_ext |
| 6987 | cat >>conftest.$ac_ext <<_ACEOF |
| 6988 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6989 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6990 | int |
| 6991 | main () |
| 6992 | { |
| 6993 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
| 6994 | test_array [0] = 0 |
| 6995 | |
| 6996 | ; |
| 6997 | return 0; |
| 6998 | } |
| 6999 | _ACEOF |
| 7000 | rm -f conftest.$ac_objext |
| 7001 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7002 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7003 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7004 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7005 | rm -f conftest.er1 |
| 7006 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7008 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7009 | { ac_try='test -z "$ac_c_werror_flag" |
| 7010 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7012 | (eval $ac_try) 2>&5 |
| 7013 | ac_status=$? |
| 7014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7015 | (exit $ac_status); }; } && |
| 7016 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7018 | (eval $ac_try) 2>&5 |
| 7019 | ac_status=$? |
| 7020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7021 | (exit $ac_status); }; }; then |
| 7022 | ac_lo=$ac_mid; break |
| 7023 | else |
| 7024 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7025 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7026 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7027 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7028 | if test $ac_mid -le $ac_hi; then |
| 7029 | ac_lo= ac_hi= |
| 7030 | break |
| 7031 | fi |
| 7032 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7033 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7034 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7035 | done |
| 7036 | else |
| 7037 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7038 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7039 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7040 | ac_lo= ac_hi= |
| 7041 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7042 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7043 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7044 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7045 | # Binary search between lo and hi bounds. |
| 7046 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7047 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7048 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7049 | /* confdefs.h. */ |
| 7050 | _ACEOF |
| 7051 | cat confdefs.h >>conftest.$ac_ext |
| 7052 | cat >>conftest.$ac_ext <<_ACEOF |
| 7053 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7054 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7055 | int |
| 7056 | main () |
| 7057 | { |
| 7058 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 7059 | test_array [0] = 0 |
| 7060 | |
| 7061 | ; |
| 7062 | return 0; |
| 7063 | } |
| 7064 | _ACEOF |
| 7065 | rm -f conftest.$ac_objext |
| 7066 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7067 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7068 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7069 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7070 | rm -f conftest.er1 |
| 7071 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7073 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7074 | { ac_try='test -z "$ac_c_werror_flag" |
| 7075 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7077 | (eval $ac_try) 2>&5 |
| 7078 | ac_status=$? |
| 7079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7080 | (exit $ac_status); }; } && |
| 7081 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7083 | (eval $ac_try) 2>&5 |
| 7084 | ac_status=$? |
| 7085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7086 | (exit $ac_status); }; }; then |
| 7087 | ac_hi=$ac_mid |
| 7088 | else |
| 7089 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7090 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7091 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7092 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7093 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7094 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7095 | done |
| 7096 | case $ac_lo in |
| 7097 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7098 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
| 7099 | See \`config.log' for more details." >&5 |
| 7100 | echo "$as_me: error: cannot compute sizeof (long), 77 |
| 7101 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7102 | { (exit 1); exit 1; }; } ;; |
| 7103 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7104 | else |
| 7105 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7106 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 7107 | See \`config.log' for more details." >&5 |
| 7108 | echo "$as_me: error: cannot run test program while cross compiling |
| 7109 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7110 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7111 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7112 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7113 | /* confdefs.h. */ |
| 7114 | _ACEOF |
| 7115 | cat confdefs.h >>conftest.$ac_ext |
| 7116 | cat >>conftest.$ac_ext <<_ACEOF |
| 7117 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7118 | $ac_includes_default |
| 7119 | long longval () { return (long) (sizeof (long)); } |
| 7120 | unsigned long ulongval () { return (long) (sizeof (long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7121 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7122 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7123 | int |
| 7124 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7125 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7126 | |
| 7127 | FILE *f = fopen ("conftest.val", "w"); |
| 7128 | if (! f) |
| 7129 | exit (1); |
| 7130 | if (((long) (sizeof (long))) < 0) |
| 7131 | { |
| 7132 | long i = longval (); |
| 7133 | if (i != ((long) (sizeof (long)))) |
| 7134 | exit (1); |
| 7135 | fprintf (f, "%ld\n", i); |
| 7136 | } |
| 7137 | else |
| 7138 | { |
| 7139 | unsigned long i = ulongval (); |
| 7140 | if (i != ((long) (sizeof (long)))) |
| 7141 | exit (1); |
| 7142 | fprintf (f, "%lu\n", i); |
| 7143 | } |
| 7144 | exit (ferror (f) || fclose (f) != 0); |
| 7145 | |
| 7146 | ; |
| 7147 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7148 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7149 | _ACEOF |
| 7150 | rm -f conftest$ac_exeext |
| 7151 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7152 | (eval $ac_link) 2>&5 |
| 7153 | ac_status=$? |
| 7154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7155 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7157 | (eval $ac_try) 2>&5 |
| 7158 | ac_status=$? |
| 7159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7160 | (exit $ac_status); }; }; then |
| 7161 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7162 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7163 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7164 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7165 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7166 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7167 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7168 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
| 7169 | See \`config.log' for more details." >&5 |
| 7170 | echo "$as_me: error: cannot compute sizeof (long), 77 |
| 7171 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7172 | { (exit 1); exit 1; }; } |
| 7173 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7174 | 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] | 7175 | fi |
| 7176 | fi |
| 7177 | rm -f conftest.val |
| 7178 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7179 | ac_cv_sizeof_long=0 |
| 7180 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7181 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7182 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 7183 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
| 7184 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7185 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7186 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7187 | |
| 7188 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7189 | echo "$as_me:$LINENO: checking for void *" >&5 |
| 7190 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 |
| 7191 | if test "${ac_cv_type_void_p+set}" = set; then |
| 7192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7193 | else |
| 7194 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7195 | /* confdefs.h. */ |
| 7196 | _ACEOF |
| 7197 | cat confdefs.h >>conftest.$ac_ext |
| 7198 | cat >>conftest.$ac_ext <<_ACEOF |
| 7199 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7200 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7201 | int |
| 7202 | main () |
| 7203 | { |
| 7204 | if ((void * *) 0) |
| 7205 | return 0; |
| 7206 | if (sizeof (void *)) |
| 7207 | return 0; |
| 7208 | ; |
| 7209 | return 0; |
| 7210 | } |
| 7211 | _ACEOF |
| 7212 | rm -f conftest.$ac_objext |
| 7213 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7214 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7215 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7216 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7217 | rm -f conftest.er1 |
| 7218 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7220 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7221 | { ac_try='test -z "$ac_c_werror_flag" |
| 7222 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7224 | (eval $ac_try) 2>&5 |
| 7225 | ac_status=$? |
| 7226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7227 | (exit $ac_status); }; } && |
| 7228 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7230 | (eval $ac_try) 2>&5 |
| 7231 | ac_status=$? |
| 7232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7233 | (exit $ac_status); }; }; then |
| 7234 | ac_cv_type_void_p=yes |
| 7235 | else |
| 7236 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7237 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7238 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7239 | ac_cv_type_void_p=no |
| 7240 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7241 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7242 | fi |
| 7243 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 7244 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 |
| 7245 | |
| 7246 | echo "$as_me:$LINENO: checking size of void *" >&5 |
| 7247 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 |
| 7248 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
| 7249 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7250 | else |
| 7251 | if test "$ac_cv_type_void_p" = yes; then |
| 7252 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7253 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7254 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7255 | # This bug is HP SR number 8606223364. |
| 7256 | if test "$cross_compiling" = yes; then |
| 7257 | # Depending upon the size, compute the lo and hi bounds. |
| 7258 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7259 | /* confdefs.h. */ |
| 7260 | _ACEOF |
| 7261 | cat confdefs.h >>conftest.$ac_ext |
| 7262 | cat >>conftest.$ac_ext <<_ACEOF |
| 7263 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7264 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7265 | int |
| 7266 | main () |
| 7267 | { |
| 7268 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
| 7269 | test_array [0] = 0 |
| 7270 | |
| 7271 | ; |
| 7272 | return 0; |
| 7273 | } |
| 7274 | _ACEOF |
| 7275 | rm -f conftest.$ac_objext |
| 7276 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7277 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7278 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7279 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7280 | rm -f conftest.er1 |
| 7281 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7283 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7284 | { ac_try='test -z "$ac_c_werror_flag" |
| 7285 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7287 | (eval $ac_try) 2>&5 |
| 7288 | ac_status=$? |
| 7289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7290 | (exit $ac_status); }; } && |
| 7291 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7293 | (eval $ac_try) 2>&5 |
| 7294 | ac_status=$? |
| 7295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7296 | (exit $ac_status); }; }; then |
| 7297 | ac_lo=0 ac_mid=0 |
| 7298 | while :; do |
| 7299 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7300 | /* confdefs.h. */ |
| 7301 | _ACEOF |
| 7302 | cat confdefs.h >>conftest.$ac_ext |
| 7303 | cat >>conftest.$ac_ext <<_ACEOF |
| 7304 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7305 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7306 | int |
| 7307 | main () |
| 7308 | { |
| 7309 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 7310 | test_array [0] = 0 |
| 7311 | |
| 7312 | ; |
| 7313 | return 0; |
| 7314 | } |
| 7315 | _ACEOF |
| 7316 | rm -f conftest.$ac_objext |
| 7317 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7318 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7319 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7320 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7321 | rm -f conftest.er1 |
| 7322 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7324 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7325 | { ac_try='test -z "$ac_c_werror_flag" |
| 7326 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7328 | (eval $ac_try) 2>&5 |
| 7329 | ac_status=$? |
| 7330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7331 | (exit $ac_status); }; } && |
| 7332 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7334 | (eval $ac_try) 2>&5 |
| 7335 | ac_status=$? |
| 7336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7337 | (exit $ac_status); }; }; then |
| 7338 | ac_hi=$ac_mid; break |
| 7339 | else |
| 7340 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7341 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7342 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7343 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7344 | if test $ac_lo -le $ac_mid; then |
| 7345 | ac_lo= ac_hi= |
| 7346 | break |
| 7347 | fi |
| 7348 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | else |
| 7353 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7354 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7355 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7356 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7357 | /* confdefs.h. */ |
| 7358 | _ACEOF |
| 7359 | cat confdefs.h >>conftest.$ac_ext |
| 7360 | cat >>conftest.$ac_ext <<_ACEOF |
| 7361 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7362 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7363 | int |
| 7364 | main () |
| 7365 | { |
| 7366 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
| 7367 | test_array [0] = 0 |
| 7368 | |
| 7369 | ; |
| 7370 | return 0; |
| 7371 | } |
| 7372 | _ACEOF |
| 7373 | rm -f conftest.$ac_objext |
| 7374 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7375 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7376 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7377 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7378 | rm -f conftest.er1 |
| 7379 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7381 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7382 | { ac_try='test -z "$ac_c_werror_flag" |
| 7383 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7385 | (eval $ac_try) 2>&5 |
| 7386 | ac_status=$? |
| 7387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7388 | (exit $ac_status); }; } && |
| 7389 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7391 | (eval $ac_try) 2>&5 |
| 7392 | ac_status=$? |
| 7393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7394 | (exit $ac_status); }; }; then |
| 7395 | ac_hi=-1 ac_mid=-1 |
| 7396 | while :; do |
| 7397 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7398 | /* confdefs.h. */ |
| 7399 | _ACEOF |
| 7400 | cat confdefs.h >>conftest.$ac_ext |
| 7401 | cat >>conftest.$ac_ext <<_ACEOF |
| 7402 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7403 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7404 | int |
| 7405 | main () |
| 7406 | { |
| 7407 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
| 7408 | test_array [0] = 0 |
| 7409 | |
| 7410 | ; |
| 7411 | return 0; |
| 7412 | } |
| 7413 | _ACEOF |
| 7414 | rm -f conftest.$ac_objext |
| 7415 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7416 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7417 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7418 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7419 | rm -f conftest.er1 |
| 7420 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7422 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7423 | { ac_try='test -z "$ac_c_werror_flag" |
| 7424 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7426 | (eval $ac_try) 2>&5 |
| 7427 | ac_status=$? |
| 7428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7429 | (exit $ac_status); }; } && |
| 7430 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7432 | (eval $ac_try) 2>&5 |
| 7433 | ac_status=$? |
| 7434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7435 | (exit $ac_status); }; }; then |
| 7436 | ac_lo=$ac_mid; break |
| 7437 | else |
| 7438 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7439 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7440 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7441 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7442 | if test $ac_mid -le $ac_hi; then |
| 7443 | ac_lo= ac_hi= |
| 7444 | break |
| 7445 | fi |
| 7446 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7447 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7448 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7449 | done |
| 7450 | else |
| 7451 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7452 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7453 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7454 | ac_lo= ac_hi= |
| 7455 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7456 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7457 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7458 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7459 | # Binary search between lo and hi bounds. |
| 7460 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7461 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7462 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7463 | /* confdefs.h. */ |
| 7464 | _ACEOF |
| 7465 | cat confdefs.h >>conftest.$ac_ext |
| 7466 | cat >>conftest.$ac_ext <<_ACEOF |
| 7467 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7468 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7469 | int |
| 7470 | main () |
| 7471 | { |
| 7472 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 7473 | test_array [0] = 0 |
| 7474 | |
| 7475 | ; |
| 7476 | return 0; |
| 7477 | } |
| 7478 | _ACEOF |
| 7479 | rm -f conftest.$ac_objext |
| 7480 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7481 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7482 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7483 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7484 | rm -f conftest.er1 |
| 7485 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7487 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7488 | { ac_try='test -z "$ac_c_werror_flag" |
| 7489 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7491 | (eval $ac_try) 2>&5 |
| 7492 | ac_status=$? |
| 7493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7494 | (exit $ac_status); }; } && |
| 7495 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7497 | (eval $ac_try) 2>&5 |
| 7498 | ac_status=$? |
| 7499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7500 | (exit $ac_status); }; }; then |
| 7501 | ac_hi=$ac_mid |
| 7502 | else |
| 7503 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7504 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7505 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7506 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7507 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7508 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7509 | done |
| 7510 | case $ac_lo in |
| 7511 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7512 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
| 7513 | See \`config.log' for more details." >&5 |
| 7514 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
| 7515 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7516 | { (exit 1); exit 1; }; } ;; |
| 7517 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7518 | else |
| 7519 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7520 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 7521 | See \`config.log' for more details." >&5 |
| 7522 | echo "$as_me: error: cannot run test program while cross compiling |
| 7523 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7524 | { (exit 1); exit 1; }; } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7525 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7526 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7527 | /* confdefs.h. */ |
| 7528 | _ACEOF |
| 7529 | cat confdefs.h >>conftest.$ac_ext |
| 7530 | cat >>conftest.$ac_ext <<_ACEOF |
| 7531 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7532 | $ac_includes_default |
| 7533 | long longval () { return (long) (sizeof (void *)); } |
| 7534 | unsigned long ulongval () { return (long) (sizeof (void *)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7535 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7536 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7537 | int |
| 7538 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7539 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7540 | |
| 7541 | FILE *f = fopen ("conftest.val", "w"); |
| 7542 | if (! f) |
| 7543 | exit (1); |
| 7544 | if (((long) (sizeof (void *))) < 0) |
| 7545 | { |
| 7546 | long i = longval (); |
| 7547 | if (i != ((long) (sizeof (void *)))) |
| 7548 | exit (1); |
| 7549 | fprintf (f, "%ld\n", i); |
| 7550 | } |
| 7551 | else |
| 7552 | { |
| 7553 | unsigned long i = ulongval (); |
| 7554 | if (i != ((long) (sizeof (void *)))) |
| 7555 | exit (1); |
| 7556 | fprintf (f, "%lu\n", i); |
| 7557 | } |
| 7558 | exit (ferror (f) || fclose (f) != 0); |
| 7559 | |
| 7560 | ; |
| 7561 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7562 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7563 | _ACEOF |
| 7564 | rm -f conftest$ac_exeext |
| 7565 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7566 | (eval $ac_link) 2>&5 |
| 7567 | ac_status=$? |
| 7568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7569 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7571 | (eval $ac_try) 2>&5 |
| 7572 | ac_status=$? |
| 7573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7574 | (exit $ac_status); }; }; then |
| 7575 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7576 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7577 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7578 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7579 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7580 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7581 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7582 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
| 7583 | See \`config.log' for more details." >&5 |
| 7584 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
| 7585 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7586 | { (exit 1); exit 1; }; } |
| 7587 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7588 | 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] | 7589 | fi |
| 7590 | fi |
| 7591 | rm -f conftest.val |
| 7592 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7593 | ac_cv_sizeof_void_p=0 |
| 7594 | fi |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7595 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7596 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 7597 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 |
| 7598 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7599 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7600 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7601 | |
| 7602 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7603 | echo "$as_me:$LINENO: checking for short" >&5 |
| 7604 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
| 7605 | if test "${ac_cv_type_short+set}" = set; then |
| 7606 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7607 | else |
| 7608 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7609 | /* confdefs.h. */ |
| 7610 | _ACEOF |
| 7611 | cat confdefs.h >>conftest.$ac_ext |
| 7612 | cat >>conftest.$ac_ext <<_ACEOF |
| 7613 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7614 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7615 | int |
| 7616 | main () |
| 7617 | { |
| 7618 | if ((short *) 0) |
| 7619 | return 0; |
| 7620 | if (sizeof (short)) |
| 7621 | return 0; |
| 7622 | ; |
| 7623 | return 0; |
| 7624 | } |
| 7625 | _ACEOF |
| 7626 | rm -f conftest.$ac_objext |
| 7627 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7628 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7629 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7630 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7631 | rm -f conftest.er1 |
| 7632 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7634 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7635 | { ac_try='test -z "$ac_c_werror_flag" |
| 7636 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7638 | (eval $ac_try) 2>&5 |
| 7639 | ac_status=$? |
| 7640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7641 | (exit $ac_status); }; } && |
| 7642 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7644 | (eval $ac_try) 2>&5 |
| 7645 | ac_status=$? |
| 7646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7647 | (exit $ac_status); }; }; then |
| 7648 | ac_cv_type_short=yes |
| 7649 | else |
| 7650 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7651 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7652 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7653 | ac_cv_type_short=no |
| 7654 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7655 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7656 | fi |
| 7657 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 7658 | echo "${ECHO_T}$ac_cv_type_short" >&6 |
| 7659 | |
| 7660 | echo "$as_me:$LINENO: checking size of short" >&5 |
| 7661 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 |
| 7662 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 7663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7664 | else |
| 7665 | if test "$ac_cv_type_short" = yes; then |
| 7666 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7667 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7668 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7669 | # This bug is HP SR number 8606223364. |
| 7670 | if test "$cross_compiling" = yes; then |
| 7671 | # Depending upon the size, compute the lo and hi bounds. |
| 7672 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7673 | /* confdefs.h. */ |
| 7674 | _ACEOF |
| 7675 | cat confdefs.h >>conftest.$ac_ext |
| 7676 | cat >>conftest.$ac_ext <<_ACEOF |
| 7677 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7678 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7679 | int |
| 7680 | main () |
| 7681 | { |
| 7682 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
| 7683 | test_array [0] = 0 |
| 7684 | |
| 7685 | ; |
| 7686 | return 0; |
| 7687 | } |
| 7688 | _ACEOF |
| 7689 | rm -f conftest.$ac_objext |
| 7690 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7691 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7692 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7693 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7694 | rm -f conftest.er1 |
| 7695 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7697 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7698 | { ac_try='test -z "$ac_c_werror_flag" |
| 7699 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7701 | (eval $ac_try) 2>&5 |
| 7702 | ac_status=$? |
| 7703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7704 | (exit $ac_status); }; } && |
| 7705 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7707 | (eval $ac_try) 2>&5 |
| 7708 | ac_status=$? |
| 7709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7710 | (exit $ac_status); }; }; then |
| 7711 | ac_lo=0 ac_mid=0 |
| 7712 | while :; do |
| 7713 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7714 | /* confdefs.h. */ |
| 7715 | _ACEOF |
| 7716 | cat confdefs.h >>conftest.$ac_ext |
| 7717 | cat >>conftest.$ac_ext <<_ACEOF |
| 7718 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7719 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7720 | int |
| 7721 | main () |
| 7722 | { |
| 7723 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 7724 | test_array [0] = 0 |
| 7725 | |
| 7726 | ; |
| 7727 | return 0; |
| 7728 | } |
| 7729 | _ACEOF |
| 7730 | rm -f conftest.$ac_objext |
| 7731 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7732 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7733 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7734 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7735 | rm -f conftest.er1 |
| 7736 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7738 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7739 | { ac_try='test -z "$ac_c_werror_flag" |
| 7740 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7742 | (eval $ac_try) 2>&5 |
| 7743 | ac_status=$? |
| 7744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7745 | (exit $ac_status); }; } && |
| 7746 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7748 | (eval $ac_try) 2>&5 |
| 7749 | ac_status=$? |
| 7750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7751 | (exit $ac_status); }; }; then |
| 7752 | ac_hi=$ac_mid; break |
| 7753 | else |
| 7754 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7755 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7756 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7757 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7758 | if test $ac_lo -le $ac_mid; then |
| 7759 | ac_lo= ac_hi= |
| 7760 | break |
| 7761 | fi |
| 7762 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | else |
| 7767 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7768 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7769 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7770 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7771 | /* confdefs.h. */ |
| 7772 | _ACEOF |
| 7773 | cat confdefs.h >>conftest.$ac_ext |
| 7774 | cat >>conftest.$ac_ext <<_ACEOF |
| 7775 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7776 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7777 | int |
| 7778 | main () |
| 7779 | { |
| 7780 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
| 7781 | test_array [0] = 0 |
| 7782 | |
| 7783 | ; |
| 7784 | return 0; |
| 7785 | } |
| 7786 | _ACEOF |
| 7787 | rm -f conftest.$ac_objext |
| 7788 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7789 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7790 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7791 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7792 | rm -f conftest.er1 |
| 7793 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7795 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7796 | { ac_try='test -z "$ac_c_werror_flag" |
| 7797 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7799 | (eval $ac_try) 2>&5 |
| 7800 | ac_status=$? |
| 7801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7802 | (exit $ac_status); }; } && |
| 7803 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7805 | (eval $ac_try) 2>&5 |
| 7806 | ac_status=$? |
| 7807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7808 | (exit $ac_status); }; }; then |
| 7809 | ac_hi=-1 ac_mid=-1 |
| 7810 | while :; do |
| 7811 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7812 | /* confdefs.h. */ |
| 7813 | _ACEOF |
| 7814 | cat confdefs.h >>conftest.$ac_ext |
| 7815 | cat >>conftest.$ac_ext <<_ACEOF |
| 7816 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7817 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7818 | int |
| 7819 | main () |
| 7820 | { |
| 7821 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
| 7822 | test_array [0] = 0 |
| 7823 | |
| 7824 | ; |
| 7825 | return 0; |
| 7826 | } |
| 7827 | _ACEOF |
| 7828 | rm -f conftest.$ac_objext |
| 7829 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7830 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7831 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7832 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7833 | rm -f conftest.er1 |
| 7834 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7836 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7837 | { ac_try='test -z "$ac_c_werror_flag" |
| 7838 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7840 | (eval $ac_try) 2>&5 |
| 7841 | ac_status=$? |
| 7842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7843 | (exit $ac_status); }; } && |
| 7844 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7846 | (eval $ac_try) 2>&5 |
| 7847 | ac_status=$? |
| 7848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7849 | (exit $ac_status); }; }; then |
| 7850 | ac_lo=$ac_mid; break |
| 7851 | else |
| 7852 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7853 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7854 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7855 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7856 | if test $ac_mid -le $ac_hi; then |
| 7857 | ac_lo= ac_hi= |
| 7858 | break |
| 7859 | fi |
| 7860 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7861 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7862 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7863 | done |
| 7864 | else |
| 7865 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7866 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7867 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7868 | ac_lo= ac_hi= |
| 7869 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7870 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7871 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7872 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7873 | # Binary search between lo and hi bounds. |
| 7874 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7875 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7876 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7877 | /* confdefs.h. */ |
| 7878 | _ACEOF |
| 7879 | cat confdefs.h >>conftest.$ac_ext |
| 7880 | cat >>conftest.$ac_ext <<_ACEOF |
| 7881 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7882 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7883 | int |
| 7884 | main () |
| 7885 | { |
| 7886 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 7887 | test_array [0] = 0 |
| 7888 | |
| 7889 | ; |
| 7890 | return 0; |
| 7891 | } |
| 7892 | _ACEOF |
| 7893 | rm -f conftest.$ac_objext |
| 7894 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7895 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7896 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7897 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7898 | rm -f conftest.er1 |
| 7899 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7901 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7902 | { ac_try='test -z "$ac_c_werror_flag" |
| 7903 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7905 | (eval $ac_try) 2>&5 |
| 7906 | ac_status=$? |
| 7907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7908 | (exit $ac_status); }; } && |
| 7909 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7911 | (eval $ac_try) 2>&5 |
| 7912 | ac_status=$? |
| 7913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7914 | (exit $ac_status); }; }; then |
| 7915 | ac_hi=$ac_mid |
| 7916 | else |
| 7917 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7918 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7919 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7920 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7921 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7922 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7923 | done |
| 7924 | case $ac_lo in |
| 7925 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7926 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
| 7927 | See \`config.log' for more details." >&5 |
| 7928 | echo "$as_me: error: cannot compute sizeof (short), 77 |
| 7929 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7930 | { (exit 1); exit 1; }; } ;; |
| 7931 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7932 | else |
| 7933 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7934 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 7935 | See \`config.log' for more details." >&5 |
| 7936 | echo "$as_me: error: cannot run test program while cross compiling |
| 7937 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7938 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7939 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7940 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7941 | /* confdefs.h. */ |
| 7942 | _ACEOF |
| 7943 | cat confdefs.h >>conftest.$ac_ext |
| 7944 | cat >>conftest.$ac_ext <<_ACEOF |
| 7945 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7946 | $ac_includes_default |
| 7947 | long longval () { return (long) (sizeof (short)); } |
| 7948 | unsigned long ulongval () { return (long) (sizeof (short)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7949 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7950 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7951 | int |
| 7952 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7953 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7954 | |
| 7955 | FILE *f = fopen ("conftest.val", "w"); |
| 7956 | if (! f) |
| 7957 | exit (1); |
| 7958 | if (((long) (sizeof (short))) < 0) |
| 7959 | { |
| 7960 | long i = longval (); |
| 7961 | if (i != ((long) (sizeof (short)))) |
| 7962 | exit (1); |
| 7963 | fprintf (f, "%ld\n", i); |
| 7964 | } |
| 7965 | else |
| 7966 | { |
| 7967 | unsigned long i = ulongval (); |
| 7968 | if (i != ((long) (sizeof (short)))) |
| 7969 | exit (1); |
| 7970 | fprintf (f, "%lu\n", i); |
| 7971 | } |
| 7972 | exit (ferror (f) || fclose (f) != 0); |
| 7973 | |
| 7974 | ; |
| 7975 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7976 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7977 | _ACEOF |
| 7978 | rm -f conftest$ac_exeext |
| 7979 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7980 | (eval $ac_link) 2>&5 |
| 7981 | ac_status=$? |
| 7982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7983 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7985 | (eval $ac_try) 2>&5 |
| 7986 | ac_status=$? |
| 7987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7988 | (exit $ac_status); }; }; then |
| 7989 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7990 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7991 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7992 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7993 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7994 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7995 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7996 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
| 7997 | See \`config.log' for more details." >&5 |
| 7998 | echo "$as_me: error: cannot compute sizeof (short), 77 |
| 7999 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8000 | { (exit 1); exit 1; }; } |
| 8001 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8002 | 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] | 8003 | fi |
| 8004 | fi |
| 8005 | rm -f conftest.val |
| 8006 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8007 | ac_cv_sizeof_short=0 |
| 8008 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8009 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8010 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 8011 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 |
| 8012 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8013 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8014 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8015 | |
| 8016 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8017 | echo "$as_me:$LINENO: checking for float" >&5 |
| 8018 | echo $ECHO_N "checking for float... $ECHO_C" >&6 |
| 8019 | if test "${ac_cv_type_float+set}" = set; then |
| 8020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8021 | else |
| 8022 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8023 | /* confdefs.h. */ |
| 8024 | _ACEOF |
| 8025 | cat confdefs.h >>conftest.$ac_ext |
| 8026 | cat >>conftest.$ac_ext <<_ACEOF |
| 8027 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8028 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8029 | int |
| 8030 | main () |
| 8031 | { |
| 8032 | if ((float *) 0) |
| 8033 | return 0; |
| 8034 | if (sizeof (float)) |
| 8035 | return 0; |
| 8036 | ; |
| 8037 | return 0; |
| 8038 | } |
| 8039 | _ACEOF |
| 8040 | rm -f conftest.$ac_objext |
| 8041 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8042 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8043 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8044 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8045 | rm -f conftest.er1 |
| 8046 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8048 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8049 | { ac_try='test -z "$ac_c_werror_flag" |
| 8050 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8052 | (eval $ac_try) 2>&5 |
| 8053 | ac_status=$? |
| 8054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8055 | (exit $ac_status); }; } && |
| 8056 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8058 | (eval $ac_try) 2>&5 |
| 8059 | ac_status=$? |
| 8060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8061 | (exit $ac_status); }; }; then |
| 8062 | ac_cv_type_float=yes |
| 8063 | else |
| 8064 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8065 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8066 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8067 | ac_cv_type_float=no |
| 8068 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8069 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8070 | fi |
| 8071 | echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 8072 | echo "${ECHO_T}$ac_cv_type_float" >&6 |
| 8073 | |
| 8074 | echo "$as_me:$LINENO: checking size of float" >&5 |
| 8075 | echo $ECHO_N "checking size of float... $ECHO_C" >&6 |
| 8076 | if test "${ac_cv_sizeof_float+set}" = set; then |
| 8077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8078 | else |
| 8079 | if test "$ac_cv_type_float" = yes; then |
| 8080 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8081 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8082 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8083 | # This bug is HP SR number 8606223364. |
| 8084 | if test "$cross_compiling" = yes; then |
| 8085 | # Depending upon the size, compute the lo and hi bounds. |
| 8086 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8087 | /* confdefs.h. */ |
| 8088 | _ACEOF |
| 8089 | cat confdefs.h >>conftest.$ac_ext |
| 8090 | cat >>conftest.$ac_ext <<_ACEOF |
| 8091 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8092 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8093 | int |
| 8094 | main () |
| 8095 | { |
| 8096 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)]; |
| 8097 | test_array [0] = 0 |
| 8098 | |
| 8099 | ; |
| 8100 | return 0; |
| 8101 | } |
| 8102 | _ACEOF |
| 8103 | rm -f conftest.$ac_objext |
| 8104 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8105 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8106 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8107 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8108 | rm -f conftest.er1 |
| 8109 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8111 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8112 | { ac_try='test -z "$ac_c_werror_flag" |
| 8113 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8115 | (eval $ac_try) 2>&5 |
| 8116 | ac_status=$? |
| 8117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8118 | (exit $ac_status); }; } && |
| 8119 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8121 | (eval $ac_try) 2>&5 |
| 8122 | ac_status=$? |
| 8123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8124 | (exit $ac_status); }; }; then |
| 8125 | ac_lo=0 ac_mid=0 |
| 8126 | while :; do |
| 8127 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8128 | /* confdefs.h. */ |
| 8129 | _ACEOF |
| 8130 | cat confdefs.h >>conftest.$ac_ext |
| 8131 | cat >>conftest.$ac_ext <<_ACEOF |
| 8132 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8133 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8134 | int |
| 8135 | main () |
| 8136 | { |
| 8137 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 8138 | test_array [0] = 0 |
| 8139 | |
| 8140 | ; |
| 8141 | return 0; |
| 8142 | } |
| 8143 | _ACEOF |
| 8144 | rm -f conftest.$ac_objext |
| 8145 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8146 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8147 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8148 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8149 | rm -f conftest.er1 |
| 8150 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8152 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8153 | { ac_try='test -z "$ac_c_werror_flag" |
| 8154 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8156 | (eval $ac_try) 2>&5 |
| 8157 | ac_status=$? |
| 8158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8159 | (exit $ac_status); }; } && |
| 8160 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8162 | (eval $ac_try) 2>&5 |
| 8163 | ac_status=$? |
| 8164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8165 | (exit $ac_status); }; }; then |
| 8166 | ac_hi=$ac_mid; break |
| 8167 | else |
| 8168 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8169 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8170 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8171 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8172 | if test $ac_lo -le $ac_mid; then |
| 8173 | ac_lo= ac_hi= |
| 8174 | break |
| 8175 | fi |
| 8176 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | else |
| 8181 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8182 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8183 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8184 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8185 | /* confdefs.h. */ |
| 8186 | _ACEOF |
| 8187 | cat confdefs.h >>conftest.$ac_ext |
| 8188 | cat >>conftest.$ac_ext <<_ACEOF |
| 8189 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8190 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8191 | int |
| 8192 | main () |
| 8193 | { |
| 8194 | static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)]; |
| 8195 | test_array [0] = 0 |
| 8196 | |
| 8197 | ; |
| 8198 | return 0; |
| 8199 | } |
| 8200 | _ACEOF |
| 8201 | rm -f conftest.$ac_objext |
| 8202 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8203 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8204 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8205 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8206 | rm -f conftest.er1 |
| 8207 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8209 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8210 | { ac_try='test -z "$ac_c_werror_flag" |
| 8211 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8213 | (eval $ac_try) 2>&5 |
| 8214 | ac_status=$? |
| 8215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8216 | (exit $ac_status); }; } && |
| 8217 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8219 | (eval $ac_try) 2>&5 |
| 8220 | ac_status=$? |
| 8221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8222 | (exit $ac_status); }; }; then |
| 8223 | ac_hi=-1 ac_mid=-1 |
| 8224 | while :; do |
| 8225 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8226 | /* confdefs.h. */ |
| 8227 | _ACEOF |
| 8228 | cat confdefs.h >>conftest.$ac_ext |
| 8229 | cat >>conftest.$ac_ext <<_ACEOF |
| 8230 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8231 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8232 | int |
| 8233 | main () |
| 8234 | { |
| 8235 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)]; |
| 8236 | test_array [0] = 0 |
| 8237 | |
| 8238 | ; |
| 8239 | return 0; |
| 8240 | } |
| 8241 | _ACEOF |
| 8242 | rm -f conftest.$ac_objext |
| 8243 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8244 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8245 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8246 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8247 | rm -f conftest.er1 |
| 8248 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8250 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8251 | { ac_try='test -z "$ac_c_werror_flag" |
| 8252 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8254 | (eval $ac_try) 2>&5 |
| 8255 | ac_status=$? |
| 8256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8257 | (exit $ac_status); }; } && |
| 8258 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8260 | (eval $ac_try) 2>&5 |
| 8261 | ac_status=$? |
| 8262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8263 | (exit $ac_status); }; }; then |
| 8264 | ac_lo=$ac_mid; break |
| 8265 | else |
| 8266 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8267 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8268 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8269 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8270 | if test $ac_mid -le $ac_hi; then |
| 8271 | ac_lo= ac_hi= |
| 8272 | break |
| 8273 | fi |
| 8274 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8275 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8276 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8277 | done |
| 8278 | else |
| 8279 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8280 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8281 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8282 | ac_lo= ac_hi= |
| 8283 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8284 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8285 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8286 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8287 | # Binary search between lo and hi bounds. |
| 8288 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8289 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8290 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8291 | /* confdefs.h. */ |
| 8292 | _ACEOF |
| 8293 | cat confdefs.h >>conftest.$ac_ext |
| 8294 | cat >>conftest.$ac_ext <<_ACEOF |
| 8295 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8296 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8297 | int |
| 8298 | main () |
| 8299 | { |
| 8300 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 8301 | test_array [0] = 0 |
| 8302 | |
| 8303 | ; |
| 8304 | return 0; |
| 8305 | } |
| 8306 | _ACEOF |
| 8307 | rm -f conftest.$ac_objext |
| 8308 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8309 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8310 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8311 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8312 | rm -f conftest.er1 |
| 8313 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8315 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8316 | { ac_try='test -z "$ac_c_werror_flag" |
| 8317 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8319 | (eval $ac_try) 2>&5 |
| 8320 | ac_status=$? |
| 8321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8322 | (exit $ac_status); }; } && |
| 8323 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8325 | (eval $ac_try) 2>&5 |
| 8326 | ac_status=$? |
| 8327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8328 | (exit $ac_status); }; }; then |
| 8329 | ac_hi=$ac_mid |
| 8330 | else |
| 8331 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8332 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8333 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8334 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8335 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8336 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8337 | done |
| 8338 | case $ac_lo in |
| 8339 | ?*) ac_cv_sizeof_float=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8340 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77 |
| 8341 | See \`config.log' for more details." >&5 |
| 8342 | echo "$as_me: error: cannot compute sizeof (float), 77 |
| 8343 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8344 | { (exit 1); exit 1; }; } ;; |
| 8345 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8346 | else |
| 8347 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8348 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 8349 | See \`config.log' for more details." >&5 |
| 8350 | echo "$as_me: error: cannot run test program while cross compiling |
| 8351 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8352 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8353 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8354 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8355 | /* confdefs.h. */ |
| 8356 | _ACEOF |
| 8357 | cat confdefs.h >>conftest.$ac_ext |
| 8358 | cat >>conftest.$ac_ext <<_ACEOF |
| 8359 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8360 | $ac_includes_default |
| 8361 | long longval () { return (long) (sizeof (float)); } |
| 8362 | unsigned long ulongval () { return (long) (sizeof (float)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8363 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8364 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8365 | int |
| 8366 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8367 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8368 | |
| 8369 | FILE *f = fopen ("conftest.val", "w"); |
| 8370 | if (! f) |
| 8371 | exit (1); |
| 8372 | if (((long) (sizeof (float))) < 0) |
| 8373 | { |
| 8374 | long i = longval (); |
| 8375 | if (i != ((long) (sizeof (float)))) |
| 8376 | exit (1); |
| 8377 | fprintf (f, "%ld\n", i); |
| 8378 | } |
| 8379 | else |
| 8380 | { |
| 8381 | unsigned long i = ulongval (); |
| 8382 | if (i != ((long) (sizeof (float)))) |
| 8383 | exit (1); |
| 8384 | fprintf (f, "%lu\n", i); |
| 8385 | } |
| 8386 | exit (ferror (f) || fclose (f) != 0); |
| 8387 | |
| 8388 | ; |
| 8389 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8390 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8391 | _ACEOF |
| 8392 | rm -f conftest$ac_exeext |
| 8393 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8394 | (eval $ac_link) 2>&5 |
| 8395 | ac_status=$? |
| 8396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8397 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8399 | (eval $ac_try) 2>&5 |
| 8400 | ac_status=$? |
| 8401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8402 | (exit $ac_status); }; }; then |
| 8403 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8404 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8405 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8406 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8407 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8408 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8409 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8410 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77 |
| 8411 | See \`config.log' for more details." >&5 |
| 8412 | echo "$as_me: error: cannot compute sizeof (float), 77 |
| 8413 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8414 | { (exit 1); exit 1; }; } |
| 8415 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8416 | 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] | 8417 | fi |
| 8418 | fi |
| 8419 | rm -f conftest.val |
| 8420 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8421 | ac_cv_sizeof_float=0 |
| 8422 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8423 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8424 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 8425 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6 |
| 8426 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8427 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8428 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8429 | |
| 8430 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8431 | echo "$as_me:$LINENO: checking for double" >&5 |
| 8432 | echo $ECHO_N "checking for double... $ECHO_C" >&6 |
| 8433 | if test "${ac_cv_type_double+set}" = set; then |
| 8434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8435 | else |
| 8436 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8437 | /* confdefs.h. */ |
| 8438 | _ACEOF |
| 8439 | cat confdefs.h >>conftest.$ac_ext |
| 8440 | cat >>conftest.$ac_ext <<_ACEOF |
| 8441 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8442 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8443 | int |
| 8444 | main () |
| 8445 | { |
| 8446 | if ((double *) 0) |
| 8447 | return 0; |
| 8448 | if (sizeof (double)) |
| 8449 | return 0; |
| 8450 | ; |
| 8451 | return 0; |
| 8452 | } |
| 8453 | _ACEOF |
| 8454 | rm -f conftest.$ac_objext |
| 8455 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8456 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8457 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8458 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8459 | rm -f conftest.er1 |
| 8460 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8462 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8463 | { ac_try='test -z "$ac_c_werror_flag" |
| 8464 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8466 | (eval $ac_try) 2>&5 |
| 8467 | ac_status=$? |
| 8468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8469 | (exit $ac_status); }; } && |
| 8470 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8472 | (eval $ac_try) 2>&5 |
| 8473 | ac_status=$? |
| 8474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8475 | (exit $ac_status); }; }; then |
| 8476 | ac_cv_type_double=yes |
| 8477 | else |
| 8478 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8479 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8480 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8481 | ac_cv_type_double=no |
| 8482 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8483 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8484 | fi |
| 8485 | echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 8486 | echo "${ECHO_T}$ac_cv_type_double" >&6 |
| 8487 | |
| 8488 | echo "$as_me:$LINENO: checking size of double" >&5 |
| 8489 | echo $ECHO_N "checking size of double... $ECHO_C" >&6 |
| 8490 | if test "${ac_cv_sizeof_double+set}" = set; then |
| 8491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8492 | else |
| 8493 | if test "$ac_cv_type_double" = yes; then |
| 8494 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8495 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8496 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8497 | # This bug is HP SR number 8606223364. |
| 8498 | if test "$cross_compiling" = yes; then |
| 8499 | # Depending upon the size, compute the lo and hi bounds. |
| 8500 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8501 | /* confdefs.h. */ |
| 8502 | _ACEOF |
| 8503 | cat confdefs.h >>conftest.$ac_ext |
| 8504 | cat >>conftest.$ac_ext <<_ACEOF |
| 8505 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8506 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8507 | int |
| 8508 | main () |
| 8509 | { |
| 8510 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)]; |
| 8511 | test_array [0] = 0 |
| 8512 | |
| 8513 | ; |
| 8514 | return 0; |
| 8515 | } |
| 8516 | _ACEOF |
| 8517 | rm -f conftest.$ac_objext |
| 8518 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8519 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8520 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8521 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8522 | rm -f conftest.er1 |
| 8523 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8525 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8526 | { ac_try='test -z "$ac_c_werror_flag" |
| 8527 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8529 | (eval $ac_try) 2>&5 |
| 8530 | ac_status=$? |
| 8531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8532 | (exit $ac_status); }; } && |
| 8533 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8535 | (eval $ac_try) 2>&5 |
| 8536 | ac_status=$? |
| 8537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8538 | (exit $ac_status); }; }; then |
| 8539 | ac_lo=0 ac_mid=0 |
| 8540 | while :; do |
| 8541 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8542 | /* confdefs.h. */ |
| 8543 | _ACEOF |
| 8544 | cat confdefs.h >>conftest.$ac_ext |
| 8545 | cat >>conftest.$ac_ext <<_ACEOF |
| 8546 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8547 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8548 | int |
| 8549 | main () |
| 8550 | { |
| 8551 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 8552 | test_array [0] = 0 |
| 8553 | |
| 8554 | ; |
| 8555 | return 0; |
| 8556 | } |
| 8557 | _ACEOF |
| 8558 | rm -f conftest.$ac_objext |
| 8559 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8560 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8561 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8562 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8563 | rm -f conftest.er1 |
| 8564 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8566 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8567 | { ac_try='test -z "$ac_c_werror_flag" |
| 8568 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8570 | (eval $ac_try) 2>&5 |
| 8571 | ac_status=$? |
| 8572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8573 | (exit $ac_status); }; } && |
| 8574 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8576 | (eval $ac_try) 2>&5 |
| 8577 | ac_status=$? |
| 8578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8579 | (exit $ac_status); }; }; then |
| 8580 | ac_hi=$ac_mid; break |
| 8581 | else |
| 8582 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8583 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8584 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8585 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8586 | if test $ac_lo -le $ac_mid; then |
| 8587 | ac_lo= ac_hi= |
| 8588 | break |
| 8589 | fi |
| 8590 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | else |
| 8595 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8596 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8597 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8598 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8599 | /* confdefs.h. */ |
| 8600 | _ACEOF |
| 8601 | cat confdefs.h >>conftest.$ac_ext |
| 8602 | cat >>conftest.$ac_ext <<_ACEOF |
| 8603 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8604 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8605 | int |
| 8606 | main () |
| 8607 | { |
| 8608 | static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)]; |
| 8609 | test_array [0] = 0 |
| 8610 | |
| 8611 | ; |
| 8612 | return 0; |
| 8613 | } |
| 8614 | _ACEOF |
| 8615 | rm -f conftest.$ac_objext |
| 8616 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8617 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8618 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8619 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8620 | rm -f conftest.er1 |
| 8621 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8623 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8624 | { ac_try='test -z "$ac_c_werror_flag" |
| 8625 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8627 | (eval $ac_try) 2>&5 |
| 8628 | ac_status=$? |
| 8629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8630 | (exit $ac_status); }; } && |
| 8631 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8633 | (eval $ac_try) 2>&5 |
| 8634 | ac_status=$? |
| 8635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8636 | (exit $ac_status); }; }; then |
| 8637 | ac_hi=-1 ac_mid=-1 |
| 8638 | while :; do |
| 8639 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8640 | /* confdefs.h. */ |
| 8641 | _ACEOF |
| 8642 | cat confdefs.h >>conftest.$ac_ext |
| 8643 | cat >>conftest.$ac_ext <<_ACEOF |
| 8644 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8645 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8646 | int |
| 8647 | main () |
| 8648 | { |
| 8649 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)]; |
| 8650 | test_array [0] = 0 |
| 8651 | |
| 8652 | ; |
| 8653 | return 0; |
| 8654 | } |
| 8655 | _ACEOF |
| 8656 | rm -f conftest.$ac_objext |
| 8657 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8658 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8659 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8660 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8661 | rm -f conftest.er1 |
| 8662 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8664 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8665 | { ac_try='test -z "$ac_c_werror_flag" |
| 8666 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8668 | (eval $ac_try) 2>&5 |
| 8669 | ac_status=$? |
| 8670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8671 | (exit $ac_status); }; } && |
| 8672 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8674 | (eval $ac_try) 2>&5 |
| 8675 | ac_status=$? |
| 8676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8677 | (exit $ac_status); }; }; then |
| 8678 | ac_lo=$ac_mid; break |
| 8679 | else |
| 8680 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8681 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8682 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8683 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8684 | if test $ac_mid -le $ac_hi; then |
| 8685 | ac_lo= ac_hi= |
| 8686 | break |
| 8687 | fi |
| 8688 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8689 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8690 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8691 | done |
| 8692 | else |
| 8693 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8694 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8695 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8696 | ac_lo= ac_hi= |
| 8697 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8698 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8699 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8700 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8701 | # Binary search between lo and hi bounds. |
| 8702 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8703 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8704 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8705 | /* confdefs.h. */ |
| 8706 | _ACEOF |
| 8707 | cat confdefs.h >>conftest.$ac_ext |
| 8708 | cat >>conftest.$ac_ext <<_ACEOF |
| 8709 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8710 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8711 | int |
| 8712 | main () |
| 8713 | { |
| 8714 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 8715 | test_array [0] = 0 |
| 8716 | |
| 8717 | ; |
| 8718 | return 0; |
| 8719 | } |
| 8720 | _ACEOF |
| 8721 | rm -f conftest.$ac_objext |
| 8722 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8723 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8724 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8725 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8726 | rm -f conftest.er1 |
| 8727 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8729 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8730 | { ac_try='test -z "$ac_c_werror_flag" |
| 8731 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8733 | (eval $ac_try) 2>&5 |
| 8734 | ac_status=$? |
| 8735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8736 | (exit $ac_status); }; } && |
| 8737 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8739 | (eval $ac_try) 2>&5 |
| 8740 | ac_status=$? |
| 8741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8742 | (exit $ac_status); }; }; then |
| 8743 | ac_hi=$ac_mid |
| 8744 | else |
| 8745 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8746 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8747 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8748 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8749 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8750 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8751 | done |
| 8752 | case $ac_lo in |
| 8753 | ?*) ac_cv_sizeof_double=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8754 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77 |
| 8755 | See \`config.log' for more details." >&5 |
| 8756 | echo "$as_me: error: cannot compute sizeof (double), 77 |
| 8757 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8758 | { (exit 1); exit 1; }; } ;; |
| 8759 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8760 | else |
| 8761 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8762 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 8763 | See \`config.log' for more details." >&5 |
| 8764 | echo "$as_me: error: cannot run test program while cross compiling |
| 8765 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8766 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8767 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8768 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8769 | /* confdefs.h. */ |
| 8770 | _ACEOF |
| 8771 | cat confdefs.h >>conftest.$ac_ext |
| 8772 | cat >>conftest.$ac_ext <<_ACEOF |
| 8773 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8774 | $ac_includes_default |
| 8775 | long longval () { return (long) (sizeof (double)); } |
| 8776 | unsigned long ulongval () { return (long) (sizeof (double)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8777 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8778 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8779 | int |
| 8780 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8781 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8782 | |
| 8783 | FILE *f = fopen ("conftest.val", "w"); |
| 8784 | if (! f) |
| 8785 | exit (1); |
| 8786 | if (((long) (sizeof (double))) < 0) |
| 8787 | { |
| 8788 | long i = longval (); |
| 8789 | if (i != ((long) (sizeof (double)))) |
| 8790 | exit (1); |
| 8791 | fprintf (f, "%ld\n", i); |
| 8792 | } |
| 8793 | else |
| 8794 | { |
| 8795 | unsigned long i = ulongval (); |
| 8796 | if (i != ((long) (sizeof (double)))) |
| 8797 | exit (1); |
| 8798 | fprintf (f, "%lu\n", i); |
| 8799 | } |
| 8800 | exit (ferror (f) || fclose (f) != 0); |
| 8801 | |
| 8802 | ; |
| 8803 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8804 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8805 | _ACEOF |
| 8806 | rm -f conftest$ac_exeext |
| 8807 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8808 | (eval $ac_link) 2>&5 |
| 8809 | ac_status=$? |
| 8810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8811 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8813 | (eval $ac_try) 2>&5 |
| 8814 | ac_status=$? |
| 8815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8816 | (exit $ac_status); }; }; then |
| 8817 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8818 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8819 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8820 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8821 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8822 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8823 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8824 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77 |
| 8825 | See \`config.log' for more details." >&5 |
| 8826 | echo "$as_me: error: cannot compute sizeof (double), 77 |
| 8827 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8828 | { (exit 1); exit 1; }; } |
| 8829 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8830 | 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] | 8831 | fi |
| 8832 | fi |
| 8833 | rm -f conftest.val |
| 8834 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8835 | ac_cv_sizeof_double=0 |
| 8836 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8837 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8838 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 8839 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6 |
| 8840 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8841 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8842 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8843 | |
| 8844 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8845 | echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 8846 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6 |
| 8847 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 8848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8849 | else |
| 8850 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8851 | /* confdefs.h. */ |
| 8852 | _ACEOF |
| 8853 | cat confdefs.h >>conftest.$ac_ext |
| 8854 | cat >>conftest.$ac_ext <<_ACEOF |
| 8855 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8856 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8857 | int |
| 8858 | main () |
| 8859 | { |
| 8860 | if ((fpos_t *) 0) |
| 8861 | return 0; |
| 8862 | if (sizeof (fpos_t)) |
| 8863 | return 0; |
| 8864 | ; |
| 8865 | return 0; |
| 8866 | } |
| 8867 | _ACEOF |
| 8868 | rm -f conftest.$ac_objext |
| 8869 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8870 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8871 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8872 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8873 | rm -f conftest.er1 |
| 8874 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8876 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8877 | { ac_try='test -z "$ac_c_werror_flag" |
| 8878 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8880 | (eval $ac_try) 2>&5 |
| 8881 | ac_status=$? |
| 8882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8883 | (exit $ac_status); }; } && |
| 8884 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8886 | (eval $ac_try) 2>&5 |
| 8887 | ac_status=$? |
| 8888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8889 | (exit $ac_status); }; }; then |
| 8890 | ac_cv_type_fpos_t=yes |
| 8891 | else |
| 8892 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8893 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8894 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8895 | ac_cv_type_fpos_t=no |
| 8896 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8897 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8898 | fi |
| 8899 | echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 8900 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6 |
| 8901 | |
| 8902 | echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 8903 | echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6 |
| 8904 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
| 8905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8906 | else |
| 8907 | if test "$ac_cv_type_fpos_t" = yes; then |
| 8908 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8909 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8910 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8911 | # This bug is HP SR number 8606223364. |
| 8912 | if test "$cross_compiling" = yes; then |
| 8913 | # Depending upon the size, compute the lo and hi bounds. |
| 8914 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8915 | /* confdefs.h. */ |
| 8916 | _ACEOF |
| 8917 | cat confdefs.h >>conftest.$ac_ext |
| 8918 | cat >>conftest.$ac_ext <<_ACEOF |
| 8919 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8920 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8921 | int |
| 8922 | main () |
| 8923 | { |
| 8924 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)]; |
| 8925 | test_array [0] = 0 |
| 8926 | |
| 8927 | ; |
| 8928 | return 0; |
| 8929 | } |
| 8930 | _ACEOF |
| 8931 | rm -f conftest.$ac_objext |
| 8932 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8933 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8934 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8935 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8936 | rm -f conftest.er1 |
| 8937 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8939 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8940 | { ac_try='test -z "$ac_c_werror_flag" |
| 8941 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8943 | (eval $ac_try) 2>&5 |
| 8944 | ac_status=$? |
| 8945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8946 | (exit $ac_status); }; } && |
| 8947 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8949 | (eval $ac_try) 2>&5 |
| 8950 | ac_status=$? |
| 8951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8952 | (exit $ac_status); }; }; then |
| 8953 | ac_lo=0 ac_mid=0 |
| 8954 | while :; do |
| 8955 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8956 | /* confdefs.h. */ |
| 8957 | _ACEOF |
| 8958 | cat confdefs.h >>conftest.$ac_ext |
| 8959 | cat >>conftest.$ac_ext <<_ACEOF |
| 8960 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8961 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8962 | int |
| 8963 | main () |
| 8964 | { |
| 8965 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 8966 | test_array [0] = 0 |
| 8967 | |
| 8968 | ; |
| 8969 | return 0; |
| 8970 | } |
| 8971 | _ACEOF |
| 8972 | rm -f conftest.$ac_objext |
| 8973 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8974 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8975 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8976 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8977 | rm -f conftest.er1 |
| 8978 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8980 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8981 | { ac_try='test -z "$ac_c_werror_flag" |
| 8982 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8984 | (eval $ac_try) 2>&5 |
| 8985 | ac_status=$? |
| 8986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8987 | (exit $ac_status); }; } && |
| 8988 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8990 | (eval $ac_try) 2>&5 |
| 8991 | ac_status=$? |
| 8992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8993 | (exit $ac_status); }; }; then |
| 8994 | ac_hi=$ac_mid; break |
| 8995 | else |
| 8996 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8997 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8998 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8999 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9000 | if test $ac_lo -le $ac_mid; then |
| 9001 | ac_lo= ac_hi= |
| 9002 | break |
| 9003 | fi |
| 9004 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | else |
| 9009 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9010 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9011 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9012 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9013 | /* confdefs.h. */ |
| 9014 | _ACEOF |
| 9015 | cat confdefs.h >>conftest.$ac_ext |
| 9016 | cat >>conftest.$ac_ext <<_ACEOF |
| 9017 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9018 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9019 | int |
| 9020 | main () |
| 9021 | { |
| 9022 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)]; |
| 9023 | test_array [0] = 0 |
| 9024 | |
| 9025 | ; |
| 9026 | return 0; |
| 9027 | } |
| 9028 | _ACEOF |
| 9029 | rm -f conftest.$ac_objext |
| 9030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9031 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9032 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9033 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9034 | rm -f conftest.er1 |
| 9035 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9037 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9038 | { ac_try='test -z "$ac_c_werror_flag" |
| 9039 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9041 | (eval $ac_try) 2>&5 |
| 9042 | ac_status=$? |
| 9043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9044 | (exit $ac_status); }; } && |
| 9045 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9047 | (eval $ac_try) 2>&5 |
| 9048 | ac_status=$? |
| 9049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9050 | (exit $ac_status); }; }; then |
| 9051 | ac_hi=-1 ac_mid=-1 |
| 9052 | while :; do |
| 9053 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9054 | /* confdefs.h. */ |
| 9055 | _ACEOF |
| 9056 | cat confdefs.h >>conftest.$ac_ext |
| 9057 | cat >>conftest.$ac_ext <<_ACEOF |
| 9058 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9059 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9060 | int |
| 9061 | main () |
| 9062 | { |
| 9063 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)]; |
| 9064 | test_array [0] = 0 |
| 9065 | |
| 9066 | ; |
| 9067 | return 0; |
| 9068 | } |
| 9069 | _ACEOF |
| 9070 | rm -f conftest.$ac_objext |
| 9071 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9072 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9073 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9074 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9075 | rm -f conftest.er1 |
| 9076 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9078 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9079 | { ac_try='test -z "$ac_c_werror_flag" |
| 9080 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9082 | (eval $ac_try) 2>&5 |
| 9083 | ac_status=$? |
| 9084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9085 | (exit $ac_status); }; } && |
| 9086 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9088 | (eval $ac_try) 2>&5 |
| 9089 | ac_status=$? |
| 9090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9091 | (exit $ac_status); }; }; then |
| 9092 | ac_lo=$ac_mid; break |
| 9093 | else |
| 9094 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9095 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9096 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9097 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9098 | if test $ac_mid -le $ac_hi; then |
| 9099 | ac_lo= ac_hi= |
| 9100 | break |
| 9101 | fi |
| 9102 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9103 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9104 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9105 | done |
| 9106 | else |
| 9107 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9108 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9109 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9110 | ac_lo= ac_hi= |
| 9111 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9112 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9113 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9114 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9115 | # Binary search between lo and hi bounds. |
| 9116 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9117 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9118 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9119 | /* confdefs.h. */ |
| 9120 | _ACEOF |
| 9121 | cat confdefs.h >>conftest.$ac_ext |
| 9122 | cat >>conftest.$ac_ext <<_ACEOF |
| 9123 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9124 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9125 | int |
| 9126 | main () |
| 9127 | { |
| 9128 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 9129 | test_array [0] = 0 |
| 9130 | |
| 9131 | ; |
| 9132 | return 0; |
| 9133 | } |
| 9134 | _ACEOF |
| 9135 | rm -f conftest.$ac_objext |
| 9136 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9137 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9138 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9139 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9140 | rm -f conftest.er1 |
| 9141 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9143 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9144 | { ac_try='test -z "$ac_c_werror_flag" |
| 9145 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9147 | (eval $ac_try) 2>&5 |
| 9148 | ac_status=$? |
| 9149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9150 | (exit $ac_status); }; } && |
| 9151 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9153 | (eval $ac_try) 2>&5 |
| 9154 | ac_status=$? |
| 9155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9156 | (exit $ac_status); }; }; then |
| 9157 | ac_hi=$ac_mid |
| 9158 | else |
| 9159 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9160 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9161 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9162 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 9163 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9164 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9165 | done |
| 9166 | case $ac_lo in |
| 9167 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9168 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77 |
| 9169 | See \`config.log' for more details." >&5 |
| 9170 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77 |
| 9171 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9172 | { (exit 1); exit 1; }; } ;; |
| 9173 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9174 | else |
| 9175 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9176 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 9177 | See \`config.log' for more details." >&5 |
| 9178 | echo "$as_me: error: cannot run test program while cross compiling |
| 9179 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9180 | { (exit 1); exit 1; }; } |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9181 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9182 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9183 | /* confdefs.h. */ |
| 9184 | _ACEOF |
| 9185 | cat confdefs.h >>conftest.$ac_ext |
| 9186 | cat >>conftest.$ac_ext <<_ACEOF |
| 9187 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9188 | $ac_includes_default |
| 9189 | long longval () { return (long) (sizeof (fpos_t)); } |
| 9190 | unsigned long ulongval () { return (long) (sizeof (fpos_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9191 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9192 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9193 | int |
| 9194 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9195 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9196 | |
| 9197 | FILE *f = fopen ("conftest.val", "w"); |
| 9198 | if (! f) |
| 9199 | exit (1); |
| 9200 | if (((long) (sizeof (fpos_t))) < 0) |
| 9201 | { |
| 9202 | long i = longval (); |
| 9203 | if (i != ((long) (sizeof (fpos_t)))) |
| 9204 | exit (1); |
| 9205 | fprintf (f, "%ld\n", i); |
| 9206 | } |
| 9207 | else |
| 9208 | { |
| 9209 | unsigned long i = ulongval (); |
| 9210 | if (i != ((long) (sizeof (fpos_t)))) |
| 9211 | exit (1); |
| 9212 | fprintf (f, "%lu\n", i); |
| 9213 | } |
| 9214 | exit (ferror (f) || fclose (f) != 0); |
| 9215 | |
| 9216 | ; |
| 9217 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9218 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9219 | _ACEOF |
| 9220 | rm -f conftest$ac_exeext |
| 9221 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9222 | (eval $ac_link) 2>&5 |
| 9223 | ac_status=$? |
| 9224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9225 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9227 | (eval $ac_try) 2>&5 |
| 9228 | ac_status=$? |
| 9229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9230 | (exit $ac_status); }; }; then |
| 9231 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9232 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9233 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9234 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9235 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9236 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9237 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9238 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77 |
| 9239 | See \`config.log' for more details." >&5 |
| 9240 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77 |
| 9241 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9242 | { (exit 1); exit 1; }; } |
| 9243 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9244 | 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] | 9245 | fi |
| 9246 | fi |
| 9247 | rm -f conftest.val |
| 9248 | else |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9249 | ac_cv_sizeof_fpos_t=0 |
| 9250 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9251 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9252 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 9253 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6 |
| 9254 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9255 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9256 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9257 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9258 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9259 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 9260 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 9261 | if test "${ac_cv_type_size_t+set}" = set; then |
| 9262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9263 | else |
| 9264 | cat >conftest.$ac_ext <<_ACEOF |
| 9265 | /* confdefs.h. */ |
| 9266 | _ACEOF |
| 9267 | cat confdefs.h >>conftest.$ac_ext |
| 9268 | cat >>conftest.$ac_ext <<_ACEOF |
| 9269 | /* end confdefs.h. */ |
| 9270 | $ac_includes_default |
| 9271 | int |
| 9272 | main () |
| 9273 | { |
| 9274 | if ((size_t *) 0) |
| 9275 | return 0; |
| 9276 | if (sizeof (size_t)) |
| 9277 | return 0; |
| 9278 | ; |
| 9279 | return 0; |
| 9280 | } |
| 9281 | _ACEOF |
| 9282 | rm -f conftest.$ac_objext |
| 9283 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9284 | (eval $ac_compile) 2>conftest.er1 |
| 9285 | ac_status=$? |
| 9286 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9287 | rm -f conftest.er1 |
| 9288 | cat conftest.err >&5 |
| 9289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9290 | (exit $ac_status); } && |
| 9291 | { ac_try='test -z "$ac_c_werror_flag" |
| 9292 | || test ! -s conftest.err' |
| 9293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9294 | (eval $ac_try) 2>&5 |
| 9295 | ac_status=$? |
| 9296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9297 | (exit $ac_status); }; } && |
| 9298 | { ac_try='test -s conftest.$ac_objext' |
| 9299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9300 | (eval $ac_try) 2>&5 |
| 9301 | ac_status=$? |
| 9302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9303 | (exit $ac_status); }; }; then |
| 9304 | ac_cv_type_size_t=yes |
| 9305 | else |
| 9306 | echo "$as_me: failed program was:" >&5 |
| 9307 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9308 | |
| 9309 | ac_cv_type_size_t=no |
| 9310 | fi |
| 9311 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9312 | fi |
| 9313 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 9314 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 9315 | |
| 9316 | echo "$as_me:$LINENO: checking size of size_t" >&5 |
| 9317 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 |
| 9318 | if test "${ac_cv_sizeof_size_t+set}" = set; then |
| 9319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9320 | else |
| 9321 | if test "$ac_cv_type_size_t" = yes; then |
| 9322 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 9323 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9324 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9325 | # This bug is HP SR number 8606223364. |
| 9326 | if test "$cross_compiling" = yes; then |
| 9327 | # Depending upon the size, compute the lo and hi bounds. |
| 9328 | cat >conftest.$ac_ext <<_ACEOF |
| 9329 | /* confdefs.h. */ |
| 9330 | _ACEOF |
| 9331 | cat confdefs.h >>conftest.$ac_ext |
| 9332 | cat >>conftest.$ac_ext <<_ACEOF |
| 9333 | /* end confdefs.h. */ |
| 9334 | $ac_includes_default |
| 9335 | int |
| 9336 | main () |
| 9337 | { |
| 9338 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; |
| 9339 | test_array [0] = 0 |
| 9340 | |
| 9341 | ; |
| 9342 | return 0; |
| 9343 | } |
| 9344 | _ACEOF |
| 9345 | rm -f conftest.$ac_objext |
| 9346 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9347 | (eval $ac_compile) 2>conftest.er1 |
| 9348 | ac_status=$? |
| 9349 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9350 | rm -f conftest.er1 |
| 9351 | cat conftest.err >&5 |
| 9352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9353 | (exit $ac_status); } && |
| 9354 | { ac_try='test -z "$ac_c_werror_flag" |
| 9355 | || test ! -s conftest.err' |
| 9356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9357 | (eval $ac_try) 2>&5 |
| 9358 | ac_status=$? |
| 9359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9360 | (exit $ac_status); }; } && |
| 9361 | { ac_try='test -s conftest.$ac_objext' |
| 9362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9363 | (eval $ac_try) 2>&5 |
| 9364 | ac_status=$? |
| 9365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9366 | (exit $ac_status); }; }; then |
| 9367 | ac_lo=0 ac_mid=0 |
| 9368 | while :; do |
| 9369 | cat >conftest.$ac_ext <<_ACEOF |
| 9370 | /* confdefs.h. */ |
| 9371 | _ACEOF |
| 9372 | cat confdefs.h >>conftest.$ac_ext |
| 9373 | cat >>conftest.$ac_ext <<_ACEOF |
| 9374 | /* end confdefs.h. */ |
| 9375 | $ac_includes_default |
| 9376 | int |
| 9377 | main () |
| 9378 | { |
| 9379 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; |
| 9380 | test_array [0] = 0 |
| 9381 | |
| 9382 | ; |
| 9383 | return 0; |
| 9384 | } |
| 9385 | _ACEOF |
| 9386 | rm -f conftest.$ac_objext |
| 9387 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9388 | (eval $ac_compile) 2>conftest.er1 |
| 9389 | ac_status=$? |
| 9390 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9391 | rm -f conftest.er1 |
| 9392 | cat conftest.err >&5 |
| 9393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9394 | (exit $ac_status); } && |
| 9395 | { ac_try='test -z "$ac_c_werror_flag" |
| 9396 | || test ! -s conftest.err' |
| 9397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9398 | (eval $ac_try) 2>&5 |
| 9399 | ac_status=$? |
| 9400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9401 | (exit $ac_status); }; } && |
| 9402 | { ac_try='test -s conftest.$ac_objext' |
| 9403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9404 | (eval $ac_try) 2>&5 |
| 9405 | ac_status=$? |
| 9406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9407 | (exit $ac_status); }; }; then |
| 9408 | ac_hi=$ac_mid; break |
| 9409 | else |
| 9410 | echo "$as_me: failed program was:" >&5 |
| 9411 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9412 | |
| 9413 | ac_lo=`expr $ac_mid + 1` |
| 9414 | if test $ac_lo -le $ac_mid; then |
| 9415 | ac_lo= ac_hi= |
| 9416 | break |
| 9417 | fi |
| 9418 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 9419 | fi |
| 9420 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9421 | done |
| 9422 | else |
| 9423 | echo "$as_me: failed program was:" >&5 |
| 9424 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9425 | |
| 9426 | cat >conftest.$ac_ext <<_ACEOF |
| 9427 | /* confdefs.h. */ |
| 9428 | _ACEOF |
| 9429 | cat confdefs.h >>conftest.$ac_ext |
| 9430 | cat >>conftest.$ac_ext <<_ACEOF |
| 9431 | /* end confdefs.h. */ |
| 9432 | $ac_includes_default |
| 9433 | int |
| 9434 | main () |
| 9435 | { |
| 9436 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; |
| 9437 | test_array [0] = 0 |
| 9438 | |
| 9439 | ; |
| 9440 | return 0; |
| 9441 | } |
| 9442 | _ACEOF |
| 9443 | rm -f conftest.$ac_objext |
| 9444 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9445 | (eval $ac_compile) 2>conftest.er1 |
| 9446 | ac_status=$? |
| 9447 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9448 | rm -f conftest.er1 |
| 9449 | cat conftest.err >&5 |
| 9450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9451 | (exit $ac_status); } && |
| 9452 | { ac_try='test -z "$ac_c_werror_flag" |
| 9453 | || test ! -s conftest.err' |
| 9454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9455 | (eval $ac_try) 2>&5 |
| 9456 | ac_status=$? |
| 9457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9458 | (exit $ac_status); }; } && |
| 9459 | { ac_try='test -s conftest.$ac_objext' |
| 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); }; }; then |
| 9465 | ac_hi=-1 ac_mid=-1 |
| 9466 | while :; do |
| 9467 | cat >conftest.$ac_ext <<_ACEOF |
| 9468 | /* confdefs.h. */ |
| 9469 | _ACEOF |
| 9470 | cat confdefs.h >>conftest.$ac_ext |
| 9471 | cat >>conftest.$ac_ext <<_ACEOF |
| 9472 | /* end confdefs.h. */ |
| 9473 | $ac_includes_default |
| 9474 | int |
| 9475 | main () |
| 9476 | { |
| 9477 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; |
| 9478 | test_array [0] = 0 |
| 9479 | |
| 9480 | ; |
| 9481 | return 0; |
| 9482 | } |
| 9483 | _ACEOF |
| 9484 | rm -f conftest.$ac_objext |
| 9485 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9486 | (eval $ac_compile) 2>conftest.er1 |
| 9487 | ac_status=$? |
| 9488 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9489 | rm -f conftest.er1 |
| 9490 | cat conftest.err >&5 |
| 9491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9492 | (exit $ac_status); } && |
| 9493 | { ac_try='test -z "$ac_c_werror_flag" |
| 9494 | || test ! -s conftest.err' |
| 9495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9496 | (eval $ac_try) 2>&5 |
| 9497 | ac_status=$? |
| 9498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9499 | (exit $ac_status); }; } && |
| 9500 | { ac_try='test -s conftest.$ac_objext' |
| 9501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9502 | (eval $ac_try) 2>&5 |
| 9503 | ac_status=$? |
| 9504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9505 | (exit $ac_status); }; }; then |
| 9506 | ac_lo=$ac_mid; break |
| 9507 | else |
| 9508 | echo "$as_me: failed program was:" >&5 |
| 9509 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9510 | |
| 9511 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9512 | if test $ac_mid -le $ac_hi; then |
| 9513 | ac_lo= ac_hi= |
| 9514 | break |
| 9515 | fi |
| 9516 | ac_mid=`expr 2 '*' $ac_mid` |
| 9517 | fi |
| 9518 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9519 | done |
| 9520 | else |
| 9521 | echo "$as_me: failed program was:" >&5 |
| 9522 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9523 | |
| 9524 | ac_lo= ac_hi= |
| 9525 | fi |
| 9526 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9527 | fi |
| 9528 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9529 | # Binary search between lo and hi bounds. |
| 9530 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9531 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9532 | cat >conftest.$ac_ext <<_ACEOF |
| 9533 | /* confdefs.h. */ |
| 9534 | _ACEOF |
| 9535 | cat confdefs.h >>conftest.$ac_ext |
| 9536 | cat >>conftest.$ac_ext <<_ACEOF |
| 9537 | /* end confdefs.h. */ |
| 9538 | $ac_includes_default |
| 9539 | int |
| 9540 | main () |
| 9541 | { |
| 9542 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; |
| 9543 | test_array [0] = 0 |
| 9544 | |
| 9545 | ; |
| 9546 | return 0; |
| 9547 | } |
| 9548 | _ACEOF |
| 9549 | rm -f conftest.$ac_objext |
| 9550 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9551 | (eval $ac_compile) 2>conftest.er1 |
| 9552 | ac_status=$? |
| 9553 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9554 | rm -f conftest.er1 |
| 9555 | cat conftest.err >&5 |
| 9556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9557 | (exit $ac_status); } && |
| 9558 | { ac_try='test -z "$ac_c_werror_flag" |
| 9559 | || test ! -s conftest.err' |
| 9560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9561 | (eval $ac_try) 2>&5 |
| 9562 | ac_status=$? |
| 9563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9564 | (exit $ac_status); }; } && |
| 9565 | { ac_try='test -s conftest.$ac_objext' |
| 9566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9567 | (eval $ac_try) 2>&5 |
| 9568 | ac_status=$? |
| 9569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9570 | (exit $ac_status); }; }; then |
| 9571 | ac_hi=$ac_mid |
| 9572 | else |
| 9573 | echo "$as_me: failed program was:" >&5 |
| 9574 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9575 | |
| 9576 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 9577 | fi |
| 9578 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9579 | done |
| 9580 | case $ac_lo in |
| 9581 | ?*) ac_cv_sizeof_size_t=$ac_lo;; |
| 9582 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 |
| 9583 | See \`config.log' for more details." >&5 |
| 9584 | echo "$as_me: error: cannot compute sizeof (size_t), 77 |
| 9585 | See \`config.log' for more details." >&2;} |
| 9586 | { (exit 1); exit 1; }; } ;; |
| 9587 | esac |
| 9588 | else |
| 9589 | if test "$cross_compiling" = yes; then |
| 9590 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 9591 | See \`config.log' for more details." >&5 |
| 9592 | echo "$as_me: error: cannot run test program while cross compiling |
| 9593 | See \`config.log' for more details." >&2;} |
| 9594 | { (exit 1); exit 1; }; } |
| 9595 | else |
| 9596 | cat >conftest.$ac_ext <<_ACEOF |
| 9597 | /* confdefs.h. */ |
| 9598 | _ACEOF |
| 9599 | cat confdefs.h >>conftest.$ac_ext |
| 9600 | cat >>conftest.$ac_ext <<_ACEOF |
| 9601 | /* end confdefs.h. */ |
| 9602 | $ac_includes_default |
| 9603 | long longval () { return (long) (sizeof (size_t)); } |
| 9604 | unsigned long ulongval () { return (long) (sizeof (size_t)); } |
| 9605 | #include <stdio.h> |
| 9606 | #include <stdlib.h> |
| 9607 | int |
| 9608 | main () |
| 9609 | { |
| 9610 | |
| 9611 | FILE *f = fopen ("conftest.val", "w"); |
| 9612 | if (! f) |
| 9613 | exit (1); |
| 9614 | if (((long) (sizeof (size_t))) < 0) |
| 9615 | { |
| 9616 | long i = longval (); |
| 9617 | if (i != ((long) (sizeof (size_t)))) |
| 9618 | exit (1); |
| 9619 | fprintf (f, "%ld\n", i); |
| 9620 | } |
| 9621 | else |
| 9622 | { |
| 9623 | unsigned long i = ulongval (); |
| 9624 | if (i != ((long) (sizeof (size_t)))) |
| 9625 | exit (1); |
| 9626 | fprintf (f, "%lu\n", i); |
| 9627 | } |
| 9628 | exit (ferror (f) || fclose (f) != 0); |
| 9629 | |
| 9630 | ; |
| 9631 | return 0; |
| 9632 | } |
| 9633 | _ACEOF |
| 9634 | rm -f conftest$ac_exeext |
| 9635 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9636 | (eval $ac_link) 2>&5 |
| 9637 | ac_status=$? |
| 9638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9639 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9641 | (eval $ac_try) 2>&5 |
| 9642 | ac_status=$? |
| 9643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9644 | (exit $ac_status); }; }; then |
| 9645 | ac_cv_sizeof_size_t=`cat conftest.val` |
| 9646 | else |
| 9647 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9648 | echo "$as_me: failed program was:" >&5 |
| 9649 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9650 | |
| 9651 | ( exit $ac_status ) |
| 9652 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 |
| 9653 | See \`config.log' for more details." >&5 |
| 9654 | echo "$as_me: error: cannot compute sizeof (size_t), 77 |
| 9655 | See \`config.log' for more details." >&2;} |
| 9656 | { (exit 1); exit 1; }; } |
| 9657 | fi |
| 9658 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 9659 | fi |
| 9660 | fi |
| 9661 | rm -f conftest.val |
| 9662 | else |
| 9663 | ac_cv_sizeof_size_t=0 |
| 9664 | fi |
| 9665 | fi |
| 9666 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 |
| 9667 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 |
| 9668 | cat >>confdefs.h <<_ACEOF |
| 9669 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
| 9670 | _ACEOF |
| 9671 | |
| 9672 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9673 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9674 | echo "$as_me:$LINENO: checking for long long support" >&5 |
| 9675 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9676 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9677 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9678 | /* confdefs.h. */ |
| 9679 | _ACEOF |
| 9680 | cat confdefs.h >>conftest.$ac_ext |
| 9681 | cat >>conftest.$ac_ext <<_ACEOF |
| 9682 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9683 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9684 | int |
| 9685 | main () |
| 9686 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9687 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9688 | ; |
| 9689 | return 0; |
| 9690 | } |
| 9691 | _ACEOF |
| 9692 | rm -f conftest.$ac_objext |
| 9693 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9694 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9695 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9696 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9697 | rm -f conftest.er1 |
| 9698 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9700 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9701 | { ac_try='test -z "$ac_c_werror_flag" |
| 9702 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9704 | (eval $ac_try) 2>&5 |
| 9705 | ac_status=$? |
| 9706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9707 | (exit $ac_status); }; } && |
| 9708 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9710 | (eval $ac_try) 2>&5 |
| 9711 | ac_status=$? |
| 9712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9713 | (exit $ac_status); }; }; then |
| 9714 | |
| 9715 | |
| 9716 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9717 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9718 | _ACEOF |
| 9719 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 9720 | have_long_long=yes |
| 9721 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9722 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9723 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9724 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9725 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9726 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9727 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9728 | echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 9729 | echo "${ECHO_T}$have_long_long" >&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 9730 | if test "$have_long_long" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9731 | echo "$as_me:$LINENO: checking for long long" >&5 |
| 9732 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 9733 | if test "${ac_cv_type_long_long+set}" = set; then |
| 9734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9735 | else |
| 9736 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9737 | /* confdefs.h. */ |
| 9738 | _ACEOF |
| 9739 | cat confdefs.h >>conftest.$ac_ext |
| 9740 | cat >>conftest.$ac_ext <<_ACEOF |
| 9741 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9742 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9743 | int |
| 9744 | main () |
| 9745 | { |
| 9746 | if ((long long *) 0) |
| 9747 | return 0; |
| 9748 | if (sizeof (long long)) |
| 9749 | return 0; |
| 9750 | ; |
| 9751 | return 0; |
| 9752 | } |
| 9753 | _ACEOF |
| 9754 | rm -f conftest.$ac_objext |
| 9755 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9756 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9757 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9758 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9759 | rm -f conftest.er1 |
| 9760 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9762 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9763 | { ac_try='test -z "$ac_c_werror_flag" |
| 9764 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9766 | (eval $ac_try) 2>&5 |
| 9767 | ac_status=$? |
| 9768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9769 | (exit $ac_status); }; } && |
| 9770 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9772 | (eval $ac_try) 2>&5 |
| 9773 | ac_status=$? |
| 9774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9775 | (exit $ac_status); }; }; then |
| 9776 | ac_cv_type_long_long=yes |
| 9777 | else |
| 9778 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9779 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9780 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9781 | ac_cv_type_long_long=no |
| 9782 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9783 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9784 | fi |
| 9785 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 9786 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
| 9787 | |
| 9788 | echo "$as_me:$LINENO: checking size of long long" >&5 |
| 9789 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 |
| 9790 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 9791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9792 | else |
| 9793 | if test "$ac_cv_type_long_long" = yes; then |
| 9794 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 9795 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9796 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9797 | # This bug is HP SR number 8606223364. |
| 9798 | if test "$cross_compiling" = yes; then |
| 9799 | # Depending upon the size, compute the lo and hi bounds. |
| 9800 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9801 | /* confdefs.h. */ |
| 9802 | _ACEOF |
| 9803 | cat confdefs.h >>conftest.$ac_ext |
| 9804 | cat >>conftest.$ac_ext <<_ACEOF |
| 9805 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9806 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9807 | int |
| 9808 | main () |
| 9809 | { |
| 9810 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; |
| 9811 | test_array [0] = 0 |
| 9812 | |
| 9813 | ; |
| 9814 | return 0; |
| 9815 | } |
| 9816 | _ACEOF |
| 9817 | rm -f conftest.$ac_objext |
| 9818 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9819 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9820 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9821 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9822 | rm -f conftest.er1 |
| 9823 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9825 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9826 | { ac_try='test -z "$ac_c_werror_flag" |
| 9827 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9829 | (eval $ac_try) 2>&5 |
| 9830 | ac_status=$? |
| 9831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9832 | (exit $ac_status); }; } && |
| 9833 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9835 | (eval $ac_try) 2>&5 |
| 9836 | ac_status=$? |
| 9837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9838 | (exit $ac_status); }; }; then |
| 9839 | ac_lo=0 ac_mid=0 |
| 9840 | while :; do |
| 9841 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9842 | /* confdefs.h. */ |
| 9843 | _ACEOF |
| 9844 | cat confdefs.h >>conftest.$ac_ext |
| 9845 | cat >>conftest.$ac_ext <<_ACEOF |
| 9846 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9847 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9848 | int |
| 9849 | main () |
| 9850 | { |
| 9851 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 9852 | test_array [0] = 0 |
| 9853 | |
| 9854 | ; |
| 9855 | return 0; |
| 9856 | } |
| 9857 | _ACEOF |
| 9858 | rm -f conftest.$ac_objext |
| 9859 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9860 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9861 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9862 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9863 | rm -f conftest.er1 |
| 9864 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9866 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9867 | { ac_try='test -z "$ac_c_werror_flag" |
| 9868 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9870 | (eval $ac_try) 2>&5 |
| 9871 | ac_status=$? |
| 9872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9873 | (exit $ac_status); }; } && |
| 9874 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9876 | (eval $ac_try) 2>&5 |
| 9877 | ac_status=$? |
| 9878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9879 | (exit $ac_status); }; }; then |
| 9880 | ac_hi=$ac_mid; break |
| 9881 | else |
| 9882 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9883 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9884 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9885 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9886 | if test $ac_lo -le $ac_mid; then |
| 9887 | ac_lo= ac_hi= |
| 9888 | break |
| 9889 | fi |
| 9890 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9891 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9892 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9893 | done |
| 9894 | else |
| 9895 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9896 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9897 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9898 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9899 | /* confdefs.h. */ |
| 9900 | _ACEOF |
| 9901 | cat confdefs.h >>conftest.$ac_ext |
| 9902 | cat >>conftest.$ac_ext <<_ACEOF |
| 9903 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9904 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9905 | int |
| 9906 | main () |
| 9907 | { |
| 9908 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; |
| 9909 | test_array [0] = 0 |
| 9910 | |
| 9911 | ; |
| 9912 | return 0; |
| 9913 | } |
| 9914 | _ACEOF |
| 9915 | rm -f conftest.$ac_objext |
| 9916 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9917 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9918 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9919 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9920 | rm -f conftest.er1 |
| 9921 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9923 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9924 | { ac_try='test -z "$ac_c_werror_flag" |
| 9925 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9927 | (eval $ac_try) 2>&5 |
| 9928 | ac_status=$? |
| 9929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9930 | (exit $ac_status); }; } && |
| 9931 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9933 | (eval $ac_try) 2>&5 |
| 9934 | ac_status=$? |
| 9935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9936 | (exit $ac_status); }; }; then |
| 9937 | ac_hi=-1 ac_mid=-1 |
| 9938 | while :; do |
| 9939 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9940 | /* confdefs.h. */ |
| 9941 | _ACEOF |
| 9942 | cat confdefs.h >>conftest.$ac_ext |
| 9943 | cat >>conftest.$ac_ext <<_ACEOF |
| 9944 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9945 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9946 | int |
| 9947 | main () |
| 9948 | { |
| 9949 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; |
| 9950 | test_array [0] = 0 |
| 9951 | |
| 9952 | ; |
| 9953 | return 0; |
| 9954 | } |
| 9955 | _ACEOF |
| 9956 | rm -f conftest.$ac_objext |
| 9957 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9958 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9959 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9960 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9961 | rm -f conftest.er1 |
| 9962 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9964 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9965 | { ac_try='test -z "$ac_c_werror_flag" |
| 9966 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9968 | (eval $ac_try) 2>&5 |
| 9969 | ac_status=$? |
| 9970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9971 | (exit $ac_status); }; } && |
| 9972 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9974 | (eval $ac_try) 2>&5 |
| 9975 | ac_status=$? |
| 9976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9977 | (exit $ac_status); }; }; then |
| 9978 | ac_lo=$ac_mid; break |
| 9979 | else |
| 9980 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9981 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9982 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9983 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9984 | if test $ac_mid -le $ac_hi; then |
| 9985 | ac_lo= ac_hi= |
| 9986 | break |
| 9987 | fi |
| 9988 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9989 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9990 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9991 | done |
| 9992 | else |
| 9993 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9994 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9995 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9996 | ac_lo= ac_hi= |
| 9997 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9998 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9999 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10000 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10001 | # Binary search between lo and hi bounds. |
| 10002 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10003 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10004 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10005 | /* confdefs.h. */ |
| 10006 | _ACEOF |
| 10007 | cat confdefs.h >>conftest.$ac_ext |
| 10008 | cat >>conftest.$ac_ext <<_ACEOF |
| 10009 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10010 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10011 | int |
| 10012 | main () |
| 10013 | { |
| 10014 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 10015 | test_array [0] = 0 |
| 10016 | |
| 10017 | ; |
| 10018 | return 0; |
| 10019 | } |
| 10020 | _ACEOF |
| 10021 | rm -f conftest.$ac_objext |
| 10022 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10023 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10024 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10025 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10026 | rm -f conftest.er1 |
| 10027 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10029 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10030 | { ac_try='test -z "$ac_c_werror_flag" |
| 10031 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10033 | (eval $ac_try) 2>&5 |
| 10034 | ac_status=$? |
| 10035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10036 | (exit $ac_status); }; } && |
| 10037 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10039 | (eval $ac_try) 2>&5 |
| 10040 | ac_status=$? |
| 10041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10042 | (exit $ac_status); }; }; then |
| 10043 | ac_hi=$ac_mid |
| 10044 | else |
| 10045 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10046 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10047 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10048 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 10049 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10050 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10051 | done |
| 10052 | case $ac_lo in |
| 10053 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10054 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 |
| 10055 | See \`config.log' for more details." >&5 |
| 10056 | echo "$as_me: error: cannot compute sizeof (long long), 77 |
| 10057 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10058 | { (exit 1); exit 1; }; } ;; |
| 10059 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10060 | else |
| 10061 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10062 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 10063 | See \`config.log' for more details." >&5 |
| 10064 | echo "$as_me: error: cannot run test program while cross compiling |
| 10065 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10066 | { (exit 1); exit 1; }; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10067 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10068 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10069 | /* confdefs.h. */ |
| 10070 | _ACEOF |
| 10071 | cat confdefs.h >>conftest.$ac_ext |
| 10072 | cat >>conftest.$ac_ext <<_ACEOF |
| 10073 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10074 | $ac_includes_default |
| 10075 | long longval () { return (long) (sizeof (long long)); } |
| 10076 | unsigned long ulongval () { return (long) (sizeof (long long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10077 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10078 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10079 | int |
| 10080 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10081 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10082 | |
| 10083 | FILE *f = fopen ("conftest.val", "w"); |
| 10084 | if (! f) |
| 10085 | exit (1); |
| 10086 | if (((long) (sizeof (long long))) < 0) |
| 10087 | { |
| 10088 | long i = longval (); |
| 10089 | if (i != ((long) (sizeof (long long)))) |
| 10090 | exit (1); |
| 10091 | fprintf (f, "%ld\n", i); |
| 10092 | } |
| 10093 | else |
| 10094 | { |
| 10095 | unsigned long i = ulongval (); |
| 10096 | if (i != ((long) (sizeof (long long)))) |
| 10097 | exit (1); |
| 10098 | fprintf (f, "%lu\n", i); |
| 10099 | } |
| 10100 | exit (ferror (f) || fclose (f) != 0); |
| 10101 | |
| 10102 | ; |
| 10103 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10104 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10105 | _ACEOF |
| 10106 | rm -f conftest$ac_exeext |
| 10107 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10108 | (eval $ac_link) 2>&5 |
| 10109 | ac_status=$? |
| 10110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10111 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10113 | (eval $ac_try) 2>&5 |
| 10114 | ac_status=$? |
| 10115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10116 | (exit $ac_status); }; }; then |
| 10117 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10118 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10119 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10120 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10121 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10122 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10123 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10124 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 |
| 10125 | See \`config.log' for more details." >&5 |
| 10126 | echo "$as_me: error: cannot compute sizeof (long long), 77 |
| 10127 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10128 | { (exit 1); exit 1; }; } |
| 10129 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10130 | 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] | 10131 | fi |
| 10132 | fi |
| 10133 | rm -f conftest.val |
| 10134 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10135 | ac_cv_sizeof_long_long=0 |
| 10136 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10137 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10138 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 10139 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 |
| 10140 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10141 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10142 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10143 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10144 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10145 | fi |
| 10146 | |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame^] | 10147 | echo "$as_me:$LINENO: checking for _Bool support" >&5 |
| 10148 | echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6 |
| 10149 | have_c99_bool=no |
| 10150 | cat >conftest.$ac_ext <<_ACEOF |
| 10151 | /* confdefs.h. */ |
| 10152 | _ACEOF |
| 10153 | cat confdefs.h >>conftest.$ac_ext |
| 10154 | cat >>conftest.$ac_ext <<_ACEOF |
| 10155 | /* end confdefs.h. */ |
| 10156 | |
| 10157 | int |
| 10158 | main () |
| 10159 | { |
| 10160 | _Bool x; x = (_Bool)0; |
| 10161 | ; |
| 10162 | return 0; |
| 10163 | } |
| 10164 | _ACEOF |
| 10165 | rm -f conftest.$ac_objext |
| 10166 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10167 | (eval $ac_compile) 2>conftest.er1 |
| 10168 | ac_status=$? |
| 10169 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10170 | rm -f conftest.er1 |
| 10171 | cat conftest.err >&5 |
| 10172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10173 | (exit $ac_status); } && |
| 10174 | { ac_try='test -z "$ac_c_werror_flag" |
| 10175 | || test ! -s conftest.err' |
| 10176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10177 | (eval $ac_try) 2>&5 |
| 10178 | ac_status=$? |
| 10179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10180 | (exit $ac_status); }; } && |
| 10181 | { ac_try='test -s conftest.$ac_objext' |
| 10182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10183 | (eval $ac_try) 2>&5 |
| 10184 | ac_status=$? |
| 10185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10186 | (exit $ac_status); }; }; then |
| 10187 | |
| 10188 | |
| 10189 | cat >>confdefs.h <<\_ACEOF |
| 10190 | #define HAVE_C99_BOOL 1 |
| 10191 | _ACEOF |
| 10192 | |
| 10193 | have_c99_bool=yes |
| 10194 | |
| 10195 | else |
| 10196 | echo "$as_me: failed program was:" >&5 |
| 10197 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10198 | |
| 10199 | fi |
| 10200 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10201 | echo "$as_me:$LINENO: result: $have_c99_bool" >&5 |
| 10202 | echo "${ECHO_T}$have_c99_bool" >&6 |
| 10203 | if test "$have_c99_bool" = yes ; then |
| 10204 | echo "$as_me:$LINENO: checking for _Bool" >&5 |
| 10205 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 |
| 10206 | if test "${ac_cv_type__Bool+set}" = set; then |
| 10207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10208 | else |
| 10209 | cat >conftest.$ac_ext <<_ACEOF |
| 10210 | /* confdefs.h. */ |
| 10211 | _ACEOF |
| 10212 | cat confdefs.h >>conftest.$ac_ext |
| 10213 | cat >>conftest.$ac_ext <<_ACEOF |
| 10214 | /* end confdefs.h. */ |
| 10215 | $ac_includes_default |
| 10216 | int |
| 10217 | main () |
| 10218 | { |
| 10219 | if ((_Bool *) 0) |
| 10220 | return 0; |
| 10221 | if (sizeof (_Bool)) |
| 10222 | return 0; |
| 10223 | ; |
| 10224 | return 0; |
| 10225 | } |
| 10226 | _ACEOF |
| 10227 | rm -f conftest.$ac_objext |
| 10228 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10229 | (eval $ac_compile) 2>conftest.er1 |
| 10230 | ac_status=$? |
| 10231 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10232 | rm -f conftest.er1 |
| 10233 | cat conftest.err >&5 |
| 10234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10235 | (exit $ac_status); } && |
| 10236 | { ac_try='test -z "$ac_c_werror_flag" |
| 10237 | || test ! -s conftest.err' |
| 10238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10239 | (eval $ac_try) 2>&5 |
| 10240 | ac_status=$? |
| 10241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10242 | (exit $ac_status); }; } && |
| 10243 | { ac_try='test -s conftest.$ac_objext' |
| 10244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10245 | (eval $ac_try) 2>&5 |
| 10246 | ac_status=$? |
| 10247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10248 | (exit $ac_status); }; }; then |
| 10249 | ac_cv_type__Bool=yes |
| 10250 | else |
| 10251 | echo "$as_me: failed program was:" >&5 |
| 10252 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10253 | |
| 10254 | ac_cv_type__Bool=no |
| 10255 | fi |
| 10256 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10257 | fi |
| 10258 | echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
| 10259 | echo "${ECHO_T}$ac_cv_type__Bool" >&6 |
| 10260 | |
| 10261 | echo "$as_me:$LINENO: checking size of _Bool" >&5 |
| 10262 | echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6 |
| 10263 | if test "${ac_cv_sizeof__Bool+set}" = set; then |
| 10264 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10265 | else |
| 10266 | if test "$ac_cv_type__Bool" = yes; then |
| 10267 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 10268 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10269 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10270 | # This bug is HP SR number 8606223364. |
| 10271 | if test "$cross_compiling" = yes; then |
| 10272 | # Depending upon the size, compute the lo and hi bounds. |
| 10273 | cat >conftest.$ac_ext <<_ACEOF |
| 10274 | /* confdefs.h. */ |
| 10275 | _ACEOF |
| 10276 | cat confdefs.h >>conftest.$ac_ext |
| 10277 | cat >>conftest.$ac_ext <<_ACEOF |
| 10278 | /* end confdefs.h. */ |
| 10279 | $ac_includes_default |
| 10280 | int |
| 10281 | main () |
| 10282 | { |
| 10283 | static int test_array [1 - 2 * !(((long) (sizeof (_Bool))) >= 0)]; |
| 10284 | test_array [0] = 0 |
| 10285 | |
| 10286 | ; |
| 10287 | return 0; |
| 10288 | } |
| 10289 | _ACEOF |
| 10290 | rm -f conftest.$ac_objext |
| 10291 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10292 | (eval $ac_compile) 2>conftest.er1 |
| 10293 | ac_status=$? |
| 10294 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10295 | rm -f conftest.er1 |
| 10296 | cat conftest.err >&5 |
| 10297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10298 | (exit $ac_status); } && |
| 10299 | { ac_try='test -z "$ac_c_werror_flag" |
| 10300 | || test ! -s conftest.err' |
| 10301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10302 | (eval $ac_try) 2>&5 |
| 10303 | ac_status=$? |
| 10304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10305 | (exit $ac_status); }; } && |
| 10306 | { ac_try='test -s conftest.$ac_objext' |
| 10307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10308 | (eval $ac_try) 2>&5 |
| 10309 | ac_status=$? |
| 10310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10311 | (exit $ac_status); }; }; then |
| 10312 | ac_lo=0 ac_mid=0 |
| 10313 | while :; do |
| 10314 | cat >conftest.$ac_ext <<_ACEOF |
| 10315 | /* confdefs.h. */ |
| 10316 | _ACEOF |
| 10317 | cat confdefs.h >>conftest.$ac_ext |
| 10318 | cat >>conftest.$ac_ext <<_ACEOF |
| 10319 | /* end confdefs.h. */ |
| 10320 | $ac_includes_default |
| 10321 | int |
| 10322 | main () |
| 10323 | { |
| 10324 | static int test_array [1 - 2 * !(((long) (sizeof (_Bool))) <= $ac_mid)]; |
| 10325 | test_array [0] = 0 |
| 10326 | |
| 10327 | ; |
| 10328 | return 0; |
| 10329 | } |
| 10330 | _ACEOF |
| 10331 | rm -f conftest.$ac_objext |
| 10332 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10333 | (eval $ac_compile) 2>conftest.er1 |
| 10334 | ac_status=$? |
| 10335 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10336 | rm -f conftest.er1 |
| 10337 | cat conftest.err >&5 |
| 10338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10339 | (exit $ac_status); } && |
| 10340 | { ac_try='test -z "$ac_c_werror_flag" |
| 10341 | || test ! -s conftest.err' |
| 10342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10343 | (eval $ac_try) 2>&5 |
| 10344 | ac_status=$? |
| 10345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10346 | (exit $ac_status); }; } && |
| 10347 | { ac_try='test -s conftest.$ac_objext' |
| 10348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10349 | (eval $ac_try) 2>&5 |
| 10350 | ac_status=$? |
| 10351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10352 | (exit $ac_status); }; }; then |
| 10353 | ac_hi=$ac_mid; break |
| 10354 | else |
| 10355 | echo "$as_me: failed program was:" >&5 |
| 10356 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10357 | |
| 10358 | ac_lo=`expr $ac_mid + 1` |
| 10359 | if test $ac_lo -le $ac_mid; then |
| 10360 | ac_lo= ac_hi= |
| 10361 | break |
| 10362 | fi |
| 10363 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 10364 | fi |
| 10365 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10366 | done |
| 10367 | else |
| 10368 | echo "$as_me: failed program was:" >&5 |
| 10369 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10370 | |
| 10371 | cat >conftest.$ac_ext <<_ACEOF |
| 10372 | /* confdefs.h. */ |
| 10373 | _ACEOF |
| 10374 | cat confdefs.h >>conftest.$ac_ext |
| 10375 | cat >>conftest.$ac_ext <<_ACEOF |
| 10376 | /* end confdefs.h. */ |
| 10377 | $ac_includes_default |
| 10378 | int |
| 10379 | main () |
| 10380 | { |
| 10381 | static int test_array [1 - 2 * !(((long) (sizeof (_Bool))) < 0)]; |
| 10382 | test_array [0] = 0 |
| 10383 | |
| 10384 | ; |
| 10385 | return 0; |
| 10386 | } |
| 10387 | _ACEOF |
| 10388 | rm -f conftest.$ac_objext |
| 10389 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10390 | (eval $ac_compile) 2>conftest.er1 |
| 10391 | ac_status=$? |
| 10392 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10393 | rm -f conftest.er1 |
| 10394 | cat conftest.err >&5 |
| 10395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10396 | (exit $ac_status); } && |
| 10397 | { ac_try='test -z "$ac_c_werror_flag" |
| 10398 | || test ! -s conftest.err' |
| 10399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10400 | (eval $ac_try) 2>&5 |
| 10401 | ac_status=$? |
| 10402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10403 | (exit $ac_status); }; } && |
| 10404 | { ac_try='test -s conftest.$ac_objext' |
| 10405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10406 | (eval $ac_try) 2>&5 |
| 10407 | ac_status=$? |
| 10408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10409 | (exit $ac_status); }; }; then |
| 10410 | ac_hi=-1 ac_mid=-1 |
| 10411 | while :; do |
| 10412 | cat >conftest.$ac_ext <<_ACEOF |
| 10413 | /* confdefs.h. */ |
| 10414 | _ACEOF |
| 10415 | cat confdefs.h >>conftest.$ac_ext |
| 10416 | cat >>conftest.$ac_ext <<_ACEOF |
| 10417 | /* end confdefs.h. */ |
| 10418 | $ac_includes_default |
| 10419 | int |
| 10420 | main () |
| 10421 | { |
| 10422 | static int test_array [1 - 2 * !(((long) (sizeof (_Bool))) >= $ac_mid)]; |
| 10423 | test_array [0] = 0 |
| 10424 | |
| 10425 | ; |
| 10426 | return 0; |
| 10427 | } |
| 10428 | _ACEOF |
| 10429 | rm -f conftest.$ac_objext |
| 10430 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10431 | (eval $ac_compile) 2>conftest.er1 |
| 10432 | ac_status=$? |
| 10433 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10434 | rm -f conftest.er1 |
| 10435 | cat conftest.err >&5 |
| 10436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10437 | (exit $ac_status); } && |
| 10438 | { ac_try='test -z "$ac_c_werror_flag" |
| 10439 | || test ! -s conftest.err' |
| 10440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10441 | (eval $ac_try) 2>&5 |
| 10442 | ac_status=$? |
| 10443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10444 | (exit $ac_status); }; } && |
| 10445 | { ac_try='test -s conftest.$ac_objext' |
| 10446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10447 | (eval $ac_try) 2>&5 |
| 10448 | ac_status=$? |
| 10449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10450 | (exit $ac_status); }; }; then |
| 10451 | ac_lo=$ac_mid; break |
| 10452 | else |
| 10453 | echo "$as_me: failed program was:" >&5 |
| 10454 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10455 | |
| 10456 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10457 | if test $ac_mid -le $ac_hi; then |
| 10458 | ac_lo= ac_hi= |
| 10459 | break |
| 10460 | fi |
| 10461 | ac_mid=`expr 2 '*' $ac_mid` |
| 10462 | fi |
| 10463 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10464 | done |
| 10465 | else |
| 10466 | echo "$as_me: failed program was:" >&5 |
| 10467 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10468 | |
| 10469 | ac_lo= ac_hi= |
| 10470 | fi |
| 10471 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10472 | fi |
| 10473 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10474 | # Binary search between lo and hi bounds. |
| 10475 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10476 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10477 | cat >conftest.$ac_ext <<_ACEOF |
| 10478 | /* confdefs.h. */ |
| 10479 | _ACEOF |
| 10480 | cat confdefs.h >>conftest.$ac_ext |
| 10481 | cat >>conftest.$ac_ext <<_ACEOF |
| 10482 | /* end confdefs.h. */ |
| 10483 | $ac_includes_default |
| 10484 | int |
| 10485 | main () |
| 10486 | { |
| 10487 | static int test_array [1 - 2 * !(((long) (sizeof (_Bool))) <= $ac_mid)]; |
| 10488 | test_array [0] = 0 |
| 10489 | |
| 10490 | ; |
| 10491 | return 0; |
| 10492 | } |
| 10493 | _ACEOF |
| 10494 | rm -f conftest.$ac_objext |
| 10495 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10496 | (eval $ac_compile) 2>conftest.er1 |
| 10497 | ac_status=$? |
| 10498 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10499 | rm -f conftest.er1 |
| 10500 | cat conftest.err >&5 |
| 10501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10502 | (exit $ac_status); } && |
| 10503 | { ac_try='test -z "$ac_c_werror_flag" |
| 10504 | || test ! -s conftest.err' |
| 10505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10506 | (eval $ac_try) 2>&5 |
| 10507 | ac_status=$? |
| 10508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10509 | (exit $ac_status); }; } && |
| 10510 | { ac_try='test -s conftest.$ac_objext' |
| 10511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10512 | (eval $ac_try) 2>&5 |
| 10513 | ac_status=$? |
| 10514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10515 | (exit $ac_status); }; }; then |
| 10516 | ac_hi=$ac_mid |
| 10517 | else |
| 10518 | echo "$as_me: failed program was:" >&5 |
| 10519 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10520 | |
| 10521 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 10522 | fi |
| 10523 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10524 | done |
| 10525 | case $ac_lo in |
| 10526 | ?*) ac_cv_sizeof__Bool=$ac_lo;; |
| 10527 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool), 77 |
| 10528 | See \`config.log' for more details." >&5 |
| 10529 | echo "$as_me: error: cannot compute sizeof (_Bool), 77 |
| 10530 | See \`config.log' for more details." >&2;} |
| 10531 | { (exit 1); exit 1; }; } ;; |
| 10532 | esac |
| 10533 | else |
| 10534 | if test "$cross_compiling" = yes; then |
| 10535 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 10536 | See \`config.log' for more details." >&5 |
| 10537 | echo "$as_me: error: cannot run test program while cross compiling |
| 10538 | See \`config.log' for more details." >&2;} |
| 10539 | { (exit 1); exit 1; }; } |
| 10540 | else |
| 10541 | cat >conftest.$ac_ext <<_ACEOF |
| 10542 | /* confdefs.h. */ |
| 10543 | _ACEOF |
| 10544 | cat confdefs.h >>conftest.$ac_ext |
| 10545 | cat >>conftest.$ac_ext <<_ACEOF |
| 10546 | /* end confdefs.h. */ |
| 10547 | $ac_includes_default |
| 10548 | long longval () { return (long) (sizeof (_Bool)); } |
| 10549 | unsigned long ulongval () { return (long) (sizeof (_Bool)); } |
| 10550 | #include <stdio.h> |
| 10551 | #include <stdlib.h> |
| 10552 | int |
| 10553 | main () |
| 10554 | { |
| 10555 | |
| 10556 | FILE *f = fopen ("conftest.val", "w"); |
| 10557 | if (! f) |
| 10558 | exit (1); |
| 10559 | if (((long) (sizeof (_Bool))) < 0) |
| 10560 | { |
| 10561 | long i = longval (); |
| 10562 | if (i != ((long) (sizeof (_Bool)))) |
| 10563 | exit (1); |
| 10564 | fprintf (f, "%ld\n", i); |
| 10565 | } |
| 10566 | else |
| 10567 | { |
| 10568 | unsigned long i = ulongval (); |
| 10569 | if (i != ((long) (sizeof (_Bool)))) |
| 10570 | exit (1); |
| 10571 | fprintf (f, "%lu\n", i); |
| 10572 | } |
| 10573 | exit (ferror (f) || fclose (f) != 0); |
| 10574 | |
| 10575 | ; |
| 10576 | return 0; |
| 10577 | } |
| 10578 | _ACEOF |
| 10579 | rm -f conftest$ac_exeext |
| 10580 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10581 | (eval $ac_link) 2>&5 |
| 10582 | ac_status=$? |
| 10583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10584 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10586 | (eval $ac_try) 2>&5 |
| 10587 | ac_status=$? |
| 10588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10589 | (exit $ac_status); }; }; then |
| 10590 | ac_cv_sizeof__Bool=`cat conftest.val` |
| 10591 | else |
| 10592 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10593 | echo "$as_me: failed program was:" >&5 |
| 10594 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10595 | |
| 10596 | ( exit $ac_status ) |
| 10597 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool), 77 |
| 10598 | See \`config.log' for more details." >&5 |
| 10599 | echo "$as_me: error: cannot compute sizeof (_Bool), 77 |
| 10600 | See \`config.log' for more details." >&2;} |
| 10601 | { (exit 1); exit 1; }; } |
| 10602 | fi |
| 10603 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 10604 | fi |
| 10605 | fi |
| 10606 | rm -f conftest.val |
| 10607 | else |
| 10608 | ac_cv_sizeof__Bool=0 |
| 10609 | fi |
| 10610 | fi |
| 10611 | echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5 |
| 10612 | echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6 |
| 10613 | cat >>confdefs.h <<_ACEOF |
| 10614 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool |
| 10615 | _ACEOF |
| 10616 | |
| 10617 | |
| 10618 | fi |
| 10619 | |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 10620 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 10621 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| 10622 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 10623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10624 | else |
| 10625 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10626 | /* confdefs.h. */ |
| 10627 | _ACEOF |
| 10628 | cat confdefs.h >>conftest.$ac_ext |
| 10629 | cat >>conftest.$ac_ext <<_ACEOF |
| 10630 | /* end confdefs.h. */ |
Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 10631 | #ifdef HAVE_STDINT_H |
| 10632 | #include <stdint.h> |
| 10633 | #endif |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 10634 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10635 | int |
| 10636 | main () |
| 10637 | { |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 10638 | if ((uintptr_t *) 0) |
| 10639 | return 0; |
| 10640 | if (sizeof (uintptr_t)) |
| 10641 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10642 | ; |
| 10643 | return 0; |
| 10644 | } |
| 10645 | _ACEOF |
| 10646 | rm -f conftest.$ac_objext |
| 10647 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10648 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10649 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10650 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10651 | rm -f conftest.er1 |
| 10652 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10654 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10655 | { ac_try='test -z "$ac_c_werror_flag" |
| 10656 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10658 | (eval $ac_try) 2>&5 |
| 10659 | ac_status=$? |
| 10660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10661 | (exit $ac_status); }; } && |
| 10662 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10664 | (eval $ac_try) 2>&5 |
| 10665 | ac_status=$? |
| 10666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10667 | (exit $ac_status); }; }; then |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 10668 | ac_cv_type_uintptr_t=yes |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 10669 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10670 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10671 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10672 | |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 10673 | ac_cv_type_uintptr_t=no |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 10674 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10675 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 10676 | fi |
| 10677 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 10678 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| 10679 | if test $ac_cv_type_uintptr_t = yes; then |
| 10680 | |
| 10681 | cat >>confdefs.h <<_ACEOF |
| 10682 | #define HAVE_UINTPTR_T 1 |
| 10683 | _ACEOF |
| 10684 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10685 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 10686 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| 10687 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 10688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10689 | else |
| 10690 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10691 | /* confdefs.h. */ |
| 10692 | _ACEOF |
| 10693 | cat confdefs.h >>conftest.$ac_ext |
| 10694 | cat >>conftest.$ac_ext <<_ACEOF |
| 10695 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10696 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10697 | int |
| 10698 | main () |
| 10699 | { |
| 10700 | if ((uintptr_t *) 0) |
| 10701 | return 0; |
| 10702 | if (sizeof (uintptr_t)) |
| 10703 | return 0; |
| 10704 | ; |
| 10705 | return 0; |
| 10706 | } |
| 10707 | _ACEOF |
| 10708 | rm -f conftest.$ac_objext |
| 10709 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10710 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10711 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10712 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10713 | rm -f conftest.er1 |
| 10714 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10716 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10717 | { ac_try='test -z "$ac_c_werror_flag" |
| 10718 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10720 | (eval $ac_try) 2>&5 |
| 10721 | ac_status=$? |
| 10722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10723 | (exit $ac_status); }; } && |
| 10724 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10726 | (eval $ac_try) 2>&5 |
| 10727 | ac_status=$? |
| 10728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10729 | (exit $ac_status); }; }; then |
| 10730 | ac_cv_type_uintptr_t=yes |
| 10731 | else |
| 10732 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10733 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10734 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10735 | ac_cv_type_uintptr_t=no |
| 10736 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10737 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10738 | fi |
| 10739 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 10740 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| 10741 | |
| 10742 | echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 10743 | echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6 |
| 10744 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
| 10745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10746 | else |
| 10747 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 10748 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 10749 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10750 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10751 | # This bug is HP SR number 8606223364. |
| 10752 | if test "$cross_compiling" = yes; then |
| 10753 | # Depending upon the size, compute the lo and hi bounds. |
| 10754 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10755 | /* confdefs.h. */ |
| 10756 | _ACEOF |
| 10757 | cat confdefs.h >>conftest.$ac_ext |
| 10758 | cat >>conftest.$ac_ext <<_ACEOF |
| 10759 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10760 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10761 | int |
| 10762 | main () |
| 10763 | { |
| 10764 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)]; |
| 10765 | test_array [0] = 0 |
| 10766 | |
| 10767 | ; |
| 10768 | return 0; |
| 10769 | } |
| 10770 | _ACEOF |
| 10771 | rm -f conftest.$ac_objext |
| 10772 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10773 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10774 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10775 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10776 | rm -f conftest.er1 |
| 10777 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10779 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10780 | { ac_try='test -z "$ac_c_werror_flag" |
| 10781 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10783 | (eval $ac_try) 2>&5 |
| 10784 | ac_status=$? |
| 10785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10786 | (exit $ac_status); }; } && |
| 10787 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10789 | (eval $ac_try) 2>&5 |
| 10790 | ac_status=$? |
| 10791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10792 | (exit $ac_status); }; }; then |
| 10793 | ac_lo=0 ac_mid=0 |
| 10794 | while :; do |
| 10795 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10796 | /* confdefs.h. */ |
| 10797 | _ACEOF |
| 10798 | cat confdefs.h >>conftest.$ac_ext |
| 10799 | cat >>conftest.$ac_ext <<_ACEOF |
| 10800 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10801 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10802 | int |
| 10803 | main () |
| 10804 | { |
| 10805 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 10806 | test_array [0] = 0 |
| 10807 | |
| 10808 | ; |
| 10809 | return 0; |
| 10810 | } |
| 10811 | _ACEOF |
| 10812 | rm -f conftest.$ac_objext |
| 10813 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10814 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10815 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10816 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10817 | rm -f conftest.er1 |
| 10818 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10820 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10821 | { ac_try='test -z "$ac_c_werror_flag" |
| 10822 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10824 | (eval $ac_try) 2>&5 |
| 10825 | ac_status=$? |
| 10826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10827 | (exit $ac_status); }; } && |
| 10828 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10830 | (eval $ac_try) 2>&5 |
| 10831 | ac_status=$? |
| 10832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10833 | (exit $ac_status); }; }; then |
| 10834 | ac_hi=$ac_mid; break |
| 10835 | else |
| 10836 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10837 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10838 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10839 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10840 | if test $ac_lo -le $ac_mid; then |
| 10841 | ac_lo= ac_hi= |
| 10842 | break |
| 10843 | fi |
| 10844 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10845 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10846 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10847 | done |
| 10848 | else |
| 10849 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10850 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10851 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10852 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10853 | /* confdefs.h. */ |
| 10854 | _ACEOF |
| 10855 | cat confdefs.h >>conftest.$ac_ext |
| 10856 | cat >>conftest.$ac_ext <<_ACEOF |
| 10857 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10858 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10859 | int |
| 10860 | main () |
| 10861 | { |
| 10862 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)]; |
| 10863 | test_array [0] = 0 |
| 10864 | |
| 10865 | ; |
| 10866 | return 0; |
| 10867 | } |
| 10868 | _ACEOF |
| 10869 | rm -f conftest.$ac_objext |
| 10870 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10871 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10872 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10873 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10874 | rm -f conftest.er1 |
| 10875 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10877 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10878 | { ac_try='test -z "$ac_c_werror_flag" |
| 10879 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10881 | (eval $ac_try) 2>&5 |
| 10882 | ac_status=$? |
| 10883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10884 | (exit $ac_status); }; } && |
| 10885 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10887 | (eval $ac_try) 2>&5 |
| 10888 | ac_status=$? |
| 10889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10890 | (exit $ac_status); }; }; then |
| 10891 | ac_hi=-1 ac_mid=-1 |
| 10892 | while :; do |
| 10893 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10894 | /* confdefs.h. */ |
| 10895 | _ACEOF |
| 10896 | cat confdefs.h >>conftest.$ac_ext |
| 10897 | cat >>conftest.$ac_ext <<_ACEOF |
| 10898 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10899 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10900 | int |
| 10901 | main () |
| 10902 | { |
| 10903 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)]; |
| 10904 | test_array [0] = 0 |
| 10905 | |
| 10906 | ; |
| 10907 | return 0; |
| 10908 | } |
| 10909 | _ACEOF |
| 10910 | rm -f conftest.$ac_objext |
| 10911 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10912 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10913 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10914 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10915 | rm -f conftest.er1 |
| 10916 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10918 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10919 | { ac_try='test -z "$ac_c_werror_flag" |
| 10920 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10922 | (eval $ac_try) 2>&5 |
| 10923 | ac_status=$? |
| 10924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10925 | (exit $ac_status); }; } && |
| 10926 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10928 | (eval $ac_try) 2>&5 |
| 10929 | ac_status=$? |
| 10930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10931 | (exit $ac_status); }; }; then |
| 10932 | ac_lo=$ac_mid; break |
| 10933 | else |
| 10934 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10935 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10936 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10937 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10938 | if test $ac_mid -le $ac_hi; then |
| 10939 | ac_lo= ac_hi= |
| 10940 | break |
| 10941 | fi |
| 10942 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10943 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10944 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10945 | done |
| 10946 | else |
| 10947 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10948 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10949 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10950 | ac_lo= ac_hi= |
| 10951 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10952 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10953 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10954 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10955 | # Binary search between lo and hi bounds. |
| 10956 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10957 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10958 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10959 | /* confdefs.h. */ |
| 10960 | _ACEOF |
| 10961 | cat confdefs.h >>conftest.$ac_ext |
| 10962 | cat >>conftest.$ac_ext <<_ACEOF |
| 10963 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10964 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10965 | int |
| 10966 | main () |
| 10967 | { |
| 10968 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 10969 | test_array [0] = 0 |
| 10970 | |
| 10971 | ; |
| 10972 | return 0; |
| 10973 | } |
| 10974 | _ACEOF |
| 10975 | rm -f conftest.$ac_objext |
| 10976 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10977 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10978 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10979 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10980 | rm -f conftest.er1 |
| 10981 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10983 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10984 | { ac_try='test -z "$ac_c_werror_flag" |
| 10985 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10987 | (eval $ac_try) 2>&5 |
| 10988 | ac_status=$? |
| 10989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10990 | (exit $ac_status); }; } && |
| 10991 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10993 | (eval $ac_try) 2>&5 |
| 10994 | ac_status=$? |
| 10995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10996 | (exit $ac_status); }; }; then |
| 10997 | ac_hi=$ac_mid |
| 10998 | else |
| 10999 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11000 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11001 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11002 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 11003 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11004 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11005 | done |
| 11006 | case $ac_lo in |
| 11007 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11008 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77 |
| 11009 | See \`config.log' for more details." >&5 |
| 11010 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77 |
| 11011 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11012 | { (exit 1); exit 1; }; } ;; |
| 11013 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 11014 | else |
| 11015 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11016 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 11017 | See \`config.log' for more details." >&5 |
| 11018 | echo "$as_me: error: cannot run test program while cross compiling |
| 11019 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11020 | { (exit 1); exit 1; }; } |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 11021 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11022 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11023 | /* confdefs.h. */ |
| 11024 | _ACEOF |
| 11025 | cat confdefs.h >>conftest.$ac_ext |
| 11026 | cat >>conftest.$ac_ext <<_ACEOF |
| 11027 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11028 | $ac_includes_default |
| 11029 | long longval () { return (long) (sizeof (uintptr_t)); } |
| 11030 | unsigned long ulongval () { return (long) (sizeof (uintptr_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11031 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11032 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11033 | int |
| 11034 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 11035 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11036 | |
| 11037 | FILE *f = fopen ("conftest.val", "w"); |
| 11038 | if (! f) |
| 11039 | exit (1); |
| 11040 | if (((long) (sizeof (uintptr_t))) < 0) |
| 11041 | { |
| 11042 | long i = longval (); |
| 11043 | if (i != ((long) (sizeof (uintptr_t)))) |
| 11044 | exit (1); |
| 11045 | fprintf (f, "%ld\n", i); |
| 11046 | } |
| 11047 | else |
| 11048 | { |
| 11049 | unsigned long i = ulongval (); |
| 11050 | if (i != ((long) (sizeof (uintptr_t)))) |
| 11051 | exit (1); |
| 11052 | fprintf (f, "%lu\n", i); |
| 11053 | } |
| 11054 | exit (ferror (f) || fclose (f) != 0); |
| 11055 | |
| 11056 | ; |
| 11057 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 11058 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11059 | _ACEOF |
| 11060 | rm -f conftest$ac_exeext |
| 11061 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11062 | (eval $ac_link) 2>&5 |
| 11063 | ac_status=$? |
| 11064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11065 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11067 | (eval $ac_try) 2>&5 |
| 11068 | ac_status=$? |
| 11069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11070 | (exit $ac_status); }; }; then |
| 11071 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 11072 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11073 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11074 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11075 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11076 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11077 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11078 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77 |
| 11079 | See \`config.log' for more details." >&5 |
| 11080 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77 |
| 11081 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11082 | { (exit 1); exit 1; }; } |
| 11083 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11084 | 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] | 11085 | fi |
| 11086 | fi |
| 11087 | rm -f conftest.val |
| 11088 | else |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 11089 | ac_cv_sizeof_uintptr_t=0 |
| 11090 | fi |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 11091 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11092 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 11093 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6 |
| 11094 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 11095 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11096 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 11097 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11098 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 11099 | fi |
| 11100 | |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 11101 | |
| 11102 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11103 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11104 | echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 11105 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6 |
| 11106 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 11107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11108 | else |
| 11109 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 11110 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11111 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11112 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11113 | /* confdefs.h. */ |
| 11114 | _ACEOF |
| 11115 | cat confdefs.h >>conftest.$ac_ext |
| 11116 | cat >>conftest.$ac_ext <<_ACEOF |
| 11117 | /* end confdefs.h. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11118 | #include <stdio.h> |
| 11119 | #include <sys/types.h> |
| 11120 | main() |
| 11121 | { |
| 11122 | FILE *f=fopen("conftestval", "w"); |
| 11123 | if (!f) exit(1); |
| 11124 | fprintf(f, "%d\n", sizeof(off_t)); |
| 11125 | exit(0); |
| 11126 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11127 | _ACEOF |
| 11128 | rm -f conftest$ac_exeext |
| 11129 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11130 | (eval $ac_link) 2>&5 |
| 11131 | ac_status=$? |
| 11132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11133 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11135 | (eval $ac_try) 2>&5 |
| 11136 | ac_status=$? |
| 11137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11138 | (exit $ac_status); }; }; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11139 | ac_cv_sizeof_off_t=`cat conftestval` |
| 11140 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11141 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11142 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11143 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11144 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11145 | ( exit $ac_status ) |
| 11146 | ac_cv_sizeof_off_t=0 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11147 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11148 | 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] | 11149 | fi |
| 11150 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11151 | fi |
| 11152 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11153 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 11154 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6 |
| 11155 | |
| 11156 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11157 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11158 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11159 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11160 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11161 | echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 11162 | 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] | 11163 | if test "$have_long_long" = yes -a \ |
| 11164 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 11165 | "$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] | 11166 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11167 | cat >>confdefs.h <<\_ACEOF |
| 11168 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 11169 | _ACEOF |
| 11170 | |
| 11171 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11172 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11173 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11174 | echo "$as_me:$LINENO: result: no" >&5 |
| 11175 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11176 | fi |
| 11177 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 11178 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11179 | echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 11180 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6 |
| 11181 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 11182 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 11183 | else |
| 11184 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 11185 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 11186 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11187 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11188 | /* confdefs.h. */ |
| 11189 | _ACEOF |
| 11190 | cat confdefs.h >>conftest.$ac_ext |
| 11191 | cat >>conftest.$ac_ext <<_ACEOF |
| 11192 | /* end confdefs.h. */ |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 11193 | #include <stdio.h> |
| 11194 | #include <time.h> |
| 11195 | main() |
| 11196 | { |
| 11197 | FILE *f=fopen("conftestval", "w"); |
| 11198 | if (!f) exit(1); |
| 11199 | fprintf(f, "%d\n", sizeof(time_t)); |
| 11200 | exit(0); |
| 11201 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11202 | _ACEOF |
| 11203 | rm -f conftest$ac_exeext |
| 11204 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11205 | (eval $ac_link) 2>&5 |
| 11206 | ac_status=$? |
| 11207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11208 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11210 | (eval $ac_try) 2>&5 |
| 11211 | ac_status=$? |
| 11212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11213 | (exit $ac_status); }; }; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 11214 | ac_cv_sizeof_time_t=`cat conftestval` |
| 11215 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11216 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11217 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11218 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11219 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11220 | ( exit $ac_status ) |
| 11221 | ac_cv_sizeof_time_t=0 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 11222 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11223 | 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] | 11224 | fi |
| 11225 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 11226 | fi |
| 11227 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11228 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 11229 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6 |
| 11230 | |
| 11231 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 11232 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11233 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 11234 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11235 | |
| 11236 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11237 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 11238 | ac_save_cc="$CC" |
| 11239 | if test "$ac_cv_kpthread" = "yes" |
| 11240 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 11241 | elif test "$ac_cv_kthread" = "yes" |
| 11242 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11243 | elif test "$ac_cv_pthread" = "yes" |
| 11244 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 11245 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11246 | echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 11247 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11248 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11249 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11250 | /* confdefs.h. */ |
| 11251 | _ACEOF |
| 11252 | cat confdefs.h >>conftest.$ac_ext |
| 11253 | cat >>conftest.$ac_ext <<_ACEOF |
| 11254 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11255 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11256 | int |
| 11257 | main () |
| 11258 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 11259 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11260 | ; |
| 11261 | return 0; |
| 11262 | } |
| 11263 | _ACEOF |
| 11264 | rm -f conftest.$ac_objext |
| 11265 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11266 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11267 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11268 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11269 | rm -f conftest.er1 |
| 11270 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11272 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11273 | { ac_try='test -z "$ac_c_werror_flag" |
| 11274 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11276 | (eval $ac_try) 2>&5 |
| 11277 | ac_status=$? |
| 11278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11279 | (exit $ac_status); }; } && |
| 11280 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11282 | (eval $ac_try) 2>&5 |
| 11283 | ac_status=$? |
| 11284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11285 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11286 | have_pthread_t=yes |
| 11287 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11288 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11289 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11290 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11291 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11292 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11293 | echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 11294 | echo "${ECHO_T}$have_pthread_t" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11295 | if test "$have_pthread_t" = yes ; then |
| 11296 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11297 | echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 11298 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6 |
| 11299 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 11300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11301 | else |
| 11302 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 11303 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11304 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11305 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11306 | /* confdefs.h. */ |
| 11307 | _ACEOF |
| 11308 | cat confdefs.h >>conftest.$ac_ext |
| 11309 | cat >>conftest.$ac_ext <<_ACEOF |
| 11310 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11311 | #include <stdio.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 11312 | #include <pthread.h> |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11313 | main() |
| 11314 | { |
| 11315 | FILE *f=fopen("conftestval", "w"); |
| 11316 | if (!f) exit(1); |
| 11317 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 11318 | exit(0); |
| 11319 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11320 | _ACEOF |
| 11321 | rm -f conftest$ac_exeext |
| 11322 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11323 | (eval $ac_link) 2>&5 |
| 11324 | ac_status=$? |
| 11325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11326 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11328 | (eval $ac_try) 2>&5 |
| 11329 | ac_status=$? |
| 11330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11331 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11332 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 11333 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11334 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11335 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11336 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11337 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11338 | ( exit $ac_status ) |
| 11339 | ac_cv_sizeof_pthread_t=0 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11340 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11341 | 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] | 11342 | fi |
| 11343 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11344 | fi |
| 11345 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11346 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
| 11347 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6 |
| 11348 | |
| 11349 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11350 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11351 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11352 | |
| 11353 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 11354 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11355 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11356 | echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 11357 | echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11358 | # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given. |
| 11359 | if test "${enable_toolbox_glue+set}" = set; then |
| 11360 | enableval="$enable_toolbox_glue" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11361 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11362 | fi; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11363 | |
| 11364 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11365 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11366 | case $ac_sys_system/$ac_sys_release in |
| 11367 | Darwin/*) |
| 11368 | enable_toolbox_glue="yes";; |
| 11369 | *) |
| 11370 | enable_toolbox_glue="no";; |
| 11371 | esac |
| 11372 | fi |
| 11373 | case "$enable_toolbox_glue" in |
| 11374 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11375 | extra_machdep_objs="Python/mactoolboxglue.o" |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 11376 | extra_undefs="-u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11377 | |
| 11378 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11379 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11380 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11381 | |
| 11382 | ;; |
| 11383 | *) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11384 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 11385 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11386 | ;; |
| 11387 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11388 | echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 11389 | echo "${ECHO_T}$enable_toolbox_glue" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11390 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 11391 | |
| 11392 | case $ac_sys_system/$ac_sys_release in |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 11393 | Darwin/[01567]\..*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 11394 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
| 11395 | ;; |
| 11396 | Darwin/*) |
| 11397 | OTHER_LIBTOOL_OPT="" |
| 11398 | ;; |
| 11399 | esac |
| 11400 | |
| 11401 | |
| 11402 | case $ac_sys_system/$ac_sys_release in |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 11403 | Darwin/[01567]\..*) |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 11404 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" |
| 11405 | if test "${enable_universalsdk}"; then |
| 11406 | : |
| 11407 | else |
| 11408 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`" |
| 11409 | fi |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 11410 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 11411 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 11412 | Darwin/*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 11413 | gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3` |
| 11414 | if test ${gcc_version} '<' 4.0 |
| 11415 | then |
| 11416 | LIBTOOL_CRUFT="-lcc_dynamic" |
| 11417 | else |
| 11418 | LIBTOOL_CRUFT="" |
| 11419 | fi |
Jack Jansen | 39fd231 | 2006-02-23 15:12:19 +0000 | [diff] [blame] | 11420 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`" |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 11421 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11422 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 11423 | esac |
| 11424 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11425 | echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 11426 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11427 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 11428 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 11429 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11430 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11431 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 11432 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11433 | cat >>confdefs.h <<\_ACEOF |
| 11434 | #define WITH_NEXT_FRAMEWORK 1 |
| 11435 | _ACEOF |
| 11436 | |
| 11437 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11438 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 11439 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11440 | echo "$as_me:$LINENO: result: no" >&5 |
| 11441 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 11442 | fi |
| 11443 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11444 | echo "$as_me:$LINENO: checking for dyld" >&5 |
| 11445 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 11446 | case $ac_sys_system/$ac_sys_release in |
| 11447 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 11448 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11449 | cat >>confdefs.h <<\_ACEOF |
| 11450 | #define WITH_DYLD 1 |
| 11451 | _ACEOF |
| 11452 | |
| 11453 | echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 11454 | echo "${ECHO_T}always on for Darwin" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 11455 | ;; |
| 11456 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11457 | echo "$as_me:$LINENO: result: no" >&5 |
| 11458 | echo "${ECHO_T}no" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11459 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 11460 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 11461 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11462 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11463 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11464 | |
| 11465 | |
| 11466 | |
| 11467 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11468 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 11469 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11470 | echo "$as_me:$LINENO: checking SO" >&5 |
| 11471 | echo $ECHO_N "checking SO... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11472 | if test -z "$SO" |
| 11473 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11474 | case $ac_sys_system in |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 11475 | hp*|HP*) |
| 11476 | case `uname -m` in |
| 11477 | ia64) SO=.so;; |
| 11478 | *) SO=.sl;; |
| 11479 | esac |
| 11480 | ;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 11481 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 11482 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11483 | esac |
Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 11484 | else |
| 11485 | # this might also be a termcap variable, see #610332 |
| 11486 | echo |
| 11487 | echo '=====================================================================' |
| 11488 | echo '+ +' |
| 11489 | echo '+ WARNING: You have set SO in your environment. +' |
| 11490 | echo '+ Do you really mean to change the extension for shared libraries? +' |
| 11491 | echo '+ Continuing in 10 seconds to let you to ponder. +' |
| 11492 | echo '+ +' |
| 11493 | echo '=====================================================================' |
| 11494 | sleep 10 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11495 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11496 | echo "$as_me:$LINENO: result: $SO" >&5 |
| 11497 | echo "${ECHO_T}$SO" >&6 |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 11498 | |
| 11499 | cat >>confdefs.h <<_ACEOF |
| 11500 | #define SHLIB_EXT "$SO" |
| 11501 | _ACEOF |
| 11502 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11503 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 11504 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 11505 | # (Shared libraries in this instance are shared modules to be loaded into |
| 11506 | # 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] | 11507 | echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 11508 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11509 | if test -z "$LDSHARED" |
| 11510 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11511 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 11512 | AIX*) |
| 11513 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 11514 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 11515 | ;; |
| 11516 | BeOS*) |
| 11517 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 11518 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 11519 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 11520 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 11521 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11522 | SunOS/5*) |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 11523 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 11524 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 11525 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 11526 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11527 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11528 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 11529 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 11530 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 11531 | if test "$enable_framework" ; then |
| 11532 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 11533 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 11534 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 11535 | else |
| 11536 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 11537 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 11538 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 11539 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11540 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 11541 | if test "$enable_framework" ; then |
| 11542 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 11543 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 11544 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11545 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 11546 | # No framework, use the Python app as bundle-loader |
| 11547 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 11548 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 11549 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 11550 | Darwin/*) |
| 11551 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
| 11552 | # This allows an extension to be used in any Python |
Jack Jansen | be95462 | 2004-12-26 23:07:48 +0000 | [diff] [blame] | 11553 | cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 11554 | if test ${cur_target} '>' 10.2; then |
| 11555 | cur_target=10.3 |
| 11556 | fi |
Jack Jansen | c110f86 | 2005-01-07 10:49:32 +0000 | [diff] [blame] | 11557 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 11558 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' |
Jack Jansen | be95462 | 2004-12-26 23:07:48 +0000 | [diff] [blame] | 11559 | if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2 |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 11560 | then |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 11561 | if test "${enable_universalsdk}"; then |
| 11562 | LDFLAGS="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
| 11563 | fi |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 11564 | LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup' |
| 11565 | BLDSHARED="$LDSHARED" |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 11566 | else |
| 11567 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 11568 | if test "$enable_framework" ; then |
| 11569 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 11570 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 11571 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 11572 | else |
| 11573 | # No framework, use the Python app as bundle-loader |
| 11574 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 11575 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
| 11576 | fi |
| 11577 | fi |
| 11578 | ;; |
Martin v. Löwis | 3cba5c0 | 2002-09-16 17:50:59 +0000 | [diff] [blame] | 11579 | Linux*|GNU*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 11580 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 11581 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 11582 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 11583 | then |
Hye-Shik Chang | 3376149 | 2004-10-26 09:53:46 +0000 | [diff] [blame] | 11584 | LDSHARED="$CC -shared ${LDFLAGS}" |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 11585 | else |
| 11586 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 11587 | fi;; |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 11588 | OpenBSD*) |
| 11589 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 11590 | then |
| 11591 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
| 11592 | else |
| 11593 | case `uname -r` in |
| 11594 | [01].* | 2.[0-7] | 2.[0-7].*) |
| 11595 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 11596 | ;; |
| 11597 | *) |
| 11598 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
| 11599 | ;; |
| 11600 | esac |
| 11601 | fi;; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 11602 | NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 11603 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 11604 | if test "$GCC" = "yes" |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 11605 | then LDSHARED='$(CC) -shared' |
| 11606 | else LDSHARED='$(CC) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 11607 | fi;; |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 11608 | SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11609 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 11610 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11611 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11612 | *) LDSHARED="ld";; |
| 11613 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11614 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11615 | echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 11616 | echo "${ECHO_T}$LDSHARED" >&6 |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 11617 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11618 | # 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] | 11619 | # library (module) -- this is only needed for a few systems |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11620 | echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 11621 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11622 | if test -z "$CCSHARED" |
| 11623 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 11624 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 11625 | SunOS*) if test "$GCC" = yes; |
| 11626 | then CCSHARED="-fPIC"; |
Martin v. Löwis | d5845ec | 2005-12-30 12:31:38 +0000 | [diff] [blame] | 11627 | else CCSHARED="-xcode=pic32"; |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 11628 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 11629 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 11630 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 11631 | else CCSHARED="+z"; |
| 11632 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11633 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 11634 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 11635 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 11636 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 11637 | if test "$GCC" = "yes" |
| 11638 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11639 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 11640 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 11641 | SCO_SV*) |
| 11642 | if test "$GCC" = "yes" |
| 11643 | then CCSHARED="-fPIC" |
| 11644 | else CCSHARED="-Kpic -belf" |
| 11645 | fi;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11646 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 11647 | IRIX*/6*) case $CC in |
| 11648 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 11649 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 11650 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11651 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11652 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11653 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11654 | echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 11655 | echo "${ECHO_T}$CCSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11656 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11657 | # 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] | 11658 | echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 11659 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11660 | if test -z "$LINKFORSHARED" |
| 11661 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 11662 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 11663 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 11664 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11665 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 11666 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 11667 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11668 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 11669 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11670 | Darwin/*) |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 11671 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, |
| 11672 | # which is |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11673 | # not used by the core itself but which needs to be in the core so |
| 11674 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 11675 | # -prebind is no longer used, because it actually seems to give a |
| 11676 | # slowdown in stead of a speedup, maybe due to the large number of |
| 11677 | # dynamic loads Python does. |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 11678 | |
| 11679 | LINKFORSHARED="$extra_undefs" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11680 | if test "$enable_framework" |
| 11681 | then |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 11682 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11683 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 11684 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 11685 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 11686 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 11687 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 11688 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 11689 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 11690 | then |
| 11691 | LINKFORSHARED="-Wl,--export-dynamic" |
| 11692 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 11693 | SunOS/5*) case $CC in |
| 11694 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 11695 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 11696 | then |
| 11697 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 11698 | fi;; |
| 11699 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 11700 | CYGWIN*) |
| 11701 | if test $enable_shared = "no" |
| 11702 | then |
| 11703 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 11704 | fi;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11705 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11706 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11707 | echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 11708 | echo "${ECHO_T}$LINKFORSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11709 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11710 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11711 | echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 11712 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 11713 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 11714 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 11715 | case $ac_sys_system in |
| 11716 | CYGWIN*) |
| 11717 | # Cygwin needs CCSHARED when building extension DLLs |
| 11718 | # but not when building the interpreter DLL. |
| 11719 | CFLAGSFORSHARED='';; |
| 11720 | *) |
| 11721 | CFLAGSFORSHARED='$(CCSHARED)' |
| 11722 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 11723 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11724 | echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 11725 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 11726 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11727 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 11728 | # library (with --enable-shared). |
| 11729 | # 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] | 11730 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 11731 | # if it is not required, since it creates a dependency of the shared library |
| 11732 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 11733 | # don't need to link LIBS explicitly. The default should be only changed |
| 11734 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11735 | |
| 11736 | echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 11737 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6 |
| 11738 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11739 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 11740 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11741 | esac |
| 11742 | echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 11743 | echo "${ECHO_T}$SHLIBS" >&6 |
| 11744 | |
| 11745 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11746 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11747 | |
| 11748 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 11749 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 11750 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 11751 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11752 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11753 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11754 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11755 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11756 | /* confdefs.h. */ |
| 11757 | _ACEOF |
| 11758 | cat confdefs.h >>conftest.$ac_ext |
| 11759 | cat >>conftest.$ac_ext <<_ACEOF |
| 11760 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11761 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11762 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11763 | #ifdef __cplusplus |
| 11764 | extern "C" |
| 11765 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11766 | /* 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] | 11767 | builtin and then its argument prototype would still apply. */ |
| 11768 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11769 | int |
| 11770 | main () |
| 11771 | { |
| 11772 | dlopen (); |
| 11773 | ; |
| 11774 | return 0; |
| 11775 | } |
| 11776 | _ACEOF |
| 11777 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11778 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11779 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11780 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11781 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11782 | rm -f conftest.er1 |
| 11783 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11785 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11786 | { ac_try='test -z "$ac_c_werror_flag" |
| 11787 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11789 | (eval $ac_try) 2>&5 |
| 11790 | ac_status=$? |
| 11791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11792 | (exit $ac_status); }; } && |
| 11793 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11795 | (eval $ac_try) 2>&5 |
| 11796 | ac_status=$? |
| 11797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11798 | (exit $ac_status); }; }; then |
| 11799 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11800 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11801 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11802 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11803 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11804 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11805 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11806 | rm -f conftest.err conftest.$ac_objext \ |
| 11807 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11808 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11809 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11810 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 11811 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 11812 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 11813 | cat >>confdefs.h <<_ACEOF |
| 11814 | #define HAVE_LIBDL 1 |
| 11815 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11816 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11817 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11818 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11819 | fi |
| 11820 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11821 | |
| 11822 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 11823 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 11824 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 11825 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11826 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11827 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11828 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11829 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11830 | /* confdefs.h. */ |
| 11831 | _ACEOF |
| 11832 | cat confdefs.h >>conftest.$ac_ext |
| 11833 | cat >>conftest.$ac_ext <<_ACEOF |
| 11834 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11835 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11836 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11837 | #ifdef __cplusplus |
| 11838 | extern "C" |
| 11839 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11840 | /* 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] | 11841 | builtin and then its argument prototype would still apply. */ |
| 11842 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11843 | int |
| 11844 | main () |
| 11845 | { |
| 11846 | shl_load (); |
| 11847 | ; |
| 11848 | return 0; |
| 11849 | } |
| 11850 | _ACEOF |
| 11851 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11852 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11853 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11854 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11855 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11856 | rm -f conftest.er1 |
| 11857 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11859 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11860 | { ac_try='test -z "$ac_c_werror_flag" |
| 11861 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11863 | (eval $ac_try) 2>&5 |
| 11864 | ac_status=$? |
| 11865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11866 | (exit $ac_status); }; } && |
| 11867 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11869 | (eval $ac_try) 2>&5 |
| 11870 | ac_status=$? |
| 11871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11872 | (exit $ac_status); }; }; then |
| 11873 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11874 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11875 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11876 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11877 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11878 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11879 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11880 | rm -f conftest.err conftest.$ac_objext \ |
| 11881 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11882 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11883 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11884 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 11885 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 11886 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 11887 | cat >>confdefs.h <<_ACEOF |
| 11888 | #define HAVE_LIBDLD 1 |
| 11889 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11890 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11891 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11892 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11893 | fi |
| 11894 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 11895 | |
| 11896 | # only check for sem_ini if thread support is requested |
| 11897 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
| 11898 | 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] | 11899 | echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6 |
| 11900 | if test "${ac_cv_search_sem_init+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11901 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 11902 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 11903 | ac_func_search_save_LIBS=$LIBS |
| 11904 | ac_cv_search_sem_init=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11905 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11906 | /* confdefs.h. */ |
| 11907 | _ACEOF |
| 11908 | cat confdefs.h >>conftest.$ac_ext |
| 11909 | cat >>conftest.$ac_ext <<_ACEOF |
| 11910 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11911 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 11912 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11913 | #ifdef __cplusplus |
| 11914 | extern "C" |
| 11915 | #endif |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 11916 | /* 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] | 11917 | builtin and then its argument prototype would still apply. */ |
| 11918 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11919 | int |
| 11920 | main () |
| 11921 | { |
| 11922 | sem_init (); |
| 11923 | ; |
| 11924 | return 0; |
| 11925 | } |
| 11926 | _ACEOF |
| 11927 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11928 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11929 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11930 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11931 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11932 | rm -f conftest.er1 |
| 11933 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11935 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11936 | { ac_try='test -z "$ac_c_werror_flag" |
| 11937 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11939 | (eval $ac_try) 2>&5 |
| 11940 | ac_status=$? |
| 11941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11942 | (exit $ac_status); }; } && |
| 11943 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11945 | (eval $ac_try) 2>&5 |
| 11946 | ac_status=$? |
| 11947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11948 | (exit $ac_status); }; }; then |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 11949 | ac_cv_search_sem_init="none required" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 11950 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11951 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11952 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11953 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 11954 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11955 | rm -f conftest.err conftest.$ac_objext \ |
| 11956 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 11957 | if test "$ac_cv_search_sem_init" = no; then |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 11958 | for ac_lib in pthread rt posix4; do |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 11959 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 11960 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11961 | /* confdefs.h. */ |
| 11962 | _ACEOF |
| 11963 | cat confdefs.h >>conftest.$ac_ext |
| 11964 | cat >>conftest.$ac_ext <<_ACEOF |
| 11965 | /* end confdefs.h. */ |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 11966 | |
| 11967 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11968 | #ifdef __cplusplus |
| 11969 | extern "C" |
| 11970 | #endif |
| 11971 | /* We use char because int might match the return type of a gcc2 |
| 11972 | builtin and then its argument prototype would still apply. */ |
| 11973 | char sem_init (); |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 11974 | int |
| 11975 | main () |
| 11976 | { |
| 11977 | sem_init (); |
| 11978 | ; |
| 11979 | return 0; |
| 11980 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11981 | _ACEOF |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 11982 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11983 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11984 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +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 | 82c19a7 | 2002-10-06 11:48:09 +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_exeext' |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +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_cv_search_sem_init="-l$ac_lib" |
| 12005 | break |
| 12006 | else |
| 12007 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12008 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12009 | |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 12010 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12011 | rm -f conftest.err conftest.$ac_objext \ |
| 12012 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 12013 | done |
| 12014 | fi |
| 12015 | LIBS=$ac_func_search_save_LIBS |
| 12016 | fi |
| 12017 | echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 12018 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6 |
| 12019 | if test "$ac_cv_search_sem_init" != no; then |
| 12020 | 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] | 12021 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 12022 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 12023 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 12024 | # posix4 on Solaris 2.6 |
| 12025 | # pthread (first!) on Linux |
| 12026 | fi |
| 12027 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 12028 | # check if we need libintl for locale functions |
| 12029 | echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5 |
| 12030 | echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6 |
| 12031 | if test "${ac_cv_lib_intl_textdomain+set}" = set; then |
| 12032 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12033 | else |
| 12034 | ac_check_lib_save_LIBS=$LIBS |
| 12035 | LIBS="-lintl $LIBS" |
| 12036 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12037 | /* confdefs.h. */ |
| 12038 | _ACEOF |
| 12039 | cat confdefs.h >>conftest.$ac_ext |
| 12040 | cat >>conftest.$ac_ext <<_ACEOF |
| 12041 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 12042 | |
| 12043 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12044 | #ifdef __cplusplus |
| 12045 | extern "C" |
| 12046 | #endif |
| 12047 | /* We use char because int might match the return type of a gcc2 |
| 12048 | builtin and then its argument prototype would still apply. */ |
| 12049 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 12050 | int |
| 12051 | main () |
| 12052 | { |
| 12053 | textdomain (); |
| 12054 | ; |
| 12055 | return 0; |
| 12056 | } |
| 12057 | _ACEOF |
| 12058 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12059 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12060 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 12061 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12062 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12063 | rm -f conftest.er1 |
| 12064 | cat conftest.err >&5 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 12065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12066 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12067 | { ac_try='test -z "$ac_c_werror_flag" |
| 12068 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12070 | (eval $ac_try) 2>&5 |
| 12071 | ac_status=$? |
| 12072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12073 | (exit $ac_status); }; } && |
| 12074 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 12075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12076 | (eval $ac_try) 2>&5 |
| 12077 | ac_status=$? |
| 12078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12079 | (exit $ac_status); }; }; then |
| 12080 | ac_cv_lib_intl_textdomain=yes |
| 12081 | else |
| 12082 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12083 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12084 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 12085 | ac_cv_lib_intl_textdomain=no |
| 12086 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12087 | rm -f conftest.err conftest.$ac_objext \ |
| 12088 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 12089 | LIBS=$ac_check_lib_save_LIBS |
| 12090 | fi |
| 12091 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5 |
| 12092 | echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6 |
| 12093 | if test $ac_cv_lib_intl_textdomain = yes; then |
| 12094 | |
| 12095 | cat >>confdefs.h <<\_ACEOF |
| 12096 | #define WITH_LIBINTL 1 |
| 12097 | _ACEOF |
| 12098 | |
| 12099 | fi |
| 12100 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 12101 | |
| 12102 | # checks for system dependent C++ extensions support |
| 12103 | case "$ac_sys_system" in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12104 | AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 12105 | echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6 |
| 12106 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12107 | /* confdefs.h. */ |
| 12108 | _ACEOF |
| 12109 | cat confdefs.h >>conftest.$ac_ext |
| 12110 | cat >>conftest.$ac_ext <<_ACEOF |
| 12111 | /* end confdefs.h. */ |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 12112 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12113 | int |
| 12114 | main () |
| 12115 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 12116 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12117 | ; |
| 12118 | return 0; |
| 12119 | } |
| 12120 | _ACEOF |
| 12121 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12122 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12123 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12124 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12125 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12126 | rm -f conftest.er1 |
| 12127 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12129 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12130 | { ac_try='test -z "$ac_c_werror_flag" |
| 12131 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12133 | (eval $ac_try) 2>&5 |
| 12134 | ac_status=$? |
| 12135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12136 | (exit $ac_status); }; } && |
| 12137 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12139 | (eval $ac_try) 2>&5 |
| 12140 | ac_status=$? |
| 12141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12142 | (exit $ac_status); }; }; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 12143 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12144 | cat >>confdefs.h <<\_ACEOF |
| 12145 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 12146 | _ACEOF |
| 12147 | |
| 12148 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12149 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 12150 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12151 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12152 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12153 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12154 | echo "$as_me:$LINENO: result: no" >&5 |
| 12155 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 12156 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12157 | rm -f conftest.err conftest.$ac_objext \ |
| 12158 | conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 12159 | *) ;; |
| 12160 | esac |
| 12161 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 12162 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12163 | # BeOS' sockets are stashed in libnet. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12164 | echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 12165 | echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6 |
| 12166 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
| 12167 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 12168 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12169 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12170 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12171 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12172 | /* confdefs.h. */ |
| 12173 | _ACEOF |
| 12174 | cat confdefs.h >>conftest.$ac_ext |
| 12175 | cat >>conftest.$ac_ext <<_ACEOF |
| 12176 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12177 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12178 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12179 | #ifdef __cplusplus |
| 12180 | extern "C" |
| 12181 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12182 | /* 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] | 12183 | builtin and then its argument prototype would still apply. */ |
| 12184 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12185 | int |
| 12186 | main () |
| 12187 | { |
| 12188 | t_open (); |
| 12189 | ; |
| 12190 | return 0; |
| 12191 | } |
| 12192 | _ACEOF |
| 12193 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12194 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12195 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12196 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12197 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12198 | rm -f conftest.er1 |
| 12199 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12201 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12202 | { ac_try='test -z "$ac_c_werror_flag" |
| 12203 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12205 | (eval $ac_try) 2>&5 |
| 12206 | ac_status=$? |
| 12207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12208 | (exit $ac_status); }; } && |
| 12209 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12211 | (eval $ac_try) 2>&5 |
| 12212 | ac_status=$? |
| 12213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12214 | (exit $ac_status); }; }; then |
| 12215 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 12216 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12217 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12218 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12219 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12220 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 12221 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12222 | rm -f conftest.err conftest.$ac_objext \ |
| 12223 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12224 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 12225 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12226 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 12227 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6 |
| 12228 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 12229 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 12230 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 12231 | # SVR4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12232 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 12233 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 12234 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 12235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12236 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12237 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12238 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12239 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12240 | /* confdefs.h. */ |
| 12241 | _ACEOF |
| 12242 | cat confdefs.h >>conftest.$ac_ext |
| 12243 | cat >>conftest.$ac_ext <<_ACEOF |
| 12244 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12245 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12246 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12247 | #ifdef __cplusplus |
| 12248 | extern "C" |
| 12249 | #endif |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12250 | /* 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] | 12251 | builtin and then its argument prototype would still apply. */ |
| 12252 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12253 | int |
| 12254 | main () |
| 12255 | { |
| 12256 | socket (); |
| 12257 | ; |
| 12258 | return 0; |
| 12259 | } |
| 12260 | _ACEOF |
| 12261 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12262 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12263 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12264 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12265 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12266 | rm -f conftest.er1 |
| 12267 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12269 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12270 | { ac_try='test -z "$ac_c_werror_flag" |
| 12271 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12273 | (eval $ac_try) 2>&5 |
| 12274 | ac_status=$? |
| 12275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12276 | (exit $ac_status); }; } && |
| 12277 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12279 | (eval $ac_try) 2>&5 |
| 12280 | ac_status=$? |
| 12281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12282 | (exit $ac_status); }; }; then |
| 12283 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12284 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12285 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12286 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12287 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12288 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12289 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12290 | rm -f conftest.err conftest.$ac_objext \ |
| 12291 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12292 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12293 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12294 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 12295 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 12296 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12297 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12298 | fi |
| 12299 | # SVR4 sockets |
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 12300 | |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 12301 | case "$ac_sys_system" in |
| 12302 | BeOS*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12303 | echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 12304 | echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6 |
| 12305 | if test "${ac_cv_lib_net_socket+set}" = set; then |
| 12306 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12307 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12308 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12309 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12310 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12311 | /* confdefs.h. */ |
| 12312 | _ACEOF |
| 12313 | cat confdefs.h >>conftest.$ac_ext |
| 12314 | cat >>conftest.$ac_ext <<_ACEOF |
| 12315 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12316 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12317 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12318 | #ifdef __cplusplus |
| 12319 | extern "C" |
| 12320 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12321 | /* 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] | 12322 | builtin and then its argument prototype would still apply. */ |
| 12323 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12324 | int |
| 12325 | main () |
| 12326 | { |
| 12327 | socket (); |
| 12328 | ; |
| 12329 | return 0; |
| 12330 | } |
| 12331 | _ACEOF |
| 12332 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12333 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12334 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12335 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12336 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12337 | rm -f conftest.er1 |
| 12338 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12340 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12341 | { ac_try='test -z "$ac_c_werror_flag" |
| 12342 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12344 | (eval $ac_try) 2>&5 |
| 12345 | ac_status=$? |
| 12346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12347 | (exit $ac_status); }; } && |
| 12348 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12350 | (eval $ac_try) 2>&5 |
| 12351 | ac_status=$? |
| 12352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12353 | (exit $ac_status); }; }; then |
| 12354 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12355 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12356 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12357 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12358 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12359 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12360 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12361 | rm -f conftest.err conftest.$ac_objext \ |
| 12362 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12363 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12364 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12365 | echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 12366 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6 |
| 12367 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12368 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12369 | fi |
| 12370 | # BeOS |
| 12371 | ;; |
| 12372 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 12373 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12374 | echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 12375 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6 |
| 12376 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 12377 | # Check whether --with-libs or --without-libs was given. |
| 12378 | if test "${with_libs+set}" = set; then |
| 12379 | withval="$with_libs" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12380 | |
| 12381 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 12382 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 12383 | LIBS="$withval $LIBS" |
| 12384 | |
| 12385 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12386 | echo "$as_me:$LINENO: result: no" >&5 |
| 12387 | echo "${ECHO_T}no" >&6 |
| 12388 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12389 | |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 12390 | # Check for use of the system libffi library |
| 12391 | echo "$as_me:$LINENO: checking for --with-system-ffi" >&5 |
| 12392 | echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6 |
| 12393 | |
| 12394 | # Check whether --with-system_ffi or --without-system_ffi was given. |
| 12395 | if test "${with_system_ffi+set}" = set; then |
| 12396 | withval="$with_system_ffi" |
| 12397 | |
| 12398 | fi; |
| 12399 | |
| 12400 | if test -z "$with_system_ffi" |
| 12401 | then with_system_ffi="no" |
| 12402 | fi |
| 12403 | echo "$as_me:$LINENO: result: $with_system_ffi" >&5 |
| 12404 | echo "${ECHO_T}$with_system_ffi" >&6 |
| 12405 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 12406 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 12407 | |
| 12408 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12409 | echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 12410 | echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6 |
| 12411 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 12412 | # Check whether --with-signal-module or --without-signal-module was given. |
| 12413 | if test "${with_signal_module+set}" = set; then |
| 12414 | withval="$with_signal_module" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 12415 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12416 | fi; |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 12417 | |
| 12418 | if test -z "$with_signal_module" |
| 12419 | then with_signal_module="yes" |
| 12420 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12421 | echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 12422 | echo "${ECHO_T}$with_signal_module" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 12423 | |
| 12424 | if test "${with_signal_module}" = "yes"; then |
| 12425 | USE_SIGNAL_MODULE="" |
| 12426 | SIGNAL_OBJS="" |
| 12427 | else |
| 12428 | USE_SIGNAL_MODULE="#" |
| 12429 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 12430 | fi |
| 12431 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 12432 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 12433 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 12434 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 12435 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12436 | echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 12437 | echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6 |
| 12438 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 12439 | |
| 12440 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 12441 | if test "${with_dec_threads+set}" = set; then |
| 12442 | withval="$with_dec_threads" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12443 | |
| 12444 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 12445 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 12446 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 12447 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 12448 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 12449 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 12450 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12451 | echo "$as_me:$LINENO: result: no" >&5 |
| 12452 | echo "${ECHO_T}no" >&6 |
| 12453 | fi; |
| 12454 | |
| 12455 | # Templates for things AC_DEFINEd more than once. |
| 12456 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 12457 | |
| 12458 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12459 | |
| 12460 | |
| 12461 | |
| 12462 | |
| 12463 | |
| 12464 | echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 12465 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6 |
| 12466 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 12467 | # Check whether --with-threads or --without-threads was given. |
| 12468 | if test "${with_threads+set}" = set; then |
| 12469 | withval="$with_threads" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 12470 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12471 | fi; |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 12472 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 12473 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12474 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12475 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12476 | if test "${with_thread+set}" = set; then |
| 12477 | withval="$with_thread" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 12478 | with_threads=$with_thread |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12479 | fi; |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 12480 | |
| 12481 | if test -z "$with_threads" |
| 12482 | then with_threads="yes" |
| 12483 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12484 | echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 12485 | echo "${ECHO_T}$with_threads" >&6 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 12486 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12487 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 12488 | if test "$with_threads" = "no" |
| 12489 | then |
| 12490 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12491 | elif test "$ac_cv_pthread_is_default" = yes |
| 12492 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12493 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12494 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12495 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12496 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12497 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12498 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12499 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12500 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12501 | |
| 12502 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12503 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12504 | elif test "$ac_cv_kpthread" = "yes" |
| 12505 | then |
| 12506 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 12507 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 12508 | CXX="$CXX -Kpthread" |
| 12509 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12510 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 12511 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12512 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 12513 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12514 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12515 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 12516 | elif test "$ac_cv_kthread" = "yes" |
| 12517 | then |
| 12518 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 12519 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 12520 | CXX="$CXX -Kthread" |
| 12521 | fi |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 12522 | cat >>confdefs.h <<\_ACEOF |
| 12523 | #define WITH_THREAD 1 |
| 12524 | _ACEOF |
| 12525 | |
| 12526 | posix_threads=yes |
| 12527 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12528 | elif test "$ac_cv_pthread" = "yes" |
| 12529 | then |
| 12530 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 12531 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 12532 | CXX="$CXX -pthread" |
| 12533 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12534 | cat >>confdefs.h <<\_ACEOF |
| 12535 | #define WITH_THREAD 1 |
| 12536 | _ACEOF |
| 12537 | |
| 12538 | posix_threads=yes |
| 12539 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12540 | else |
| 12541 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 12542 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 12543 | fi |
| 12544 | if test ! -z "$withval" -a -d "$withval" |
| 12545 | then LDFLAGS="$LDFLAGS -L$withval" |
| 12546 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 12547 | |
| 12548 | # According to the POSIX spec, a pthreads implementation must |
Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 12549 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
| 12550 | # (e.g. gnu pth with pthread emulation) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12551 | echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 12552 | echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6 |
| 12553 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12554 | /* confdefs.h. */ |
| 12555 | _ACEOF |
| 12556 | cat confdefs.h >>conftest.$ac_ext |
| 12557 | cat >>conftest.$ac_ext <<_ACEOF |
| 12558 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 12559 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 12560 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 12561 | #ifdef _POSIX_THREADS |
| 12562 | yes |
| 12563 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12564 | |
| 12565 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 12566 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12567 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 12568 | unistd_defines_pthreads=yes |
| 12569 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 12570 | unistd_defines_pthreads=no |
| 12571 | fi |
| 12572 | rm -f conftest* |
| 12573 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12574 | echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 12575 | echo "${ECHO_T}$unistd_defines_pthreads" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 12576 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12577 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 12578 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12579 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 12580 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12581 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 12582 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 12583 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 12584 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 12585 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12586 | fi |
| 12587 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 12588 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 12589 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12590 | # Is the header compilable? |
| 12591 | echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 12592 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6 |
| 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 | $ac_includes_default |
| 12600 | #include <cthreads.h> |
| 12601 | _ACEOF |
| 12602 | rm -f conftest.$ac_objext |
| 12603 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12604 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12605 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12606 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12607 | rm -f conftest.er1 |
| 12608 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12610 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12611 | { ac_try='test -z "$ac_c_werror_flag" |
| 12612 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12614 | (eval $ac_try) 2>&5 |
| 12615 | ac_status=$? |
| 12616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12617 | (exit $ac_status); }; } && |
| 12618 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12620 | (eval $ac_try) 2>&5 |
| 12621 | ac_status=$? |
| 12622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12623 | (exit $ac_status); }; }; then |
| 12624 | ac_header_compiler=yes |
| 12625 | else |
| 12626 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12627 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12628 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12629 | ac_header_compiler=no |
| 12630 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12631 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12632 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12633 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 12634 | |
| 12635 | # Is the header present? |
| 12636 | echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 12637 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6 |
| 12638 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12639 | /* confdefs.h. */ |
| 12640 | _ACEOF |
| 12641 | cat confdefs.h >>conftest.$ac_ext |
| 12642 | cat >>conftest.$ac_ext <<_ACEOF |
| 12643 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12644 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12645 | _ACEOF |
| 12646 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 12647 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 12648 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12649 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12650 | rm -f conftest.er1 |
| 12651 | cat conftest.err >&5 |
| 12652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12653 | (exit $ac_status); } >/dev/null; then |
| 12654 | if test -s conftest.err; then |
| 12655 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12656 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12657 | else |
| 12658 | ac_cpp_err= |
| 12659 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 12660 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12661 | ac_cpp_err=yes |
| 12662 | fi |
| 12663 | if test -z "$ac_cpp_err"; then |
| 12664 | ac_header_preproc=yes |
| 12665 | else |
| 12666 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12667 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12668 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12669 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 12670 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12671 | rm -f conftest.err conftest.$ac_ext |
| 12672 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12673 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 12674 | |
| 12675 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12676 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12677 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12678 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12679 | 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] | 12680 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5 |
| 12681 | echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;} |
| 12682 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12683 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12684 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12685 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 12686 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12687 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 12688 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 12689 | { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5 |
| 12690 | echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;} |
| 12691 | { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 12692 | 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] | 12693 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 12694 | 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] | 12695 | { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5 |
| 12696 | 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] | 12697 | ( |
| 12698 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 12699 | ## ------------------------------------------------ ## |
| 12700 | ## Report this to http://www.python.org/python-bugs ## |
| 12701 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12702 | _ASBOX |
| 12703 | ) | |
| 12704 | sed "s/^/$as_me: WARNING: /" >&2 |
| 12705 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12706 | esac |
| 12707 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 12708 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 12709 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 12710 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12711 | else |
| 12712 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 12713 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12714 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 12715 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
| 12716 | |
| 12717 | fi |
| 12718 | if test $ac_cv_header_cthreads_h = yes; then |
| 12719 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 12720 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12721 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 12722 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12723 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 12724 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12725 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 12726 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12727 | |
| 12728 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12729 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12730 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12731 | |
| 12732 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12733 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12734 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12735 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12736 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 12737 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 12738 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 12739 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 12740 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12741 | fi |
| 12742 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 12743 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12744 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12745 | # Is the header compilable? |
| 12746 | echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 12747 | echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6 |
| 12748 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12749 | /* confdefs.h. */ |
| 12750 | _ACEOF |
| 12751 | cat confdefs.h >>conftest.$ac_ext |
| 12752 | cat >>conftest.$ac_ext <<_ACEOF |
| 12753 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12754 | $ac_includes_default |
| 12755 | #include <mach/cthreads.h> |
| 12756 | _ACEOF |
| 12757 | rm -f conftest.$ac_objext |
| 12758 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12759 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12760 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12761 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12762 | rm -f conftest.er1 |
| 12763 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12765 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12766 | { ac_try='test -z "$ac_c_werror_flag" |
| 12767 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12769 | (eval $ac_try) 2>&5 |
| 12770 | ac_status=$? |
| 12771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12772 | (exit $ac_status); }; } && |
| 12773 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12775 | (eval $ac_try) 2>&5 |
| 12776 | ac_status=$? |
| 12777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12778 | (exit $ac_status); }; }; then |
| 12779 | ac_header_compiler=yes |
| 12780 | else |
| 12781 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12782 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12783 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12784 | ac_header_compiler=no |
| 12785 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12786 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12787 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12788 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 12789 | |
| 12790 | # Is the header present? |
| 12791 | echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 12792 | echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6 |
| 12793 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12794 | /* confdefs.h. */ |
| 12795 | _ACEOF |
| 12796 | cat confdefs.h >>conftest.$ac_ext |
| 12797 | cat >>conftest.$ac_ext <<_ACEOF |
| 12798 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12799 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12800 | _ACEOF |
| 12801 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 12802 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 12803 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12804 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12805 | rm -f conftest.er1 |
| 12806 | cat conftest.err >&5 |
| 12807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12808 | (exit $ac_status); } >/dev/null; then |
| 12809 | if test -s conftest.err; then |
| 12810 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12811 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12812 | else |
| 12813 | ac_cpp_err= |
| 12814 | fi |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12815 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12816 | ac_cpp_err=yes |
| 12817 | fi |
| 12818 | if test -z "$ac_cpp_err"; then |
| 12819 | ac_header_preproc=yes |
| 12820 | else |
| 12821 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12822 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12823 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12824 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12825 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12826 | rm -f conftest.err conftest.$ac_ext |
| 12827 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12828 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 12829 | |
| 12830 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12831 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12832 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12833 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12834 | 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] | 12835 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5 |
| 12836 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;} |
| 12837 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12838 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12839 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12840 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 12841 | 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] | 12842 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 12843 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 12844 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5 |
| 12845 | echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;} |
| 12846 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 12847 | 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] | 12848 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 12849 | 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] | 12850 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5 |
| 12851 | 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] | 12852 | ( |
| 12853 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 12854 | ## ------------------------------------------------ ## |
| 12855 | ## Report this to http://www.python.org/python-bugs ## |
| 12856 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12857 | _ASBOX |
| 12858 | ) | |
| 12859 | sed "s/^/$as_me: WARNING: /" >&2 |
| 12860 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12861 | esac |
| 12862 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 12863 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 12864 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 12865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12866 | else |
| 12867 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12868 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12869 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 12870 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
| 12871 | |
| 12872 | fi |
| 12873 | if test $ac_cv_header_mach_cthreads_h = yes; then |
| 12874 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12875 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12876 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12877 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12878 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12879 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12880 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12881 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12882 | |
| 12883 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12884 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12885 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12886 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12887 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 12888 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 12889 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12890 | echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 12891 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6 |
| 12892 | |
| 12893 | # Check whether --with-pth or --without-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 12894 | if test "${with_pth+set}" = set; then |
| 12895 | withval="$with_pth" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 12896 | echo "$as_me:$LINENO: result: $withval" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12897 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 12898 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12899 | #define WITH_THREAD 1 |
| 12900 | _ACEOF |
| 12901 | |
| 12902 | |
| 12903 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 12904 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12905 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 12906 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 12907 | LIBS="-lpth $LIBS" |
| 12908 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 12909 | else |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 12910 | echo "$as_me:$LINENO: result: no" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12911 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 12912 | |
| 12913 | # Just looking for pthread_create in libpthread is not enough: |
| 12914 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 12915 | # So we really have to include pthread.h, and then link. |
| 12916 | _libs=$LIBS |
| 12917 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12918 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 12919 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| 12920 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12921 | /* confdefs.h. */ |
| 12922 | _ACEOF |
| 12923 | cat confdefs.h >>conftest.$ac_ext |
| 12924 | cat >>conftest.$ac_ext <<_ACEOF |
| 12925 | /* end confdefs.h. */ |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 12926 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 12927 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 12928 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12929 | int |
| 12930 | main () |
| 12931 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 12932 | |
| 12933 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12934 | ; |
| 12935 | return 0; |
| 12936 | } |
| 12937 | _ACEOF |
| 12938 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12939 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12940 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12941 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12942 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12943 | rm -f conftest.er1 |
| 12944 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12946 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12947 | { ac_try='test -z "$ac_c_werror_flag" |
| 12948 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12950 | (eval $ac_try) 2>&5 |
| 12951 | ac_status=$? |
| 12952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12953 | (exit $ac_status); }; } && |
| 12954 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12956 | (eval $ac_try) 2>&5 |
| 12957 | ac_status=$? |
| 12958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12959 | (exit $ac_status); }; }; then |
| 12960 | |
| 12961 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12962 | echo "${ECHO_T}yes" >&6 |
| 12963 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 12964 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12965 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 12966 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 12967 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12968 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 12969 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12970 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12971 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12972 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12973 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 12974 | LIBS=$_libs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12975 | echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 12976 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6 |
| 12977 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
| 12978 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12979 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12980 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12981 | /* confdefs.h. */ |
| 12982 | _ACEOF |
| 12983 | cat confdefs.h >>conftest.$ac_ext |
| 12984 | cat >>conftest.$ac_ext <<_ACEOF |
| 12985 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 12986 | /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach. |
| 12987 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12988 | #define pthread_detach innocuous_pthread_detach |
| 12989 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12990 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12991 | which can conflict with char pthread_detach (); below. |
| 12992 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 12993 | <limits.h> exists even on freestanding compilers. */ |
| 12994 | |
| 12995 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12996 | # include <limits.h> |
| 12997 | #else |
| 12998 | # include <assert.h> |
| 12999 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 13000 | |
| 13001 | #undef pthread_detach |
| 13002 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13003 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13004 | #ifdef __cplusplus |
| 13005 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13006 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13007 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13008 | /* 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] | 13009 | builtin and then its argument prototype would still apply. */ |
| 13010 | char pthread_detach (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13011 | /* The GNU C library defines this for functions which it implements |
| 13012 | to always fail with ENOSYS. Some functions are actually named |
| 13013 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 13014 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13015 | choke me |
| 13016 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13017 | char (*f) () = pthread_detach; |
| 13018 | #endif |
| 13019 | #ifdef __cplusplus |
| 13020 | } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13021 | #endif |
| 13022 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13023 | int |
| 13024 | main () |
| 13025 | { |
| 13026 | return f != pthread_detach; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13027 | ; |
| 13028 | return 0; |
| 13029 | } |
| 13030 | _ACEOF |
| 13031 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13032 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13033 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13034 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13035 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13036 | rm -f conftest.er1 |
| 13037 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13039 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13040 | { ac_try='test -z "$ac_c_werror_flag" |
| 13041 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13043 | (eval $ac_try) 2>&5 |
| 13044 | ac_status=$? |
| 13045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13046 | (exit $ac_status); }; } && |
| 13047 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +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); }; }; then |
| 13053 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13054 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13055 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13056 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13057 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13058 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13059 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13060 | rm -f conftest.err conftest.$ac_objext \ |
| 13061 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13062 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13063 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 13064 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6 |
| 13065 | if test $ac_cv_func_pthread_detach = yes; then |
| 13066 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13067 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13068 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13069 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 13070 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 13071 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13072 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13073 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13074 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 13075 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 13076 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 13077 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 13078 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13079 | fi |
| 13080 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 13081 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 13082 | else |
| 13083 | # Is the header compilable? |
| 13084 | echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 13085 | echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6 |
| 13086 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13087 | /* confdefs.h. */ |
| 13088 | _ACEOF |
| 13089 | cat confdefs.h >>conftest.$ac_ext |
| 13090 | cat >>conftest.$ac_ext <<_ACEOF |
| 13091 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13092 | $ac_includes_default |
| 13093 | #include <atheos/threads.h> |
| 13094 | _ACEOF |
| 13095 | rm -f conftest.$ac_objext |
| 13096 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13097 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13098 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13099 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13100 | rm -f conftest.er1 |
| 13101 | cat conftest.err >&5 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13103 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13104 | { ac_try='test -z "$ac_c_werror_flag" |
| 13105 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13107 | (eval $ac_try) 2>&5 |
| 13108 | ac_status=$? |
| 13109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13110 | (exit $ac_status); }; } && |
| 13111 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13113 | (eval $ac_try) 2>&5 |
| 13114 | ac_status=$? |
| 13115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13116 | (exit $ac_status); }; }; then |
| 13117 | ac_header_compiler=yes |
| 13118 | else |
| 13119 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13120 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13121 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13122 | ac_header_compiler=no |
| 13123 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13124 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13125 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 13126 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 13127 | |
| 13128 | # Is the header present? |
| 13129 | echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 13130 | echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6 |
| 13131 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13132 | /* confdefs.h. */ |
| 13133 | _ACEOF |
| 13134 | cat confdefs.h >>conftest.$ac_ext |
| 13135 | cat >>conftest.$ac_ext <<_ACEOF |
| 13136 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13137 | #include <atheos/threads.h> |
| 13138 | _ACEOF |
| 13139 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 13140 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 13141 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13142 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13143 | rm -f conftest.er1 |
| 13144 | cat conftest.err >&5 |
| 13145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13146 | (exit $ac_status); } >/dev/null; then |
| 13147 | if test -s conftest.err; then |
| 13148 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13149 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13150 | else |
| 13151 | ac_cpp_err= |
| 13152 | fi |
| 13153 | else |
| 13154 | ac_cpp_err=yes |
| 13155 | fi |
| 13156 | if test -z "$ac_cpp_err"; then |
| 13157 | ac_header_preproc=yes |
| 13158 | else |
| 13159 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13160 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13161 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13162 | ac_header_preproc=no |
| 13163 | fi |
| 13164 | rm -f conftest.err conftest.$ac_ext |
| 13165 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 13166 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 13167 | |
| 13168 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13169 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 13170 | yes:no: ) |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13171 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 13172 | 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] | 13173 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5 |
| 13174 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;} |
| 13175 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13176 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13177 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13178 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 13179 | 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] | 13180 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 13181 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 13182 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5 |
| 13183 | echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;} |
| 13184 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 13185 | 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] | 13186 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 13187 | 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] | 13188 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5 |
| 13189 | 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] | 13190 | ( |
| 13191 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13192 | ## ------------------------------------------------ ## |
| 13193 | ## Report this to http://www.python.org/python-bugs ## |
| 13194 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13195 | _ASBOX |
| 13196 | ) | |
| 13197 | sed "s/^/$as_me: WARNING: /" >&2 |
| 13198 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13199 | esac |
| 13200 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 13201 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 13202 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 13203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13204 | else |
| 13205 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 13206 | fi |
| 13207 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 13208 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 13209 | |
| 13210 | fi |
| 13211 | if test $ac_cv_header_atheos_threads_h = yes; then |
| 13212 | cat >>confdefs.h <<\_ACEOF |
| 13213 | #define WITH_THREAD 1 |
| 13214 | _ACEOF |
| 13215 | |
| 13216 | |
| 13217 | cat >>confdefs.h <<\_ACEOF |
| 13218 | #define ATHEOS_THREADS 1 |
| 13219 | _ACEOF |
| 13220 | |
| 13221 | THREADOBJ="Python/thread.o" |
| 13222 | else |
| 13223 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13224 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 13225 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 13226 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 13227 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 13228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13229 | fi |
| 13230 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 13231 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 13232 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13233 | # Is the header compilable? |
| 13234 | echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 13235 | echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6 |
| 13236 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13237 | /* confdefs.h. */ |
| 13238 | _ACEOF |
| 13239 | cat confdefs.h >>conftest.$ac_ext |
| 13240 | cat >>conftest.$ac_ext <<_ACEOF |
| 13241 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13242 | $ac_includes_default |
| 13243 | #include <kernel/OS.h> |
| 13244 | _ACEOF |
| 13245 | rm -f conftest.$ac_objext |
| 13246 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13247 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13248 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13249 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13250 | rm -f conftest.er1 |
| 13251 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13253 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13254 | { ac_try='test -z "$ac_c_werror_flag" |
| 13255 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13257 | (eval $ac_try) 2>&5 |
| 13258 | ac_status=$? |
| 13259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13260 | (exit $ac_status); }; } && |
| 13261 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13263 | (eval $ac_try) 2>&5 |
| 13264 | ac_status=$? |
| 13265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13266 | (exit $ac_status); }; }; then |
| 13267 | ac_header_compiler=yes |
| 13268 | else |
| 13269 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13270 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13271 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13272 | ac_header_compiler=no |
| 13273 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13274 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13275 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 13276 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 13277 | |
| 13278 | # Is the header present? |
| 13279 | echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 13280 | echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6 |
| 13281 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13282 | /* confdefs.h. */ |
| 13283 | _ACEOF |
| 13284 | cat confdefs.h >>conftest.$ac_ext |
| 13285 | cat >>conftest.$ac_ext <<_ACEOF |
| 13286 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 13287 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13288 | _ACEOF |
| 13289 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 13290 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 13291 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13292 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13293 | rm -f conftest.er1 |
| 13294 | cat conftest.err >&5 |
| 13295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13296 | (exit $ac_status); } >/dev/null; then |
| 13297 | if test -s conftest.err; then |
| 13298 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13299 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13300 | else |
| 13301 | ac_cpp_err= |
| 13302 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 13303 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13304 | ac_cpp_err=yes |
| 13305 | fi |
| 13306 | if test -z "$ac_cpp_err"; then |
| 13307 | ac_header_preproc=yes |
| 13308 | else |
| 13309 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13310 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13311 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13312 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 13313 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13314 | rm -f conftest.err conftest.$ac_ext |
| 13315 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 13316 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 13317 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13318 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13319 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 13320 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13321 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 13322 | 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] | 13323 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5 |
| 13324 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;} |
| 13325 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13326 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13327 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13328 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 13329 | 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] | 13330 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 13331 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 13332 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5 |
| 13333 | echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;} |
| 13334 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 13335 | 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] | 13336 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 13337 | 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] | 13338 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5 |
| 13339 | 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] | 13340 | ( |
| 13341 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13342 | ## ------------------------------------------------ ## |
| 13343 | ## Report this to http://www.python.org/python-bugs ## |
| 13344 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13345 | _ASBOX |
| 13346 | ) | |
| 13347 | sed "s/^/$as_me: WARNING: /" >&2 |
| 13348 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13349 | esac |
| 13350 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 13351 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 13352 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 13353 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13354 | else |
| 13355 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 13356 | fi |
| 13357 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 13358 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
| 13359 | |
| 13360 | fi |
| 13361 | if test $ac_cv_header_kernel_OS_h = yes; then |
| 13362 | cat >>confdefs.h <<\_ACEOF |
| 13363 | #define WITH_THREAD 1 |
| 13364 | _ACEOF |
| 13365 | |
| 13366 | |
| 13367 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 13368 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13369 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 13370 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 13371 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 13372 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 13373 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13374 | echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 13375 | echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6 |
| 13376 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
| 13377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13378 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13379 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13380 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13381 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13382 | /* confdefs.h. */ |
| 13383 | _ACEOF |
| 13384 | cat confdefs.h >>conftest.$ac_ext |
| 13385 | cat >>conftest.$ac_ext <<_ACEOF |
| 13386 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13387 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 13388 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13389 | #ifdef __cplusplus |
| 13390 | extern "C" |
| 13391 | #endif |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 13392 | /* 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] | 13393 | builtin and then its argument prototype would still apply. */ |
| 13394 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13395 | int |
| 13396 | main () |
| 13397 | { |
| 13398 | pthread_create (); |
| 13399 | ; |
| 13400 | return 0; |
| 13401 | } |
| 13402 | _ACEOF |
| 13403 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13404 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13405 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13406 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13407 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13408 | rm -f conftest.er1 |
| 13409 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13411 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13412 | { ac_try='test -z "$ac_c_werror_flag" |
| 13413 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13415 | (eval $ac_try) 2>&5 |
| 13416 | ac_status=$? |
| 13417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13418 | (exit $ac_status); }; } && |
| 13419 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13421 | (eval $ac_try) 2>&5 |
| 13422 | ac_status=$? |
| 13423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13424 | (exit $ac_status); }; }; then |
| 13425 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 13426 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13427 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13428 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13429 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13430 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 13431 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13432 | rm -f conftest.err conftest.$ac_objext \ |
| 13433 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13434 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 13435 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13436 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 13437 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6 |
| 13438 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
| 13439 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 13440 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13441 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 13442 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13443 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 13444 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 13445 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 13446 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 13447 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13448 | echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 13449 | echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6 |
| 13450 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
| 13451 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 13452 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13453 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 13454 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13455 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13456 | /* confdefs.h. */ |
| 13457 | _ACEOF |
| 13458 | cat confdefs.h >>conftest.$ac_ext |
| 13459 | cat >>conftest.$ac_ext <<_ACEOF |
| 13460 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13461 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 13462 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13463 | #ifdef __cplusplus |
| 13464 | extern "C" |
| 13465 | #endif |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 13466 | /* 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] | 13467 | builtin and then its argument prototype would still apply. */ |
| 13468 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13469 | int |
| 13470 | main () |
| 13471 | { |
| 13472 | pthread_create (); |
| 13473 | ; |
| 13474 | return 0; |
| 13475 | } |
| 13476 | _ACEOF |
| 13477 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13478 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13479 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13480 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13481 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13482 | rm -f conftest.er1 |
| 13483 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13485 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13486 | { ac_try='test -z "$ac_c_werror_flag" |
| 13487 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13489 | (eval $ac_try) 2>&5 |
| 13490 | ac_status=$? |
| 13491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13492 | (exit $ac_status); }; } && |
| 13493 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13495 | (eval $ac_try) 2>&5 |
| 13496 | ac_status=$? |
| 13497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13498 | (exit $ac_status); }; }; then |
| 13499 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 13500 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13501 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13502 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13503 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13504 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 13505 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13506 | rm -f conftest.err conftest.$ac_objext \ |
| 13507 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13508 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 13509 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13510 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 13511 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6 |
| 13512 | if test $ac_cv_lib_c_r_pthread_create = yes; then |
| 13513 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 13514 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13515 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 13516 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13517 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 13518 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 13519 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 13520 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 13521 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13522 | echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 13523 | echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6 |
| 13524 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
| 13525 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 13526 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13527 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 13528 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13529 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13530 | /* confdefs.h. */ |
| 13531 | _ACEOF |
| 13532 | cat confdefs.h >>conftest.$ac_ext |
| 13533 | cat >>conftest.$ac_ext <<_ACEOF |
| 13534 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13535 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 13536 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13537 | #ifdef __cplusplus |
| 13538 | extern "C" |
| 13539 | #endif |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 13540 | /* 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] | 13541 | builtin and then its argument prototype would still apply. */ |
| 13542 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13543 | int |
| 13544 | main () |
| 13545 | { |
| 13546 | __pthread_create_system (); |
| 13547 | ; |
| 13548 | return 0; |
| 13549 | } |
| 13550 | _ACEOF |
| 13551 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13552 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13553 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13554 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13555 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13556 | rm -f conftest.er1 |
| 13557 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13559 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13560 | { ac_try='test -z "$ac_c_werror_flag" |
| 13561 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13563 | (eval $ac_try) 2>&5 |
| 13564 | ac_status=$? |
| 13565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13566 | (exit $ac_status); }; } && |
| 13567 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13569 | (eval $ac_try) 2>&5 |
| 13570 | ac_status=$? |
| 13571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13572 | (exit $ac_status); }; }; then |
| 13573 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 13574 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13575 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13576 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13577 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13578 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 13579 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13580 | rm -f conftest.err conftest.$ac_objext \ |
| 13581 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13582 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 13583 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13584 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 13585 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6 |
| 13586 | if test $ac_cv_lib_pthread___pthread_create_system = yes; then |
| 13587 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 13588 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13589 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 13590 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13591 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 13592 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 13593 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 13594 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 13595 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13596 | echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 13597 | echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6 |
| 13598 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
| 13599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 13600 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13601 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 13602 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13603 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13604 | /* confdefs.h. */ |
| 13605 | _ACEOF |
| 13606 | cat confdefs.h >>conftest.$ac_ext |
| 13607 | cat >>conftest.$ac_ext <<_ACEOF |
| 13608 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13609 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 13610 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13611 | #ifdef __cplusplus |
| 13612 | extern "C" |
| 13613 | #endif |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 13614 | /* 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] | 13615 | builtin and then its argument prototype would still apply. */ |
| 13616 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13617 | int |
| 13618 | main () |
| 13619 | { |
| 13620 | pthread_create (); |
| 13621 | ; |
| 13622 | return 0; |
| 13623 | } |
| 13624 | _ACEOF |
| 13625 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13626 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13627 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13628 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13629 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13630 | rm -f conftest.er1 |
| 13631 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13633 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13634 | { ac_try='test -z "$ac_c_werror_flag" |
| 13635 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13637 | (eval $ac_try) 2>&5 |
| 13638 | ac_status=$? |
| 13639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13640 | (exit $ac_status); }; } && |
| 13641 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13643 | (eval $ac_try) 2>&5 |
| 13644 | ac_status=$? |
| 13645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13646 | (exit $ac_status); }; }; then |
| 13647 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 13648 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13649 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13650 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13651 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13652 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 13653 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13654 | rm -f conftest.err conftest.$ac_objext \ |
| 13655 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13656 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 13657 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13658 | echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 13659 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6 |
| 13660 | if test $ac_cv_lib_cma_pthread_create = yes; then |
| 13661 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 13662 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13663 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 13664 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13665 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 13666 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 13667 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 13668 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 13669 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 13670 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 13671 | fi |
| 13672 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13673 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 13674 | fi |
| 13675 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 13676 | fi |
| 13677 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 13678 | fi |
| 13679 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 13680 | fi |
| 13681 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 13682 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13683 | fi |
| 13684 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13685 | |
| 13686 | fi |
| 13687 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13688 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13689 | rm -f conftest.err conftest.$ac_objext \ |
| 13690 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13691 | fi; |
| 13692 | fi |
| 13693 | |
| 13694 | |
| 13695 | fi |
| 13696 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13697 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13698 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13699 | echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 13700 | echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6 |
| 13701 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
| 13702 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13703 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13704 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13705 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13706 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13707 | /* confdefs.h. */ |
| 13708 | _ACEOF |
| 13709 | cat confdefs.h >>conftest.$ac_ext |
| 13710 | cat >>conftest.$ac_ext <<_ACEOF |
| 13711 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13712 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13713 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13714 | #ifdef __cplusplus |
| 13715 | extern "C" |
| 13716 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13717 | /* 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] | 13718 | builtin and then its argument prototype would still apply. */ |
| 13719 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13720 | int |
| 13721 | main () |
| 13722 | { |
| 13723 | usconfig (); |
| 13724 | ; |
| 13725 | return 0; |
| 13726 | } |
| 13727 | _ACEOF |
| 13728 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13729 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13730 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13731 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13732 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13733 | rm -f conftest.er1 |
| 13734 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13736 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13737 | { ac_try='test -z "$ac_c_werror_flag" |
| 13738 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13740 | (eval $ac_try) 2>&5 |
| 13741 | ac_status=$? |
| 13742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13743 | (exit $ac_status); }; } && |
| 13744 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13746 | (eval $ac_try) 2>&5 |
| 13747 | ac_status=$? |
| 13748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13749 | (exit $ac_status); }; }; then |
| 13750 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13751 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13752 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13753 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13754 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13755 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13756 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13757 | rm -f conftest.err conftest.$ac_objext \ |
| 13758 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13759 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13760 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13761 | echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 13762 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6 |
| 13763 | if test $ac_cv_lib_mpc_usconfig = yes; then |
| 13764 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13765 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13766 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13767 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 13768 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 13769 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 13770 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13771 | fi |
| 13772 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 13773 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 13774 | if test "$posix_threads" != "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13775 | echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 13776 | echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6 |
| 13777 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
| 13778 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13779 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13780 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13781 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13782 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13783 | /* confdefs.h. */ |
| 13784 | _ACEOF |
| 13785 | cat confdefs.h >>conftest.$ac_ext |
| 13786 | cat >>conftest.$ac_ext <<_ACEOF |
| 13787 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13788 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13789 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13790 | #ifdef __cplusplus |
| 13791 | extern "C" |
| 13792 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13793 | /* 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] | 13794 | builtin and then its argument prototype would still apply. */ |
| 13795 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13796 | int |
| 13797 | main () |
| 13798 | { |
| 13799 | thr_create (); |
| 13800 | ; |
| 13801 | return 0; |
| 13802 | } |
| 13803 | _ACEOF |
| 13804 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13805 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13806 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13807 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13808 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13809 | rm -f conftest.er1 |
| 13810 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13812 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13813 | { ac_try='test -z "$ac_c_werror_flag" |
| 13814 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13816 | (eval $ac_try) 2>&5 |
| 13817 | ac_status=$? |
| 13818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13819 | (exit $ac_status); }; } && |
| 13820 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13822 | (eval $ac_try) 2>&5 |
| 13823 | ac_status=$? |
| 13824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13825 | (exit $ac_status); }; }; then |
| 13826 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13827 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13828 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13829 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13830 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13831 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13832 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13833 | rm -f conftest.err conftest.$ac_objext \ |
| 13834 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13835 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13836 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13837 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 13838 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6 |
| 13839 | if test $ac_cv_lib_thread_thr_create = yes; then |
| 13840 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13841 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13842 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13843 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 13844 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 13845 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 13846 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13847 | fi |
| 13848 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 13849 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13850 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 13851 | if test "$USE_THREAD_MODULE" != "#" |
| 13852 | then |
| 13853 | # If the above checks didn't disable threads, (at least) OSF1 |
| 13854 | # needs this '-threads' argument during linking. |
| 13855 | case $ac_sys_system in |
| 13856 | OSF1) LDLAST=-threads;; |
| 13857 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 13858 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13859 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 13860 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13861 | if test "$posix_threads" = "yes"; then |
| 13862 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 13863 | |
| 13864 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13865 | #define _POSIX_THREADS 1 |
| 13866 | _ACEOF |
| 13867 | |
| 13868 | fi |
| 13869 | |
| 13870 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 13871 | case $ac_sys_system/$ac_sys_release in |
| 13872 | SunOS/5.6) |
| 13873 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 13874 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 13875 | _ACEOF |
| 13876 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13877 | ;; |
| 13878 | SunOS/5.8) |
| 13879 | cat >>confdefs.h <<\_ACEOF |
| 13880 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 13881 | _ACEOF |
| 13882 | |
| 13883 | ;; |
| 13884 | esac |
| 13885 | |
| 13886 | echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 13887 | echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6 |
| 13888 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
| 13889 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13890 | else |
| 13891 | if test "$cross_compiling" = yes; then |
| 13892 | ac_cv_pthread_system_supported=no |
| 13893 | else |
| 13894 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13895 | /* confdefs.h. */ |
| 13896 | _ACEOF |
| 13897 | cat confdefs.h >>conftest.$ac_ext |
| 13898 | cat >>conftest.$ac_ext <<_ACEOF |
| 13899 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13900 | #include <pthread.h> |
| 13901 | void *foo(void *parm) { |
| 13902 | return NULL; |
| 13903 | } |
| 13904 | main() { |
| 13905 | pthread_attr_t attr; |
| 13906 | pthread_t id; |
| 13907 | if (pthread_attr_init(&attr)) exit(-1); |
| 13908 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 13909 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 13910 | exit(0); |
| 13911 | } |
| 13912 | _ACEOF |
| 13913 | rm -f conftest$ac_exeext |
| 13914 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13915 | (eval $ac_link) 2>&5 |
| 13916 | ac_status=$? |
| 13917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13918 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13920 | (eval $ac_try) 2>&5 |
| 13921 | ac_status=$? |
| 13922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13923 | (exit $ac_status); }; }; then |
| 13924 | ac_cv_pthread_system_supported=yes |
| 13925 | else |
| 13926 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13927 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13928 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13929 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13930 | ( exit $ac_status ) |
| 13931 | ac_cv_pthread_system_supported=no |
| 13932 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13933 | 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] | 13934 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 13935 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13936 | fi |
| 13937 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13938 | echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 13939 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6 |
| 13940 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 13941 | |
| 13942 | cat >>confdefs.h <<\_ACEOF |
| 13943 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
| 13944 | _ACEOF |
| 13945 | |
| 13946 | fi |
| 13947 | |
| 13948 | for ac_func in pthread_sigmask |
| 13949 | do |
| 13950 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13951 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13952 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13953 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13954 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13955 | else |
| 13956 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13957 | /* confdefs.h. */ |
| 13958 | _ACEOF |
| 13959 | cat confdefs.h >>conftest.$ac_ext |
| 13960 | cat >>conftest.$ac_ext <<_ACEOF |
| 13961 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 13962 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 13963 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 13964 | #define $ac_func innocuous_$ac_func |
| 13965 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13966 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13967 | which can conflict with char $ac_func (); below. |
| 13968 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 13969 | <limits.h> exists even on freestanding compilers. */ |
| 13970 | |
| 13971 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13972 | # include <limits.h> |
| 13973 | #else |
| 13974 | # include <assert.h> |
| 13975 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 13976 | |
| 13977 | #undef $ac_func |
| 13978 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13979 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 13980 | #ifdef __cplusplus |
| 13981 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13982 | { |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13983 | #endif |
| 13984 | /* We use char because int might match the return type of a gcc2 |
| 13985 | builtin and then its argument prototype would still apply. */ |
| 13986 | char $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13987 | /* The GNU C library defines this for functions which it implements |
| 13988 | to always fail with ENOSYS. Some functions are actually named |
| 13989 | something starting with __ and the normal name is an alias. */ |
| 13990 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13991 | choke me |
| 13992 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13993 | char (*f) () = $ac_func; |
| 13994 | #endif |
| 13995 | #ifdef __cplusplus |
| 13996 | } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13997 | #endif |
| 13998 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13999 | int |
| 14000 | main () |
| 14001 | { |
| 14002 | return f != $ac_func; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14003 | ; |
| 14004 | return 0; |
| 14005 | } |
| 14006 | _ACEOF |
| 14007 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14008 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14009 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14010 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14011 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14012 | rm -f conftest.er1 |
| 14013 | cat conftest.err >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14015 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14016 | { ac_try='test -z "$ac_c_werror_flag" |
| 14017 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14019 | (eval $ac_try) 2>&5 |
| 14020 | ac_status=$? |
| 14021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14022 | (exit $ac_status); }; } && |
| 14023 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14025 | (eval $ac_try) 2>&5 |
| 14026 | ac_status=$? |
| 14027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14028 | (exit $ac_status); }; }; then |
| 14029 | eval "$as_ac_var=yes" |
| 14030 | else |
| 14031 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14032 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14033 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14034 | eval "$as_ac_var=no" |
| 14035 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14036 | rm -f conftest.err conftest.$ac_objext \ |
| 14037 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14038 | fi |
| 14039 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14040 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14041 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14042 | cat >>confdefs.h <<_ACEOF |
| 14043 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14044 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 14045 | case $ac_sys_system in |
| 14046 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14047 | |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 14048 | cat >>confdefs.h <<\_ACEOF |
| 14049 | #define HAVE_BROKEN_PTHREAD_SIGMASK 1 |
| 14050 | _ACEOF |
| 14051 | |
| 14052 | ;; |
| 14053 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14054 | fi |
| 14055 | done |
| 14056 | |
| 14057 | fi |
| 14058 | |
| 14059 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14060 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14061 | |
| 14062 | |
| 14063 | echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 14064 | 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] | 14065 | # Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 14066 | if test "${enable_ipv6+set}" = set; then |
| 14067 | enableval="$enable_ipv6" |
| 14068 | case "$enableval" in |
| 14069 | no) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14070 | echo "$as_me:$LINENO: result: no" >&5 |
| 14071 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14072 | ipv6=no |
| 14073 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14074 | *) echo "$as_me:$LINENO: result: yes" >&5 |
| 14075 | echo "${ECHO_T}yes" >&6 |
| 14076 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14077 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14078 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14079 | |
| 14080 | ipv6=yes |
| 14081 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14082 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14083 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14084 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14085 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14086 | echo "$as_me:$LINENO: result: no" >&5 |
| 14087 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14088 | ipv6=no |
| 14089 | |
| 14090 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14091 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14092 | /* confdefs.h. */ |
| 14093 | _ACEOF |
| 14094 | cat confdefs.h >>conftest.$ac_ext |
| 14095 | cat >>conftest.$ac_ext <<_ACEOF |
| 14096 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14097 | /* AF_INET6 available check */ |
| 14098 | #include <sys/types.h> |
| 14099 | #include <sys/socket.h> |
| 14100 | main() |
| 14101 | { |
| 14102 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 14103 | exit(1); |
| 14104 | else |
| 14105 | exit(0); |
| 14106 | } |
| 14107 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14108 | _ACEOF |
| 14109 | rm -f conftest$ac_exeext |
| 14110 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14111 | (eval $ac_link) 2>&5 |
| 14112 | ac_status=$? |
| 14113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14114 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 14115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14116 | (eval $ac_try) 2>&5 |
| 14117 | ac_status=$? |
| 14118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14119 | (exit $ac_status); }; }; then |
| 14120 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14121 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14122 | ipv6=yes |
| 14123 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14124 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14125 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14126 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14127 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14128 | ( exit $ac_status ) |
| 14129 | echo "$as_me:$LINENO: result: no" >&5 |
| 14130 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14131 | ipv6=no |
| 14132 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14133 | 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] | 14134 | fi |
| 14135 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 14136 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14137 | echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 14138 | echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6 |
| 14139 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14140 | /* confdefs.h. */ |
| 14141 | _ACEOF |
| 14142 | cat confdefs.h >>conftest.$ac_ext |
| 14143 | cat >>conftest.$ac_ext <<_ACEOF |
| 14144 | /* end confdefs.h. */ |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 14145 | #include <sys/types.h> |
| 14146 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14147 | int |
| 14148 | main () |
| 14149 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 14150 | struct sockaddr_in6 x; |
| 14151 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14152 | ; |
| 14153 | return 0; |
| 14154 | } |
| 14155 | _ACEOF |
| 14156 | rm -f conftest.$ac_objext |
| 14157 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14158 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14159 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14160 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14161 | rm -f conftest.er1 |
| 14162 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14164 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14165 | { ac_try='test -z "$ac_c_werror_flag" |
| 14166 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14168 | (eval $ac_try) 2>&5 |
| 14169 | ac_status=$? |
| 14170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14171 | (exit $ac_status); }; } && |
| 14172 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14174 | (eval $ac_try) 2>&5 |
| 14175 | ac_status=$? |
| 14176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14177 | (exit $ac_status); }; }; then |
| 14178 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14179 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 14180 | ipv6=yes |
| 14181 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14182 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14183 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14184 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14185 | echo "$as_me:$LINENO: result: no" >&5 |
| 14186 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 14187 | ipv6=no |
| 14188 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14189 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 14190 | fi |
| 14191 | |
| 14192 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14193 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 14194 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14195 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 14196 | |
| 14197 | fi |
| 14198 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14199 | fi; |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14200 | |
| 14201 | ipv6type=unknown |
| 14202 | ipv6lib=none |
| 14203 | ipv6trylibc=no |
| 14204 | |
| 14205 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14206 | echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 14207 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 14208 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 14209 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14210 | case $i in |
| 14211 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14212 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14213 | /* confdefs.h. */ |
| 14214 | _ACEOF |
| 14215 | cat confdefs.h >>conftest.$ac_ext |
| 14216 | cat >>conftest.$ac_ext <<_ACEOF |
| 14217 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14218 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14219 | #include <netinet/in.h> |
| 14220 | #ifdef IPV6_INRIA_VERSION |
| 14221 | yes |
| 14222 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14223 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14224 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14225 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 14226 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14227 | fi |
| 14228 | rm -f conftest* |
| 14229 | |
| 14230 | ;; |
| 14231 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14232 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14233 | /* confdefs.h. */ |
| 14234 | _ACEOF |
| 14235 | cat confdefs.h >>conftest.$ac_ext |
| 14236 | cat >>conftest.$ac_ext <<_ACEOF |
| 14237 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14238 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14239 | #include <netinet/in.h> |
| 14240 | #ifdef __KAME__ |
| 14241 | yes |
| 14242 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14243 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14244 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14245 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14246 | ipv6type=$i; |
| 14247 | ipv6lib=inet6 |
| 14248 | ipv6libdir=/usr/local/v6/lib |
| 14249 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14250 | fi |
| 14251 | rm -f conftest* |
| 14252 | |
| 14253 | ;; |
| 14254 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14255 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14256 | /* confdefs.h. */ |
| 14257 | _ACEOF |
| 14258 | cat confdefs.h >>conftest.$ac_ext |
| 14259 | cat >>conftest.$ac_ext <<_ACEOF |
| 14260 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14261 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14262 | #include <features.h> |
| 14263 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 14264 | yes |
| 14265 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14266 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14267 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14268 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14269 | ipv6type=$i; |
| 14270 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14271 | fi |
| 14272 | rm -f conftest* |
| 14273 | |
| 14274 | ;; |
| 14275 | linux-inet6) |
| 14276 | if test -d /usr/inet6; then |
| 14277 | ipv6type=$i |
| 14278 | ipv6lib=inet6 |
| 14279 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 14280 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14281 | fi |
| 14282 | ;; |
| 14283 | solaris) |
| 14284 | if test -f /etc/netconfig; then |
| 14285 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 14286 | ipv6type=$i |
| 14287 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14288 | fi |
| 14289 | fi |
| 14290 | ;; |
| 14291 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14292 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14293 | /* confdefs.h. */ |
| 14294 | _ACEOF |
| 14295 | cat confdefs.h >>conftest.$ac_ext |
| 14296 | cat >>conftest.$ac_ext <<_ACEOF |
| 14297 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14298 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14299 | #include <sys/param.h> |
| 14300 | #ifdef _TOSHIBA_INET6 |
| 14301 | yes |
| 14302 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14303 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14304 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14305 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14306 | ipv6type=$i; |
| 14307 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 14308 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14309 | fi |
| 14310 | rm -f conftest* |
| 14311 | |
| 14312 | ;; |
| 14313 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14314 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14315 | /* confdefs.h. */ |
| 14316 | _ACEOF |
| 14317 | cat confdefs.h >>conftest.$ac_ext |
| 14318 | cat >>conftest.$ac_ext <<_ACEOF |
| 14319 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14320 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14321 | #include </usr/local/v6/include/sys/v6config.h> |
| 14322 | #ifdef __V6D__ |
| 14323 | yes |
| 14324 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14325 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14326 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14327 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14328 | ipv6type=$i; |
| 14329 | ipv6lib=v6; |
| 14330 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 14331 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14332 | fi |
| 14333 | rm -f conftest* |
| 14334 | |
| 14335 | ;; |
| 14336 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14337 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14338 | /* confdefs.h. */ |
| 14339 | _ACEOF |
| 14340 | cat confdefs.h >>conftest.$ac_ext |
| 14341 | cat >>conftest.$ac_ext <<_ACEOF |
| 14342 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14343 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14344 | #include <sys/param.h> |
| 14345 | #ifdef _ZETA_MINAMI_INET6 |
| 14346 | yes |
| 14347 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14348 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14349 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14350 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14351 | ipv6type=$i; |
| 14352 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 14353 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14354 | fi |
| 14355 | rm -f conftest* |
| 14356 | |
| 14357 | ;; |
| 14358 | esac |
| 14359 | if test "$ipv6type" != "unknown"; then |
| 14360 | break |
| 14361 | fi |
| 14362 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14363 | echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 14364 | echo "${ECHO_T}$ipv6type" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14365 | fi |
| 14366 | |
| 14367 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 14368 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 14369 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 14370 | echo "using lib$ipv6lib" |
| 14371 | else |
| 14372 | if test $ipv6trylibc = "yes"; then |
| 14373 | echo "using libc" |
| 14374 | else |
| 14375 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 14376 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 14377 | echo 'ipv6 kit and compile beforehand.' |
| 14378 | exit 1 |
| 14379 | fi |
| 14380 | fi |
| 14381 | fi |
| 14382 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 14383 | # Check for --with-doc-strings |
| 14384 | echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 14385 | echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6 |
| 14386 | |
| 14387 | # Check whether --with-doc-strings or --without-doc-strings was given. |
| 14388 | if test "${with_doc_strings+set}" = set; then |
| 14389 | withval="$with_doc_strings" |
| 14390 | |
| 14391 | fi; |
| 14392 | |
| 14393 | if test -z "$with_doc_strings" |
| 14394 | then with_doc_strings="yes" |
| 14395 | fi |
| 14396 | if test "$with_doc_strings" != "no" |
| 14397 | then |
| 14398 | |
| 14399 | cat >>confdefs.h <<\_ACEOF |
| 14400 | #define WITH_DOC_STRINGS 1 |
| 14401 | _ACEOF |
| 14402 | |
| 14403 | fi |
| 14404 | echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 14405 | echo "${ECHO_T}$with_doc_strings" >&6 |
| 14406 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 14407 | # Check for Python-specific malloc support |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 14408 | echo "$as_me:$LINENO: checking for --with-tsc" >&5 |
| 14409 | echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6 |
| 14410 | |
| 14411 | # Check whether --with-tsc or --without-tsc was given. |
| 14412 | if test "${with_tsc+set}" = set; then |
| 14413 | withval="$with_tsc" |
| 14414 | |
| 14415 | if test "$withval" != no |
| 14416 | then |
| 14417 | |
| 14418 | cat >>confdefs.h <<\_ACEOF |
| 14419 | #define WITH_TSC 1 |
| 14420 | _ACEOF |
| 14421 | |
| 14422 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14423 | echo "${ECHO_T}yes" >&6 |
| 14424 | else echo "$as_me:$LINENO: result: no" >&5 |
| 14425 | echo "${ECHO_T}no" >&6 |
| 14426 | fi |
| 14427 | else |
| 14428 | echo "$as_me:$LINENO: result: no" >&5 |
| 14429 | echo "${ECHO_T}no" >&6 |
| 14430 | fi; |
| 14431 | |
| 14432 | # Check for Python-specific malloc support |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14433 | echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 14434 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6 |
| 14435 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 14436 | # Check whether --with-pymalloc or --without-pymalloc was given. |
| 14437 | if test "${with_pymalloc+set}" = set; then |
| 14438 | withval="$with_pymalloc" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14439 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14440 | fi; |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 14441 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 14442 | if test -z "$with_pymalloc" |
| 14443 | then with_pymalloc="yes" |
| 14444 | fi |
| 14445 | if test "$with_pymalloc" != "no" |
| 14446 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14447 | |
| 14448 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 14449 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14450 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 14451 | |
| 14452 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14453 | echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 14454 | echo "${ECHO_T}$with_pymalloc" >&6 |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 14455 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 14456 | # Check for --with-wctype-functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14457 | echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 14458 | echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6 |
| 14459 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 14460 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 14461 | if test "${with_wctype_functions+set}" = set; then |
| 14462 | withval="$with_wctype_functions" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14463 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 14464 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14465 | then |
| 14466 | |
| 14467 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 14468 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14469 | _ACEOF |
| 14470 | |
| 14471 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14472 | echo "${ECHO_T}yes" >&6 |
| 14473 | else echo "$as_me:$LINENO: result: no" >&5 |
| 14474 | echo "${ECHO_T}no" >&6 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 14475 | fi |
| 14476 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14477 | echo "$as_me:$LINENO: result: no" >&5 |
| 14478 | echo "${ECHO_T}no" >&6 |
| 14479 | fi; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 14480 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14481 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14482 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 14483 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14484 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14485 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 14486 | # 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] | 14487 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14488 | for ac_func in dlopen |
| 14489 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14490 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14491 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14492 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14493 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14495 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14496 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14497 | /* confdefs.h. */ |
| 14498 | _ACEOF |
| 14499 | cat confdefs.h >>conftest.$ac_ext |
| 14500 | cat >>conftest.$ac_ext <<_ACEOF |
| 14501 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 14502 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 14503 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14504 | #define $ac_func innocuous_$ac_func |
| 14505 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14506 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14507 | which can conflict with char $ac_func (); below. |
| 14508 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 14509 | <limits.h> exists even on freestanding compilers. */ |
| 14510 | |
| 14511 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14512 | # include <limits.h> |
| 14513 | #else |
| 14514 | # include <assert.h> |
| 14515 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 14516 | |
| 14517 | #undef $ac_func |
| 14518 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14519 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14520 | #ifdef __cplusplus |
| 14521 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14522 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14523 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14524 | /* 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] | 14525 | builtin and then its argument prototype would still apply. */ |
| 14526 | char $ac_func (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14527 | /* The GNU C library defines this for functions which it implements |
| 14528 | to always fail with ENOSYS. Some functions are actually named |
| 14529 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14530 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14531 | choke me |
| 14532 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14533 | char (*f) () = $ac_func; |
| 14534 | #endif |
| 14535 | #ifdef __cplusplus |
| 14536 | } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14537 | #endif |
| 14538 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14539 | int |
| 14540 | main () |
| 14541 | { |
| 14542 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14543 | ; |
| 14544 | return 0; |
| 14545 | } |
| 14546 | _ACEOF |
| 14547 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14548 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14549 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14550 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14551 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14552 | rm -f conftest.er1 |
| 14553 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14555 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14556 | { ac_try='test -z "$ac_c_werror_flag" |
| 14557 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14559 | (eval $ac_try) 2>&5 |
| 14560 | ac_status=$? |
| 14561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14562 | (exit $ac_status); }; } && |
| 14563 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14565 | (eval $ac_try) 2>&5 |
| 14566 | ac_status=$? |
| 14567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14568 | (exit $ac_status); }; }; then |
| 14569 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14570 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14571 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14572 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14573 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14574 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14575 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14576 | rm -f conftest.err conftest.$ac_objext \ |
| 14577 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14578 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14579 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14580 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14581 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14582 | cat >>confdefs.h <<_ACEOF |
| 14583 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14584 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14585 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14586 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14587 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14588 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14589 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14590 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 14591 | # loading of modules. |
| 14592 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14593 | echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 14594 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14595 | if test -z "$DYNLOADFILE" |
| 14596 | then |
| 14597 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 14598 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
| 14599 | if test "$ac_cv_func_dlopen" = yes |
| 14600 | then DYNLOADFILE="dynload_shlib.o" |
| 14601 | else DYNLOADFILE="dynload_aix.o" |
| 14602 | fi |
| 14603 | ;; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14604 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 14605 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 14606 | # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() |
| 14607 | Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14608 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14609 | *) |
| 14610 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 14611 | # out any dynamic loading |
| 14612 | if test "$ac_cv_func_dlopen" = yes |
| 14613 | then DYNLOADFILE="dynload_shlib.o" |
| 14614 | else DYNLOADFILE="dynload_stub.o" |
| 14615 | fi |
| 14616 | ;; |
| 14617 | esac |
| 14618 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14619 | echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 14620 | echo "${ECHO_T}$DYNLOADFILE" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14621 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 14622 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14623 | |
| 14624 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14625 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14626 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14627 | |
| 14628 | fi |
| 14629 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 14630 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 14631 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14632 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14633 | echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 14634 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 14635 | if test -z "$MACHDEP_OBJS" |
| 14636 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14637 | MACHDEP_OBJS=$extra_machdep_objs |
| 14638 | else |
| 14639 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 14640 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14641 | echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 14642 | echo "${ECHO_T}MACHDEP_OBJS" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 14643 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14644 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14645 | |
| 14646 | |
| 14647 | |
| 14648 | |
| 14649 | |
| 14650 | |
| 14651 | |
| 14652 | |
| 14653 | |
| 14654 | |
| 14655 | |
| 14656 | |
| 14657 | |
| 14658 | |
| 14659 | |
| 14660 | |
| 14661 | |
| 14662 | |
| 14663 | |
| 14664 | |
| 14665 | |
| 14666 | |
| 14667 | |
| 14668 | |
| 14669 | |
| 14670 | |
| 14671 | |
| 14672 | |
| 14673 | |
| 14674 | |
| 14675 | |
| 14676 | |
| 14677 | |
| 14678 | |
| 14679 | |
| 14680 | |
| 14681 | |
| 14682 | |
| 14683 | |
| 14684 | |
| 14685 | |
| 14686 | |
| 14687 | |
| 14688 | |
| 14689 | |
| 14690 | |
| 14691 | |
| 14692 | |
| 14693 | |
| 14694 | |
| 14695 | |
| 14696 | |
| 14697 | |
| 14698 | |
| 14699 | |
| 14700 | |
| 14701 | |
| 14702 | |
| 14703 | |
| 14704 | |
| 14705 | |
| 14706 | |
| 14707 | |
| 14708 | |
| 14709 | |
| 14710 | |
| 14711 | |
| 14712 | |
| 14713 | |
| 14714 | |
| 14715 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 14716 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 14717 | |
| 14718 | |
Neal Norwitz | 05a4559 | 2006-03-20 06:30:08 +0000 | [diff] [blame] | 14719 | |
| 14720 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 14721 | for ac_func in alarm bind_textdomain_codeset chown clock confstr ctermid \ |
| 14722 | execv fork fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 14723 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 14724 | getpriority getpwent getspnam getspent getsid getwd \ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14725 | kill killpg lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 14726 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 14727 | putenv readlink realpath \ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14728 | select setegid seteuid setgid \ |
Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 14729 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
Skip Montanaro | 7e11a01 | 2004-02-07 12:55:46 +0000 | [diff] [blame] | 14730 | sigaction siginterrupt sigrelse strftime \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 14731 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Neal Norwitz | 05a4559 | 2006-03-20 06:30:08 +0000 | [diff] [blame] | 14732 | truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14733 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14734 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14735 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14736 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14737 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14739 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14740 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14741 | /* confdefs.h. */ |
| 14742 | _ACEOF |
| 14743 | cat confdefs.h >>conftest.$ac_ext |
| 14744 | cat >>conftest.$ac_ext <<_ACEOF |
| 14745 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 14746 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 14747 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14748 | #define $ac_func innocuous_$ac_func |
| 14749 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14750 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14751 | which can conflict with char $ac_func (); below. |
| 14752 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 14753 | <limits.h> exists even on freestanding compilers. */ |
| 14754 | |
| 14755 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14756 | # include <limits.h> |
| 14757 | #else |
| 14758 | # include <assert.h> |
| 14759 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 14760 | |
| 14761 | #undef $ac_func |
| 14762 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14763 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14764 | #ifdef __cplusplus |
| 14765 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14766 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14767 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14768 | /* 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] | 14769 | builtin and then its argument prototype would still apply. */ |
| 14770 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14771 | /* The GNU C library defines this for functions which it implements |
| 14772 | to always fail with ENOSYS. Some functions are actually named |
| 14773 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14774 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14775 | choke me |
| 14776 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14777 | char (*f) () = $ac_func; |
| 14778 | #endif |
| 14779 | #ifdef __cplusplus |
| 14780 | } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14781 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14782 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14783 | int |
| 14784 | main () |
| 14785 | { |
| 14786 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14787 | ; |
| 14788 | return 0; |
| 14789 | } |
| 14790 | _ACEOF |
| 14791 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14792 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14793 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14794 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14795 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14796 | rm -f conftest.er1 |
| 14797 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14799 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14800 | { ac_try='test -z "$ac_c_werror_flag" |
| 14801 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14803 | (eval $ac_try) 2>&5 |
| 14804 | ac_status=$? |
| 14805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14806 | (exit $ac_status); }; } && |
| 14807 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14809 | (eval $ac_try) 2>&5 |
| 14810 | ac_status=$? |
| 14811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14812 | (exit $ac_status); }; }; then |
| 14813 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14814 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14815 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14816 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14817 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14818 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14819 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14820 | rm -f conftest.err conftest.$ac_objext \ |
| 14821 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14822 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14823 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14824 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14825 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14826 | cat >>confdefs.h <<_ACEOF |
| 14827 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14828 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14829 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14830 | fi |
| 14831 | done |
| 14832 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14833 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14834 | # For some functions, having a definition is not sufficient, since |
| 14835 | # we want to take their address. |
| 14836 | echo "$as_me:$LINENO: checking for chroot" >&5 |
| 14837 | echo $ECHO_N "checking for chroot... $ECHO_C" >&6 |
| 14838 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14839 | /* confdefs.h. */ |
| 14840 | _ACEOF |
| 14841 | cat confdefs.h >>conftest.$ac_ext |
| 14842 | cat >>conftest.$ac_ext <<_ACEOF |
| 14843 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14844 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14845 | int |
| 14846 | main () |
| 14847 | { |
| 14848 | void *x=chroot |
| 14849 | ; |
| 14850 | return 0; |
| 14851 | } |
| 14852 | _ACEOF |
| 14853 | rm -f conftest.$ac_objext |
| 14854 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14855 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14856 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14857 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14858 | rm -f conftest.er1 |
| 14859 | cat conftest.err >&5 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14861 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14862 | { ac_try='test -z "$ac_c_werror_flag" |
| 14863 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14865 | (eval $ac_try) 2>&5 |
| 14866 | ac_status=$? |
| 14867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14868 | (exit $ac_status); }; } && |
| 14869 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14871 | (eval $ac_try) 2>&5 |
| 14872 | ac_status=$? |
| 14873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14874 | (exit $ac_status); }; }; then |
| 14875 | |
| 14876 | cat >>confdefs.h <<\_ACEOF |
| 14877 | #define HAVE_CHROOT 1 |
| 14878 | _ACEOF |
| 14879 | |
| 14880 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14881 | echo "${ECHO_T}yes" >&6 |
| 14882 | else |
| 14883 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14884 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14885 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14886 | echo "$as_me:$LINENO: result: no" >&5 |
| 14887 | echo "${ECHO_T}no" >&6 |
| 14888 | |
| 14889 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14890 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14891 | echo "$as_me:$LINENO: checking for link" >&5 |
| 14892 | echo $ECHO_N "checking for link... $ECHO_C" >&6 |
| 14893 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14894 | /* confdefs.h. */ |
| 14895 | _ACEOF |
| 14896 | cat confdefs.h >>conftest.$ac_ext |
| 14897 | cat >>conftest.$ac_ext <<_ACEOF |
| 14898 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14899 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14900 | int |
| 14901 | main () |
| 14902 | { |
| 14903 | void *x=link |
| 14904 | ; |
| 14905 | return 0; |
| 14906 | } |
| 14907 | _ACEOF |
| 14908 | rm -f conftest.$ac_objext |
| 14909 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14910 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14911 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14912 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14913 | rm -f conftest.er1 |
| 14914 | cat conftest.err >&5 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14916 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14917 | { ac_try='test -z "$ac_c_werror_flag" |
| 14918 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14920 | (eval $ac_try) 2>&5 |
| 14921 | ac_status=$? |
| 14922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14923 | (exit $ac_status); }; } && |
| 14924 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14926 | (eval $ac_try) 2>&5 |
| 14927 | ac_status=$? |
| 14928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14929 | (exit $ac_status); }; }; then |
| 14930 | |
| 14931 | cat >>confdefs.h <<\_ACEOF |
| 14932 | #define HAVE_LINK 1 |
| 14933 | _ACEOF |
| 14934 | |
| 14935 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14936 | echo "${ECHO_T}yes" >&6 |
| 14937 | else |
| 14938 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14939 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14940 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14941 | echo "$as_me:$LINENO: result: no" >&5 |
| 14942 | echo "${ECHO_T}no" >&6 |
| 14943 | |
| 14944 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14945 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14946 | echo "$as_me:$LINENO: checking for symlink" >&5 |
| 14947 | echo $ECHO_N "checking for symlink... $ECHO_C" >&6 |
| 14948 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14949 | /* confdefs.h. */ |
| 14950 | _ACEOF |
| 14951 | cat confdefs.h >>conftest.$ac_ext |
| 14952 | cat >>conftest.$ac_ext <<_ACEOF |
| 14953 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14954 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14955 | int |
| 14956 | main () |
| 14957 | { |
| 14958 | void *x=symlink |
| 14959 | ; |
| 14960 | return 0; |
| 14961 | } |
| 14962 | _ACEOF |
| 14963 | rm -f conftest.$ac_objext |
| 14964 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14965 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14966 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14967 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14968 | rm -f conftest.er1 |
| 14969 | cat conftest.err >&5 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14971 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14972 | { ac_try='test -z "$ac_c_werror_flag" |
| 14973 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14975 | (eval $ac_try) 2>&5 |
| 14976 | ac_status=$? |
| 14977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14978 | (exit $ac_status); }; } && |
| 14979 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14981 | (eval $ac_try) 2>&5 |
| 14982 | ac_status=$? |
| 14983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14984 | (exit $ac_status); }; }; then |
| 14985 | |
| 14986 | cat >>confdefs.h <<\_ACEOF |
| 14987 | #define HAVE_SYMLINK 1 |
| 14988 | _ACEOF |
| 14989 | |
| 14990 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14991 | echo "${ECHO_T}yes" >&6 |
| 14992 | else |
| 14993 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14994 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14995 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14996 | echo "$as_me:$LINENO: result: no" >&5 |
| 14997 | echo "${ECHO_T}no" >&6 |
| 14998 | |
| 14999 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15000 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15001 | echo "$as_me:$LINENO: checking for fchdir" >&5 |
| 15002 | echo $ECHO_N "checking for fchdir... $ECHO_C" >&6 |
| 15003 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15004 | /* confdefs.h. */ |
| 15005 | _ACEOF |
| 15006 | cat confdefs.h >>conftest.$ac_ext |
| 15007 | cat >>conftest.$ac_ext <<_ACEOF |
| 15008 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15009 | #include <unistd.h> |
| 15010 | int |
| 15011 | main () |
| 15012 | { |
| 15013 | void *x=fchdir |
| 15014 | ; |
| 15015 | return 0; |
| 15016 | } |
| 15017 | _ACEOF |
| 15018 | rm -f conftest.$ac_objext |
| 15019 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15020 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15021 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15022 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15023 | rm -f conftest.er1 |
| 15024 | cat conftest.err >&5 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15026 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15027 | { ac_try='test -z "$ac_c_werror_flag" |
| 15028 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15030 | (eval $ac_try) 2>&5 |
| 15031 | ac_status=$? |
| 15032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15033 | (exit $ac_status); }; } && |
| 15034 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15036 | (eval $ac_try) 2>&5 |
| 15037 | ac_status=$? |
| 15038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15039 | (exit $ac_status); }; }; then |
| 15040 | |
| 15041 | cat >>confdefs.h <<\_ACEOF |
| 15042 | #define HAVE_FCHDIR 1 |
| 15043 | _ACEOF |
| 15044 | |
| 15045 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15046 | echo "${ECHO_T}yes" >&6 |
| 15047 | else |
| 15048 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15049 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15050 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15051 | echo "$as_me:$LINENO: result: no" >&5 |
| 15052 | echo "${ECHO_T}no" >&6 |
| 15053 | |
| 15054 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15055 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15056 | echo "$as_me:$LINENO: checking for fsync" >&5 |
| 15057 | echo $ECHO_N "checking for fsync... $ECHO_C" >&6 |
| 15058 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15059 | /* confdefs.h. */ |
| 15060 | _ACEOF |
| 15061 | cat confdefs.h >>conftest.$ac_ext |
| 15062 | cat >>conftest.$ac_ext <<_ACEOF |
| 15063 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15064 | #include <unistd.h> |
| 15065 | int |
| 15066 | main () |
| 15067 | { |
| 15068 | void *x=fsync |
| 15069 | ; |
| 15070 | return 0; |
| 15071 | } |
| 15072 | _ACEOF |
| 15073 | rm -f conftest.$ac_objext |
| 15074 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15075 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15076 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15077 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15078 | rm -f conftest.er1 |
| 15079 | cat conftest.err >&5 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15081 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15082 | { ac_try='test -z "$ac_c_werror_flag" |
| 15083 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15085 | (eval $ac_try) 2>&5 |
| 15086 | ac_status=$? |
| 15087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15088 | (exit $ac_status); }; } && |
| 15089 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15091 | (eval $ac_try) 2>&5 |
| 15092 | ac_status=$? |
| 15093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15094 | (exit $ac_status); }; }; then |
| 15095 | |
| 15096 | cat >>confdefs.h <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15097 | #define HAVE_FSYNC 1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15098 | _ACEOF |
| 15099 | |
| 15100 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15101 | echo "${ECHO_T}yes" >&6 |
| 15102 | else |
| 15103 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15104 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15105 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15106 | echo "$as_me:$LINENO: result: no" >&5 |
| 15107 | echo "${ECHO_T}no" >&6 |
| 15108 | |
| 15109 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15110 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15111 | echo "$as_me:$LINENO: checking for fdatasync" >&5 |
| 15112 | echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6 |
| 15113 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15114 | /* confdefs.h. */ |
| 15115 | _ACEOF |
| 15116 | cat confdefs.h >>conftest.$ac_ext |
| 15117 | cat >>conftest.$ac_ext <<_ACEOF |
| 15118 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15119 | #include <unistd.h> |
| 15120 | int |
| 15121 | main () |
| 15122 | { |
| 15123 | void *x=fdatasync |
| 15124 | ; |
| 15125 | return 0; |
| 15126 | } |
| 15127 | _ACEOF |
| 15128 | rm -f conftest.$ac_objext |
| 15129 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15130 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15131 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15132 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15133 | rm -f conftest.er1 |
| 15134 | cat conftest.err >&5 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15136 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15137 | { ac_try='test -z "$ac_c_werror_flag" |
| 15138 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15140 | (eval $ac_try) 2>&5 |
| 15141 | ac_status=$? |
| 15142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15143 | (exit $ac_status); }; } && |
| 15144 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15146 | (eval $ac_try) 2>&5 |
| 15147 | ac_status=$? |
| 15148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15149 | (exit $ac_status); }; }; then |
| 15150 | |
| 15151 | cat >>confdefs.h <<\_ACEOF |
| 15152 | #define HAVE_FDATASYNC 1 |
| 15153 | _ACEOF |
| 15154 | |
| 15155 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15156 | echo "${ECHO_T}yes" >&6 |
| 15157 | else |
| 15158 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15159 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15160 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15161 | echo "$as_me:$LINENO: result: no" >&5 |
| 15162 | echo "${ECHO_T}no" >&6 |
| 15163 | |
| 15164 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15165 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15166 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15167 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 15168 | # functions ctermid_r, setgroups in the library, but no prototype |
| 15169 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 15170 | # address to avoid compiler warnings and potential miscompilations |
| 15171 | # because of the missing prototypes. |
| 15172 | |
| 15173 | echo "$as_me:$LINENO: checking for ctermid_r" >&5 |
| 15174 | echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6 |
| 15175 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15176 | /* confdefs.h. */ |
| 15177 | _ACEOF |
| 15178 | cat confdefs.h >>conftest.$ac_ext |
| 15179 | cat >>conftest.$ac_ext <<_ACEOF |
| 15180 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15181 | |
| 15182 | #include "confdefs.h" |
| 15183 | #include <stdio.h> |
| 15184 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15185 | int |
| 15186 | main () |
| 15187 | { |
| 15188 | void* p = ctermid_r |
| 15189 | ; |
| 15190 | return 0; |
| 15191 | } |
| 15192 | _ACEOF |
| 15193 | rm -f conftest.$ac_objext |
| 15194 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15195 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15196 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15197 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15198 | rm -f conftest.er1 |
| 15199 | cat conftest.err >&5 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15201 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15202 | { ac_try='test -z "$ac_c_werror_flag" |
| 15203 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15205 | (eval $ac_try) 2>&5 |
| 15206 | ac_status=$? |
| 15207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15208 | (exit $ac_status); }; } && |
| 15209 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15211 | (eval $ac_try) 2>&5 |
| 15212 | ac_status=$? |
| 15213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15214 | (exit $ac_status); }; }; then |
| 15215 | |
| 15216 | cat >>confdefs.h <<\_ACEOF |
| 15217 | #define HAVE_CTERMID_R 1 |
| 15218 | _ACEOF |
| 15219 | |
| 15220 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15221 | echo "${ECHO_T}yes" >&6 |
| 15222 | else |
| 15223 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15224 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15225 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15226 | echo "$as_me:$LINENO: result: no" >&5 |
| 15227 | echo "${ECHO_T}no" >&6 |
| 15228 | |
| 15229 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15230 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15231 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15232 | echo "$as_me:$LINENO: checking for flock" >&5 |
| 15233 | echo $ECHO_N "checking for flock... $ECHO_C" >&6 |
| 15234 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15235 | /* confdefs.h. */ |
| 15236 | _ACEOF |
| 15237 | cat confdefs.h >>conftest.$ac_ext |
| 15238 | cat >>conftest.$ac_ext <<_ACEOF |
| 15239 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15240 | |
| 15241 | #include "confdefs.h" |
| 15242 | #include <sys/file.h> |
| 15243 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15244 | int |
| 15245 | main () |
| 15246 | { |
| 15247 | void* p = flock |
| 15248 | ; |
| 15249 | return 0; |
| 15250 | } |
| 15251 | _ACEOF |
| 15252 | rm -f conftest.$ac_objext |
| 15253 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15254 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15255 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15256 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15257 | rm -f conftest.er1 |
| 15258 | cat conftest.err >&5 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15260 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15261 | { ac_try='test -z "$ac_c_werror_flag" |
| 15262 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15264 | (eval $ac_try) 2>&5 |
| 15265 | ac_status=$? |
| 15266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15267 | (exit $ac_status); }; } && |
| 15268 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15270 | (eval $ac_try) 2>&5 |
| 15271 | ac_status=$? |
| 15272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15273 | (exit $ac_status); }; }; then |
| 15274 | |
| 15275 | cat >>confdefs.h <<\_ACEOF |
| 15276 | #define HAVE_FLOCK 1 |
| 15277 | _ACEOF |
| 15278 | |
| 15279 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15280 | echo "${ECHO_T}yes" >&6 |
| 15281 | else |
| 15282 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15283 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15284 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15285 | echo "$as_me:$LINENO: result: no" >&5 |
| 15286 | echo "${ECHO_T}no" >&6 |
| 15287 | |
| 15288 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15289 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15290 | |
| 15291 | echo "$as_me:$LINENO: checking for getpagesize" >&5 |
| 15292 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6 |
| 15293 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15294 | /* confdefs.h. */ |
| 15295 | _ACEOF |
| 15296 | cat confdefs.h >>conftest.$ac_ext |
| 15297 | cat >>conftest.$ac_ext <<_ACEOF |
| 15298 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15299 | |
| 15300 | #include "confdefs.h" |
| 15301 | #include <unistd.h> |
| 15302 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15303 | int |
| 15304 | main () |
| 15305 | { |
| 15306 | void* p = getpagesize |
| 15307 | ; |
| 15308 | return 0; |
| 15309 | } |
| 15310 | _ACEOF |
| 15311 | rm -f conftest.$ac_objext |
| 15312 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15313 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15314 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15315 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15316 | rm -f conftest.er1 |
| 15317 | cat conftest.err >&5 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15319 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15320 | { ac_try='test -z "$ac_c_werror_flag" |
| 15321 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15323 | (eval $ac_try) 2>&5 |
| 15324 | ac_status=$? |
| 15325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15326 | (exit $ac_status); }; } && |
| 15327 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15329 | (eval $ac_try) 2>&5 |
| 15330 | ac_status=$? |
| 15331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15332 | (exit $ac_status); }; }; then |
| 15333 | |
| 15334 | cat >>confdefs.h <<\_ACEOF |
| 15335 | #define HAVE_GETPAGESIZE 1 |
| 15336 | _ACEOF |
| 15337 | |
| 15338 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15339 | echo "${ECHO_T}yes" >&6 |
| 15340 | else |
| 15341 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15342 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15343 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15344 | echo "$as_me:$LINENO: result: no" >&5 |
| 15345 | echo "${ECHO_T}no" >&6 |
| 15346 | |
| 15347 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15348 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15349 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15350 | for ac_prog in true |
| 15351 | do |
| 15352 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 15353 | set dummy $ac_prog; ac_word=$2 |
| 15354 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 15355 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 15356 | if test "${ac_cv_prog_TRUE+set}" = set; then |
| 15357 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15358 | else |
| 15359 | if test -n "$TRUE"; then |
| 15360 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 15361 | else |
| 15362 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15363 | for as_dir in $PATH |
| 15364 | do |
| 15365 | IFS=$as_save_IFS |
| 15366 | test -z "$as_dir" && as_dir=. |
| 15367 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 15368 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 15369 | ac_cv_prog_TRUE="$ac_prog" |
| 15370 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15371 | break 2 |
| 15372 | fi |
| 15373 | done |
| 15374 | done |
| 15375 | |
| 15376 | fi |
| 15377 | fi |
| 15378 | TRUE=$ac_cv_prog_TRUE |
| 15379 | if test -n "$TRUE"; then |
| 15380 | echo "$as_me:$LINENO: result: $TRUE" >&5 |
| 15381 | echo "${ECHO_T}$TRUE" >&6 |
| 15382 | else |
| 15383 | echo "$as_me:$LINENO: result: no" >&5 |
| 15384 | echo "${ECHO_T}no" >&6 |
| 15385 | fi |
| 15386 | |
| 15387 | test -n "$TRUE" && break |
| 15388 | done |
| 15389 | test -n "$TRUE" || TRUE="/bin/true" |
| 15390 | |
| 15391 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15392 | echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5 |
| 15393 | echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6 |
| 15394 | if test "${ac_cv_lib_c_inet_aton+set}" = set; then |
| 15395 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15396 | else |
| 15397 | ac_check_lib_save_LIBS=$LIBS |
| 15398 | LIBS="-lc $LIBS" |
| 15399 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15400 | /* confdefs.h. */ |
| 15401 | _ACEOF |
| 15402 | cat confdefs.h >>conftest.$ac_ext |
| 15403 | cat >>conftest.$ac_ext <<_ACEOF |
| 15404 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15405 | |
| 15406 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15407 | #ifdef __cplusplus |
| 15408 | extern "C" |
| 15409 | #endif |
| 15410 | /* We use char because int might match the return type of a gcc2 |
| 15411 | builtin and then its argument prototype would still apply. */ |
| 15412 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15413 | int |
| 15414 | main () |
| 15415 | { |
| 15416 | inet_aton (); |
| 15417 | ; |
| 15418 | return 0; |
| 15419 | } |
| 15420 | _ACEOF |
| 15421 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15422 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15423 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15424 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15425 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15426 | rm -f conftest.er1 |
| 15427 | cat conftest.err >&5 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15429 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15430 | { ac_try='test -z "$ac_c_werror_flag" |
| 15431 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15433 | (eval $ac_try) 2>&5 |
| 15434 | ac_status=$? |
| 15435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15436 | (exit $ac_status); }; } && |
| 15437 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15439 | (eval $ac_try) 2>&5 |
| 15440 | ac_status=$? |
| 15441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15442 | (exit $ac_status); }; }; then |
| 15443 | ac_cv_lib_c_inet_aton=yes |
| 15444 | else |
| 15445 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15446 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15447 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15448 | ac_cv_lib_c_inet_aton=no |
| 15449 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15450 | rm -f conftest.err conftest.$ac_objext \ |
| 15451 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15452 | LIBS=$ac_check_lib_save_LIBS |
| 15453 | fi |
| 15454 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5 |
| 15455 | echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6 |
| 15456 | if test $ac_cv_lib_c_inet_aton = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15457 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15458 | else |
| 15459 | |
| 15460 | echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
| 15461 | echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6 |
| 15462 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
| 15463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15464 | else |
| 15465 | ac_check_lib_save_LIBS=$LIBS |
| 15466 | LIBS="-lresolv $LIBS" |
| 15467 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15468 | /* confdefs.h. */ |
| 15469 | _ACEOF |
| 15470 | cat confdefs.h >>conftest.$ac_ext |
| 15471 | cat >>conftest.$ac_ext <<_ACEOF |
| 15472 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15473 | |
| 15474 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15475 | #ifdef __cplusplus |
| 15476 | extern "C" |
| 15477 | #endif |
| 15478 | /* We use char because int might match the return type of a gcc2 |
| 15479 | builtin and then its argument prototype would still apply. */ |
| 15480 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15481 | int |
| 15482 | main () |
| 15483 | { |
| 15484 | inet_aton (); |
| 15485 | ; |
| 15486 | return 0; |
| 15487 | } |
| 15488 | _ACEOF |
| 15489 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15490 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15491 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15492 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15493 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15494 | rm -f conftest.er1 |
| 15495 | cat conftest.err >&5 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15497 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15498 | { ac_try='test -z "$ac_c_werror_flag" |
| 15499 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15501 | (eval $ac_try) 2>&5 |
| 15502 | ac_status=$? |
| 15503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15504 | (exit $ac_status); }; } && |
| 15505 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15507 | (eval $ac_try) 2>&5 |
| 15508 | ac_status=$? |
| 15509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15510 | (exit $ac_status); }; }; then |
| 15511 | ac_cv_lib_resolv_inet_aton=yes |
| 15512 | else |
| 15513 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15514 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15515 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15516 | ac_cv_lib_resolv_inet_aton=no |
| 15517 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15518 | rm -f conftest.err conftest.$ac_objext \ |
| 15519 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15520 | LIBS=$ac_check_lib_save_LIBS |
| 15521 | fi |
| 15522 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 15523 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6 |
| 15524 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
| 15525 | cat >>confdefs.h <<_ACEOF |
| 15526 | #define HAVE_LIBRESOLV 1 |
| 15527 | _ACEOF |
| 15528 | |
| 15529 | LIBS="-lresolv $LIBS" |
| 15530 | |
| 15531 | fi |
| 15532 | |
| 15533 | |
| 15534 | fi |
| 15535 | |
| 15536 | |
Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 15537 | case $ac_sys_system/$ac_sys_release in |
| 15538 | Darwin/*) |
| 15539 | _CUR_CFLAGS="${CFLAGS}" |
| 15540 | _CUR_LDFLAGS="${LDFLAGS}" |
| 15541 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" |
| 15542 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" |
| 15543 | ;; |
| 15544 | esac |
| 15545 | |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 15546 | echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5 |
| 15547 | echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6 |
| 15548 | if test "${ac_cv_lib_z_inflateCopy+set}" = set; then |
| 15549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15550 | else |
| 15551 | ac_check_lib_save_LIBS=$LIBS |
| 15552 | LIBS="-lz $LIBS" |
| 15553 | cat >conftest.$ac_ext <<_ACEOF |
| 15554 | /* confdefs.h. */ |
| 15555 | _ACEOF |
| 15556 | cat confdefs.h >>conftest.$ac_ext |
| 15557 | cat >>conftest.$ac_ext <<_ACEOF |
| 15558 | /* end confdefs.h. */ |
| 15559 | |
| 15560 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15561 | #ifdef __cplusplus |
| 15562 | extern "C" |
| 15563 | #endif |
| 15564 | /* We use char because int might match the return type of a gcc2 |
| 15565 | builtin and then its argument prototype would still apply. */ |
| 15566 | char inflateCopy (); |
| 15567 | int |
| 15568 | main () |
| 15569 | { |
| 15570 | inflateCopy (); |
| 15571 | ; |
| 15572 | return 0; |
| 15573 | } |
| 15574 | _ACEOF |
| 15575 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15576 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15577 | (eval $ac_link) 2>conftest.er1 |
| 15578 | ac_status=$? |
| 15579 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15580 | rm -f conftest.er1 |
| 15581 | cat conftest.err >&5 |
| 15582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15583 | (exit $ac_status); } && |
| 15584 | { ac_try='test -z "$ac_c_werror_flag" |
| 15585 | || test ! -s conftest.err' |
| 15586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15587 | (eval $ac_try) 2>&5 |
| 15588 | ac_status=$? |
| 15589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15590 | (exit $ac_status); }; } && |
| 15591 | { ac_try='test -s conftest$ac_exeext' |
| 15592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15593 | (eval $ac_try) 2>&5 |
| 15594 | ac_status=$? |
| 15595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15596 | (exit $ac_status); }; }; then |
| 15597 | ac_cv_lib_z_inflateCopy=yes |
| 15598 | else |
| 15599 | echo "$as_me: failed program was:" >&5 |
| 15600 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15601 | |
| 15602 | ac_cv_lib_z_inflateCopy=no |
| 15603 | fi |
| 15604 | rm -f conftest.err conftest.$ac_objext \ |
| 15605 | conftest$ac_exeext conftest.$ac_ext |
| 15606 | LIBS=$ac_check_lib_save_LIBS |
| 15607 | fi |
| 15608 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5 |
| 15609 | echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6 |
| 15610 | if test $ac_cv_lib_z_inflateCopy = yes; then |
| 15611 | |
| 15612 | cat >>confdefs.h <<\_ACEOF |
| 15613 | #define HAVE_ZLIB_COPY 1 |
| 15614 | _ACEOF |
| 15615 | |
| 15616 | fi |
| 15617 | |
| 15618 | |
Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 15619 | case $ac_sys_system/$ac_sys_release in |
| 15620 | Darwin/*) |
| 15621 | CFLAGS="${_CUR_CFLAGS}" |
| 15622 | LDFLAGS="${_CUR_LDFLAGS}" |
| 15623 | ;; |
| 15624 | esac |
| 15625 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15626 | echo "$as_me:$LINENO: checking for hstrerror" >&5 |
| 15627 | echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6 |
| 15628 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15629 | /* confdefs.h. */ |
| 15630 | _ACEOF |
| 15631 | cat confdefs.h >>conftest.$ac_ext |
| 15632 | cat >>conftest.$ac_ext <<_ACEOF |
| 15633 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15634 | |
| 15635 | #include "confdefs.h" |
| 15636 | #include <netdb.h> |
| 15637 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15638 | int |
| 15639 | main () |
| 15640 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15641 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15642 | ; |
| 15643 | return 0; |
| 15644 | } |
| 15645 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15646 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15647 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15648 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15649 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15650 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15651 | rm -f conftest.er1 |
| 15652 | cat conftest.err >&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15654 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15655 | { ac_try='test -z "$ac_c_werror_flag" |
| 15656 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15658 | (eval $ac_try) 2>&5 |
| 15659 | ac_status=$? |
| 15660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15661 | (exit $ac_status); }; } && |
| 15662 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15664 | (eval $ac_try) 2>&5 |
| 15665 | ac_status=$? |
| 15666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15667 | (exit $ac_status); }; }; then |
| 15668 | |
| 15669 | cat >>confdefs.h <<\_ACEOF |
| 15670 | #define HAVE_HSTRERROR 1 |
| 15671 | _ACEOF |
| 15672 | |
| 15673 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15674 | echo "${ECHO_T}yes" >&6 |
| 15675 | else |
| 15676 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15677 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15678 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15679 | echo "$as_me:$LINENO: result: no" >&5 |
| 15680 | echo "${ECHO_T}no" >&6 |
| 15681 | |
| 15682 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15683 | rm -f conftest.err conftest.$ac_objext \ |
| 15684 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15685 | |
| 15686 | echo "$as_me:$LINENO: checking for inet_aton" >&5 |
| 15687 | echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6 |
| 15688 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15689 | /* confdefs.h. */ |
| 15690 | _ACEOF |
| 15691 | cat confdefs.h >>conftest.$ac_ext |
| 15692 | cat >>conftest.$ac_ext <<_ACEOF |
| 15693 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15694 | |
| 15695 | #include "confdefs.h" |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 15696 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15697 | #include <sys/socket.h> |
| 15698 | #include <netinet/in.h> |
| 15699 | #include <arpa/inet.h> |
| 15700 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15701 | int |
| 15702 | main () |
| 15703 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15704 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15705 | ; |
| 15706 | return 0; |
| 15707 | } |
| 15708 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15709 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15710 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15711 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15712 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15713 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15714 | rm -f conftest.er1 |
| 15715 | cat conftest.err >&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15717 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15718 | { ac_try='test -z "$ac_c_werror_flag" |
| 15719 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15721 | (eval $ac_try) 2>&5 |
| 15722 | ac_status=$? |
| 15723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15724 | (exit $ac_status); }; } && |
| 15725 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15727 | (eval $ac_try) 2>&5 |
| 15728 | ac_status=$? |
| 15729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15730 | (exit $ac_status); }; }; then |
| 15731 | |
| 15732 | cat >>confdefs.h <<\_ACEOF |
| 15733 | #define HAVE_INET_ATON 1 |
| 15734 | _ACEOF |
| 15735 | |
| 15736 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15737 | echo "${ECHO_T}yes" >&6 |
| 15738 | else |
| 15739 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15740 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15741 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15742 | echo "$as_me:$LINENO: result: no" >&5 |
| 15743 | echo "${ECHO_T}no" >&6 |
| 15744 | |
| 15745 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15746 | rm -f conftest.err conftest.$ac_objext \ |
| 15747 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15748 | |
| 15749 | echo "$as_me:$LINENO: checking for inet_pton" >&5 |
| 15750 | echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6 |
| 15751 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15752 | /* confdefs.h. */ |
| 15753 | _ACEOF |
| 15754 | cat confdefs.h >>conftest.$ac_ext |
| 15755 | cat >>conftest.$ac_ext <<_ACEOF |
| 15756 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15757 | |
| 15758 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 15759 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15760 | #include <sys/socket.h> |
| 15761 | #include <netinet/in.h> |
| 15762 | #include <arpa/inet.h> |
| 15763 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15764 | int |
| 15765 | main () |
| 15766 | { |
| 15767 | void* p = inet_pton |
| 15768 | ; |
| 15769 | return 0; |
| 15770 | } |
| 15771 | _ACEOF |
| 15772 | rm -f conftest.$ac_objext |
| 15773 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15774 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15775 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15776 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15777 | rm -f conftest.er1 |
| 15778 | cat conftest.err >&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15780 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15781 | { ac_try='test -z "$ac_c_werror_flag" |
| 15782 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15784 | (eval $ac_try) 2>&5 |
| 15785 | ac_status=$? |
| 15786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15787 | (exit $ac_status); }; } && |
| 15788 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15790 | (eval $ac_try) 2>&5 |
| 15791 | ac_status=$? |
| 15792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15793 | (exit $ac_status); }; }; then |
| 15794 | |
| 15795 | cat >>confdefs.h <<\_ACEOF |
| 15796 | #define HAVE_INET_PTON 1 |
| 15797 | _ACEOF |
| 15798 | |
| 15799 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15800 | echo "${ECHO_T}yes" >&6 |
| 15801 | else |
| 15802 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15803 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15804 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15805 | echo "$as_me:$LINENO: result: no" >&5 |
| 15806 | echo "${ECHO_T}no" >&6 |
| 15807 | |
| 15808 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15809 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15810 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 15811 | # 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] | 15812 | echo "$as_me:$LINENO: checking for setgroups" >&5 |
| 15813 | echo $ECHO_N "checking for setgroups... $ECHO_C" >&6 |
| 15814 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15815 | /* confdefs.h. */ |
| 15816 | _ACEOF |
| 15817 | cat confdefs.h >>conftest.$ac_ext |
| 15818 | cat >>conftest.$ac_ext <<_ACEOF |
| 15819 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15820 | |
| 15821 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 15822 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 15823 | #ifdef HAVE_GRP_H |
| 15824 | #include <grp.h> |
| 15825 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15826 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15827 | int |
| 15828 | main () |
| 15829 | { |
| 15830 | void* p = setgroups |
| 15831 | ; |
| 15832 | return 0; |
| 15833 | } |
| 15834 | _ACEOF |
| 15835 | rm -f conftest.$ac_objext |
| 15836 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15837 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15838 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15839 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15840 | rm -f conftest.er1 |
| 15841 | cat conftest.err >&5 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15843 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15844 | { ac_try='test -z "$ac_c_werror_flag" |
| 15845 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15847 | (eval $ac_try) 2>&5 |
| 15848 | ac_status=$? |
| 15849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15850 | (exit $ac_status); }; } && |
| 15851 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15853 | (eval $ac_try) 2>&5 |
| 15854 | ac_status=$? |
| 15855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15856 | (exit $ac_status); }; }; then |
| 15857 | |
| 15858 | cat >>confdefs.h <<\_ACEOF |
| 15859 | #define HAVE_SETGROUPS 1 |
| 15860 | _ACEOF |
| 15861 | |
| 15862 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15863 | echo "${ECHO_T}yes" >&6 |
| 15864 | else |
| 15865 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15866 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15867 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15868 | echo "$as_me:$LINENO: result: no" >&5 |
| 15869 | echo "${ECHO_T}no" >&6 |
| 15870 | |
| 15871 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15872 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15873 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15874 | # check for openpty and forkpty |
| 15875 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15876 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15877 | for ac_func in openpty |
| 15878 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15879 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15880 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15881 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15882 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15884 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15885 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15886 | /* confdefs.h. */ |
| 15887 | _ACEOF |
| 15888 | cat confdefs.h >>conftest.$ac_ext |
| 15889 | cat >>conftest.$ac_ext <<_ACEOF |
| 15890 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15891 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 15892 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15893 | #define $ac_func innocuous_$ac_func |
| 15894 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15895 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15896 | which can conflict with char $ac_func (); below. |
| 15897 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15898 | <limits.h> exists even on freestanding compilers. */ |
| 15899 | |
| 15900 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15901 | # include <limits.h> |
| 15902 | #else |
| 15903 | # include <assert.h> |
| 15904 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15905 | |
| 15906 | #undef $ac_func |
| 15907 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15908 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15909 | #ifdef __cplusplus |
| 15910 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15911 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15912 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15913 | /* 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] | 15914 | builtin and then its argument prototype would still apply. */ |
| 15915 | char $ac_func (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15916 | /* The GNU C library defines this for functions which it implements |
| 15917 | to always fail with ENOSYS. Some functions are actually named |
| 15918 | something starting with __ and the normal name is an alias. */ |
| 15919 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15920 | choke me |
| 15921 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15922 | char (*f) () = $ac_func; |
| 15923 | #endif |
| 15924 | #ifdef __cplusplus |
| 15925 | } |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15926 | #endif |
| 15927 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15928 | int |
| 15929 | main () |
| 15930 | { |
| 15931 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15932 | ; |
| 15933 | return 0; |
| 15934 | } |
| 15935 | _ACEOF |
| 15936 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15937 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15938 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15939 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15940 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15941 | rm -f conftest.er1 |
| 15942 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15944 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15945 | { ac_try='test -z "$ac_c_werror_flag" |
| 15946 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15948 | (eval $ac_try) 2>&5 |
| 15949 | ac_status=$? |
| 15950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15951 | (exit $ac_status); }; } && |
| 15952 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15954 | (eval $ac_try) 2>&5 |
| 15955 | ac_status=$? |
| 15956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15957 | (exit $ac_status); }; }; then |
| 15958 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15959 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15960 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15961 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15962 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15963 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15964 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15965 | rm -f conftest.err conftest.$ac_objext \ |
| 15966 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15967 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15968 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15969 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15970 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15971 | cat >>confdefs.h <<_ACEOF |
| 15972 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15973 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15974 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15975 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15976 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 15977 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
| 15978 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
| 15979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15980 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15981 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15982 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15983 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15984 | /* confdefs.h. */ |
| 15985 | _ACEOF |
| 15986 | cat confdefs.h >>conftest.$ac_ext |
| 15987 | cat >>conftest.$ac_ext <<_ACEOF |
| 15988 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15989 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15990 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15991 | #ifdef __cplusplus |
| 15992 | extern "C" |
| 15993 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15994 | /* 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] | 15995 | builtin and then its argument prototype would still apply. */ |
| 15996 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15997 | int |
| 15998 | main () |
| 15999 | { |
| 16000 | openpty (); |
| 16001 | ; |
| 16002 | return 0; |
| 16003 | } |
| 16004 | _ACEOF |
| 16005 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16006 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16007 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16008 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16009 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16010 | rm -f conftest.er1 |
| 16011 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16013 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16014 | { ac_try='test -z "$ac_c_werror_flag" |
| 16015 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16017 | (eval $ac_try) 2>&5 |
| 16018 | ac_status=$? |
| 16019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16020 | (exit $ac_status); }; } && |
| 16021 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16023 | (eval $ac_try) 2>&5 |
| 16024 | ac_status=$? |
| 16025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16026 | (exit $ac_status); }; }; then |
| 16027 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16028 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16029 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16030 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16031 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16032 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16033 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16034 | rm -f conftest.err conftest.$ac_objext \ |
| 16035 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16036 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16037 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16038 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 16039 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
| 16040 | if test $ac_cv_lib_util_openpty = yes; then |
| 16041 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16042 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16043 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16044 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 16045 | else |
| 16046 | echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5 |
| 16047 | echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6 |
| 16048 | if test "${ac_cv_lib_bsd_openpty+set}" = set; then |
| 16049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16050 | else |
| 16051 | ac_check_lib_save_LIBS=$LIBS |
| 16052 | LIBS="-lbsd $LIBS" |
| 16053 | cat >conftest.$ac_ext <<_ACEOF |
| 16054 | /* confdefs.h. */ |
| 16055 | _ACEOF |
| 16056 | cat confdefs.h >>conftest.$ac_ext |
| 16057 | cat >>conftest.$ac_ext <<_ACEOF |
| 16058 | /* end confdefs.h. */ |
| 16059 | |
| 16060 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 16061 | #ifdef __cplusplus |
| 16062 | extern "C" |
| 16063 | #endif |
| 16064 | /* We use char because int might match the return type of a gcc2 |
| 16065 | builtin and then its argument prototype would still apply. */ |
| 16066 | char openpty (); |
| 16067 | int |
| 16068 | main () |
| 16069 | { |
| 16070 | openpty (); |
| 16071 | ; |
| 16072 | return 0; |
| 16073 | } |
| 16074 | _ACEOF |
| 16075 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16076 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16077 | (eval $ac_link) 2>conftest.er1 |
| 16078 | ac_status=$? |
| 16079 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16080 | rm -f conftest.er1 |
| 16081 | cat conftest.err >&5 |
| 16082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16083 | (exit $ac_status); } && |
| 16084 | { ac_try='test -z "$ac_c_werror_flag" |
| 16085 | || test ! -s conftest.err' |
| 16086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16087 | (eval $ac_try) 2>&5 |
| 16088 | ac_status=$? |
| 16089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16090 | (exit $ac_status); }; } && |
| 16091 | { ac_try='test -s conftest$ac_exeext' |
| 16092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16093 | (eval $ac_try) 2>&5 |
| 16094 | ac_status=$? |
| 16095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16096 | (exit $ac_status); }; }; then |
| 16097 | ac_cv_lib_bsd_openpty=yes |
| 16098 | else |
| 16099 | echo "$as_me: failed program was:" >&5 |
| 16100 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16101 | |
| 16102 | ac_cv_lib_bsd_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16103 | fi |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 16104 | rm -f conftest.err conftest.$ac_objext \ |
| 16105 | conftest$ac_exeext conftest.$ac_ext |
| 16106 | LIBS=$ac_check_lib_save_LIBS |
| 16107 | fi |
| 16108 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5 |
| 16109 | echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6 |
| 16110 | if test $ac_cv_lib_bsd_openpty = yes; then |
| 16111 | cat >>confdefs.h <<\_ACEOF |
| 16112 | #define HAVE_OPENPTY 1 |
| 16113 | _ACEOF |
| 16114 | LIBS="$LIBS -lbsd" |
| 16115 | fi |
| 16116 | |
| 16117 | |
| 16118 | fi |
| 16119 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16120 | |
| 16121 | fi |
| 16122 | done |
| 16123 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16124 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16125 | for ac_func in forkpty |
| 16126 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16127 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16128 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16129 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 16130 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 16131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16132 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16133 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16134 | /* confdefs.h. */ |
| 16135 | _ACEOF |
| 16136 | cat confdefs.h >>conftest.$ac_ext |
| 16137 | cat >>conftest.$ac_ext <<_ACEOF |
| 16138 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16139 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16140 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16141 | #define $ac_func innocuous_$ac_func |
| 16142 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16143 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16144 | which can conflict with char $ac_func (); below. |
| 16145 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16146 | <limits.h> exists even on freestanding compilers. */ |
| 16147 | |
| 16148 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16149 | # include <limits.h> |
| 16150 | #else |
| 16151 | # include <assert.h> |
| 16152 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16153 | |
| 16154 | #undef $ac_func |
| 16155 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16156 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16157 | #ifdef __cplusplus |
| 16158 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16159 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16160 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16161 | /* 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] | 16162 | builtin and then its argument prototype would still apply. */ |
| 16163 | char $ac_func (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16164 | /* The GNU C library defines this for functions which it implements |
| 16165 | to always fail with ENOSYS. Some functions are actually named |
| 16166 | something starting with __ and the normal name is an alias. */ |
| 16167 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 16168 | choke me |
| 16169 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16170 | char (*f) () = $ac_func; |
| 16171 | #endif |
| 16172 | #ifdef __cplusplus |
| 16173 | } |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16174 | #endif |
| 16175 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16176 | int |
| 16177 | main () |
| 16178 | { |
| 16179 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16180 | ; |
| 16181 | return 0; |
| 16182 | } |
| 16183 | _ACEOF |
| 16184 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16185 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16186 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16187 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16188 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16189 | rm -f conftest.er1 |
| 16190 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16192 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16193 | { ac_try='test -z "$ac_c_werror_flag" |
| 16194 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16196 | (eval $ac_try) 2>&5 |
| 16197 | ac_status=$? |
| 16198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16199 | (exit $ac_status); }; } && |
| 16200 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16202 | (eval $ac_try) 2>&5 |
| 16203 | ac_status=$? |
| 16204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16205 | (exit $ac_status); }; }; then |
| 16206 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16207 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16208 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16209 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16210 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16211 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16212 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16213 | rm -f conftest.err conftest.$ac_objext \ |
| 16214 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16215 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16216 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 16217 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 16218 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16219 | cat >>confdefs.h <<_ACEOF |
| 16220 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16221 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16222 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16223 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16224 | echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 16225 | echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6 |
| 16226 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
| 16227 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16228 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16229 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16230 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16231 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16232 | /* confdefs.h. */ |
| 16233 | _ACEOF |
| 16234 | cat confdefs.h >>conftest.$ac_ext |
| 16235 | cat >>conftest.$ac_ext <<_ACEOF |
| 16236 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16237 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16238 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16239 | #ifdef __cplusplus |
| 16240 | extern "C" |
| 16241 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16242 | /* 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] | 16243 | builtin and then its argument prototype would still apply. */ |
| 16244 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16245 | int |
| 16246 | main () |
| 16247 | { |
| 16248 | forkpty (); |
| 16249 | ; |
| 16250 | return 0; |
| 16251 | } |
| 16252 | _ACEOF |
| 16253 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16254 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16255 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16256 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16257 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16258 | rm -f conftest.er1 |
| 16259 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16261 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16262 | { ac_try='test -z "$ac_c_werror_flag" |
| 16263 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16265 | (eval $ac_try) 2>&5 |
| 16266 | ac_status=$? |
| 16267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16268 | (exit $ac_status); }; } && |
| 16269 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16271 | (eval $ac_try) 2>&5 |
| 16272 | ac_status=$? |
| 16273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16274 | (exit $ac_status); }; }; then |
| 16275 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16276 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16277 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16278 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16279 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16280 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16281 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16282 | rm -f conftest.err conftest.$ac_objext \ |
| 16283 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16284 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16285 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16286 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 16287 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6 |
| 16288 | if test $ac_cv_lib_util_forkpty = yes; then |
| 16289 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16290 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16291 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16292 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 16293 | else |
| 16294 | echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5 |
| 16295 | echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6 |
| 16296 | if test "${ac_cv_lib_bsd_forkpty+set}" = set; then |
| 16297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16298 | else |
| 16299 | ac_check_lib_save_LIBS=$LIBS |
| 16300 | LIBS="-lbsd $LIBS" |
| 16301 | cat >conftest.$ac_ext <<_ACEOF |
| 16302 | /* confdefs.h. */ |
| 16303 | _ACEOF |
| 16304 | cat confdefs.h >>conftest.$ac_ext |
| 16305 | cat >>conftest.$ac_ext <<_ACEOF |
| 16306 | /* end confdefs.h. */ |
| 16307 | |
| 16308 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 16309 | #ifdef __cplusplus |
| 16310 | extern "C" |
| 16311 | #endif |
| 16312 | /* We use char because int might match the return type of a gcc2 |
| 16313 | builtin and then its argument prototype would still apply. */ |
| 16314 | char forkpty (); |
| 16315 | int |
| 16316 | main () |
| 16317 | { |
| 16318 | forkpty (); |
| 16319 | ; |
| 16320 | return 0; |
| 16321 | } |
| 16322 | _ACEOF |
| 16323 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16324 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16325 | (eval $ac_link) 2>conftest.er1 |
| 16326 | ac_status=$? |
| 16327 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16328 | rm -f conftest.er1 |
| 16329 | cat conftest.err >&5 |
| 16330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16331 | (exit $ac_status); } && |
| 16332 | { ac_try='test -z "$ac_c_werror_flag" |
| 16333 | || test ! -s conftest.err' |
| 16334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16335 | (eval $ac_try) 2>&5 |
| 16336 | ac_status=$? |
| 16337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16338 | (exit $ac_status); }; } && |
| 16339 | { ac_try='test -s conftest$ac_exeext' |
| 16340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16341 | (eval $ac_try) 2>&5 |
| 16342 | ac_status=$? |
| 16343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16344 | (exit $ac_status); }; }; then |
| 16345 | ac_cv_lib_bsd_forkpty=yes |
| 16346 | else |
| 16347 | echo "$as_me: failed program was:" >&5 |
| 16348 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16349 | |
| 16350 | ac_cv_lib_bsd_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16351 | fi |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 16352 | rm -f conftest.err conftest.$ac_objext \ |
| 16353 | conftest$ac_exeext conftest.$ac_ext |
| 16354 | LIBS=$ac_check_lib_save_LIBS |
| 16355 | fi |
| 16356 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5 |
| 16357 | echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6 |
| 16358 | if test $ac_cv_lib_bsd_forkpty = yes; then |
| 16359 | cat >>confdefs.h <<\_ACEOF |
| 16360 | #define HAVE_FORKPTY 1 |
| 16361 | _ACEOF |
| 16362 | LIBS="$LIBS -lbsd" |
| 16363 | fi |
| 16364 | |
| 16365 | |
| 16366 | fi |
| 16367 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16368 | |
| 16369 | fi |
| 16370 | done |
| 16371 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16372 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16373 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16374 | |
| 16375 | |
| 16376 | |
| 16377 | |
| 16378 | |
| 16379 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16380 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 16381 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16382 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16383 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16384 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 16385 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 16386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 16387 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16388 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16389 | /* confdefs.h. */ |
| 16390 | _ACEOF |
| 16391 | cat confdefs.h >>conftest.$ac_ext |
| 16392 | cat >>conftest.$ac_ext <<_ACEOF |
| 16393 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16394 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16395 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16396 | #define $ac_func innocuous_$ac_func |
| 16397 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 16398 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16399 | which can conflict with char $ac_func (); below. |
| 16400 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16401 | <limits.h> exists even on freestanding compilers. */ |
| 16402 | |
| 16403 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16404 | # include <limits.h> |
| 16405 | #else |
| 16406 | # include <assert.h> |
| 16407 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16408 | |
| 16409 | #undef $ac_func |
| 16410 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 16411 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16412 | #ifdef __cplusplus |
| 16413 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16414 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16415 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 16416 | /* 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] | 16417 | builtin and then its argument prototype would still apply. */ |
| 16418 | char $ac_func (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 16419 | /* The GNU C library defines this for functions which it implements |
| 16420 | to always fail with ENOSYS. Some functions are actually named |
| 16421 | something starting with __ and the normal name is an alias. */ |
| 16422 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 16423 | choke me |
| 16424 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16425 | char (*f) () = $ac_func; |
| 16426 | #endif |
| 16427 | #ifdef __cplusplus |
| 16428 | } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 16429 | #endif |
| 16430 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16431 | int |
| 16432 | main () |
| 16433 | { |
| 16434 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16435 | ; |
| 16436 | return 0; |
| 16437 | } |
| 16438 | _ACEOF |
| 16439 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16440 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16441 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16442 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16443 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16444 | rm -f conftest.er1 |
| 16445 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16447 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16448 | { ac_try='test -z "$ac_c_werror_flag" |
| 16449 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16451 | (eval $ac_try) 2>&5 |
| 16452 | ac_status=$? |
| 16453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16454 | (exit $ac_status); }; } && |
| 16455 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16457 | (eval $ac_try) 2>&5 |
| 16458 | ac_status=$? |
| 16459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16460 | (exit $ac_status); }; }; then |
| 16461 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16462 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16463 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16464 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16465 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16466 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16467 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16468 | rm -f conftest.err conftest.$ac_objext \ |
| 16469 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16470 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16471 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 16472 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 16473 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16474 | cat >>confdefs.h <<_ACEOF |
| 16475 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16476 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16477 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16478 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16479 | done |
| 16480 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16481 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16482 | |
| 16483 | |
| 16484 | |
| 16485 | |
| 16486 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16487 | for ac_func in dup2 getcwd strdup strerror memmove |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 16488 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16489 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16490 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16491 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 16492 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 16493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16494 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16495 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16496 | /* confdefs.h. */ |
| 16497 | _ACEOF |
| 16498 | cat confdefs.h >>conftest.$ac_ext |
| 16499 | cat >>conftest.$ac_ext <<_ACEOF |
| 16500 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16501 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16502 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16503 | #define $ac_func innocuous_$ac_func |
| 16504 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16505 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16506 | which can conflict with char $ac_func (); below. |
| 16507 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16508 | <limits.h> exists even on freestanding compilers. */ |
| 16509 | |
| 16510 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16511 | # include <limits.h> |
| 16512 | #else |
| 16513 | # include <assert.h> |
| 16514 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16515 | |
| 16516 | #undef $ac_func |
| 16517 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16518 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16519 | #ifdef __cplusplus |
| 16520 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16521 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16522 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 16523 | /* 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] | 16524 | builtin and then its argument prototype would still apply. */ |
| 16525 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16526 | /* The GNU C library defines this for functions which it implements |
| 16527 | to always fail with ENOSYS. Some functions are actually named |
| 16528 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 16529 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16530 | choke me |
| 16531 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16532 | char (*f) () = $ac_func; |
| 16533 | #endif |
| 16534 | #ifdef __cplusplus |
| 16535 | } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16536 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16537 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16538 | int |
| 16539 | main () |
| 16540 | { |
| 16541 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16542 | ; |
| 16543 | return 0; |
| 16544 | } |
| 16545 | _ACEOF |
| 16546 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16547 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16548 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16549 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16550 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16551 | rm -f conftest.er1 |
| 16552 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16554 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16555 | { ac_try='test -z "$ac_c_werror_flag" |
| 16556 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16558 | (eval $ac_try) 2>&5 |
| 16559 | ac_status=$? |
| 16560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16561 | (exit $ac_status); }; } && |
| 16562 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16564 | (eval $ac_try) 2>&5 |
| 16565 | ac_status=$? |
| 16566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16567 | (exit $ac_status); }; }; then |
| 16568 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16569 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16570 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16571 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16572 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16573 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16574 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16575 | rm -f conftest.err conftest.$ac_objext \ |
| 16576 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16577 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16578 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 16579 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 16580 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16581 | cat >>confdefs.h <<_ACEOF |
| 16582 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16583 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16584 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16585 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16586 | case $LIBOBJS in |
| 16587 | "$ac_func.$ac_objext" | \ |
| 16588 | *" $ac_func.$ac_objext" | \ |
| 16589 | "$ac_func.$ac_objext "* | \ |
| 16590 | *" $ac_func.$ac_objext "* ) ;; |
| 16591 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; |
| 16592 | esac |
| 16593 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16594 | fi |
| 16595 | done |
| 16596 | |
| 16597 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16598 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16599 | for ac_func in getpgrp |
| 16600 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16601 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16602 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16603 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 16604 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 16605 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16606 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16607 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16608 | /* confdefs.h. */ |
| 16609 | _ACEOF |
| 16610 | cat confdefs.h >>conftest.$ac_ext |
| 16611 | cat >>conftest.$ac_ext <<_ACEOF |
| 16612 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16613 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16614 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16615 | #define $ac_func innocuous_$ac_func |
| 16616 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16617 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16618 | which can conflict with char $ac_func (); below. |
| 16619 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16620 | <limits.h> exists even on freestanding compilers. */ |
| 16621 | |
| 16622 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16623 | # include <limits.h> |
| 16624 | #else |
| 16625 | # include <assert.h> |
| 16626 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16627 | |
| 16628 | #undef $ac_func |
| 16629 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16630 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16631 | #ifdef __cplusplus |
| 16632 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16633 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16634 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16635 | /* 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] | 16636 | builtin and then its argument prototype would still apply. */ |
| 16637 | char $ac_func (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16638 | /* The GNU C library defines this for functions which it implements |
| 16639 | to always fail with ENOSYS. Some functions are actually named |
| 16640 | something starting with __ and the normal name is an alias. */ |
| 16641 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 16642 | choke me |
| 16643 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16644 | char (*f) () = $ac_func; |
| 16645 | #endif |
| 16646 | #ifdef __cplusplus |
| 16647 | } |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16648 | #endif |
| 16649 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16650 | int |
| 16651 | main () |
| 16652 | { |
| 16653 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16654 | ; |
| 16655 | return 0; |
| 16656 | } |
| 16657 | _ACEOF |
| 16658 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16659 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16660 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16661 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16662 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16663 | rm -f conftest.er1 |
| 16664 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16666 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16667 | { ac_try='test -z "$ac_c_werror_flag" |
| 16668 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16670 | (eval $ac_try) 2>&5 |
| 16671 | ac_status=$? |
| 16672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16673 | (exit $ac_status); }; } && |
| 16674 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16676 | (eval $ac_try) 2>&5 |
| 16677 | ac_status=$? |
| 16678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16679 | (exit $ac_status); }; }; then |
| 16680 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16681 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16682 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16683 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16684 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16685 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16686 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16687 | rm -f conftest.err conftest.$ac_objext \ |
| 16688 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16689 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16690 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 16691 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 16692 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16693 | cat >>confdefs.h <<_ACEOF |
| 16694 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16695 | _ACEOF |
| 16696 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16697 | /* confdefs.h. */ |
| 16698 | _ACEOF |
| 16699 | cat confdefs.h >>conftest.$ac_ext |
| 16700 | cat >>conftest.$ac_ext <<_ACEOF |
| 16701 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16702 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16703 | int |
| 16704 | main () |
| 16705 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16706 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16707 | ; |
| 16708 | return 0; |
| 16709 | } |
| 16710 | _ACEOF |
| 16711 | rm -f conftest.$ac_objext |
| 16712 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16713 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16714 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16715 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16716 | rm -f conftest.er1 |
| 16717 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16719 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16720 | { ac_try='test -z "$ac_c_werror_flag" |
| 16721 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16723 | (eval $ac_try) 2>&5 |
| 16724 | ac_status=$? |
| 16725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16726 | (exit $ac_status); }; } && |
| 16727 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16729 | (eval $ac_try) 2>&5 |
| 16730 | ac_status=$? |
| 16731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16732 | (exit $ac_status); }; }; then |
| 16733 | |
| 16734 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16735 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16736 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16737 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16738 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 16739 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16740 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16741 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16742 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16743 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16744 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16745 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16746 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 16747 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16748 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16749 | |
| 16750 | for ac_func in setpgrp |
| 16751 | do |
| 16752 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16753 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16754 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 16755 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16757 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16758 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16759 | /* confdefs.h. */ |
| 16760 | _ACEOF |
| 16761 | cat confdefs.h >>conftest.$ac_ext |
| 16762 | cat >>conftest.$ac_ext <<_ACEOF |
| 16763 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16764 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16765 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16766 | #define $ac_func innocuous_$ac_func |
| 16767 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16768 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16769 | which can conflict with char $ac_func (); below. |
| 16770 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16771 | <limits.h> exists even on freestanding compilers. */ |
| 16772 | |
| 16773 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16774 | # include <limits.h> |
| 16775 | #else |
| 16776 | # include <assert.h> |
| 16777 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16778 | |
| 16779 | #undef $ac_func |
| 16780 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16781 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 16782 | #ifdef __cplusplus |
| 16783 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16784 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16785 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16786 | /* We use char because int might match the return type of a gcc2 |
| 16787 | builtin and then its argument prototype would still apply. */ |
| 16788 | char $ac_func (); |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16789 | /* The GNU C library defines this for functions which it implements |
| 16790 | to always fail with ENOSYS. Some functions are actually named |
| 16791 | something starting with __ and the normal name is an alias. */ |
| 16792 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 16793 | choke me |
| 16794 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16795 | char (*f) () = $ac_func; |
| 16796 | #endif |
| 16797 | #ifdef __cplusplus |
| 16798 | } |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16799 | #endif |
| 16800 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16801 | int |
| 16802 | main () |
| 16803 | { |
| 16804 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16805 | ; |
| 16806 | return 0; |
| 16807 | } |
| 16808 | _ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16809 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16810 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16811 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16812 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16813 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16814 | rm -f conftest.er1 |
| 16815 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16817 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16818 | { ac_try='test -z "$ac_c_werror_flag" |
| 16819 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16821 | (eval $ac_try) 2>&5 |
| 16822 | ac_status=$? |
| 16823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16824 | (exit $ac_status); }; } && |
| 16825 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16827 | (eval $ac_try) 2>&5 |
| 16828 | ac_status=$? |
| 16829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16830 | (exit $ac_status); }; }; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16831 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16832 | else |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16833 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16834 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16835 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16836 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16837 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16838 | rm -f conftest.err conftest.$ac_objext \ |
| 16839 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16840 | fi |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16841 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 16842 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 16843 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16844 | cat >>confdefs.h <<_ACEOF |
| 16845 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16846 | _ACEOF |
| 16847 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16848 | /* confdefs.h. */ |
| 16849 | _ACEOF |
| 16850 | cat confdefs.h >>conftest.$ac_ext |
| 16851 | cat >>conftest.$ac_ext <<_ACEOF |
| 16852 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16853 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16854 | int |
| 16855 | main () |
| 16856 | { |
| 16857 | setpgrp(0,0); |
| 16858 | ; |
| 16859 | return 0; |
| 16860 | } |
| 16861 | _ACEOF |
| 16862 | rm -f conftest.$ac_objext |
| 16863 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16864 | (eval $ac_compile) 2>conftest.er1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16865 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16866 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16867 | rm -f conftest.er1 |
| 16868 | cat conftest.err >&5 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16870 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16871 | { ac_try='test -z "$ac_c_werror_flag" |
| 16872 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16874 | (eval $ac_try) 2>&5 |
| 16875 | ac_status=$? |
| 16876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16877 | (exit $ac_status); }; } && |
| 16878 | { ac_try='test -s conftest.$ac_objext' |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16880 | (eval $ac_try) 2>&5 |
| 16881 | ac_status=$? |
| 16882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16883 | (exit $ac_status); }; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16884 | |
| 16885 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16886 | #define SETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16887 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 16888 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16889 | |
| 16890 | else |
| 16891 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16892 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16893 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 16894 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16895 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16896 | |
| 16897 | fi |
| 16898 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 16899 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16900 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 16901 | for ac_func in gettimeofday |
| 16902 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16903 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16904 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16905 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 16906 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 16907 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16908 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16909 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16910 | /* confdefs.h. */ |
| 16911 | _ACEOF |
| 16912 | cat confdefs.h >>conftest.$ac_ext |
| 16913 | cat >>conftest.$ac_ext <<_ACEOF |
| 16914 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16915 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16916 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16917 | #define $ac_func innocuous_$ac_func |
| 16918 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16919 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16920 | which can conflict with char $ac_func (); below. |
| 16921 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16922 | <limits.h> exists even on freestanding compilers. */ |
| 16923 | |
| 16924 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16925 | # include <limits.h> |
| 16926 | #else |
| 16927 | # include <assert.h> |
| 16928 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16929 | |
| 16930 | #undef $ac_func |
| 16931 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16932 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16933 | #ifdef __cplusplus |
| 16934 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16935 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16936 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 16937 | /* 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] | 16938 | builtin and then its argument prototype would still apply. */ |
| 16939 | char $ac_func (); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16940 | /* The GNU C library defines this for functions which it implements |
| 16941 | to always fail with ENOSYS. Some functions are actually named |
| 16942 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 16943 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16944 | choke me |
| 16945 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16946 | char (*f) () = $ac_func; |
| 16947 | #endif |
| 16948 | #ifdef __cplusplus |
| 16949 | } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16950 | #endif |
| 16951 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16952 | int |
| 16953 | main () |
| 16954 | { |
| 16955 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16956 | ; |
| 16957 | return 0; |
| 16958 | } |
| 16959 | _ACEOF |
| 16960 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16961 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16962 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16963 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16964 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16965 | rm -f conftest.er1 |
| 16966 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16968 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16969 | { ac_try='test -z "$ac_c_werror_flag" |
| 16970 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16972 | (eval $ac_try) 2>&5 |
| 16973 | ac_status=$? |
| 16974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16975 | (exit $ac_status); }; } && |
| 16976 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16978 | (eval $ac_try) 2>&5 |
| 16979 | ac_status=$? |
| 16980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16981 | (exit $ac_status); }; }; then |
| 16982 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16983 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16984 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16985 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16986 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16987 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16988 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16989 | rm -f conftest.err conftest.$ac_objext \ |
| 16990 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16991 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16992 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 16993 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 16994 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16995 | cat >>confdefs.h <<_ACEOF |
| 16996 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16997 | _ACEOF |
| 16998 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16999 | /* confdefs.h. */ |
| 17000 | _ACEOF |
| 17001 | cat confdefs.h >>conftest.$ac_ext |
| 17002 | cat >>conftest.$ac_ext <<_ACEOF |
| 17003 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17004 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17005 | int |
| 17006 | main () |
| 17007 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17008 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17009 | ; |
| 17010 | return 0; |
| 17011 | } |
| 17012 | _ACEOF |
| 17013 | rm -f conftest.$ac_objext |
| 17014 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17015 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17016 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17017 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17018 | rm -f conftest.er1 |
| 17019 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17021 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17022 | { ac_try='test -z "$ac_c_werror_flag" |
| 17023 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17025 | (eval $ac_try) 2>&5 |
| 17026 | ac_status=$? |
| 17027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17028 | (exit $ac_status); }; } && |
| 17029 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17031 | (eval $ac_try) 2>&5 |
| 17032 | ac_status=$? |
| 17033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17034 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17035 | : |
| 17036 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17037 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17038 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17039 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17040 | |
| 17041 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17042 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17043 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17044 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17045 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17046 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17047 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 17048 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17049 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 17050 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17051 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17052 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 17053 | echo "$as_me:$LINENO: checking for major" >&5 |
| 17054 | echo $ECHO_N "checking for major... $ECHO_C" >&6 |
| 17055 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17056 | /* confdefs.h. */ |
| 17057 | _ACEOF |
| 17058 | cat confdefs.h >>conftest.$ac_ext |
| 17059 | cat >>conftest.$ac_ext <<_ACEOF |
| 17060 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 17061 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 17062 | #if defined(MAJOR_IN_MKDEV) |
| 17063 | #include <sys/mkdev.h> |
| 17064 | #elif defined(MAJOR_IN_SYSMACROS) |
| 17065 | #include <sys/sysmacros.h> |
| 17066 | #else |
| 17067 | #include <sys/types.h> |
| 17068 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 17069 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 17070 | int |
| 17071 | main () |
| 17072 | { |
| 17073 | |
| 17074 | makedev(major(0),minor(0)); |
| 17075 | |
| 17076 | ; |
| 17077 | return 0; |
| 17078 | } |
| 17079 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 17080 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17081 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17082 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 17083 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17084 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17085 | rm -f conftest.er1 |
| 17086 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 17087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17088 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17089 | { ac_try='test -z "$ac_c_werror_flag" |
| 17090 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17092 | (eval $ac_try) 2>&5 |
| 17093 | ac_status=$? |
| 17094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17095 | (exit $ac_status); }; } && |
| 17096 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 17097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17098 | (eval $ac_try) 2>&5 |
| 17099 | ac_status=$? |
| 17100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17101 | (exit $ac_status); }; }; then |
| 17102 | |
| 17103 | |
| 17104 | cat >>confdefs.h <<\_ACEOF |
| 17105 | #define HAVE_DEVICE_MACROS 1 |
| 17106 | _ACEOF |
| 17107 | |
| 17108 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17109 | echo "${ECHO_T}yes" >&6 |
| 17110 | |
| 17111 | else |
| 17112 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17113 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17114 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 17115 | |
| 17116 | echo "$as_me:$LINENO: result: no" >&5 |
| 17117 | echo "${ECHO_T}no" >&6 |
| 17118 | |
| 17119 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17120 | rm -f conftest.err conftest.$ac_objext \ |
| 17121 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17122 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 17123 | # 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] | 17124 | # for [no]getaddrinfo in netdb.h. |
| 17125 | echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 17126 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6 |
| 17127 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17128 | /* confdefs.h. */ |
| 17129 | _ACEOF |
| 17130 | cat confdefs.h >>conftest.$ac_ext |
| 17131 | cat >>conftest.$ac_ext <<_ACEOF |
| 17132 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 17133 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 17134 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 17135 | #include <sys/socket.h> |
| 17136 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 17137 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17138 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17139 | int |
| 17140 | main () |
| 17141 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17142 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 17143 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17144 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17145 | ; |
| 17146 | return 0; |
| 17147 | } |
| 17148 | _ACEOF |
| 17149 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17150 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17151 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17152 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17153 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17154 | rm -f conftest.er1 |
| 17155 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17157 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17158 | { ac_try='test -z "$ac_c_werror_flag" |
| 17159 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17161 | (eval $ac_try) 2>&5 |
| 17162 | ac_status=$? |
| 17163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17164 | (exit $ac_status); }; } && |
| 17165 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17167 | (eval $ac_try) 2>&5 |
| 17168 | ac_status=$? |
| 17169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17170 | (exit $ac_status); }; }; then |
| 17171 | |
| 17172 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17173 | echo "${ECHO_T}yes" >&6 |
| 17174 | echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| 17175 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17176 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17177 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 17178 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17179 | buggygetaddrinfo=yes |
| 17180 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17181 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17182 | /* confdefs.h. */ |
| 17183 | _ACEOF |
| 17184 | cat confdefs.h >>conftest.$ac_ext |
| 17185 | cat >>conftest.$ac_ext <<_ACEOF |
| 17186 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17187 | |
| 17188 | #include <sys/types.h> |
| 17189 | #include <netdb.h> |
| 17190 | #include <string.h> |
| 17191 | #include <sys/socket.h> |
| 17192 | #include <netinet/in.h> |
| 17193 | |
| 17194 | main() |
| 17195 | { |
| 17196 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 17197 | struct addrinfo hints, *ai, *aitop; |
| 17198 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 17199 | |
| 17200 | for (passive = 0; passive <= 1; passive++) { |
| 17201 | memset(&hints, 0, sizeof(hints)); |
| 17202 | hints.ai_family = AF_UNSPEC; |
| 17203 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 17204 | hints.ai_socktype = SOCK_STREAM; |
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 17205 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17206 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 17207 | (void)gai_strerror(gaierr); |
| 17208 | goto bad; |
| 17209 | } |
| 17210 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 17211 | if (ai->ai_addr == NULL || |
| 17212 | ai->ai_addrlen == 0 || |
| 17213 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 17214 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 17215 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 17216 | goto bad; |
| 17217 | } |
| 17218 | switch (ai->ai_family) { |
| 17219 | case AF_INET: |
| 17220 | if (strcmp(strport, "54321") != 0) { |
| 17221 | goto bad; |
| 17222 | } |
| 17223 | if (passive) { |
| 17224 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 17225 | goto bad; |
| 17226 | } |
| 17227 | } else { |
| 17228 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 17229 | goto bad; |
| 17230 | } |
| 17231 | } |
| 17232 | inet4++; |
| 17233 | break; |
| 17234 | case AF_INET6: |
| 17235 | if (strcmp(strport, "54321") != 0) { |
| 17236 | goto bad; |
| 17237 | } |
| 17238 | if (passive) { |
| 17239 | if (strcmp(straddr, "::") != 0) { |
| 17240 | goto bad; |
| 17241 | } |
| 17242 | } else { |
| 17243 | if (strcmp(straddr, "::1") != 0) { |
| 17244 | goto bad; |
| 17245 | } |
| 17246 | } |
| 17247 | inet6++; |
| 17248 | break; |
| 17249 | case AF_UNSPEC: |
| 17250 | goto bad; |
| 17251 | break; |
| 17252 | default: |
| 17253 | /* another family support? */ |
| 17254 | break; |
| 17255 | } |
| 17256 | } |
| 17257 | } |
| 17258 | |
| 17259 | if (!(inet4 == 0 || inet4 == 2)) |
| 17260 | goto bad; |
| 17261 | if (!(inet6 == 0 || inet6 == 2)) |
| 17262 | goto bad; |
| 17263 | |
| 17264 | if (aitop) |
| 17265 | freeaddrinfo(aitop); |
| 17266 | exit(0); |
| 17267 | |
| 17268 | bad: |
| 17269 | if (aitop) |
| 17270 | freeaddrinfo(aitop); |
| 17271 | exit(1); |
| 17272 | } |
| 17273 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17274 | _ACEOF |
| 17275 | rm -f conftest$ac_exeext |
| 17276 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17277 | (eval $ac_link) 2>&5 |
| 17278 | ac_status=$? |
| 17279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17280 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17282 | (eval $ac_try) 2>&5 |
| 17283 | ac_status=$? |
| 17284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17285 | (exit $ac_status); }; }; then |
| 17286 | echo "$as_me:$LINENO: result: good" >&5 |
| 17287 | echo "${ECHO_T}good" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17288 | buggygetaddrinfo=no |
| 17289 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17290 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17291 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17292 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17293 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17294 | ( exit $ac_status ) |
| 17295 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 17296 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17297 | buggygetaddrinfo=yes |
| 17298 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17299 | 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] | 17300 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17301 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17302 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17303 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17304 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17305 | |
| 17306 | echo "$as_me:$LINENO: result: no" >&5 |
| 17307 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17308 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17309 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 17310 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17311 | rm -f conftest.err conftest.$ac_objext \ |
| 17312 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17313 | |
| 17314 | if test "$buggygetaddrinfo" = "yes"; then |
| 17315 | if test "$ipv6" = "yes"; then |
| 17316 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 17317 | echo ' or you can specify "--disable-ipv6"'. |
| 17318 | exit 1 |
| 17319 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 17320 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17321 | |
| 17322 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 17323 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17324 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 17325 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17326 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17327 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 17328 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17329 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17330 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17331 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17332 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 17333 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 17334 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17335 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17336 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17337 | /* confdefs.h. */ |
| 17338 | _ACEOF |
| 17339 | cat confdefs.h >>conftest.$ac_ext |
| 17340 | cat >>conftest.$ac_ext <<_ACEOF |
| 17341 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17342 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17343 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17344 | #define $ac_func innocuous_$ac_func |
| 17345 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17346 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17347 | which can conflict with char $ac_func (); below. |
| 17348 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17349 | <limits.h> exists even on freestanding compilers. */ |
| 17350 | |
| 17351 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17352 | # include <limits.h> |
| 17353 | #else |
| 17354 | # include <assert.h> |
| 17355 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17356 | |
| 17357 | #undef $ac_func |
| 17358 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17359 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17360 | #ifdef __cplusplus |
| 17361 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17362 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17363 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17364 | /* 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] | 17365 | builtin and then its argument prototype would still apply. */ |
| 17366 | char $ac_func (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17367 | /* The GNU C library defines this for functions which it implements |
| 17368 | to always fail with ENOSYS. Some functions are actually named |
| 17369 | something starting with __ and the normal name is an alias. */ |
| 17370 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 17371 | choke me |
| 17372 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17373 | char (*f) () = $ac_func; |
| 17374 | #endif |
| 17375 | #ifdef __cplusplus |
| 17376 | } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17377 | #endif |
| 17378 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17379 | int |
| 17380 | main () |
| 17381 | { |
| 17382 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17383 | ; |
| 17384 | return 0; |
| 17385 | } |
| 17386 | _ACEOF |
| 17387 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17388 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17389 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17390 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17391 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17392 | rm -f conftest.er1 |
| 17393 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17395 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17396 | { ac_try='test -z "$ac_c_werror_flag" |
| 17397 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17399 | (eval $ac_try) 2>&5 |
| 17400 | ac_status=$? |
| 17401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17402 | (exit $ac_status); }; } && |
| 17403 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17405 | (eval $ac_try) 2>&5 |
| 17406 | ac_status=$? |
| 17407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17408 | (exit $ac_status); }; }; then |
| 17409 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17410 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17411 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17412 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17413 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17414 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17415 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17416 | rm -f conftest.err conftest.$ac_objext \ |
| 17417 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17418 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17419 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 17420 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 17421 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17422 | cat >>confdefs.h <<_ACEOF |
| 17423 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17424 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17425 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17426 | fi |
| 17427 | done |
| 17428 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17429 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17430 | # checks for structures |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17431 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 17432 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 17433 | if test "${ac_cv_header_time+set}" = set; then |
| 17434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17435 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17436 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17437 | /* confdefs.h. */ |
| 17438 | _ACEOF |
| 17439 | cat confdefs.h >>conftest.$ac_ext |
| 17440 | cat >>conftest.$ac_ext <<_ACEOF |
| 17441 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17442 | #include <sys/types.h> |
| 17443 | #include <sys/time.h> |
| 17444 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17445 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17446 | int |
| 17447 | main () |
| 17448 | { |
| 17449 | if ((struct tm *) 0) |
| 17450 | return 0; |
| 17451 | ; |
| 17452 | return 0; |
| 17453 | } |
| 17454 | _ACEOF |
| 17455 | rm -f conftest.$ac_objext |
| 17456 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17457 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17458 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17459 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17460 | rm -f conftest.er1 |
| 17461 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17463 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17464 | { ac_try='test -z "$ac_c_werror_flag" |
| 17465 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17467 | (eval $ac_try) 2>&5 |
| 17468 | ac_status=$? |
| 17469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17470 | (exit $ac_status); }; } && |
| 17471 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17473 | (eval $ac_try) 2>&5 |
| 17474 | ac_status=$? |
| 17475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17476 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17477 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17478 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17479 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17480 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17481 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17482 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17483 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17484 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17485 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17486 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 17487 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17488 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17489 | |
| 17490 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17491 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17492 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17493 | |
| 17494 | fi |
| 17495 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17496 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 17497 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 17498 | if test "${ac_cv_struct_tm+set}" = set; then |
| 17499 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17500 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17501 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17502 | /* confdefs.h. */ |
| 17503 | _ACEOF |
| 17504 | cat confdefs.h >>conftest.$ac_ext |
| 17505 | cat >>conftest.$ac_ext <<_ACEOF |
| 17506 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17507 | #include <sys/types.h> |
| 17508 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17509 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17510 | int |
| 17511 | main () |
| 17512 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17513 | struct tm *tp; tp->tm_sec; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17514 | ; |
| 17515 | return 0; |
| 17516 | } |
| 17517 | _ACEOF |
| 17518 | rm -f conftest.$ac_objext |
| 17519 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17520 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17521 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17522 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17523 | rm -f conftest.er1 |
| 17524 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17526 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17527 | { ac_try='test -z "$ac_c_werror_flag" |
| 17528 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17530 | (eval $ac_try) 2>&5 |
| 17531 | ac_status=$? |
| 17532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17533 | (exit $ac_status); }; } && |
| 17534 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17536 | (eval $ac_try) 2>&5 |
| 17537 | ac_status=$? |
| 17538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17539 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17540 | ac_cv_struct_tm=time.h |
| 17541 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17542 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17543 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17544 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17545 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17546 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17547 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17548 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17549 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 17550 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17551 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17552 | |
| 17553 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17554 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17555 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17556 | |
| 17557 | fi |
| 17558 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17559 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 17560 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 17561 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 17562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17563 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17564 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17565 | /* confdefs.h. */ |
| 17566 | _ACEOF |
| 17567 | cat confdefs.h >>conftest.$ac_ext |
| 17568 | cat >>conftest.$ac_ext <<_ACEOF |
| 17569 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17570 | #include <sys/types.h> |
| 17571 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17572 | |
| 17573 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17574 | int |
| 17575 | main () |
| 17576 | { |
| 17577 | static struct tm ac_aggr; |
| 17578 | if (ac_aggr.tm_zone) |
| 17579 | return 0; |
| 17580 | ; |
| 17581 | return 0; |
| 17582 | } |
| 17583 | _ACEOF |
| 17584 | rm -f conftest.$ac_objext |
| 17585 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17586 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17587 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17588 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17589 | rm -f conftest.er1 |
| 17590 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17592 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17593 | { ac_try='test -z "$ac_c_werror_flag" |
| 17594 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17596 | (eval $ac_try) 2>&5 |
| 17597 | ac_status=$? |
| 17598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17599 | (exit $ac_status); }; } && |
| 17600 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17602 | (eval $ac_try) 2>&5 |
| 17603 | ac_status=$? |
| 17604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17605 | (exit $ac_status); }; }; then |
| 17606 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17607 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17608 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17609 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17610 | |
| 17611 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17612 | /* confdefs.h. */ |
| 17613 | _ACEOF |
| 17614 | cat confdefs.h >>conftest.$ac_ext |
| 17615 | cat >>conftest.$ac_ext <<_ACEOF |
| 17616 | /* end confdefs.h. */ |
| 17617 | #include <sys/types.h> |
| 17618 | #include <$ac_cv_struct_tm> |
| 17619 | |
| 17620 | |
| 17621 | int |
| 17622 | main () |
| 17623 | { |
| 17624 | static struct tm ac_aggr; |
| 17625 | if (sizeof ac_aggr.tm_zone) |
| 17626 | return 0; |
| 17627 | ; |
| 17628 | return 0; |
| 17629 | } |
| 17630 | _ACEOF |
| 17631 | rm -f conftest.$ac_objext |
| 17632 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17633 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17634 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17635 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17636 | rm -f conftest.er1 |
| 17637 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17639 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17640 | { ac_try='test -z "$ac_c_werror_flag" |
| 17641 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17643 | (eval $ac_try) 2>&5 |
| 17644 | ac_status=$? |
| 17645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17646 | (exit $ac_status); }; } && |
| 17647 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17649 | (eval $ac_try) 2>&5 |
| 17650 | ac_status=$? |
| 17651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17652 | (exit $ac_status); }; }; then |
| 17653 | ac_cv_member_struct_tm_tm_zone=yes |
| 17654 | else |
| 17655 | echo "$as_me: failed program was:" >&5 |
| 17656 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17657 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17658 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17659 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17660 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17661 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17662 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17663 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17664 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 17665 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 17666 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 17667 | |
| 17668 | cat >>confdefs.h <<_ACEOF |
| 17669 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 17670 | _ACEOF |
| 17671 | |
| 17672 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17673 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 17674 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17675 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 17676 | |
| 17677 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17678 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17679 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17680 | |
| 17681 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17682 | echo "$as_me:$LINENO: checking for tzname" >&5 |
| 17683 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 17684 | if test "${ac_cv_var_tzname+set}" = set; then |
| 17685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17686 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17687 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17688 | /* confdefs.h. */ |
| 17689 | _ACEOF |
| 17690 | cat confdefs.h >>conftest.$ac_ext |
| 17691 | cat >>conftest.$ac_ext <<_ACEOF |
| 17692 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17693 | #include <time.h> |
| 17694 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17695 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17696 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17697 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17698 | int |
| 17699 | main () |
| 17700 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17701 | atoi(*tzname); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17702 | ; |
| 17703 | return 0; |
| 17704 | } |
| 17705 | _ACEOF |
| 17706 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17707 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17708 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17709 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17710 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17711 | rm -f conftest.er1 |
| 17712 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17714 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17715 | { ac_try='test -z "$ac_c_werror_flag" |
| 17716 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17718 | (eval $ac_try) 2>&5 |
| 17719 | ac_status=$? |
| 17720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17721 | (exit $ac_status); }; } && |
| 17722 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17724 | (eval $ac_try) 2>&5 |
| 17725 | ac_status=$? |
| 17726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17727 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17728 | ac_cv_var_tzname=yes |
| 17729 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17730 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17731 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17732 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17733 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17734 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17735 | rm -f conftest.err conftest.$ac_objext \ |
| 17736 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17737 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17738 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 17739 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17740 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17741 | |
| 17742 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17743 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17744 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17745 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17746 | fi |
| 17747 | fi |
| 17748 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17749 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 17750 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 |
| 17751 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
| 17752 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17753 | else |
| 17754 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17755 | /* confdefs.h. */ |
| 17756 | _ACEOF |
| 17757 | cat confdefs.h >>conftest.$ac_ext |
| 17758 | cat >>conftest.$ac_ext <<_ACEOF |
| 17759 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17760 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17761 | int |
| 17762 | main () |
| 17763 | { |
| 17764 | static struct stat ac_aggr; |
| 17765 | if (ac_aggr.st_rdev) |
| 17766 | return 0; |
| 17767 | ; |
| 17768 | return 0; |
| 17769 | } |
| 17770 | _ACEOF |
| 17771 | rm -f conftest.$ac_objext |
| 17772 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17773 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17774 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17775 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17776 | rm -f conftest.er1 |
| 17777 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17779 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17780 | { ac_try='test -z "$ac_c_werror_flag" |
| 17781 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17783 | (eval $ac_try) 2>&5 |
| 17784 | ac_status=$? |
| 17785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17786 | (exit $ac_status); }; } && |
| 17787 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17789 | (eval $ac_try) 2>&5 |
| 17790 | ac_status=$? |
| 17791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17792 | (exit $ac_status); }; }; then |
| 17793 | ac_cv_member_struct_stat_st_rdev=yes |
| 17794 | else |
| 17795 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17796 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17797 | |
| 17798 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17799 | /* confdefs.h. */ |
| 17800 | _ACEOF |
| 17801 | cat confdefs.h >>conftest.$ac_ext |
| 17802 | cat >>conftest.$ac_ext <<_ACEOF |
| 17803 | /* end confdefs.h. */ |
| 17804 | $ac_includes_default |
| 17805 | int |
| 17806 | main () |
| 17807 | { |
| 17808 | static struct stat ac_aggr; |
| 17809 | if (sizeof ac_aggr.st_rdev) |
| 17810 | return 0; |
| 17811 | ; |
| 17812 | return 0; |
| 17813 | } |
| 17814 | _ACEOF |
| 17815 | rm -f conftest.$ac_objext |
| 17816 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17817 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17818 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17819 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17820 | rm -f conftest.er1 |
| 17821 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17823 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17824 | { ac_try='test -z "$ac_c_werror_flag" |
| 17825 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17827 | (eval $ac_try) 2>&5 |
| 17828 | ac_status=$? |
| 17829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17830 | (exit $ac_status); }; } && |
| 17831 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17833 | (eval $ac_try) 2>&5 |
| 17834 | ac_status=$? |
| 17835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17836 | (exit $ac_status); }; }; then |
| 17837 | ac_cv_member_struct_stat_st_rdev=yes |
| 17838 | else |
| 17839 | echo "$as_me: failed program was:" >&5 |
| 17840 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17841 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17842 | ac_cv_member_struct_stat_st_rdev=no |
| 17843 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17844 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17845 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17846 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17847 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17848 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 17849 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 |
| 17850 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
| 17851 | |
| 17852 | cat >>confdefs.h <<_ACEOF |
| 17853 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 17854 | _ACEOF |
| 17855 | |
| 17856 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 17857 | fi |
| 17858 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17859 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 17860 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 |
| 17861 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
| 17862 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 17863 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17864 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17865 | /* confdefs.h. */ |
| 17866 | _ACEOF |
| 17867 | cat confdefs.h >>conftest.$ac_ext |
| 17868 | cat >>conftest.$ac_ext <<_ACEOF |
| 17869 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17870 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17871 | int |
| 17872 | main () |
| 17873 | { |
| 17874 | static struct stat ac_aggr; |
| 17875 | if (ac_aggr.st_blksize) |
| 17876 | return 0; |
| 17877 | ; |
| 17878 | return 0; |
| 17879 | } |
| 17880 | _ACEOF |
| 17881 | rm -f conftest.$ac_objext |
| 17882 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17883 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17884 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17885 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17886 | rm -f conftest.er1 |
| 17887 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17889 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17890 | { ac_try='test -z "$ac_c_werror_flag" |
| 17891 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17893 | (eval $ac_try) 2>&5 |
| 17894 | ac_status=$? |
| 17895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17896 | (exit $ac_status); }; } && |
| 17897 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17899 | (eval $ac_try) 2>&5 |
| 17900 | ac_status=$? |
| 17901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17902 | (exit $ac_status); }; }; then |
| 17903 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17904 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17905 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17906 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17907 | |
| 17908 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17909 | /* confdefs.h. */ |
| 17910 | _ACEOF |
| 17911 | cat confdefs.h >>conftest.$ac_ext |
| 17912 | cat >>conftest.$ac_ext <<_ACEOF |
| 17913 | /* end confdefs.h. */ |
| 17914 | $ac_includes_default |
| 17915 | int |
| 17916 | main () |
| 17917 | { |
| 17918 | static struct stat ac_aggr; |
| 17919 | if (sizeof ac_aggr.st_blksize) |
| 17920 | return 0; |
| 17921 | ; |
| 17922 | return 0; |
| 17923 | } |
| 17924 | _ACEOF |
| 17925 | rm -f conftest.$ac_objext |
| 17926 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17927 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17928 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17929 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17930 | rm -f conftest.er1 |
| 17931 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17933 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17934 | { ac_try='test -z "$ac_c_werror_flag" |
| 17935 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17937 | (eval $ac_try) 2>&5 |
| 17938 | ac_status=$? |
| 17939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17940 | (exit $ac_status); }; } && |
| 17941 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17943 | (eval $ac_try) 2>&5 |
| 17944 | ac_status=$? |
| 17945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17946 | (exit $ac_status); }; }; then |
| 17947 | ac_cv_member_struct_stat_st_blksize=yes |
| 17948 | else |
| 17949 | echo "$as_me: failed program was:" >&5 |
| 17950 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17951 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17952 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17953 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17954 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17955 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17956 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17957 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17958 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 17959 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 |
| 17960 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17961 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17962 | cat >>confdefs.h <<_ACEOF |
| 17963 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 17964 | _ACEOF |
| 17965 | |
| 17966 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 17967 | fi |
| 17968 | |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 17969 | echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5 |
| 17970 | echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6 |
| 17971 | if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then |
| 17972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17973 | else |
| 17974 | cat >conftest.$ac_ext <<_ACEOF |
| 17975 | /* confdefs.h. */ |
| 17976 | _ACEOF |
| 17977 | cat confdefs.h >>conftest.$ac_ext |
| 17978 | cat >>conftest.$ac_ext <<_ACEOF |
| 17979 | /* end confdefs.h. */ |
| 17980 | $ac_includes_default |
| 17981 | int |
| 17982 | main () |
| 17983 | { |
| 17984 | static struct stat ac_aggr; |
| 17985 | if (ac_aggr.st_flags) |
| 17986 | return 0; |
| 17987 | ; |
| 17988 | return 0; |
| 17989 | } |
| 17990 | _ACEOF |
| 17991 | rm -f conftest.$ac_objext |
| 17992 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17993 | (eval $ac_compile) 2>conftest.er1 |
| 17994 | ac_status=$? |
| 17995 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17996 | rm -f conftest.er1 |
| 17997 | cat conftest.err >&5 |
| 17998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17999 | (exit $ac_status); } && |
| 18000 | { ac_try='test -z "$ac_c_werror_flag" |
| 18001 | || test ! -s conftest.err' |
| 18002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18003 | (eval $ac_try) 2>&5 |
| 18004 | ac_status=$? |
| 18005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18006 | (exit $ac_status); }; } && |
| 18007 | { ac_try='test -s conftest.$ac_objext' |
| 18008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18009 | (eval $ac_try) 2>&5 |
| 18010 | ac_status=$? |
| 18011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18012 | (exit $ac_status); }; }; then |
| 18013 | ac_cv_member_struct_stat_st_flags=yes |
| 18014 | else |
| 18015 | echo "$as_me: failed program was:" >&5 |
| 18016 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18017 | |
| 18018 | cat >conftest.$ac_ext <<_ACEOF |
| 18019 | /* confdefs.h. */ |
| 18020 | _ACEOF |
| 18021 | cat confdefs.h >>conftest.$ac_ext |
| 18022 | cat >>conftest.$ac_ext <<_ACEOF |
| 18023 | /* end confdefs.h. */ |
| 18024 | $ac_includes_default |
| 18025 | int |
| 18026 | main () |
| 18027 | { |
| 18028 | static struct stat ac_aggr; |
| 18029 | if (sizeof ac_aggr.st_flags) |
| 18030 | return 0; |
| 18031 | ; |
| 18032 | return 0; |
| 18033 | } |
| 18034 | _ACEOF |
| 18035 | rm -f conftest.$ac_objext |
| 18036 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18037 | (eval $ac_compile) 2>conftest.er1 |
| 18038 | ac_status=$? |
| 18039 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18040 | rm -f conftest.er1 |
| 18041 | cat conftest.err >&5 |
| 18042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18043 | (exit $ac_status); } && |
| 18044 | { ac_try='test -z "$ac_c_werror_flag" |
| 18045 | || test ! -s conftest.err' |
| 18046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18047 | (eval $ac_try) 2>&5 |
| 18048 | ac_status=$? |
| 18049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18050 | (exit $ac_status); }; } && |
| 18051 | { ac_try='test -s conftest.$ac_objext' |
| 18052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18053 | (eval $ac_try) 2>&5 |
| 18054 | ac_status=$? |
| 18055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18056 | (exit $ac_status); }; }; then |
| 18057 | ac_cv_member_struct_stat_st_flags=yes |
| 18058 | else |
| 18059 | echo "$as_me: failed program was:" >&5 |
| 18060 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18061 | |
| 18062 | ac_cv_member_struct_stat_st_flags=no |
| 18063 | fi |
| 18064 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18065 | fi |
| 18066 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18067 | fi |
| 18068 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5 |
| 18069 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6 |
| 18070 | if test $ac_cv_member_struct_stat_st_flags = yes; then |
| 18071 | |
| 18072 | cat >>confdefs.h <<_ACEOF |
| 18073 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 |
| 18074 | _ACEOF |
| 18075 | |
| 18076 | |
| 18077 | fi |
| 18078 | |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18079 | echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5 |
| 18080 | echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6 |
| 18081 | if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then |
| 18082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18083 | else |
| 18084 | cat >conftest.$ac_ext <<_ACEOF |
| 18085 | /* confdefs.h. */ |
| 18086 | _ACEOF |
| 18087 | cat confdefs.h >>conftest.$ac_ext |
| 18088 | cat >>conftest.$ac_ext <<_ACEOF |
| 18089 | /* end confdefs.h. */ |
| 18090 | $ac_includes_default |
| 18091 | int |
| 18092 | main () |
| 18093 | { |
| 18094 | static struct stat ac_aggr; |
| 18095 | if (ac_aggr.st_gen) |
| 18096 | return 0; |
| 18097 | ; |
| 18098 | return 0; |
| 18099 | } |
| 18100 | _ACEOF |
| 18101 | rm -f conftest.$ac_objext |
| 18102 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18103 | (eval $ac_compile) 2>conftest.er1 |
| 18104 | ac_status=$? |
| 18105 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18106 | rm -f conftest.er1 |
| 18107 | cat conftest.err >&5 |
| 18108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18109 | (exit $ac_status); } && |
| 18110 | { ac_try='test -z "$ac_c_werror_flag" |
| 18111 | || test ! -s conftest.err' |
| 18112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18113 | (eval $ac_try) 2>&5 |
| 18114 | ac_status=$? |
| 18115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18116 | (exit $ac_status); }; } && |
| 18117 | { ac_try='test -s conftest.$ac_objext' |
| 18118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18119 | (eval $ac_try) 2>&5 |
| 18120 | ac_status=$? |
| 18121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18122 | (exit $ac_status); }; }; then |
| 18123 | ac_cv_member_struct_stat_st_gen=yes |
| 18124 | else |
| 18125 | echo "$as_me: failed program was:" >&5 |
| 18126 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18127 | |
| 18128 | cat >conftest.$ac_ext <<_ACEOF |
| 18129 | /* confdefs.h. */ |
| 18130 | _ACEOF |
| 18131 | cat confdefs.h >>conftest.$ac_ext |
| 18132 | cat >>conftest.$ac_ext <<_ACEOF |
| 18133 | /* end confdefs.h. */ |
| 18134 | $ac_includes_default |
| 18135 | int |
| 18136 | main () |
| 18137 | { |
| 18138 | static struct stat ac_aggr; |
| 18139 | if (sizeof ac_aggr.st_gen) |
| 18140 | return 0; |
| 18141 | ; |
| 18142 | return 0; |
| 18143 | } |
| 18144 | _ACEOF |
| 18145 | rm -f conftest.$ac_objext |
| 18146 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18147 | (eval $ac_compile) 2>conftest.er1 |
| 18148 | ac_status=$? |
| 18149 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18150 | rm -f conftest.er1 |
| 18151 | cat conftest.err >&5 |
| 18152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18153 | (exit $ac_status); } && |
| 18154 | { ac_try='test -z "$ac_c_werror_flag" |
| 18155 | || test ! -s conftest.err' |
| 18156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18157 | (eval $ac_try) 2>&5 |
| 18158 | ac_status=$? |
| 18159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18160 | (exit $ac_status); }; } && |
| 18161 | { ac_try='test -s conftest.$ac_objext' |
| 18162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18163 | (eval $ac_try) 2>&5 |
| 18164 | ac_status=$? |
| 18165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18166 | (exit $ac_status); }; }; then |
| 18167 | ac_cv_member_struct_stat_st_gen=yes |
| 18168 | else |
| 18169 | echo "$as_me: failed program was:" >&5 |
| 18170 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18171 | |
| 18172 | ac_cv_member_struct_stat_st_gen=no |
| 18173 | fi |
| 18174 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18175 | fi |
| 18176 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18177 | fi |
| 18178 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5 |
| 18179 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6 |
| 18180 | if test $ac_cv_member_struct_stat_st_gen = yes; then |
| 18181 | |
| 18182 | cat >>confdefs.h <<_ACEOF |
| 18183 | #define HAVE_STRUCT_STAT_ST_GEN 1 |
| 18184 | _ACEOF |
| 18185 | |
| 18186 | |
| 18187 | fi |
| 18188 | |
| 18189 | echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5 |
| 18190 | echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6 |
| 18191 | if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then |
| 18192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18193 | else |
| 18194 | cat >conftest.$ac_ext <<_ACEOF |
| 18195 | /* confdefs.h. */ |
| 18196 | _ACEOF |
| 18197 | cat confdefs.h >>conftest.$ac_ext |
| 18198 | cat >>conftest.$ac_ext <<_ACEOF |
| 18199 | /* end confdefs.h. */ |
| 18200 | $ac_includes_default |
| 18201 | int |
| 18202 | main () |
| 18203 | { |
| 18204 | static struct stat ac_aggr; |
| 18205 | if (ac_aggr.st_birthtime) |
| 18206 | return 0; |
| 18207 | ; |
| 18208 | return 0; |
| 18209 | } |
| 18210 | _ACEOF |
| 18211 | rm -f conftest.$ac_objext |
| 18212 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18213 | (eval $ac_compile) 2>conftest.er1 |
| 18214 | ac_status=$? |
| 18215 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18216 | rm -f conftest.er1 |
| 18217 | cat conftest.err >&5 |
| 18218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18219 | (exit $ac_status); } && |
| 18220 | { ac_try='test -z "$ac_c_werror_flag" |
| 18221 | || test ! -s conftest.err' |
| 18222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18223 | (eval $ac_try) 2>&5 |
| 18224 | ac_status=$? |
| 18225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18226 | (exit $ac_status); }; } && |
| 18227 | { ac_try='test -s conftest.$ac_objext' |
| 18228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18229 | (eval $ac_try) 2>&5 |
| 18230 | ac_status=$? |
| 18231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18232 | (exit $ac_status); }; }; then |
| 18233 | ac_cv_member_struct_stat_st_birthtime=yes |
| 18234 | else |
| 18235 | echo "$as_me: failed program was:" >&5 |
| 18236 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18237 | |
| 18238 | cat >conftest.$ac_ext <<_ACEOF |
| 18239 | /* confdefs.h. */ |
| 18240 | _ACEOF |
| 18241 | cat confdefs.h >>conftest.$ac_ext |
| 18242 | cat >>conftest.$ac_ext <<_ACEOF |
| 18243 | /* end confdefs.h. */ |
| 18244 | $ac_includes_default |
| 18245 | int |
| 18246 | main () |
| 18247 | { |
| 18248 | static struct stat ac_aggr; |
| 18249 | if (sizeof ac_aggr.st_birthtime) |
| 18250 | return 0; |
| 18251 | ; |
| 18252 | return 0; |
| 18253 | } |
| 18254 | _ACEOF |
| 18255 | rm -f conftest.$ac_objext |
| 18256 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18257 | (eval $ac_compile) 2>conftest.er1 |
| 18258 | ac_status=$? |
| 18259 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18260 | rm -f conftest.er1 |
| 18261 | cat conftest.err >&5 |
| 18262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18263 | (exit $ac_status); } && |
| 18264 | { ac_try='test -z "$ac_c_werror_flag" |
| 18265 | || test ! -s conftest.err' |
| 18266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18267 | (eval $ac_try) 2>&5 |
| 18268 | ac_status=$? |
| 18269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18270 | (exit $ac_status); }; } && |
| 18271 | { ac_try='test -s conftest.$ac_objext' |
| 18272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18273 | (eval $ac_try) 2>&5 |
| 18274 | ac_status=$? |
| 18275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18276 | (exit $ac_status); }; }; then |
| 18277 | ac_cv_member_struct_stat_st_birthtime=yes |
| 18278 | else |
| 18279 | echo "$as_me: failed program was:" >&5 |
| 18280 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18281 | |
| 18282 | ac_cv_member_struct_stat_st_birthtime=no |
| 18283 | fi |
| 18284 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18285 | fi |
| 18286 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18287 | fi |
| 18288 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5 |
| 18289 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6 |
| 18290 | if test $ac_cv_member_struct_stat_st_birthtime = yes; then |
| 18291 | |
| 18292 | cat >>confdefs.h <<_ACEOF |
| 18293 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 |
| 18294 | _ACEOF |
| 18295 | |
| 18296 | |
| 18297 | fi |
| 18298 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18299 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 18300 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 |
| 18301 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 18302 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 18303 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18304 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18305 | /* confdefs.h. */ |
| 18306 | _ACEOF |
| 18307 | cat confdefs.h >>conftest.$ac_ext |
| 18308 | cat >>conftest.$ac_ext <<_ACEOF |
| 18309 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18310 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18311 | int |
| 18312 | main () |
| 18313 | { |
| 18314 | static struct stat ac_aggr; |
| 18315 | if (ac_aggr.st_blocks) |
| 18316 | return 0; |
| 18317 | ; |
| 18318 | return 0; |
| 18319 | } |
| 18320 | _ACEOF |
| 18321 | rm -f conftest.$ac_objext |
| 18322 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18323 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18324 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18325 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18326 | rm -f conftest.er1 |
| 18327 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18329 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18330 | { ac_try='test -z "$ac_c_werror_flag" |
| 18331 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18333 | (eval $ac_try) 2>&5 |
| 18334 | ac_status=$? |
| 18335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18336 | (exit $ac_status); }; } && |
| 18337 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18339 | (eval $ac_try) 2>&5 |
| 18340 | ac_status=$? |
| 18341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18342 | (exit $ac_status); }; }; then |
| 18343 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18344 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18345 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18346 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18347 | |
| 18348 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18349 | /* confdefs.h. */ |
| 18350 | _ACEOF |
| 18351 | cat confdefs.h >>conftest.$ac_ext |
| 18352 | cat >>conftest.$ac_ext <<_ACEOF |
| 18353 | /* end confdefs.h. */ |
| 18354 | $ac_includes_default |
| 18355 | int |
| 18356 | main () |
| 18357 | { |
| 18358 | static struct stat ac_aggr; |
| 18359 | if (sizeof ac_aggr.st_blocks) |
| 18360 | return 0; |
| 18361 | ; |
| 18362 | return 0; |
| 18363 | } |
| 18364 | _ACEOF |
| 18365 | rm -f conftest.$ac_objext |
| 18366 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18367 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18368 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18369 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18370 | rm -f conftest.er1 |
| 18371 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18373 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18374 | { ac_try='test -z "$ac_c_werror_flag" |
| 18375 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18377 | (eval $ac_try) 2>&5 |
| 18378 | ac_status=$? |
| 18379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18380 | (exit $ac_status); }; } && |
| 18381 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18383 | (eval $ac_try) 2>&5 |
| 18384 | ac_status=$? |
| 18385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18386 | (exit $ac_status); }; }; then |
| 18387 | ac_cv_member_struct_stat_st_blocks=yes |
| 18388 | else |
| 18389 | echo "$as_me: failed program was:" >&5 |
| 18390 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18391 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18392 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18393 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18394 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18395 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18396 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18397 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18398 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 18399 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 |
| 18400 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18401 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18402 | cat >>confdefs.h <<_ACEOF |
| 18403 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 18404 | _ACEOF |
| 18405 | |
| 18406 | |
| 18407 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 18408 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18409 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 18410 | |
| 18411 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18412 | case $LIBOBJS in |
| 18413 | "fileblocks.$ac_objext" | \ |
| 18414 | *" fileblocks.$ac_objext" | \ |
| 18415 | "fileblocks.$ac_objext "* | \ |
| 18416 | *" fileblocks.$ac_objext "* ) ;; |
| 18417 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;; |
| 18418 | esac |
| 18419 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 18420 | fi |
| 18421 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18422 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18423 | |
| 18424 | echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 18425 | echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6 |
| 18426 | if test "${ac_cv_header_time_altzone+set}" = set; then |
| 18427 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18428 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18429 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18430 | /* confdefs.h. */ |
| 18431 | _ACEOF |
| 18432 | cat confdefs.h >>conftest.$ac_ext |
| 18433 | cat >>conftest.$ac_ext <<_ACEOF |
| 18434 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18435 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18436 | int |
| 18437 | main () |
| 18438 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18439 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18440 | ; |
| 18441 | return 0; |
| 18442 | } |
| 18443 | _ACEOF |
| 18444 | rm -f conftest.$ac_objext |
| 18445 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18446 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18447 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18448 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18449 | rm -f conftest.er1 |
| 18450 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18452 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18453 | { ac_try='test -z "$ac_c_werror_flag" |
| 18454 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18456 | (eval $ac_try) 2>&5 |
| 18457 | ac_status=$? |
| 18458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18459 | (exit $ac_status); }; } && |
| 18460 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18462 | (eval $ac_try) 2>&5 |
| 18463 | ac_status=$? |
| 18464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18465 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18466 | ac_cv_header_time_altzone=yes |
| 18467 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18468 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18469 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18470 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18471 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18472 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18473 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18474 | fi |
| 18475 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18476 | echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 18477 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18478 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18479 | |
| 18480 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18481 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18482 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18483 | |
| 18484 | fi |
| 18485 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 18486 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18487 | echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 18488 | echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 18489 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18490 | /* confdefs.h. */ |
| 18491 | _ACEOF |
| 18492 | cat confdefs.h >>conftest.$ac_ext |
| 18493 | cat >>conftest.$ac_ext <<_ACEOF |
| 18494 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18495 | |
| 18496 | #include <sys/types.h> |
| 18497 | #include <sys/select.h> |
| 18498 | #include <sys/time.h> |
| 18499 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18500 | int |
| 18501 | main () |
| 18502 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18503 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18504 | ; |
| 18505 | return 0; |
| 18506 | } |
| 18507 | _ACEOF |
| 18508 | rm -f conftest.$ac_objext |
| 18509 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18510 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18511 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18512 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18513 | rm -f conftest.er1 |
| 18514 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18516 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18517 | { ac_try='test -z "$ac_c_werror_flag" |
| 18518 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18520 | (eval $ac_try) 2>&5 |
| 18521 | ac_status=$? |
| 18522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18523 | (exit $ac_status); }; } && |
| 18524 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18526 | (eval $ac_try) 2>&5 |
| 18527 | ac_status=$? |
| 18528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18529 | (exit $ac_status); }; }; then |
| 18530 | |
| 18531 | |
| 18532 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18533 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18534 | _ACEOF |
| 18535 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 18536 | was_it_defined=yes |
| 18537 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 18538 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18539 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18540 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18541 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18542 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18543 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18544 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 18545 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18546 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18547 | echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 18548 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6 |
| 18549 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
| 18550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18551 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18552 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18553 | /* confdefs.h. */ |
| 18554 | _ACEOF |
| 18555 | cat confdefs.h >>conftest.$ac_ext |
| 18556 | cat >>conftest.$ac_ext <<_ACEOF |
| 18557 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18558 | |
| 18559 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18560 | int |
| 18561 | main () |
| 18562 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18563 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18564 | ; |
| 18565 | return 0; |
| 18566 | } |
| 18567 | _ACEOF |
| 18568 | rm -f conftest.$ac_objext |
| 18569 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18570 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18571 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18572 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18573 | rm -f conftest.er1 |
| 18574 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18576 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18577 | { ac_try='test -z "$ac_c_werror_flag" |
| 18578 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18580 | (eval $ac_try) 2>&5 |
| 18581 | ac_status=$? |
| 18582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18583 | (exit $ac_status); }; } && |
| 18584 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18586 | (eval $ac_try) 2>&5 |
| 18587 | ac_status=$? |
| 18588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18589 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18590 | ac_cv_struct_addrinfo=yes |
| 18591 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18592 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18593 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18594 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18595 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18596 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18597 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18598 | fi |
| 18599 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18600 | echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 18601 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18602 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18603 | |
| 18604 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18605 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18606 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18607 | |
| 18608 | fi |
| 18609 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18610 | echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 18611 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6 |
| 18612 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
| 18613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18614 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18615 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18616 | /* confdefs.h. */ |
| 18617 | _ACEOF |
| 18618 | cat confdefs.h >>conftest.$ac_ext |
| 18619 | cat >>conftest.$ac_ext <<_ACEOF |
| 18620 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18621 | |
| 18622 | # include <sys/types.h> |
| 18623 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18624 | int |
| 18625 | main () |
| 18626 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18627 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18628 | ; |
| 18629 | return 0; |
| 18630 | } |
| 18631 | _ACEOF |
| 18632 | rm -f conftest.$ac_objext |
| 18633 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18634 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18635 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18636 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18637 | rm -f conftest.er1 |
| 18638 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18640 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18641 | { ac_try='test -z "$ac_c_werror_flag" |
| 18642 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18644 | (eval $ac_try) 2>&5 |
| 18645 | ac_status=$? |
| 18646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18647 | (exit $ac_status); }; } && |
| 18648 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18650 | (eval $ac_try) 2>&5 |
| 18651 | ac_status=$? |
| 18652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18653 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18654 | ac_cv_struct_sockaddr_storage=yes |
| 18655 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18656 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18657 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18658 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18659 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18660 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18661 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18662 | fi |
| 18663 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18664 | echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 18665 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18666 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18667 | |
| 18668 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18669 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18670 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18671 | |
| 18672 | fi |
| 18673 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18674 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18675 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18676 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18677 | echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 18678 | echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 |
| 18679 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
| 18680 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18681 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18682 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18683 | /* confdefs.h. */ |
| 18684 | _ACEOF |
| 18685 | cat confdefs.h >>conftest.$ac_ext |
| 18686 | cat >>conftest.$ac_ext <<_ACEOF |
| 18687 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18688 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18689 | int |
| 18690 | main () |
| 18691 | { |
| 18692 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 18693 | test_array [0] = 0 |
| 18694 | |
| 18695 | ; |
| 18696 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18697 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18698 | _ACEOF |
| 18699 | rm -f conftest.$ac_objext |
| 18700 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18701 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18702 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18703 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18704 | rm -f conftest.er1 |
| 18705 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18707 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18708 | { ac_try='test -z "$ac_c_werror_flag" |
| 18709 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18711 | (eval $ac_try) 2>&5 |
| 18712 | ac_status=$? |
| 18713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18714 | (exit $ac_status); }; } && |
| 18715 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18717 | (eval $ac_try) 2>&5 |
| 18718 | ac_status=$? |
| 18719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18720 | (exit $ac_status); }; }; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18721 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18722 | else |
| 18723 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18724 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18725 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18726 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18727 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18728 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18729 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18730 | echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 18731 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18732 | 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] | 18733 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18734 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18735 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18736 | |
| 18737 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18738 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18739 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 18740 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 18741 | if test "${ac_cv_c_const+set}" = set; then |
| 18742 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18743 | else |
| 18744 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18745 | /* confdefs.h. */ |
| 18746 | _ACEOF |
| 18747 | cat confdefs.h >>conftest.$ac_ext |
| 18748 | cat >>conftest.$ac_ext <<_ACEOF |
| 18749 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18750 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18751 | int |
| 18752 | main () |
| 18753 | { |
| 18754 | /* FIXME: Include the comments suggested by Paul. */ |
| 18755 | #ifndef __cplusplus |
| 18756 | /* Ultrix mips cc rejects this. */ |
| 18757 | typedef int charset[2]; |
| 18758 | const charset x; |
| 18759 | /* SunOS 4.1.1 cc rejects this. */ |
| 18760 | char const *const *ccp; |
| 18761 | char **p; |
| 18762 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 18763 | struct point {int x, y;}; |
| 18764 | static struct point const zero = {0,0}; |
| 18765 | /* AIX XL C 1.02.0.0 rejects this. |
| 18766 | It does not let you subtract one const X* pointer from another in |
| 18767 | an arm of an if-expression whose if-part is not a constant |
| 18768 | expression */ |
| 18769 | const char *g = "string"; |
| 18770 | ccp = &g + (g ? g-g : 0); |
| 18771 | /* HPUX 7.0 cc rejects these. */ |
| 18772 | ++ccp; |
| 18773 | p = (char**) ccp; |
| 18774 | ccp = (char const *const *) p; |
| 18775 | { /* SCO 3.2v4 cc rejects this. */ |
| 18776 | char *t; |
| 18777 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18778 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18779 | *t++ = 0; |
| 18780 | } |
| 18781 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 18782 | int x[] = {25, 17}; |
| 18783 | const int *foo = &x[0]; |
| 18784 | ++foo; |
| 18785 | } |
| 18786 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 18787 | typedef const int *iptr; |
| 18788 | iptr p = 0; |
| 18789 | ++p; |
| 18790 | } |
| 18791 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 18792 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 18793 | struct s { int j; const int *ap[3]; }; |
| 18794 | struct s *b; b->j = 5; |
| 18795 | } |
| 18796 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 18797 | const int foo = 10; |
| 18798 | } |
| 18799 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18800 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18801 | ; |
| 18802 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18803 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18804 | _ACEOF |
| 18805 | rm -f conftest.$ac_objext |
| 18806 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18807 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18808 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18809 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18810 | rm -f conftest.er1 |
| 18811 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18813 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18814 | { ac_try='test -z "$ac_c_werror_flag" |
| 18815 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18817 | (eval $ac_try) 2>&5 |
| 18818 | ac_status=$? |
| 18819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18820 | (exit $ac_status); }; } && |
| 18821 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18823 | (eval $ac_try) 2>&5 |
| 18824 | ac_status=$? |
| 18825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18826 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18827 | ac_cv_c_const=yes |
| 18828 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18829 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18830 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18831 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18832 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18833 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18834 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18835 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18836 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 18837 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18838 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18839 | |
| 18840 | cat >>confdefs.h <<\_ACEOF |
| 18841 | #define const |
| 18842 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18843 | |
| 18844 | fi |
| 18845 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18846 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 18847 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18848 | echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 18849 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
| 18850 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18851 | /* confdefs.h. */ |
| 18852 | _ACEOF |
| 18853 | cat confdefs.h >>conftest.$ac_ext |
| 18854 | cat >>conftest.$ac_ext <<_ACEOF |
| 18855 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18856 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18857 | int |
| 18858 | main () |
| 18859 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18860 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18861 | ; |
| 18862 | return 0; |
| 18863 | } |
| 18864 | _ACEOF |
| 18865 | rm -f conftest.$ac_objext |
| 18866 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18867 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18868 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18869 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18870 | rm -f conftest.er1 |
| 18871 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18873 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18874 | { ac_try='test -z "$ac_c_werror_flag" |
| 18875 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18877 | (eval $ac_try) 2>&5 |
| 18878 | ac_status=$? |
| 18879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18880 | (exit $ac_status); }; } && |
| 18881 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18883 | (eval $ac_try) 2>&5 |
| 18884 | ac_status=$? |
| 18885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18886 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 18887 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18888 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18889 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18890 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18891 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18892 | |
| 18893 | cat >>confdefs.h <<\_ACEOF |
| 18894 | #define volatile |
| 18895 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18896 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 18897 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18898 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18899 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18900 | echo "$as_me:$LINENO: result: $works" >&5 |
| 18901 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18902 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 18903 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18904 | echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 18905 | echo $ECHO_N "checking for working signed char... $ECHO_C" >&6 |
| 18906 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18907 | /* confdefs.h. */ |
| 18908 | _ACEOF |
| 18909 | cat confdefs.h >>conftest.$ac_ext |
| 18910 | cat >>conftest.$ac_ext <<_ACEOF |
| 18911 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 18912 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18913 | int |
| 18914 | main () |
| 18915 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18916 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18917 | ; |
| 18918 | return 0; |
| 18919 | } |
| 18920 | _ACEOF |
| 18921 | rm -f conftest.$ac_objext |
| 18922 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18923 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18924 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18925 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18926 | rm -f conftest.er1 |
| 18927 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18929 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18930 | { ac_try='test -z "$ac_c_werror_flag" |
| 18931 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18933 | (eval $ac_try) 2>&5 |
| 18934 | ac_status=$? |
| 18935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18936 | (exit $ac_status); }; } && |
| 18937 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18939 | (eval $ac_try) 2>&5 |
| 18940 | ac_status=$? |
| 18941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18942 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 18943 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 18944 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18945 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18946 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18947 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18948 | |
| 18949 | cat >>confdefs.h <<\_ACEOF |
| 18950 | #define signed |
| 18951 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18952 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 18953 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18954 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18955 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18956 | echo "$as_me:$LINENO: result: $works" >&5 |
| 18957 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18958 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 18959 | have_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18960 | echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 18961 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6 |
| 18962 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18963 | /* confdefs.h. */ |
| 18964 | _ACEOF |
| 18965 | cat confdefs.h >>conftest.$ac_ext |
| 18966 | cat >>conftest.$ac_ext <<_ACEOF |
| 18967 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18968 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18969 | int |
| 18970 | main () |
| 18971 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18972 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18973 | ; |
| 18974 | return 0; |
| 18975 | } |
| 18976 | _ACEOF |
| 18977 | rm -f conftest.$ac_objext |
| 18978 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18979 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18980 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18981 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18982 | rm -f conftest.er1 |
| 18983 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18985 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18986 | { ac_try='test -z "$ac_c_werror_flag" |
| 18987 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18989 | (eval $ac_try) 2>&5 |
| 18990 | ac_status=$? |
| 18991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18992 | (exit $ac_status); }; } && |
| 18993 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18995 | (eval $ac_try) 2>&5 |
| 18996 | ac_status=$? |
| 18997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18998 | (exit $ac_status); }; }; then |
| 18999 | |
| 19000 | |
| 19001 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19002 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19003 | _ACEOF |
| 19004 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 19005 | have_prototypes=yes |
| 19006 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 19007 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19008 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19009 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19010 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19011 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19012 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19013 | echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 19014 | echo "${ECHO_T}$have_prototypes" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19015 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 19016 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19017 | echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 19018 | echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6 |
| 19019 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19020 | /* confdefs.h. */ |
| 19021 | _ACEOF |
| 19022 | cat confdefs.h >>conftest.$ac_ext |
| 19023 | cat >>conftest.$ac_ext <<_ACEOF |
| 19024 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19025 | |
| 19026 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 19027 | int foo(int x, ...) { |
| 19028 | va_list va; |
| 19029 | va_start(va, x); |
| 19030 | va_arg(va, int); |
| 19031 | va_arg(va, char *); |
| 19032 | va_arg(va, double); |
| 19033 | return 0; |
| 19034 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19035 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19036 | int |
| 19037 | main () |
| 19038 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 19039 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19040 | ; |
| 19041 | return 0; |
| 19042 | } |
| 19043 | _ACEOF |
| 19044 | rm -f conftest.$ac_objext |
| 19045 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19046 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19047 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19048 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19049 | rm -f conftest.er1 |
| 19050 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19052 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19053 | { ac_try='test -z "$ac_c_werror_flag" |
| 19054 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19056 | (eval $ac_try) 2>&5 |
| 19057 | ac_status=$? |
| 19058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19059 | (exit $ac_status); }; } && |
| 19060 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19062 | (eval $ac_try) 2>&5 |
| 19063 | ac_status=$? |
| 19064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19065 | (exit $ac_status); }; }; then |
| 19066 | |
| 19067 | |
| 19068 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19069 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19070 | _ACEOF |
| 19071 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 19072 | works=yes |
| 19073 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 19074 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19075 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19076 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19077 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19078 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19079 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19080 | echo "$as_me:$LINENO: result: $works" >&5 |
| 19081 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19082 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 19083 | # check for socketpair |
| 19084 | echo "$as_me:$LINENO: checking for socketpair" >&5 |
| 19085 | echo $ECHO_N "checking for socketpair... $ECHO_C" >&6 |
| 19086 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 19087 | /* confdefs.h. */ |
| 19088 | _ACEOF |
| 19089 | cat confdefs.h >>conftest.$ac_ext |
| 19090 | cat >>conftest.$ac_ext <<_ACEOF |
| 19091 | /* end confdefs.h. */ |
| 19092 | |
| 19093 | #include <sys/types.h> |
| 19094 | #include <sys/socket.h> |
| 19095 | |
| 19096 | int |
| 19097 | main () |
| 19098 | { |
| 19099 | void *x=socketpair |
| 19100 | ; |
| 19101 | return 0; |
| 19102 | } |
| 19103 | _ACEOF |
| 19104 | rm -f conftest.$ac_objext |
| 19105 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19106 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 19107 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19108 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19109 | rm -f conftest.er1 |
| 19110 | cat conftest.err >&5 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 19111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19112 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19113 | { ac_try='test -z "$ac_c_werror_flag" |
| 19114 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19116 | (eval $ac_try) 2>&5 |
| 19117 | ac_status=$? |
| 19118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19119 | (exit $ac_status); }; } && |
| 19120 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 19121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19122 | (eval $ac_try) 2>&5 |
| 19123 | ac_status=$? |
| 19124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19125 | (exit $ac_status); }; }; then |
| 19126 | |
| 19127 | cat >>confdefs.h <<\_ACEOF |
| 19128 | #define HAVE_SOCKETPAIR 1 |
| 19129 | _ACEOF |
| 19130 | |
| 19131 | echo "$as_me:$LINENO: result: yes" >&5 |
| 19132 | echo "${ECHO_T}yes" >&6 |
| 19133 | else |
| 19134 | echo "$as_me: failed program was:" >&5 |
| 19135 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19136 | |
| 19137 | echo "$as_me:$LINENO: result: no" >&5 |
| 19138 | echo "${ECHO_T}no" >&6 |
| 19139 | |
| 19140 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19141 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 19142 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19143 | # check if sockaddr has sa_len member |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19144 | echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 19145 | echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6 |
| 19146 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19147 | /* confdefs.h. */ |
| 19148 | _ACEOF |
| 19149 | cat confdefs.h >>conftest.$ac_ext |
| 19150 | cat >>conftest.$ac_ext <<_ACEOF |
| 19151 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19152 | #include <sys/types.h> |
| 19153 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19154 | int |
| 19155 | main () |
| 19156 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19157 | struct sockaddr x; |
| 19158 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19159 | ; |
| 19160 | return 0; |
| 19161 | } |
| 19162 | _ACEOF |
| 19163 | rm -f conftest.$ac_objext |
| 19164 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19165 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19166 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19167 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19168 | rm -f conftest.er1 |
| 19169 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19171 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19172 | { ac_try='test -z "$ac_c_werror_flag" |
| 19173 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19175 | (eval $ac_try) 2>&5 |
| 19176 | ac_status=$? |
| 19177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19178 | (exit $ac_status); }; } && |
| 19179 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19181 | (eval $ac_try) 2>&5 |
| 19182 | ac_status=$? |
| 19183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19184 | (exit $ac_status); }; }; then |
| 19185 | echo "$as_me:$LINENO: result: yes" >&5 |
| 19186 | echo "${ECHO_T}yes" >&6 |
| 19187 | |
| 19188 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19189 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19190 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19191 | |
| 19192 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19193 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19194 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19195 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19196 | echo "$as_me:$LINENO: result: no" >&5 |
| 19197 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19198 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19199 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19200 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 19201 | va_list_is_array=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19202 | echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 19203 | echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6 |
| 19204 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19205 | /* confdefs.h. */ |
| 19206 | _ACEOF |
| 19207 | cat confdefs.h >>conftest.$ac_ext |
| 19208 | cat >>conftest.$ac_ext <<_ACEOF |
| 19209 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19210 | |
| 19211 | #ifdef HAVE_STDARG_PROTOTYPES |
| 19212 | #include <stdarg.h> |
| 19213 | #else |
| 19214 | #include <varargs.h> |
| 19215 | #endif |
| 19216 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19217 | int |
| 19218 | main () |
| 19219 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19220 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19221 | ; |
| 19222 | return 0; |
| 19223 | } |
| 19224 | _ACEOF |
| 19225 | rm -f conftest.$ac_objext |
| 19226 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19227 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19228 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19229 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19230 | rm -f conftest.er1 |
| 19231 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19233 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19234 | { ac_try='test -z "$ac_c_werror_flag" |
| 19235 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19237 | (eval $ac_try) 2>&5 |
| 19238 | ac_status=$? |
| 19239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19240 | (exit $ac_status); }; } && |
| 19241 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19243 | (eval $ac_try) 2>&5 |
| 19244 | ac_status=$? |
| 19245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19246 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19247 | : |
| 19248 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19249 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19250 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19251 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19252 | |
| 19253 | |
| 19254 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19255 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19256 | _ACEOF |
| 19257 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 19258 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 19259 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19260 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19261 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19262 | echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 19263 | echo "${ECHO_T}$va_list_is_array" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19264 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19265 | # 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] | 19266 | |
| 19267 | |
| 19268 | |
| 19269 | echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 19270 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6 |
| 19271 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
| 19272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +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 | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19280 | /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r. |
| 19281 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19282 | #define gethostbyname_r innocuous_gethostbyname_r |
| 19283 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19284 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19285 | which can conflict with char gethostbyname_r (); below. |
| 19286 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19287 | <limits.h> exists even on freestanding compilers. */ |
| 19288 | |
| 19289 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19290 | # include <limits.h> |
| 19291 | #else |
| 19292 | # include <assert.h> |
| 19293 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19294 | |
| 19295 | #undef gethostbyname_r |
| 19296 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19297 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19298 | #ifdef __cplusplus |
| 19299 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19300 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19301 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19302 | /* 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] | 19303 | builtin and then its argument prototype would still apply. */ |
| 19304 | char gethostbyname_r (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19305 | /* The GNU C library defines this for functions which it implements |
| 19306 | to always fail with ENOSYS. Some functions are actually named |
| 19307 | something starting with __ and the normal name is an alias. */ |
| 19308 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 19309 | choke me |
| 19310 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19311 | char (*f) () = gethostbyname_r; |
| 19312 | #endif |
| 19313 | #ifdef __cplusplus |
| 19314 | } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19315 | #endif |
| 19316 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19317 | int |
| 19318 | main () |
| 19319 | { |
| 19320 | return f != gethostbyname_r; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19321 | ; |
| 19322 | return 0; |
| 19323 | } |
| 19324 | _ACEOF |
| 19325 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19326 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19327 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19328 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19329 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19330 | rm -f conftest.er1 |
| 19331 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19333 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19334 | { ac_try='test -z "$ac_c_werror_flag" |
| 19335 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19337 | (eval $ac_try) 2>&5 |
| 19338 | ac_status=$? |
| 19339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19340 | (exit $ac_status); }; } && |
| 19341 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19343 | (eval $ac_try) 2>&5 |
| 19344 | ac_status=$? |
| 19345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19346 | (exit $ac_status); }; }; then |
| 19347 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19348 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19349 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19350 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19351 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19352 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19353 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19354 | rm -f conftest.err conftest.$ac_objext \ |
| 19355 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19356 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19357 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 19358 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6 |
| 19359 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19360 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19361 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19362 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19363 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19364 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19365 | echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 19366 | 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] | 19367 | OLD_CFLAGS=$CFLAGS |
| 19368 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19369 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19370 | /* confdefs.h. */ |
| 19371 | _ACEOF |
| 19372 | cat confdefs.h >>conftest.$ac_ext |
| 19373 | cat >>conftest.$ac_ext <<_ACEOF |
| 19374 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19375 | |
| 19376 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19377 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19378 | int |
| 19379 | main () |
| 19380 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19381 | |
| 19382 | char *name; |
| 19383 | struct hostent *he, *res; |
| 19384 | char buffer[2048]; |
| 19385 | int buflen = 2048; |
| 19386 | int h_errnop; |
| 19387 | |
| 19388 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19389 | |
| 19390 | ; |
| 19391 | return 0; |
| 19392 | } |
| 19393 | _ACEOF |
| 19394 | rm -f conftest.$ac_objext |
| 19395 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19396 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19397 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19398 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19399 | rm -f conftest.er1 |
| 19400 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19402 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19403 | { ac_try='test -z "$ac_c_werror_flag" |
| 19404 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19406 | (eval $ac_try) 2>&5 |
| 19407 | ac_status=$? |
| 19408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19409 | (exit $ac_status); }; } && |
| 19410 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19412 | (eval $ac_try) 2>&5 |
| 19413 | ac_status=$? |
| 19414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19415 | (exit $ac_status); }; }; then |
| 19416 | |
| 19417 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 19418 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19419 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 19420 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19421 | |
| 19422 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19423 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19424 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19425 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19426 | echo "$as_me:$LINENO: result: yes" >&5 |
| 19427 | echo "${ECHO_T}yes" >&6 |
| 19428 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19429 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19430 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19431 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19432 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19433 | |
| 19434 | echo "$as_me:$LINENO: result: no" >&5 |
| 19435 | echo "${ECHO_T}no" >&6 |
| 19436 | echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 19437 | echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6 |
| 19438 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19439 | /* confdefs.h. */ |
| 19440 | _ACEOF |
| 19441 | cat confdefs.h >>conftest.$ac_ext |
| 19442 | cat >>conftest.$ac_ext <<_ACEOF |
| 19443 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19444 | |
| 19445 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19446 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19447 | int |
| 19448 | main () |
| 19449 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19450 | |
| 19451 | char *name; |
| 19452 | struct hostent *he; |
| 19453 | char buffer[2048]; |
| 19454 | int buflen = 2048; |
| 19455 | int h_errnop; |
| 19456 | |
| 19457 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19458 | |
| 19459 | ; |
| 19460 | return 0; |
| 19461 | } |
| 19462 | _ACEOF |
| 19463 | rm -f conftest.$ac_objext |
| 19464 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19465 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19466 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19467 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19468 | rm -f conftest.er1 |
| 19469 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19471 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19472 | { ac_try='test -z "$ac_c_werror_flag" |
| 19473 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19475 | (eval $ac_try) 2>&5 |
| 19476 | ac_status=$? |
| 19477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19478 | (exit $ac_status); }; } && |
| 19479 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19481 | (eval $ac_try) 2>&5 |
| 19482 | ac_status=$? |
| 19483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19484 | (exit $ac_status); }; }; then |
| 19485 | |
| 19486 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 19487 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19488 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 19489 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19490 | |
| 19491 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19492 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19493 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19494 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19495 | echo "$as_me:$LINENO: result: yes" >&5 |
| 19496 | echo "${ECHO_T}yes" >&6 |
| 19497 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19498 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19499 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19500 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19501 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19502 | |
| 19503 | echo "$as_me:$LINENO: result: no" >&5 |
| 19504 | echo "${ECHO_T}no" >&6 |
| 19505 | echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 19506 | echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6 |
| 19507 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19508 | /* confdefs.h. */ |
| 19509 | _ACEOF |
| 19510 | cat confdefs.h >>conftest.$ac_ext |
| 19511 | cat >>conftest.$ac_ext <<_ACEOF |
| 19512 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19513 | |
| 19514 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19515 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19516 | int |
| 19517 | main () |
| 19518 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19519 | |
| 19520 | char *name; |
| 19521 | struct hostent *he; |
| 19522 | struct hostent_data data; |
| 19523 | |
| 19524 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19525 | |
| 19526 | ; |
| 19527 | return 0; |
| 19528 | } |
| 19529 | _ACEOF |
| 19530 | rm -f conftest.$ac_objext |
| 19531 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19532 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19533 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19534 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19535 | rm -f conftest.er1 |
| 19536 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19538 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19539 | { ac_try='test -z "$ac_c_werror_flag" |
| 19540 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19542 | (eval $ac_try) 2>&5 |
| 19543 | ac_status=$? |
| 19544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19545 | (exit $ac_status); }; } && |
| 19546 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19548 | (eval $ac_try) 2>&5 |
| 19549 | ac_status=$? |
| 19550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19551 | (exit $ac_status); }; }; then |
| 19552 | |
| 19553 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 19554 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19555 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 19556 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19557 | |
| 19558 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19559 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19560 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19561 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19562 | echo "$as_me:$LINENO: result: yes" >&5 |
| 19563 | echo "${ECHO_T}yes" >&6 |
| 19564 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19565 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19566 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19567 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19568 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19569 | |
| 19570 | echo "$as_me:$LINENO: result: no" >&5 |
| 19571 | echo "${ECHO_T}no" >&6 |
| 19572 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19573 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19574 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19575 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19576 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19577 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19578 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19579 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19580 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19581 | CFLAGS=$OLD_CFLAGS |
| 19582 | |
| 19583 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19584 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19585 | |
| 19586 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 19587 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19588 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19589 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19590 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 19591 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 19592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19593 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19594 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19595 | /* confdefs.h. */ |
| 19596 | _ACEOF |
| 19597 | cat confdefs.h >>conftest.$ac_ext |
| 19598 | cat >>conftest.$ac_ext <<_ACEOF |
| 19599 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19600 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19601 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19602 | #define $ac_func innocuous_$ac_func |
| 19603 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19604 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19605 | which can conflict with char $ac_func (); below. |
| 19606 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19607 | <limits.h> exists even on freestanding compilers. */ |
| 19608 | |
| 19609 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19610 | # include <limits.h> |
| 19611 | #else |
| 19612 | # include <assert.h> |
| 19613 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19614 | |
| 19615 | #undef $ac_func |
| 19616 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19617 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19618 | #ifdef __cplusplus |
| 19619 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19620 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19621 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19622 | /* 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] | 19623 | builtin and then its argument prototype would still apply. */ |
| 19624 | char $ac_func (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19625 | /* The GNU C library defines this for functions which it implements |
| 19626 | to always fail with ENOSYS. Some functions are actually named |
| 19627 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 19628 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19629 | choke me |
| 19630 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19631 | char (*f) () = $ac_func; |
| 19632 | #endif |
| 19633 | #ifdef __cplusplus |
| 19634 | } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19635 | #endif |
| 19636 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19637 | int |
| 19638 | main () |
| 19639 | { |
| 19640 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19641 | ; |
| 19642 | return 0; |
| 19643 | } |
| 19644 | _ACEOF |
| 19645 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19646 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19647 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19648 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19649 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19650 | rm -f conftest.er1 |
| 19651 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19653 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19654 | { ac_try='test -z "$ac_c_werror_flag" |
| 19655 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19657 | (eval $ac_try) 2>&5 |
| 19658 | ac_status=$? |
| 19659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19660 | (exit $ac_status); }; } && |
| 19661 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19663 | (eval $ac_try) 2>&5 |
| 19664 | ac_status=$? |
| 19665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19666 | (exit $ac_status); }; }; then |
| 19667 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19668 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19669 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19670 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19671 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19672 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19673 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19674 | rm -f conftest.err conftest.$ac_objext \ |
| 19675 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19676 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19677 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 19678 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 19679 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 19680 | cat >>confdefs.h <<_ACEOF |
| 19681 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 19682 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19683 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19684 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 19685 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19686 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19687 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19688 | fi |
| 19689 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19690 | |
| 19691 | |
| 19692 | |
| 19693 | |
| 19694 | |
| 19695 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19696 | # checks for system services |
| 19697 | # (none yet) |
| 19698 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19699 | # Linux requires this for correct f.p. operations |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19700 | echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 19701 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6 |
| 19702 | if test "${ac_cv_func___fpu_control+set}" = set; then |
| 19703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 19704 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19705 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19706 | /* confdefs.h. */ |
| 19707 | _ACEOF |
| 19708 | cat confdefs.h >>conftest.$ac_ext |
| 19709 | cat >>conftest.$ac_ext <<_ACEOF |
| 19710 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19711 | /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control. |
| 19712 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19713 | #define __fpu_control innocuous___fpu_control |
| 19714 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 19715 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19716 | which can conflict with char __fpu_control (); below. |
| 19717 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19718 | <limits.h> exists even on freestanding compilers. */ |
| 19719 | |
| 19720 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19721 | # include <limits.h> |
| 19722 | #else |
| 19723 | # include <assert.h> |
| 19724 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19725 | |
| 19726 | #undef __fpu_control |
| 19727 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 19728 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19729 | #ifdef __cplusplus |
| 19730 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19731 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19732 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 19733 | /* 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] | 19734 | builtin and then its argument prototype would still apply. */ |
| 19735 | char __fpu_control (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 19736 | /* The GNU C library defines this for functions which it implements |
| 19737 | to always fail with ENOSYS. Some functions are actually named |
| 19738 | something starting with __ and the normal name is an alias. */ |
| 19739 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 19740 | choke me |
| 19741 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19742 | char (*f) () = __fpu_control; |
| 19743 | #endif |
| 19744 | #ifdef __cplusplus |
| 19745 | } |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 19746 | #endif |
| 19747 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19748 | int |
| 19749 | main () |
| 19750 | { |
| 19751 | return f != __fpu_control; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19752 | ; |
| 19753 | return 0; |
| 19754 | } |
| 19755 | _ACEOF |
| 19756 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19757 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19758 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19759 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19760 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19761 | rm -f conftest.er1 |
| 19762 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19764 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19765 | { ac_try='test -z "$ac_c_werror_flag" |
| 19766 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19768 | (eval $ac_try) 2>&5 |
| 19769 | ac_status=$? |
| 19770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19771 | (exit $ac_status); }; } && |
| 19772 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19774 | (eval $ac_try) 2>&5 |
| 19775 | ac_status=$? |
| 19776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19777 | (exit $ac_status); }; }; then |
| 19778 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 19779 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19780 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19781 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19782 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19783 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 19784 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19785 | rm -f conftest.err conftest.$ac_objext \ |
| 19786 | conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 19787 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19788 | echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 19789 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6 |
| 19790 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 19791 | : |
| 19792 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19793 | |
| 19794 | echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 19795 | echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6 |
| 19796 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
| 19797 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19798 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19799 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 19800 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19801 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19802 | /* confdefs.h. */ |
| 19803 | _ACEOF |
| 19804 | cat confdefs.h >>conftest.$ac_ext |
| 19805 | cat >>conftest.$ac_ext <<_ACEOF |
| 19806 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19807 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 19808 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19809 | #ifdef __cplusplus |
| 19810 | extern "C" |
| 19811 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 19812 | /* 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] | 19813 | builtin and then its argument prototype would still apply. */ |
| 19814 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19815 | int |
| 19816 | main () |
| 19817 | { |
| 19818 | __fpu_control (); |
| 19819 | ; |
| 19820 | return 0; |
| 19821 | } |
| 19822 | _ACEOF |
| 19823 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19824 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19825 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19826 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19827 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19828 | rm -f conftest.er1 |
| 19829 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19831 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19832 | { ac_try='test -z "$ac_c_werror_flag" |
| 19833 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19835 | (eval $ac_try) 2>&5 |
| 19836 | ac_status=$? |
| 19837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19838 | (exit $ac_status); }; } && |
| 19839 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19841 | (eval $ac_try) 2>&5 |
| 19842 | ac_status=$? |
| 19843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19844 | (exit $ac_status); }; }; then |
| 19845 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19846 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19847 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19848 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19849 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19850 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19851 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19852 | rm -f conftest.err conftest.$ac_objext \ |
| 19853 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19854 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19855 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19856 | echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 19857 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6 |
| 19858 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
| 19859 | cat >>confdefs.h <<_ACEOF |
| 19860 | #define HAVE_LIBIEEE 1 |
| 19861 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19862 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 19863 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19864 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19865 | fi |
| 19866 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19867 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 19868 | fi |
| 19869 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19870 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 19871 | # Check for --with-fpectl |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19872 | echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 19873 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6 |
| 19874 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 19875 | # Check whether --with-fpectl or --without-fpectl was given. |
| 19876 | if test "${with_fpectl+set}" = set; then |
| 19877 | withval="$with_fpectl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19878 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 19879 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19880 | then |
| 19881 | |
| 19882 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 19883 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19884 | _ACEOF |
| 19885 | |
| 19886 | echo "$as_me:$LINENO: result: yes" >&5 |
| 19887 | echo "${ECHO_T}yes" >&6 |
| 19888 | else echo "$as_me:$LINENO: result: no" >&5 |
| 19889 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 19890 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19891 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19892 | echo "$as_me:$LINENO: result: no" >&5 |
| 19893 | echo "${ECHO_T}no" >&6 |
| 19894 | fi; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 19895 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19896 | # check for --with-libm=... |
| 19897 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 19898 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 19899 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 19900 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 19901 | *) LIBM=-lm |
| 19902 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19903 | echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 19904 | echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6 |
| 19905 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19906 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 19907 | if test "${with_libm+set}" = set; then |
| 19908 | withval="$with_libm" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19909 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 19910 | if test "$withval" = no |
| 19911 | then LIBM= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19912 | echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 19913 | echo "${ECHO_T}force LIBM empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 19914 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19915 | then LIBM=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19916 | echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 19917 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6 |
| 19918 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 19919 | echo "$as_me: error: proper usage is --with-libm=STRING" >&2;} |
| 19920 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19921 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 19922 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19923 | echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 19924 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6 |
| 19925 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19926 | |
| 19927 | # check for --with-libc=... |
| 19928 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19929 | echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 19930 | echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6 |
| 19931 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19932 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 19933 | if test "${with_libc+set}" = set; then |
| 19934 | withval="$with_libc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19935 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 19936 | if test "$withval" = no |
| 19937 | then LIBC= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19938 | echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 19939 | echo "${ECHO_T}force LIBC empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 19940 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19941 | then LIBC=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19942 | echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 19943 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6 |
| 19944 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 19945 | echo "$as_me: error: proper usage is --with-libc=STRING" >&2;} |
| 19946 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19947 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 19948 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19949 | echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 19950 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6 |
| 19951 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19952 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 19953 | # check for hypot() in math library |
| 19954 | LIBS_SAVE=$LIBS |
| 19955 | LIBS="$LIBS $LIBM" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19956 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 19957 | for ac_func in hypot |
| 19958 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19959 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19960 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19961 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 19962 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 19963 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 19964 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19965 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19966 | /* confdefs.h. */ |
| 19967 | _ACEOF |
| 19968 | cat confdefs.h >>conftest.$ac_ext |
| 19969 | cat >>conftest.$ac_ext <<_ACEOF |
| 19970 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19971 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19972 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19973 | #define $ac_func innocuous_$ac_func |
| 19974 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 19975 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19976 | which can conflict with char $ac_func (); below. |
| 19977 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19978 | <limits.h> exists even on freestanding compilers. */ |
| 19979 | |
| 19980 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19981 | # include <limits.h> |
| 19982 | #else |
| 19983 | # include <assert.h> |
| 19984 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19985 | |
| 19986 | #undef $ac_func |
| 19987 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 19988 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19989 | #ifdef __cplusplus |
| 19990 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19991 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19992 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 19993 | /* 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] | 19994 | builtin and then its argument prototype would still apply. */ |
| 19995 | char $ac_func (); |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 19996 | /* The GNU C library defines this for functions which it implements |
| 19997 | to always fail with ENOSYS. Some functions are actually named |
| 19998 | something starting with __ and the normal name is an alias. */ |
| 19999 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 20000 | choke me |
| 20001 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20002 | char (*f) () = $ac_func; |
| 20003 | #endif |
| 20004 | #ifdef __cplusplus |
| 20005 | } |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 20006 | #endif |
| 20007 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20008 | int |
| 20009 | main () |
| 20010 | { |
| 20011 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20012 | ; |
| 20013 | return 0; |
| 20014 | } |
| 20015 | _ACEOF |
| 20016 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20017 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20018 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20019 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20020 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20021 | rm -f conftest.er1 |
| 20022 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20024 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20025 | { ac_try='test -z "$ac_c_werror_flag" |
| 20026 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20028 | (eval $ac_try) 2>&5 |
| 20029 | ac_status=$? |
| 20030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20031 | (exit $ac_status); }; } && |
| 20032 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20034 | (eval $ac_try) 2>&5 |
| 20035 | ac_status=$? |
| 20036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20037 | (exit $ac_status); }; }; then |
| 20038 | eval "$as_ac_var=yes" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 20039 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20040 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20041 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20042 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20043 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20044 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20045 | rm -f conftest.err conftest.$ac_objext \ |
| 20046 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20047 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20048 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 20049 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 20050 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 20051 | cat >>confdefs.h <<_ACEOF |
| 20052 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 20053 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20054 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20055 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20056 | case $LIBOBJS in |
| 20057 | "$ac_func.$ac_objext" | \ |
| 20058 | *" $ac_func.$ac_objext" | \ |
| 20059 | "$ac_func.$ac_objext "* | \ |
| 20060 | *" $ac_func.$ac_objext "* ) ;; |
| 20061 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; |
| 20062 | esac |
| 20063 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 20064 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 20065 | done |
| 20066 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20067 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 20068 | LIBS=$LIBS_SAVE |
| 20069 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20070 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20071 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 20072 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 20073 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 20074 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 20075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20076 | fi |
| 20077 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 20078 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20079 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20080 | # Is the header compilable? |
| 20081 | echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 20082 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6 |
| 20083 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +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. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20089 | $ac_includes_default |
| 20090 | #include <wchar.h> |
| 20091 | _ACEOF |
| 20092 | rm -f conftest.$ac_objext |
| 20093 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20094 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20095 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20096 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20097 | rm -f conftest.er1 |
| 20098 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20100 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20101 | { ac_try='test -z "$ac_c_werror_flag" |
| 20102 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20104 | (eval $ac_try) 2>&5 |
| 20105 | ac_status=$? |
| 20106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20107 | (exit $ac_status); }; } && |
| 20108 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20110 | (eval $ac_try) 2>&5 |
| 20111 | ac_status=$? |
| 20112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20113 | (exit $ac_status); }; }; then |
| 20114 | ac_header_compiler=yes |
| 20115 | else |
| 20116 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20117 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20118 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20119 | ac_header_compiler=no |
| 20120 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20121 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20122 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 20123 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 20124 | |
| 20125 | # Is the header present? |
| 20126 | echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 20127 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6 |
| 20128 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20129 | /* confdefs.h. */ |
| 20130 | _ACEOF |
| 20131 | cat confdefs.h >>conftest.$ac_ext |
| 20132 | cat >>conftest.$ac_ext <<_ACEOF |
| 20133 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20134 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20135 | _ACEOF |
| 20136 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 20137 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 20138 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20139 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20140 | rm -f conftest.er1 |
| 20141 | cat conftest.err >&5 |
| 20142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20143 | (exit $ac_status); } >/dev/null; then |
| 20144 | if test -s conftest.err; then |
| 20145 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20146 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20147 | else |
| 20148 | ac_cpp_err= |
| 20149 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20150 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20151 | ac_cpp_err=yes |
| 20152 | fi |
| 20153 | if test -z "$ac_cpp_err"; then |
| 20154 | ac_header_preproc=yes |
| 20155 | else |
| 20156 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20157 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20158 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20159 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20160 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20161 | rm -f conftest.err conftest.$ac_ext |
| 20162 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 20163 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 20164 | |
| 20165 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20166 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 20167 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20168 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 20169 | 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] | 20170 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5 |
| 20171 | echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;} |
| 20172 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20173 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20174 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20175 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 20176 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20177 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 20178 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 20179 | { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5 |
| 20180 | echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;} |
| 20181 | { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 20182 | 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] | 20183 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 20184 | 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] | 20185 | { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5 |
| 20186 | 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] | 20187 | ( |
| 20188 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 20189 | ## ------------------------------------------------ ## |
| 20190 | ## Report this to http://www.python.org/python-bugs ## |
| 20191 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20192 | _ASBOX |
| 20193 | ) | |
| 20194 | sed "s/^/$as_me: WARNING: /" >&2 |
| 20195 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20196 | esac |
| 20197 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 20198 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 20199 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 20200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20201 | else |
| 20202 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20203 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20204 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 20205 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
| 20206 | |
| 20207 | fi |
| 20208 | if test $ac_cv_header_wchar_h = yes; then |
| 20209 | |
| 20210 | |
| 20211 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20212 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20213 | _ACEOF |
| 20214 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 20215 | wchar_h="yes" |
| 20216 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20217 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20218 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20219 | |
| 20220 | fi |
| 20221 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20222 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20223 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20224 | # determine wchar_t size |
| 20225 | if test "$wchar_h" = yes |
| 20226 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20227 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 20228 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 |
| 20229 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 20230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20231 | else |
| 20232 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20233 | /* confdefs.h. */ |
| 20234 | _ACEOF |
| 20235 | cat confdefs.h >>conftest.$ac_ext |
| 20236 | cat >>conftest.$ac_ext <<_ACEOF |
| 20237 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20238 | #include <wchar.h> |
| 20239 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20240 | int |
| 20241 | main () |
| 20242 | { |
| 20243 | if ((wchar_t *) 0) |
| 20244 | return 0; |
| 20245 | if (sizeof (wchar_t)) |
| 20246 | return 0; |
| 20247 | ; |
| 20248 | return 0; |
| 20249 | } |
| 20250 | _ACEOF |
| 20251 | rm -f conftest.$ac_objext |
| 20252 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20253 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20254 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20255 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20256 | rm -f conftest.er1 |
| 20257 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20259 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20260 | { ac_try='test -z "$ac_c_werror_flag" |
| 20261 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20263 | (eval $ac_try) 2>&5 |
| 20264 | ac_status=$? |
| 20265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20266 | (exit $ac_status); }; } && |
| 20267 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20269 | (eval $ac_try) 2>&5 |
| 20270 | ac_status=$? |
| 20271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20272 | (exit $ac_status); }; }; then |
| 20273 | ac_cv_type_wchar_t=yes |
| 20274 | else |
| 20275 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20276 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20277 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20278 | ac_cv_type_wchar_t=no |
| 20279 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20280 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20281 | fi |
| 20282 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 20283 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 |
| 20284 | |
| 20285 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 20286 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 |
| 20287 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
| 20288 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20289 | else |
| 20290 | if test "$ac_cv_type_wchar_t" = yes; then |
| 20291 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 20292 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 20293 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 20294 | # This bug is HP SR number 8606223364. |
| 20295 | if test "$cross_compiling" = yes; then |
| 20296 | # Depending upon the size, compute the lo and hi bounds. |
| 20297 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20298 | /* confdefs.h. */ |
| 20299 | _ACEOF |
| 20300 | cat confdefs.h >>conftest.$ac_ext |
| 20301 | cat >>conftest.$ac_ext <<_ACEOF |
| 20302 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20303 | #include <wchar.h> |
| 20304 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20305 | int |
| 20306 | main () |
| 20307 | { |
| 20308 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; |
| 20309 | test_array [0] = 0 |
| 20310 | |
| 20311 | ; |
| 20312 | return 0; |
| 20313 | } |
| 20314 | _ACEOF |
| 20315 | rm -f conftest.$ac_objext |
| 20316 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20317 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20318 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20319 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20320 | rm -f conftest.er1 |
| 20321 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20323 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20324 | { ac_try='test -z "$ac_c_werror_flag" |
| 20325 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20327 | (eval $ac_try) 2>&5 |
| 20328 | ac_status=$? |
| 20329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20330 | (exit $ac_status); }; } && |
| 20331 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20333 | (eval $ac_try) 2>&5 |
| 20334 | ac_status=$? |
| 20335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20336 | (exit $ac_status); }; }; then |
| 20337 | ac_lo=0 ac_mid=0 |
| 20338 | while :; do |
| 20339 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20340 | /* confdefs.h. */ |
| 20341 | _ACEOF |
| 20342 | cat confdefs.h >>conftest.$ac_ext |
| 20343 | cat >>conftest.$ac_ext <<_ACEOF |
| 20344 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20345 | #include <wchar.h> |
| 20346 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20347 | int |
| 20348 | main () |
| 20349 | { |
| 20350 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 20351 | test_array [0] = 0 |
| 20352 | |
| 20353 | ; |
| 20354 | return 0; |
| 20355 | } |
| 20356 | _ACEOF |
| 20357 | rm -f conftest.$ac_objext |
| 20358 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20359 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20360 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20361 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20362 | rm -f conftest.er1 |
| 20363 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20365 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20366 | { ac_try='test -z "$ac_c_werror_flag" |
| 20367 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20369 | (eval $ac_try) 2>&5 |
| 20370 | ac_status=$? |
| 20371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20372 | (exit $ac_status); }; } && |
| 20373 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20375 | (eval $ac_try) 2>&5 |
| 20376 | ac_status=$? |
| 20377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20378 | (exit $ac_status); }; }; then |
| 20379 | ac_hi=$ac_mid; break |
| 20380 | else |
| 20381 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20382 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20383 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20384 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20385 | if test $ac_lo -le $ac_mid; then |
| 20386 | ac_lo= ac_hi= |
| 20387 | break |
| 20388 | fi |
| 20389 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20390 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20391 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20392 | done |
| 20393 | else |
| 20394 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20395 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20396 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20397 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20398 | /* confdefs.h. */ |
| 20399 | _ACEOF |
| 20400 | cat confdefs.h >>conftest.$ac_ext |
| 20401 | cat >>conftest.$ac_ext <<_ACEOF |
| 20402 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20403 | #include <wchar.h> |
| 20404 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20405 | int |
| 20406 | main () |
| 20407 | { |
| 20408 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; |
| 20409 | test_array [0] = 0 |
| 20410 | |
| 20411 | ; |
| 20412 | return 0; |
| 20413 | } |
| 20414 | _ACEOF |
| 20415 | rm -f conftest.$ac_objext |
| 20416 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20417 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20418 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20419 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20420 | rm -f conftest.er1 |
| 20421 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20423 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20424 | { ac_try='test -z "$ac_c_werror_flag" |
| 20425 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20427 | (eval $ac_try) 2>&5 |
| 20428 | ac_status=$? |
| 20429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20430 | (exit $ac_status); }; } && |
| 20431 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20433 | (eval $ac_try) 2>&5 |
| 20434 | ac_status=$? |
| 20435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20436 | (exit $ac_status); }; }; then |
| 20437 | ac_hi=-1 ac_mid=-1 |
| 20438 | while :; do |
| 20439 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20440 | /* confdefs.h. */ |
| 20441 | _ACEOF |
| 20442 | cat confdefs.h >>conftest.$ac_ext |
| 20443 | cat >>conftest.$ac_ext <<_ACEOF |
| 20444 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20445 | #include <wchar.h> |
| 20446 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20447 | int |
| 20448 | main () |
| 20449 | { |
| 20450 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; |
| 20451 | test_array [0] = 0 |
| 20452 | |
| 20453 | ; |
| 20454 | return 0; |
| 20455 | } |
| 20456 | _ACEOF |
| 20457 | rm -f conftest.$ac_objext |
| 20458 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20459 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20460 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20461 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20462 | rm -f conftest.er1 |
| 20463 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20465 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20466 | { ac_try='test -z "$ac_c_werror_flag" |
| 20467 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20469 | (eval $ac_try) 2>&5 |
| 20470 | ac_status=$? |
| 20471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20472 | (exit $ac_status); }; } && |
| 20473 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20475 | (eval $ac_try) 2>&5 |
| 20476 | ac_status=$? |
| 20477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20478 | (exit $ac_status); }; }; then |
| 20479 | ac_lo=$ac_mid; break |
| 20480 | else |
| 20481 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20482 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20483 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20484 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20485 | if test $ac_mid -le $ac_hi; then |
| 20486 | ac_lo= ac_hi= |
| 20487 | break |
| 20488 | fi |
| 20489 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20490 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20491 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20492 | done |
| 20493 | else |
| 20494 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20495 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20496 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20497 | ac_lo= ac_hi= |
| 20498 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20499 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20500 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20501 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20502 | # Binary search between lo and hi bounds. |
| 20503 | while test "x$ac_lo" != "x$ac_hi"; do |
| 20504 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 20505 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20506 | /* confdefs.h. */ |
| 20507 | _ACEOF |
| 20508 | cat confdefs.h >>conftest.$ac_ext |
| 20509 | cat >>conftest.$ac_ext <<_ACEOF |
| 20510 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20511 | #include <wchar.h> |
| 20512 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20513 | int |
| 20514 | main () |
| 20515 | { |
| 20516 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 20517 | test_array [0] = 0 |
| 20518 | |
| 20519 | ; |
| 20520 | return 0; |
| 20521 | } |
| 20522 | _ACEOF |
| 20523 | rm -f conftest.$ac_objext |
| 20524 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20525 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20526 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20527 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20528 | rm -f conftest.er1 |
| 20529 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20531 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20532 | { ac_try='test -z "$ac_c_werror_flag" |
| 20533 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20535 | (eval $ac_try) 2>&5 |
| 20536 | ac_status=$? |
| 20537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20538 | (exit $ac_status); }; } && |
| 20539 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20541 | (eval $ac_try) 2>&5 |
| 20542 | ac_status=$? |
| 20543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20544 | (exit $ac_status); }; }; then |
| 20545 | ac_hi=$ac_mid |
| 20546 | else |
| 20547 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20548 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20549 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20550 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 20551 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20552 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20553 | done |
| 20554 | case $ac_lo in |
| 20555 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20556 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
| 20557 | See \`config.log' for more details." >&5 |
| 20558 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 |
| 20559 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20560 | { (exit 1); exit 1; }; } ;; |
| 20561 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20562 | else |
| 20563 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20564 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 20565 | See \`config.log' for more details." >&5 |
| 20566 | echo "$as_me: error: cannot run test program while cross compiling |
| 20567 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20568 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20569 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20570 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20571 | /* confdefs.h. */ |
| 20572 | _ACEOF |
| 20573 | cat confdefs.h >>conftest.$ac_ext |
| 20574 | cat >>conftest.$ac_ext <<_ACEOF |
| 20575 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20576 | #include <wchar.h> |
| 20577 | |
| 20578 | long longval () { return (long) (sizeof (wchar_t)); } |
| 20579 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20580 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20581 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20582 | int |
| 20583 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20584 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20585 | |
| 20586 | FILE *f = fopen ("conftest.val", "w"); |
| 20587 | if (! f) |
| 20588 | exit (1); |
| 20589 | if (((long) (sizeof (wchar_t))) < 0) |
| 20590 | { |
| 20591 | long i = longval (); |
| 20592 | if (i != ((long) (sizeof (wchar_t)))) |
| 20593 | exit (1); |
| 20594 | fprintf (f, "%ld\n", i); |
| 20595 | } |
| 20596 | else |
| 20597 | { |
| 20598 | unsigned long i = ulongval (); |
| 20599 | if (i != ((long) (sizeof (wchar_t)))) |
| 20600 | exit (1); |
| 20601 | fprintf (f, "%lu\n", i); |
| 20602 | } |
| 20603 | exit (ferror (f) || fclose (f) != 0); |
| 20604 | |
| 20605 | ; |
| 20606 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20607 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20608 | _ACEOF |
| 20609 | rm -f conftest$ac_exeext |
| 20610 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20611 | (eval $ac_link) 2>&5 |
| 20612 | ac_status=$? |
| 20613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20614 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20616 | (eval $ac_try) 2>&5 |
| 20617 | ac_status=$? |
| 20618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20619 | (exit $ac_status); }; }; then |
| 20620 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20621 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20622 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20623 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20624 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20625 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20626 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20627 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
| 20628 | See \`config.log' for more details." >&5 |
| 20629 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 |
| 20630 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20631 | { (exit 1); exit 1; }; } |
| 20632 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20633 | 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] | 20634 | fi |
| 20635 | fi |
| 20636 | rm -f conftest.val |
| 20637 | else |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20638 | ac_cv_sizeof_wchar_t=0 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20639 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20640 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20641 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 20642 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 |
| 20643 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20644 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20645 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20646 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20647 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20648 | fi |
| 20649 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 20650 | echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5 |
| 20651 | echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6 |
| 20652 | have_ucs4_tcl=no |
| 20653 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20654 | /* confdefs.h. */ |
| 20655 | _ACEOF |
| 20656 | cat confdefs.h >>conftest.$ac_ext |
| 20657 | cat >>conftest.$ac_ext <<_ACEOF |
| 20658 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 20659 | |
| 20660 | #include <tcl.h> |
| 20661 | #if TCL_UTF_MAX != 6 |
| 20662 | # error "NOT UCS4_TCL" |
| 20663 | #endif |
| 20664 | int |
| 20665 | main () |
| 20666 | { |
| 20667 | |
| 20668 | ; |
| 20669 | return 0; |
| 20670 | } |
| 20671 | _ACEOF |
| 20672 | rm -f conftest.$ac_objext |
| 20673 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20674 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 20675 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20676 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20677 | rm -f conftest.er1 |
| 20678 | cat conftest.err >&5 |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 20679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20680 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20681 | { ac_try='test -z "$ac_c_werror_flag" |
| 20682 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20684 | (eval $ac_try) 2>&5 |
| 20685 | ac_status=$? |
| 20686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20687 | (exit $ac_status); }; } && |
| 20688 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 20689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20690 | (eval $ac_try) 2>&5 |
| 20691 | ac_status=$? |
| 20692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20693 | (exit $ac_status); }; }; then |
| 20694 | |
| 20695 | |
| 20696 | cat >>confdefs.h <<\_ACEOF |
| 20697 | #define HAVE_UCS4_TCL 1 |
| 20698 | _ACEOF |
| 20699 | |
| 20700 | have_ucs4_tcl=yes |
| 20701 | |
| 20702 | else |
| 20703 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20704 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20705 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 20706 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20707 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 20708 | echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5 |
| 20709 | echo "${ECHO_T}$have_ucs4_tcl" >&6 |
| 20710 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20711 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 20712 | if test "$wchar_h" = yes |
| 20713 | then |
| 20714 | # check whether wchar_t is signed or not |
| 20715 | echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5 |
| 20716 | echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6 |
| 20717 | if test "${ac_cv_wchar_t_signed+set}" = set; then |
| 20718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20719 | else |
| 20720 | |
| 20721 | if test "$cross_compiling" = yes; then |
| 20722 | ac_cv_wchar_t_signed=yes |
| 20723 | else |
| 20724 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20725 | /* confdefs.h. */ |
| 20726 | _ACEOF |
| 20727 | cat confdefs.h >>conftest.$ac_ext |
| 20728 | cat >>conftest.$ac_ext <<_ACEOF |
| 20729 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 20730 | |
| 20731 | #include <wchar.h> |
| 20732 | int main() |
| 20733 | { |
Martin v. Löwis | 44fe0e4 | 2006-04-11 07:15:30 +0000 | [diff] [blame] | 20734 | /* Success: exit code 0 */ |
| 20735 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 20736 | } |
| 20737 | |
| 20738 | _ACEOF |
| 20739 | rm -f conftest$ac_exeext |
| 20740 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20741 | (eval $ac_link) 2>&5 |
| 20742 | ac_status=$? |
| 20743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20744 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20746 | (eval $ac_try) 2>&5 |
| 20747 | ac_status=$? |
| 20748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20749 | (exit $ac_status); }; }; then |
| 20750 | ac_cv_wchar_t_signed=yes |
| 20751 | else |
| 20752 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20753 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20754 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20755 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 20756 | ( exit $ac_status ) |
| 20757 | ac_cv_wchar_t_signed=no |
| 20758 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20759 | 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] | 20760 | fi |
| 20761 | fi |
| 20762 | |
| 20763 | echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5 |
| 20764 | echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6 |
| 20765 | fi |
| 20766 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20767 | echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 20768 | 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] | 20769 | # Check whether --enable-unicode or --disable-unicode was given. |
| 20770 | if test "${enable_unicode+set}" = set; then |
| 20771 | enableval="$enable_unicode" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20772 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20773 | else |
| 20774 | enable_unicode=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20775 | fi; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20776 | |
| 20777 | if test $enable_unicode = yes |
| 20778 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 20779 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 20780 | case "$have_ucs4_tcl" in |
| 20781 | yes) enable_unicode="ucs4" |
| 20782 | ;; |
| 20783 | *) enable_unicode="ucs2" |
| 20784 | ;; |
| 20785 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20786 | fi |
| 20787 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 20788 | |
| 20789 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20790 | case "$enable_unicode" in |
| 20791 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20792 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20793 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20794 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20795 | |
| 20796 | ;; |
| 20797 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20798 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20799 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20800 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20801 | |
| 20802 | ;; |
| 20803 | esac |
| 20804 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20805 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20806 | |
| 20807 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 20808 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20809 | if test "$enable_unicode" = "no" |
| 20810 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 20811 | UNICODE_OBJS="" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20812 | echo "$as_me:$LINENO: result: not used" >&5 |
| 20813 | echo "${ECHO_T}not used" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20814 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 20815 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20816 | |
| 20817 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20818 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20819 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20820 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 20821 | |
| 20822 | # wchar_t is only usable if it maps to an unsigned type |
| 20823 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 20824 | -a "$ac_cv_wchar_t_signed" = "no" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20825 | then |
| 20826 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20827 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20828 | cat >>confdefs.h <<\_ACEOF |
| 20829 | #define HAVE_USABLE_WCHAR_T 1 |
| 20830 | _ACEOF |
| 20831 | |
| 20832 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20833 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20834 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20835 | |
| 20836 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 20837 | then |
| 20838 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20839 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20840 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20841 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20842 | |
| 20843 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 20844 | then |
| 20845 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20846 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20847 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20848 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20849 | |
| 20850 | else |
| 20851 | PY_UNICODE_TYPE="no type found" |
| 20852 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20853 | echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 20854 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20855 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20856 | |
| 20857 | # check for endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20858 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 20859 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 20860 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 20861 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20862 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20863 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 20864 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20865 | /* confdefs.h. */ |
| 20866 | _ACEOF |
| 20867 | cat confdefs.h >>conftest.$ac_ext |
| 20868 | cat >>conftest.$ac_ext <<_ACEOF |
| 20869 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20870 | #include <sys/types.h> |
| 20871 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20872 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20873 | int |
| 20874 | main () |
| 20875 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20876 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 20877 | bogus endian macros |
| 20878 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20879 | |
| 20880 | ; |
| 20881 | return 0; |
| 20882 | } |
| 20883 | _ACEOF |
| 20884 | rm -f conftest.$ac_objext |
| 20885 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20886 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20887 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20888 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20889 | rm -f conftest.er1 |
| 20890 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20892 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20893 | { ac_try='test -z "$ac_c_werror_flag" |
| 20894 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20896 | (eval $ac_try) 2>&5 |
| 20897 | ac_status=$? |
| 20898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20899 | (exit $ac_status); }; } && |
| 20900 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20902 | (eval $ac_try) 2>&5 |
| 20903 | ac_status=$? |
| 20904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20905 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20906 | # 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] | 20907 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20908 | /* confdefs.h. */ |
| 20909 | _ACEOF |
| 20910 | cat confdefs.h >>conftest.$ac_ext |
| 20911 | cat >>conftest.$ac_ext <<_ACEOF |
| 20912 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20913 | #include <sys/types.h> |
| 20914 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20915 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20916 | int |
| 20917 | main () |
| 20918 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20919 | #if BYTE_ORDER != BIG_ENDIAN |
| 20920 | not big endian |
| 20921 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20922 | |
| 20923 | ; |
| 20924 | return 0; |
| 20925 | } |
| 20926 | _ACEOF |
| 20927 | rm -f conftest.$ac_objext |
| 20928 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20929 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20930 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20931 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20932 | rm -f conftest.er1 |
| 20933 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20935 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20936 | { ac_try='test -z "$ac_c_werror_flag" |
| 20937 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20939 | (eval $ac_try) 2>&5 |
| 20940 | ac_status=$? |
| 20941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20942 | (exit $ac_status); }; } && |
| 20943 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20945 | (eval $ac_try) 2>&5 |
| 20946 | ac_status=$? |
| 20947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20948 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20949 | ac_cv_c_bigendian=yes |
| 20950 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20951 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20952 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20953 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20954 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20955 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20956 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20957 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20958 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20959 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20960 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20961 | # It does not; compile a test program. |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20962 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20963 | # 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] | 20964 | ac_cv_c_bigendian=unknown |
| 20965 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20966 | /* confdefs.h. */ |
| 20967 | _ACEOF |
| 20968 | cat confdefs.h >>conftest.$ac_ext |
| 20969 | cat >>conftest.$ac_ext <<_ACEOF |
| 20970 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20971 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 20972 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 20973 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 20974 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 20975 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 20976 | 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] | 20977 | int |
| 20978 | main () |
| 20979 | { |
| 20980 | _ascii (); _ebcdic (); |
| 20981 | ; |
| 20982 | return 0; |
| 20983 | } |
| 20984 | _ACEOF |
| 20985 | rm -f conftest.$ac_objext |
| 20986 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20987 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20988 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20989 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20990 | rm -f conftest.er1 |
| 20991 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20993 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20994 | { ac_try='test -z "$ac_c_werror_flag" |
| 20995 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20997 | (eval $ac_try) 2>&5 |
| 20998 | ac_status=$? |
| 20999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21000 | (exit $ac_status); }; } && |
| 21001 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21003 | (eval $ac_try) 2>&5 |
| 21004 | ac_status=$? |
| 21005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21006 | (exit $ac_status); }; }; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21007 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21008 | ac_cv_c_bigendian=yes |
| 21009 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21010 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21011 | if test "$ac_cv_c_bigendian" = unknown; then |
| 21012 | ac_cv_c_bigendian=no |
| 21013 | else |
| 21014 | # finding both strings is unlikely to happen, but who knows? |
| 21015 | ac_cv_c_bigendian=unknown |
| 21016 | fi |
| 21017 | fi |
| 21018 | else |
| 21019 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21020 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21021 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21022 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21023 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21024 | else |
| 21025 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21026 | /* confdefs.h. */ |
| 21027 | _ACEOF |
| 21028 | cat confdefs.h >>conftest.$ac_ext |
| 21029 | cat >>conftest.$ac_ext <<_ACEOF |
| 21030 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21031 | int |
| 21032 | main () |
| 21033 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21034 | /* Are we little or big endian? From Harbison&Steele. */ |
| 21035 | union |
| 21036 | { |
| 21037 | long l; |
| 21038 | char c[sizeof (long)]; |
| 21039 | } u; |
| 21040 | u.l = 1; |
| 21041 | exit (u.c[sizeof (long) - 1] == 1); |
| 21042 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21043 | _ACEOF |
| 21044 | rm -f conftest$ac_exeext |
| 21045 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21046 | (eval $ac_link) 2>&5 |
| 21047 | ac_status=$? |
| 21048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21049 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 21050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21051 | (eval $ac_try) 2>&5 |
| 21052 | ac_status=$? |
| 21053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21054 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21055 | ac_cv_c_bigendian=no |
| 21056 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21057 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21058 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21059 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21060 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21061 | ( exit $ac_status ) |
| 21062 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21063 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21064 | 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] | 21065 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21066 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21067 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21068 | fi |
| 21069 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 21070 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 21071 | case $ac_cv_c_bigendian in |
| 21072 | yes) |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21073 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21074 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21075 | #define WORDS_BIGENDIAN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21076 | _ACEOF |
| 21077 | ;; |
| 21078 | no) |
| 21079 | ;; |
| 21080 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21081 | { { echo "$as_me:$LINENO: error: unknown endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21082 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21083 | echo "$as_me: error: unknown endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21084 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 21085 | { (exit 1); exit 1; }; } ;; |
| 21086 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21087 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21088 | |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 21089 | |
| 21090 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 21091 | # Check whether right shifting a negative integer extends the sign bit |
| 21092 | # 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] | 21093 | echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 21094 | echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6 |
| 21095 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
| 21096 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 21097 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21098 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 21099 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 21100 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 21101 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21102 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21103 | /* confdefs.h. */ |
| 21104 | _ACEOF |
| 21105 | cat confdefs.h >>conftest.$ac_ext |
| 21106 | cat >>conftest.$ac_ext <<_ACEOF |
| 21107 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 21108 | |
| 21109 | int main() |
| 21110 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 21111 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 21112 | } |
| 21113 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21114 | _ACEOF |
| 21115 | rm -f conftest$ac_exeext |
| 21116 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21117 | (eval $ac_link) 2>&5 |
| 21118 | ac_status=$? |
| 21119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21120 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 21121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21122 | (eval $ac_try) 2>&5 |
| 21123 | ac_status=$? |
| 21124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21125 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 21126 | ac_cv_rshift_extends_sign=yes |
| 21127 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21128 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21129 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21130 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21131 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21132 | ( exit $ac_status ) |
| 21133 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 21134 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21135 | 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] | 21136 | fi |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 21137 | fi |
| 21138 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21139 | echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 21140 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 21141 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 21142 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21143 | |
| 21144 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 21145 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21146 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 21147 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 21148 | fi |
| 21149 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 21150 | # check for getc_unlocked and related locking functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21151 | echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 21152 | echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6 |
| 21153 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
| 21154 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 21155 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21156 | |
| 21157 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21158 | /* confdefs.h. */ |
| 21159 | _ACEOF |
| 21160 | cat confdefs.h >>conftest.$ac_ext |
| 21161 | cat >>conftest.$ac_ext <<_ACEOF |
| 21162 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 21163 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21164 | int |
| 21165 | main () |
| 21166 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 21167 | |
| 21168 | FILE *f = fopen("/dev/null", "r"); |
| 21169 | flockfile(f); |
| 21170 | getc_unlocked(f); |
| 21171 | funlockfile(f); |
| 21172 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21173 | ; |
| 21174 | return 0; |
| 21175 | } |
| 21176 | _ACEOF |
| 21177 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21178 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21179 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21180 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21181 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21182 | rm -f conftest.er1 |
| 21183 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21185 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 21186 | { ac_try='test -z "$ac_c_werror_flag" |
| 21187 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21189 | (eval $ac_try) 2>&5 |
| 21190 | ac_status=$? |
| 21191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21192 | (exit $ac_status); }; } && |
| 21193 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21195 | (eval $ac_try) 2>&5 |
| 21196 | ac_status=$? |
| 21197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21198 | (exit $ac_status); }; }; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 21199 | ac_cv_have_getc_unlocked=yes |
| 21200 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21201 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21202 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21203 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21204 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 21205 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21206 | rm -f conftest.err conftest.$ac_objext \ |
| 21207 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 21208 | fi |
| 21209 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21210 | echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 21211 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 21212 | if test "$ac_cv_have_getc_unlocked" = yes |
| 21213 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21214 | |
| 21215 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 21216 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21217 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 21218 | |
| 21219 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 21220 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21221 | # check where readline lives |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 21222 | # save the value of LIBS so we don't actually link Python with readline |
| 21223 | LIBS_no_readline=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21224 | |
| 21225 | echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
| 21226 | echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6 |
| 21227 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
| 21228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21229 | else |
| 21230 | ac_check_lib_save_LIBS=$LIBS |
| 21231 | LIBS="-lreadline $LIBS" |
| 21232 | cat >conftest.$ac_ext <<_ACEOF |
| 21233 | /* confdefs.h. */ |
| 21234 | _ACEOF |
| 21235 | cat confdefs.h >>conftest.$ac_ext |
| 21236 | cat >>conftest.$ac_ext <<_ACEOF |
| 21237 | /* end confdefs.h. */ |
| 21238 | |
| 21239 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 21240 | #ifdef __cplusplus |
| 21241 | extern "C" |
| 21242 | #endif |
| 21243 | /* We use char because int might match the return type of a gcc2 |
| 21244 | builtin and then its argument prototype would still apply. */ |
| 21245 | char readline (); |
| 21246 | int |
| 21247 | main () |
| 21248 | { |
| 21249 | readline (); |
| 21250 | ; |
| 21251 | return 0; |
| 21252 | } |
| 21253 | _ACEOF |
| 21254 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21255 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21256 | (eval $ac_link) 2>conftest.er1 |
| 21257 | ac_status=$? |
| 21258 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21259 | rm -f conftest.er1 |
| 21260 | cat conftest.err >&5 |
| 21261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21262 | (exit $ac_status); } && |
| 21263 | { ac_try='test -z "$ac_c_werror_flag" |
| 21264 | || test ! -s conftest.err' |
| 21265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21266 | (eval $ac_try) 2>&5 |
| 21267 | ac_status=$? |
| 21268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21269 | (exit $ac_status); }; } && |
| 21270 | { ac_try='test -s conftest$ac_exeext' |
| 21271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21272 | (eval $ac_try) 2>&5 |
| 21273 | ac_status=$? |
| 21274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21275 | (exit $ac_status); }; }; then |
| 21276 | ac_cv_lib_readline_readline=yes |
| 21277 | else |
| 21278 | echo "$as_me: failed program was:" >&5 |
| 21279 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21280 | |
| 21281 | ac_cv_lib_readline_readline=no |
| 21282 | fi |
| 21283 | rm -f conftest.err conftest.$ac_objext \ |
| 21284 | conftest$ac_exeext conftest.$ac_ext |
| 21285 | LIBS=$ac_check_lib_save_LIBS |
| 21286 | fi |
| 21287 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
| 21288 | echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6 |
| 21289 | if test $ac_cv_lib_readline_readline = yes; then |
| 21290 | cat >>confdefs.h <<_ACEOF |
| 21291 | #define HAVE_LIBREADLINE 1 |
| 21292 | _ACEOF |
| 21293 | |
| 21294 | LIBS="-lreadline $LIBS" |
| 21295 | |
| 21296 | fi |
| 21297 | |
| 21298 | if test "$ac_cv_have_readline_readline" = no |
| 21299 | then |
| 21300 | |
| 21301 | echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5 |
| 21302 | echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6 |
| 21303 | if test "${ac_cv_lib_termcap_readline+set}" = set; then |
| 21304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21305 | else |
| 21306 | ac_check_lib_save_LIBS=$LIBS |
| 21307 | LIBS="-ltermcap $LIBS" |
| 21308 | cat >conftest.$ac_ext <<_ACEOF |
| 21309 | /* confdefs.h. */ |
| 21310 | _ACEOF |
| 21311 | cat confdefs.h >>conftest.$ac_ext |
| 21312 | cat >>conftest.$ac_ext <<_ACEOF |
| 21313 | /* end confdefs.h. */ |
| 21314 | |
| 21315 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 21316 | #ifdef __cplusplus |
| 21317 | extern "C" |
| 21318 | #endif |
| 21319 | /* We use char because int might match the return type of a gcc2 |
| 21320 | builtin and then its argument prototype would still apply. */ |
| 21321 | char readline (); |
| 21322 | int |
| 21323 | main () |
| 21324 | { |
| 21325 | readline (); |
| 21326 | ; |
| 21327 | return 0; |
| 21328 | } |
| 21329 | _ACEOF |
| 21330 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21331 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21332 | (eval $ac_link) 2>conftest.er1 |
| 21333 | ac_status=$? |
| 21334 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21335 | rm -f conftest.er1 |
| 21336 | cat conftest.err >&5 |
| 21337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21338 | (exit $ac_status); } && |
| 21339 | { ac_try='test -z "$ac_c_werror_flag" |
| 21340 | || test ! -s conftest.err' |
| 21341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21342 | (eval $ac_try) 2>&5 |
| 21343 | ac_status=$? |
| 21344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21345 | (exit $ac_status); }; } && |
| 21346 | { ac_try='test -s conftest$ac_exeext' |
| 21347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21348 | (eval $ac_try) 2>&5 |
| 21349 | ac_status=$? |
| 21350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21351 | (exit $ac_status); }; }; then |
| 21352 | ac_cv_lib_termcap_readline=yes |
| 21353 | else |
| 21354 | echo "$as_me: failed program was:" >&5 |
| 21355 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21356 | |
| 21357 | ac_cv_lib_termcap_readline=no |
| 21358 | fi |
| 21359 | rm -f conftest.err conftest.$ac_objext \ |
| 21360 | conftest$ac_exeext conftest.$ac_ext |
| 21361 | LIBS=$ac_check_lib_save_LIBS |
| 21362 | fi |
| 21363 | echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5 |
| 21364 | echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6 |
| 21365 | if test $ac_cv_lib_termcap_readline = yes; then |
| 21366 | cat >>confdefs.h <<_ACEOF |
| 21367 | #define HAVE_LIBTERMCAP 1 |
| 21368 | _ACEOF |
| 21369 | |
| 21370 | LIBS="-ltermcap $LIBS" |
| 21371 | |
| 21372 | fi |
| 21373 | |
| 21374 | fi |
| 21375 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21376 | # check for readline 2.1 |
| 21377 | echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5 |
| 21378 | echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6 |
| 21379 | if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then |
| 21380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21381 | else |
| 21382 | ac_check_lib_save_LIBS=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21383 | LIBS="-lreadline $LIBS" |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21384 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21385 | /* confdefs.h. */ |
| 21386 | _ACEOF |
| 21387 | cat confdefs.h >>conftest.$ac_ext |
| 21388 | cat >>conftest.$ac_ext <<_ACEOF |
| 21389 | /* end confdefs.h. */ |
| 21390 | |
| 21391 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 21392 | #ifdef __cplusplus |
| 21393 | extern "C" |
| 21394 | #endif |
| 21395 | /* We use char because int might match the return type of a gcc2 |
| 21396 | builtin and then its argument prototype would still apply. */ |
| 21397 | char rl_callback_handler_install (); |
| 21398 | int |
| 21399 | main () |
| 21400 | { |
| 21401 | rl_callback_handler_install (); |
| 21402 | ; |
| 21403 | return 0; |
| 21404 | } |
| 21405 | _ACEOF |
| 21406 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21407 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21408 | (eval $ac_link) 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21409 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21410 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21411 | rm -f conftest.er1 |
| 21412 | cat conftest.err >&5 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21414 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 21415 | { ac_try='test -z "$ac_c_werror_flag" |
| 21416 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21418 | (eval $ac_try) 2>&5 |
| 21419 | ac_status=$? |
| 21420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21421 | (exit $ac_status); }; } && |
| 21422 | { ac_try='test -s conftest$ac_exeext' |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21424 | (eval $ac_try) 2>&5 |
| 21425 | ac_status=$? |
| 21426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21427 | (exit $ac_status); }; }; then |
| 21428 | ac_cv_lib_readline_rl_callback_handler_install=yes |
| 21429 | else |
| 21430 | echo "$as_me: failed program was:" >&5 |
| 21431 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21432 | |
| 21433 | ac_cv_lib_readline_rl_callback_handler_install=no |
| 21434 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21435 | rm -f conftest.err conftest.$ac_objext \ |
| 21436 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21437 | LIBS=$ac_check_lib_save_LIBS |
| 21438 | fi |
| 21439 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 |
| 21440 | echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6 |
| 21441 | if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then |
| 21442 | |
| 21443 | cat >>confdefs.h <<\_ACEOF |
| 21444 | #define HAVE_RL_CALLBACK 1 |
| 21445 | _ACEOF |
| 21446 | |
| 21447 | fi |
| 21448 | |
| 21449 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 21450 | # check for readline 2.2 |
| 21451 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21452 | /* confdefs.h. */ |
| 21453 | _ACEOF |
| 21454 | cat confdefs.h >>conftest.$ac_ext |
| 21455 | cat >>conftest.$ac_ext <<_ACEOF |
| 21456 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 21457 | #include <readline/readline.h> |
| 21458 | _ACEOF |
| 21459 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 21460 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 21461 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21462 | grep -v '^ *+' conftest.er1 >conftest.err |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 21463 | rm -f conftest.er1 |
| 21464 | cat conftest.err >&5 |
| 21465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21466 | (exit $ac_status); } >/dev/null; then |
| 21467 | if test -s conftest.err; then |
| 21468 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21469 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 21470 | else |
| 21471 | ac_cpp_err= |
| 21472 | fi |
| 21473 | else |
| 21474 | ac_cpp_err=yes |
| 21475 | fi |
| 21476 | if test -z "$ac_cpp_err"; then |
| 21477 | have_readline=yes |
| 21478 | else |
| 21479 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21480 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21481 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 21482 | have_readline=no |
| 21483 | fi |
| 21484 | rm -f conftest.err conftest.$ac_ext |
| 21485 | if test $have_readline = yes |
| 21486 | then |
| 21487 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21488 | /* confdefs.h. */ |
| 21489 | _ACEOF |
| 21490 | cat confdefs.h >>conftest.$ac_ext |
| 21491 | cat >>conftest.$ac_ext <<_ACEOF |
| 21492 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 21493 | #include <readline/readline.h> |
| 21494 | |
| 21495 | _ACEOF |
| 21496 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21497 | $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] | 21498 | |
| 21499 | cat >>confdefs.h <<\_ACEOF |
| 21500 | #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1 |
| 21501 | _ACEOF |
| 21502 | |
| 21503 | fi |
| 21504 | rm -f conftest* |
| 21505 | |
| 21506 | fi |
| 21507 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 21508 | # check for readline 4.0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21509 | echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 21510 | echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6 |
| 21511 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
| 21512 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 21513 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21514 | ac_check_lib_save_LIBS=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21515 | LIBS="-lreadline $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21516 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21517 | /* confdefs.h. */ |
| 21518 | _ACEOF |
| 21519 | cat confdefs.h >>conftest.$ac_ext |
| 21520 | cat >>conftest.$ac_ext <<_ACEOF |
| 21521 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21522 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 21523 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21524 | #ifdef __cplusplus |
| 21525 | extern "C" |
| 21526 | #endif |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 21527 | /* 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] | 21528 | builtin and then its argument prototype would still apply. */ |
| 21529 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21530 | int |
| 21531 | main () |
| 21532 | { |
| 21533 | rl_pre_input_hook (); |
| 21534 | ; |
| 21535 | return 0; |
| 21536 | } |
| 21537 | _ACEOF |
| 21538 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21539 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21540 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21541 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21542 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21543 | rm -f conftest.er1 |
| 21544 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21546 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 21547 | { ac_try='test -z "$ac_c_werror_flag" |
| 21548 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21550 | (eval $ac_try) 2>&5 |
| 21551 | ac_status=$? |
| 21552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21553 | (exit $ac_status); }; } && |
| 21554 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21556 | (eval $ac_try) 2>&5 |
| 21557 | ac_status=$? |
| 21558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21559 | (exit $ac_status); }; }; then |
| 21560 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 21561 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21562 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21563 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21564 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21565 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 21566 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21567 | rm -f conftest.err conftest.$ac_objext \ |
| 21568 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21569 | LIBS=$ac_check_lib_save_LIBS |
| 21570 | fi |
| 21571 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 21572 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6 |
| 21573 | 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] | 21574 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21575 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 21576 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21577 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 21578 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 21579 | fi |
| 21580 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21581 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 21582 | # check for readline 4.2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21583 | echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 21584 | echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6 |
| 21585 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
| 21586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 21587 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21588 | ac_check_lib_save_LIBS=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21589 | LIBS="-lreadline $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21590 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21591 | /* confdefs.h. */ |
| 21592 | _ACEOF |
| 21593 | cat confdefs.h >>conftest.$ac_ext |
| 21594 | cat >>conftest.$ac_ext <<_ACEOF |
| 21595 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21596 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 21597 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21598 | #ifdef __cplusplus |
| 21599 | extern "C" |
| 21600 | #endif |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 21601 | /* 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] | 21602 | builtin and then its argument prototype would still apply. */ |
| 21603 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21604 | int |
| 21605 | main () |
| 21606 | { |
| 21607 | rl_completion_matches (); |
| 21608 | ; |
| 21609 | return 0; |
| 21610 | } |
| 21611 | _ACEOF |
| 21612 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21613 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21614 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21615 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21616 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21617 | rm -f conftest.er1 |
| 21618 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21620 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 21621 | { ac_try='test -z "$ac_c_werror_flag" |
| 21622 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21624 | (eval $ac_try) 2>&5 |
| 21625 | ac_status=$? |
| 21626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21627 | (exit $ac_status); }; } && |
| 21628 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21630 | (eval $ac_try) 2>&5 |
| 21631 | ac_status=$? |
| 21632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21633 | (exit $ac_status); }; }; then |
| 21634 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 21635 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21636 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21637 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21638 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21639 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 21640 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21641 | rm -f conftest.err conftest.$ac_objext \ |
| 21642 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21643 | LIBS=$ac_check_lib_save_LIBS |
| 21644 | fi |
| 21645 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 21646 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6 |
| 21647 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21648 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21649 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 21650 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21651 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 21652 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 21653 | fi |
| 21654 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21655 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21656 | # also in readline 4.2 |
| 21657 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21658 | /* confdefs.h. */ |
| 21659 | _ACEOF |
| 21660 | cat confdefs.h >>conftest.$ac_ext |
| 21661 | cat >>conftest.$ac_ext <<_ACEOF |
| 21662 | /* end confdefs.h. */ |
| 21663 | #include <readline/readline.h> |
| 21664 | _ACEOF |
| 21665 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 21666 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 21667 | ac_status=$? |
| 21668 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21669 | rm -f conftest.er1 |
| 21670 | cat conftest.err >&5 |
| 21671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21672 | (exit $ac_status); } >/dev/null; then |
| 21673 | if test -s conftest.err; then |
| 21674 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21675 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21676 | else |
| 21677 | ac_cpp_err= |
| 21678 | fi |
| 21679 | else |
| 21680 | ac_cpp_err=yes |
| 21681 | fi |
| 21682 | if test -z "$ac_cpp_err"; then |
| 21683 | have_readline=yes |
| 21684 | else |
| 21685 | echo "$as_me: failed program was:" >&5 |
| 21686 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21687 | |
| 21688 | have_readline=no |
| 21689 | fi |
| 21690 | rm -f conftest.err conftest.$ac_ext |
| 21691 | if test $have_readline = yes |
| 21692 | then |
| 21693 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21694 | /* confdefs.h. */ |
| 21695 | _ACEOF |
| 21696 | cat confdefs.h >>conftest.$ac_ext |
| 21697 | cat >>conftest.$ac_ext <<_ACEOF |
| 21698 | /* end confdefs.h. */ |
| 21699 | #include <readline/readline.h> |
| 21700 | |
| 21701 | _ACEOF |
| 21702 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 21703 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then |
| 21704 | |
| 21705 | cat >>confdefs.h <<\_ACEOF |
| 21706 | #define HAVE_RL_CATCH_SIGNAL 1 |
| 21707 | _ACEOF |
| 21708 | |
| 21709 | fi |
| 21710 | rm -f conftest* |
| 21711 | |
| 21712 | fi |
| 21713 | |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 21714 | # End of readline checks: restore LIBS |
| 21715 | LIBS=$LIBS_no_readline |
| 21716 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21717 | echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 21718 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6 |
| 21719 | if test "${ac_cv_broken_nice+set}" = set; then |
| 21720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21721 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21722 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 21723 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 21724 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 21725 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21726 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21727 | /* confdefs.h. */ |
| 21728 | _ACEOF |
| 21729 | cat confdefs.h >>conftest.$ac_ext |
| 21730 | cat >>conftest.$ac_ext <<_ACEOF |
| 21731 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 21732 | |
| 21733 | int main() |
| 21734 | { |
| 21735 | int val1 = nice(1); |
| 21736 | if (val1 != -1 && val1 == nice(2)) |
| 21737 | exit(0); |
| 21738 | exit(1); |
| 21739 | } |
| 21740 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21741 | _ACEOF |
| 21742 | rm -f conftest$ac_exeext |
| 21743 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21744 | (eval $ac_link) 2>&5 |
| 21745 | ac_status=$? |
| 21746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21747 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 21748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21749 | (eval $ac_try) 2>&5 |
| 21750 | ac_status=$? |
| 21751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21752 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 21753 | ac_cv_broken_nice=yes |
| 21754 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21755 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21756 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21757 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21758 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21759 | ( exit $ac_status ) |
| 21760 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 21761 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21762 | 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] | 21763 | fi |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 21764 | fi |
| 21765 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21766 | echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 21767 | echo "${ECHO_T}$ac_cv_broken_nice" >&6 |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 21768 | if test "$ac_cv_broken_nice" = yes |
| 21769 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21770 | |
| 21771 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 21772 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21773 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 21774 | |
| 21775 | fi |
| 21776 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 21777 | echo "$as_me:$LINENO: checking for broken poll()" >&5 |
| 21778 | echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6 |
| 21779 | if test "$cross_compiling" = yes; then |
| 21780 | ac_cv_broken_poll=no |
| 21781 | else |
| 21782 | cat >conftest.$ac_ext <<_ACEOF |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 21783 | /* confdefs.h. */ |
| 21784 | _ACEOF |
| 21785 | cat confdefs.h >>conftest.$ac_ext |
| 21786 | cat >>conftest.$ac_ext <<_ACEOF |
| 21787 | /* end confdefs.h. */ |
| 21788 | |
| 21789 | #include <poll.h> |
| 21790 | |
| 21791 | int main (void) |
| 21792 | { |
| 21793 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
| 21794 | |
| 21795 | close (42); |
| 21796 | |
| 21797 | int poll_test = poll (&poll_struct, 1, 0); |
| 21798 | |
| 21799 | if (poll_test < 0) |
| 21800 | { |
| 21801 | exit(0); |
| 21802 | } |
| 21803 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
| 21804 | { |
| 21805 | exit(0); |
| 21806 | } |
| 21807 | else |
| 21808 | { |
| 21809 | exit(1); |
| 21810 | } |
| 21811 | } |
| 21812 | |
| 21813 | _ACEOF |
| 21814 | rm -f conftest$ac_exeext |
| 21815 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21816 | (eval $ac_link) 2>&5 |
| 21817 | ac_status=$? |
| 21818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21819 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 21820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21821 | (eval $ac_try) 2>&5 |
| 21822 | ac_status=$? |
| 21823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21824 | (exit $ac_status); }; }; then |
| 21825 | ac_cv_broken_poll=yes |
| 21826 | else |
| 21827 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21828 | echo "$as_me: failed program was:" >&5 |
| 21829 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21830 | |
| 21831 | ( exit $ac_status ) |
| 21832 | ac_cv_broken_poll=no |
| 21833 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21834 | 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] | 21835 | fi |
| 21836 | echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5 |
| 21837 | echo "${ECHO_T}$ac_cv_broken_poll" >&6 |
| 21838 | if test "$ac_cv_broken_poll" = yes |
| 21839 | then |
| 21840 | |
| 21841 | cat >>confdefs.h <<\_ACEOF |
| 21842 | #define HAVE_BROKEN_POLL 1 |
| 21843 | _ACEOF |
| 21844 | |
| 21845 | fi |
| 21846 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 21847 | # 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] | 21848 | # (which is not required by ISO C or UNIX spec) and/or if we support |
| 21849 | # tzname[] |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 21850 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 21851 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 21852 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 21853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21854 | else |
| 21855 | cat >conftest.$ac_ext <<_ACEOF |
| 21856 | /* confdefs.h. */ |
| 21857 | _ACEOF |
| 21858 | cat confdefs.h >>conftest.$ac_ext |
| 21859 | cat >>conftest.$ac_ext <<_ACEOF |
| 21860 | /* end confdefs.h. */ |
| 21861 | #include <sys/types.h> |
| 21862 | #include <$ac_cv_struct_tm> |
| 21863 | |
| 21864 | |
| 21865 | int |
| 21866 | main () |
| 21867 | { |
| 21868 | static struct tm ac_aggr; |
| 21869 | if (ac_aggr.tm_zone) |
| 21870 | return 0; |
| 21871 | ; |
| 21872 | return 0; |
| 21873 | } |
| 21874 | _ACEOF |
| 21875 | rm -f conftest.$ac_objext |
| 21876 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21877 | (eval $ac_compile) 2>conftest.er1 |
| 21878 | ac_status=$? |
| 21879 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21880 | rm -f conftest.er1 |
| 21881 | cat conftest.err >&5 |
| 21882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21883 | (exit $ac_status); } && |
| 21884 | { ac_try='test -z "$ac_c_werror_flag" |
| 21885 | || test ! -s conftest.err' |
| 21886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21887 | (eval $ac_try) 2>&5 |
| 21888 | ac_status=$? |
| 21889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21890 | (exit $ac_status); }; } && |
| 21891 | { ac_try='test -s conftest.$ac_objext' |
| 21892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21893 | (eval $ac_try) 2>&5 |
| 21894 | ac_status=$? |
| 21895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21896 | (exit $ac_status); }; }; then |
| 21897 | ac_cv_member_struct_tm_tm_zone=yes |
| 21898 | else |
| 21899 | echo "$as_me: failed program was:" >&5 |
| 21900 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21901 | |
| 21902 | cat >conftest.$ac_ext <<_ACEOF |
| 21903 | /* confdefs.h. */ |
| 21904 | _ACEOF |
| 21905 | cat confdefs.h >>conftest.$ac_ext |
| 21906 | cat >>conftest.$ac_ext <<_ACEOF |
| 21907 | /* end confdefs.h. */ |
| 21908 | #include <sys/types.h> |
| 21909 | #include <$ac_cv_struct_tm> |
| 21910 | |
| 21911 | |
| 21912 | int |
| 21913 | main () |
| 21914 | { |
| 21915 | static struct tm ac_aggr; |
| 21916 | if (sizeof ac_aggr.tm_zone) |
| 21917 | return 0; |
| 21918 | ; |
| 21919 | return 0; |
| 21920 | } |
| 21921 | _ACEOF |
| 21922 | rm -f conftest.$ac_objext |
| 21923 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21924 | (eval $ac_compile) 2>conftest.er1 |
| 21925 | ac_status=$? |
| 21926 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21927 | rm -f conftest.er1 |
| 21928 | cat conftest.err >&5 |
| 21929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21930 | (exit $ac_status); } && |
| 21931 | { ac_try='test -z "$ac_c_werror_flag" |
| 21932 | || test ! -s conftest.err' |
| 21933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21934 | (eval $ac_try) 2>&5 |
| 21935 | ac_status=$? |
| 21936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21937 | (exit $ac_status); }; } && |
| 21938 | { ac_try='test -s conftest.$ac_objext' |
| 21939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21940 | (eval $ac_try) 2>&5 |
| 21941 | ac_status=$? |
| 21942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21943 | (exit $ac_status); }; }; then |
| 21944 | ac_cv_member_struct_tm_tm_zone=yes |
| 21945 | else |
| 21946 | echo "$as_me: failed program was:" >&5 |
| 21947 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21948 | |
| 21949 | ac_cv_member_struct_tm_tm_zone=no |
| 21950 | fi |
| 21951 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21952 | fi |
| 21953 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21954 | fi |
| 21955 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 21956 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 21957 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 21958 | |
| 21959 | cat >>confdefs.h <<_ACEOF |
| 21960 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 21961 | _ACEOF |
| 21962 | |
| 21963 | |
| 21964 | fi |
| 21965 | |
| 21966 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 21967 | |
| 21968 | cat >>confdefs.h <<\_ACEOF |
| 21969 | #define HAVE_TM_ZONE 1 |
| 21970 | _ACEOF |
| 21971 | |
| 21972 | else |
| 21973 | echo "$as_me:$LINENO: checking for tzname" >&5 |
| 21974 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 21975 | if test "${ac_cv_var_tzname+set}" = set; then |
| 21976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21977 | else |
| 21978 | cat >conftest.$ac_ext <<_ACEOF |
| 21979 | /* confdefs.h. */ |
| 21980 | _ACEOF |
| 21981 | cat confdefs.h >>conftest.$ac_ext |
| 21982 | cat >>conftest.$ac_ext <<_ACEOF |
| 21983 | /* end confdefs.h. */ |
| 21984 | #include <time.h> |
| 21985 | #ifndef tzname /* For SGI. */ |
| 21986 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
| 21987 | #endif |
| 21988 | |
| 21989 | int |
| 21990 | main () |
| 21991 | { |
| 21992 | atoi(*tzname); |
| 21993 | ; |
| 21994 | return 0; |
| 21995 | } |
| 21996 | _ACEOF |
| 21997 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21998 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21999 | (eval $ac_link) 2>conftest.er1 |
| 22000 | ac_status=$? |
| 22001 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22002 | rm -f conftest.er1 |
| 22003 | cat conftest.err >&5 |
| 22004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22005 | (exit $ac_status); } && |
| 22006 | { ac_try='test -z "$ac_c_werror_flag" |
| 22007 | || test ! -s conftest.err' |
| 22008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22009 | (eval $ac_try) 2>&5 |
| 22010 | ac_status=$? |
| 22011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22012 | (exit $ac_status); }; } && |
| 22013 | { ac_try='test -s conftest$ac_exeext' |
| 22014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22015 | (eval $ac_try) 2>&5 |
| 22016 | ac_status=$? |
| 22017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22018 | (exit $ac_status); }; }; then |
| 22019 | ac_cv_var_tzname=yes |
| 22020 | else |
| 22021 | echo "$as_me: failed program was:" >&5 |
| 22022 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22023 | |
| 22024 | ac_cv_var_tzname=no |
| 22025 | fi |
| 22026 | rm -f conftest.err conftest.$ac_objext \ |
| 22027 | conftest$ac_exeext conftest.$ac_ext |
| 22028 | fi |
| 22029 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 22030 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
| 22031 | if test $ac_cv_var_tzname = yes; then |
| 22032 | |
| 22033 | cat >>confdefs.h <<\_ACEOF |
| 22034 | #define HAVE_TZNAME 1 |
| 22035 | _ACEOF |
| 22036 | |
| 22037 | fi |
| 22038 | fi |
| 22039 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 22040 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 22041 | # check tzset(3) exists and works like we expect it to |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 22042 | echo "$as_me:$LINENO: checking for working tzset()" >&5 |
| 22043 | echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6 |
| 22044 | if test "${ac_cv_working_tzset+set}" = set; then |
| 22045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22046 | else |
| 22047 | |
| 22048 | if test "$cross_compiling" = yes; then |
| 22049 | ac_cv_working_tzset=no |
| 22050 | else |
| 22051 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22052 | /* confdefs.h. */ |
| 22053 | _ACEOF |
| 22054 | cat confdefs.h >>conftest.$ac_ext |
| 22055 | cat >>conftest.$ac_ext <<_ACEOF |
| 22056 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 22057 | |
| 22058 | #include <stdlib.h> |
| 22059 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 22060 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22061 | |
| 22062 | #if HAVE_TZNAME |
| 22063 | extern char *tzname[]; |
| 22064 | #endif |
| 22065 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 22066 | int main() |
| 22067 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 22068 | /* Note that we need to ensure that not only does tzset(3) |
| 22069 | do 'something' with localtime, but it works as documented |
| 22070 | 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] | 22071 | This includes making sure that tzname is set properly if |
| 22072 | tm->tm_zone does not exist since it is the alternative way |
| 22073 | of getting timezone info. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 22074 | |
| 22075 | Red Hat 6.2 doesn't understand the southern hemisphere |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 22076 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 22077 | */ |
| 22078 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 22079 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 22080 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 22081 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 22082 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 22083 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 22084 | if (localtime(&groundhogday)->tm_hour != 0) |
| 22085 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22086 | #if HAVE_TZNAME |
| 22087 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ |
| 22088 | if (strcmp(tzname[0], "UTC") || |
| 22089 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) |
| 22090 | exit(1); |
| 22091 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 22092 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 22093 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 22094 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 22095 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 22096 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22097 | #if HAVE_TZNAME |
| 22098 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) |
| 22099 | exit(1); |
| 22100 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 22101 | |
| 22102 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 22103 | tzset(); |
| 22104 | if (localtime(&groundhogday)->tm_hour != 11) |
| 22105 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22106 | #if HAVE_TZNAME |
| 22107 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) |
| 22108 | exit(1); |
| 22109 | #endif |
| 22110 | |
| 22111 | #if HAVE_STRUCT_TM_TM_ZONE |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 22112 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 22113 | exit(1); |
| 22114 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 22115 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22116 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 22117 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 22118 | exit(0); |
| 22119 | } |
| 22120 | |
| 22121 | _ACEOF |
| 22122 | rm -f conftest$ac_exeext |
| 22123 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 22124 | (eval $ac_link) 2>&5 |
| 22125 | ac_status=$? |
| 22126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22127 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 22128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22129 | (eval $ac_try) 2>&5 |
| 22130 | ac_status=$? |
| 22131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22132 | (exit $ac_status); }; }; then |
| 22133 | ac_cv_working_tzset=yes |
| 22134 | else |
| 22135 | echo "$as_me: program exited with status $ac_status" >&5 |
| 22136 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22137 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22138 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 22139 | ( exit $ac_status ) |
| 22140 | ac_cv_working_tzset=no |
| 22141 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22142 | 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] | 22143 | fi |
| 22144 | fi |
| 22145 | |
| 22146 | echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5 |
| 22147 | echo "${ECHO_T}$ac_cv_working_tzset" >&6 |
| 22148 | if test "$ac_cv_working_tzset" = yes |
| 22149 | then |
| 22150 | |
| 22151 | cat >>confdefs.h <<\_ACEOF |
| 22152 | #define HAVE_WORKING_TZSET 1 |
| 22153 | _ACEOF |
| 22154 | |
| 22155 | fi |
| 22156 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 22157 | # Look for subsecond timestamps in struct stat |
| 22158 | echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 22159 | echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6 |
| 22160 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
| 22161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22162 | else |
| 22163 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22164 | /* confdefs.h. */ |
| 22165 | _ACEOF |
| 22166 | cat confdefs.h >>conftest.$ac_ext |
| 22167 | cat >>conftest.$ac_ext <<_ACEOF |
| 22168 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 22169 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 22170 | int |
| 22171 | main () |
| 22172 | { |
| 22173 | |
| 22174 | struct stat st; |
| 22175 | st.st_mtim.tv_nsec = 1; |
| 22176 | |
| 22177 | ; |
| 22178 | return 0; |
| 22179 | } |
| 22180 | _ACEOF |
| 22181 | rm -f conftest.$ac_objext |
| 22182 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22183 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 22184 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22185 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22186 | rm -f conftest.er1 |
| 22187 | cat conftest.err >&5 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 22188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22189 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22190 | { ac_try='test -z "$ac_c_werror_flag" |
| 22191 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22193 | (eval $ac_try) 2>&5 |
| 22194 | ac_status=$? |
| 22195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22196 | (exit $ac_status); }; } && |
| 22197 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 22198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22199 | (eval $ac_try) 2>&5 |
| 22200 | ac_status=$? |
| 22201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22202 | (exit $ac_status); }; }; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 22203 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 22204 | else |
| 22205 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22206 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22207 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 22208 | ac_cv_stat_tv_nsec=no |
| 22209 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22210 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 22211 | fi |
| 22212 | |
| 22213 | echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 22214 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6 |
| 22215 | if test "$ac_cv_stat_tv_nsec" = yes |
| 22216 | then |
| 22217 | |
| 22218 | cat >>confdefs.h <<\_ACEOF |
| 22219 | #define HAVE_STAT_TV_NSEC 1 |
| 22220 | _ACEOF |
| 22221 | |
| 22222 | fi |
| 22223 | |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22224 | # Look for BSD style subsecond timestamps in struct stat |
| 22225 | echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5 |
| 22226 | echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6 |
| 22227 | if test "${ac_cv_stat_tv_nsec2+set}" = set; then |
| 22228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22229 | else |
| 22230 | cat >conftest.$ac_ext <<_ACEOF |
| 22231 | /* confdefs.h. */ |
| 22232 | _ACEOF |
| 22233 | cat confdefs.h >>conftest.$ac_ext |
| 22234 | cat >>conftest.$ac_ext <<_ACEOF |
| 22235 | /* end confdefs.h. */ |
| 22236 | #include <sys/stat.h> |
| 22237 | int |
| 22238 | main () |
| 22239 | { |
| 22240 | |
| 22241 | struct stat st; |
| 22242 | st.st_mtimespec.tv_nsec = 1; |
| 22243 | |
| 22244 | ; |
| 22245 | return 0; |
| 22246 | } |
| 22247 | _ACEOF |
| 22248 | rm -f conftest.$ac_objext |
| 22249 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 22250 | (eval $ac_compile) 2>conftest.er1 |
| 22251 | ac_status=$? |
| 22252 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22253 | rm -f conftest.er1 |
| 22254 | cat conftest.err >&5 |
| 22255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22256 | (exit $ac_status); } && |
| 22257 | { ac_try='test -z "$ac_c_werror_flag" |
| 22258 | || test ! -s conftest.err' |
| 22259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22260 | (eval $ac_try) 2>&5 |
| 22261 | ac_status=$? |
| 22262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22263 | (exit $ac_status); }; } && |
| 22264 | { ac_try='test -s conftest.$ac_objext' |
| 22265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22266 | (eval $ac_try) 2>&5 |
| 22267 | ac_status=$? |
| 22268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22269 | (exit $ac_status); }; }; then |
| 22270 | ac_cv_stat_tv_nsec2=yes |
| 22271 | else |
| 22272 | echo "$as_me: failed program was:" >&5 |
| 22273 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22274 | |
| 22275 | ac_cv_stat_tv_nsec2=no |
| 22276 | fi |
| 22277 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22278 | fi |
| 22279 | |
| 22280 | echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5 |
| 22281 | echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6 |
| 22282 | if test "$ac_cv_stat_tv_nsec2" = yes |
| 22283 | then |
| 22284 | |
| 22285 | cat >>confdefs.h <<\_ACEOF |
| 22286 | #define HAVE_STAT_TV_NSEC2 1 |
| 22287 | _ACEOF |
| 22288 | |
| 22289 | fi |
| 22290 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22291 | # 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] | 22292 | echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 22293 | echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6 |
| 22294 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
| 22295 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22296 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22297 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22298 | /* confdefs.h. */ |
| 22299 | _ACEOF |
| 22300 | cat confdefs.h >>conftest.$ac_ext |
| 22301 | cat >>conftest.$ac_ext <<_ACEOF |
| 22302 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22303 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22304 | int |
| 22305 | main () |
| 22306 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22307 | |
| 22308 | int rtn; |
| 22309 | rtn = mvwdelch(0,0,0); |
| 22310 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22311 | ; |
| 22312 | return 0; |
| 22313 | } |
| 22314 | _ACEOF |
| 22315 | rm -f conftest.$ac_objext |
| 22316 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22317 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22318 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22319 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22320 | rm -f conftest.er1 |
| 22321 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22323 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22324 | { ac_try='test -z "$ac_c_werror_flag" |
| 22325 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22327 | (eval $ac_try) 2>&5 |
| 22328 | ac_status=$? |
| 22329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22330 | (exit $ac_status); }; } && |
| 22331 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22333 | (eval $ac_try) 2>&5 |
| 22334 | ac_status=$? |
| 22335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22336 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22337 | ac_cv_mvwdelch_is_expression=yes |
| 22338 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22339 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22340 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22341 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22342 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22343 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22344 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22345 | fi |
| 22346 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22347 | echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 22348 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22349 | |
| 22350 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 22351 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22352 | |
| 22353 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22354 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22355 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22356 | |
| 22357 | fi |
| 22358 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22359 | echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 22360 | echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6 |
| 22361 | if test "${ac_cv_window_has_flags+set}" = set; then |
| 22362 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22363 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22364 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22365 | /* confdefs.h. */ |
| 22366 | _ACEOF |
| 22367 | cat confdefs.h >>conftest.$ac_ext |
| 22368 | cat >>conftest.$ac_ext <<_ACEOF |
| 22369 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22370 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22371 | int |
| 22372 | main () |
| 22373 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22374 | |
| 22375 | WINDOW *w; |
| 22376 | w->_flags = 0; |
| 22377 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22378 | ; |
| 22379 | return 0; |
| 22380 | } |
| 22381 | _ACEOF |
| 22382 | rm -f conftest.$ac_objext |
| 22383 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22384 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22385 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22386 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22387 | rm -f conftest.er1 |
| 22388 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22390 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22391 | { ac_try='test -z "$ac_c_werror_flag" |
| 22392 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22394 | (eval $ac_try) 2>&5 |
| 22395 | ac_status=$? |
| 22396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22397 | (exit $ac_status); }; } && |
| 22398 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22400 | (eval $ac_try) 2>&5 |
| 22401 | ac_status=$? |
| 22402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22403 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22404 | ac_cv_window_has_flags=yes |
| 22405 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22406 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22407 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22408 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22409 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22410 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22411 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22412 | fi |
| 22413 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22414 | echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 22415 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22416 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22417 | |
| 22418 | if test "$ac_cv_window_has_flags" = yes |
| 22419 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22420 | |
| 22421 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22422 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22423 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22424 | |
| 22425 | fi |
| 22426 | |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 22427 | echo "$as_me:$LINENO: checking for is_term_resized" >&5 |
| 22428 | echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6 |
| 22429 | cat >conftest.$ac_ext <<_ACEOF |
| 22430 | /* confdefs.h. */ |
| 22431 | _ACEOF |
| 22432 | cat confdefs.h >>conftest.$ac_ext |
| 22433 | cat >>conftest.$ac_ext <<_ACEOF |
| 22434 | /* end confdefs.h. */ |
| 22435 | #include <curses.h> |
| 22436 | int |
| 22437 | main () |
| 22438 | { |
| 22439 | void *x=is_term_resized |
| 22440 | ; |
| 22441 | return 0; |
| 22442 | } |
| 22443 | _ACEOF |
| 22444 | rm -f conftest.$ac_objext |
| 22445 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 22446 | (eval $ac_compile) 2>conftest.er1 |
| 22447 | ac_status=$? |
| 22448 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22449 | rm -f conftest.er1 |
| 22450 | cat conftest.err >&5 |
| 22451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22452 | (exit $ac_status); } && |
| 22453 | { ac_try='test -z "$ac_c_werror_flag" |
| 22454 | || test ! -s conftest.err' |
| 22455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22456 | (eval $ac_try) 2>&5 |
| 22457 | ac_status=$? |
| 22458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22459 | (exit $ac_status); }; } && |
| 22460 | { ac_try='test -s conftest.$ac_objext' |
| 22461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22462 | (eval $ac_try) 2>&5 |
| 22463 | ac_status=$? |
| 22464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22465 | (exit $ac_status); }; }; then |
| 22466 | |
| 22467 | cat >>confdefs.h <<\_ACEOF |
| 22468 | #define HAVE_CURSES_IS_TERM_RESIZED 1 |
| 22469 | _ACEOF |
| 22470 | |
| 22471 | echo "$as_me:$LINENO: result: yes" >&5 |
| 22472 | echo "${ECHO_T}yes" >&6 |
| 22473 | else |
| 22474 | echo "$as_me: failed program was:" >&5 |
| 22475 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22476 | |
| 22477 | echo "$as_me:$LINENO: result: no" >&5 |
| 22478 | echo "${ECHO_T}no" >&6 |
| 22479 | |
| 22480 | fi |
| 22481 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22482 | |
| 22483 | echo "$as_me:$LINENO: checking for resize_term" >&5 |
| 22484 | echo $ECHO_N "checking for resize_term... $ECHO_C" >&6 |
| 22485 | cat >conftest.$ac_ext <<_ACEOF |
| 22486 | /* confdefs.h. */ |
| 22487 | _ACEOF |
| 22488 | cat confdefs.h >>conftest.$ac_ext |
| 22489 | cat >>conftest.$ac_ext <<_ACEOF |
| 22490 | /* end confdefs.h. */ |
| 22491 | #include <curses.h> |
| 22492 | int |
| 22493 | main () |
| 22494 | { |
| 22495 | void *x=resize_term |
| 22496 | ; |
| 22497 | return 0; |
| 22498 | } |
| 22499 | _ACEOF |
| 22500 | rm -f conftest.$ac_objext |
| 22501 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 22502 | (eval $ac_compile) 2>conftest.er1 |
| 22503 | ac_status=$? |
| 22504 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22505 | rm -f conftest.er1 |
| 22506 | cat conftest.err >&5 |
| 22507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22508 | (exit $ac_status); } && |
| 22509 | { ac_try='test -z "$ac_c_werror_flag" |
| 22510 | || test ! -s conftest.err' |
| 22511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22512 | (eval $ac_try) 2>&5 |
| 22513 | ac_status=$? |
| 22514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22515 | (exit $ac_status); }; } && |
| 22516 | { ac_try='test -s conftest.$ac_objext' |
| 22517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22518 | (eval $ac_try) 2>&5 |
| 22519 | ac_status=$? |
| 22520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22521 | (exit $ac_status); }; }; then |
| 22522 | |
| 22523 | cat >>confdefs.h <<\_ACEOF |
| 22524 | #define HAVE_CURSES_RESIZE_TERM 1 |
| 22525 | _ACEOF |
| 22526 | |
| 22527 | echo "$as_me:$LINENO: result: yes" >&5 |
| 22528 | echo "${ECHO_T}yes" >&6 |
| 22529 | else |
| 22530 | echo "$as_me: failed program was:" >&5 |
| 22531 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22532 | |
| 22533 | echo "$as_me:$LINENO: result: no" >&5 |
| 22534 | echo "${ECHO_T}no" >&6 |
| 22535 | |
| 22536 | fi |
| 22537 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22538 | |
| 22539 | echo "$as_me:$LINENO: checking for resizeterm" >&5 |
| 22540 | echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6 |
| 22541 | cat >conftest.$ac_ext <<_ACEOF |
| 22542 | /* confdefs.h. */ |
| 22543 | _ACEOF |
| 22544 | cat confdefs.h >>conftest.$ac_ext |
| 22545 | cat >>conftest.$ac_ext <<_ACEOF |
| 22546 | /* end confdefs.h. */ |
| 22547 | #include <curses.h> |
| 22548 | int |
| 22549 | main () |
| 22550 | { |
| 22551 | void *x=resizeterm |
| 22552 | ; |
| 22553 | return 0; |
| 22554 | } |
| 22555 | _ACEOF |
| 22556 | rm -f conftest.$ac_objext |
| 22557 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 22558 | (eval $ac_compile) 2>conftest.er1 |
| 22559 | ac_status=$? |
| 22560 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22561 | rm -f conftest.er1 |
| 22562 | cat conftest.err >&5 |
| 22563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22564 | (exit $ac_status); } && |
| 22565 | { ac_try='test -z "$ac_c_werror_flag" |
| 22566 | || test ! -s conftest.err' |
| 22567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22568 | (eval $ac_try) 2>&5 |
| 22569 | ac_status=$? |
| 22570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22571 | (exit $ac_status); }; } && |
| 22572 | { ac_try='test -s conftest.$ac_objext' |
| 22573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22574 | (eval $ac_try) 2>&5 |
| 22575 | ac_status=$? |
| 22576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22577 | (exit $ac_status); }; }; then |
| 22578 | |
| 22579 | cat >>confdefs.h <<\_ACEOF |
| 22580 | #define HAVE_CURSES_RESIZETERM 1 |
| 22581 | _ACEOF |
| 22582 | |
| 22583 | echo "$as_me:$LINENO: result: yes" >&5 |
| 22584 | echo "${ECHO_T}yes" >&6 |
| 22585 | else |
| 22586 | echo "$as_me: failed program was:" >&5 |
| 22587 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22588 | |
| 22589 | echo "$as_me:$LINENO: result: no" >&5 |
| 22590 | echo "${ECHO_T}no" >&6 |
| 22591 | |
| 22592 | fi |
| 22593 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22594 | |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 22595 | echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
| 22596 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6 |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 22597 | |
| 22598 | if test -r /dev/ptmx |
| 22599 | then |
| 22600 | echo "$as_me:$LINENO: result: yes" >&5 |
| 22601 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 22602 | |
| 22603 | cat >>confdefs.h <<\_ACEOF |
| 22604 | #define HAVE_DEV_PTMX 1 |
| 22605 | _ACEOF |
| 22606 | |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 22607 | else |
| 22608 | echo "$as_me:$LINENO: result: no" >&5 |
| 22609 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 22610 | fi |
| 22611 | |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 22612 | echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 22613 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6 |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 22614 | |
| 22615 | if test -r /dev/ptc |
| 22616 | then |
| 22617 | echo "$as_me:$LINENO: result: yes" >&5 |
| 22618 | echo "${ECHO_T}yes" >&6 |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 22619 | |
| 22620 | cat >>confdefs.h <<\_ACEOF |
| 22621 | #define HAVE_DEV_PTC 1 |
| 22622 | _ACEOF |
| 22623 | |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 22624 | else |
| 22625 | echo "$as_me:$LINENO: result: no" >&5 |
| 22626 | echo "${ECHO_T}no" >&6 |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 22627 | fi |
| 22628 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 22629 | echo "$as_me:$LINENO: checking for %zd printf() format support" >&5 |
| 22630 | echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6 |
| 22631 | if test "$cross_compiling" = yes; then |
| 22632 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 22633 | See \`config.log' for more details." >&5 |
| 22634 | echo "$as_me: error: cannot run test program while cross compiling |
| 22635 | See \`config.log' for more details." >&2;} |
| 22636 | { (exit 1); exit 1; }; } |
| 22637 | else |
| 22638 | cat >conftest.$ac_ext <<_ACEOF |
| 22639 | /* confdefs.h. */ |
| 22640 | _ACEOF |
| 22641 | cat confdefs.h >>conftest.$ac_ext |
| 22642 | cat >>conftest.$ac_ext <<_ACEOF |
| 22643 | /* end confdefs.h. */ |
| 22644 | #include <stdio.h> |
| 22645 | #include <stddef.h> |
| 22646 | #include <string.h> |
| 22647 | |
| 22648 | int main() |
| 22649 | { |
Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 22650 | char buffer[256]; |
| 22651 | |
| 22652 | #ifdef HAVE_SSIZE_T |
| 22653 | typedef ssize_t Py_ssize_t; |
| 22654 | #elif SIZEOF_VOID_P == SIZEOF_LONG |
| 22655 | typedef long Py_ssize_t; |
| 22656 | #else |
| 22657 | typedef int Py_ssize_t; |
| 22658 | #endif |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 22659 | |
| 22660 | if(sprintf(buffer, "%zd", (size_t)123) < 0) |
| 22661 | return 1; |
| 22662 | |
Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 22663 | if (strcmp(buffer, "123")) |
| 22664 | return 1; |
| 22665 | |
| 22666 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) |
| 22667 | return 1; |
| 22668 | |
| 22669 | if (strcmp(buffer, "-123")) |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 22670 | return 1; |
| 22671 | |
| 22672 | return 0; |
| 22673 | } |
| 22674 | _ACEOF |
| 22675 | rm -f conftest$ac_exeext |
| 22676 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 22677 | (eval $ac_link) 2>&5 |
| 22678 | ac_status=$? |
| 22679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22680 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 22681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22682 | (eval $ac_try) 2>&5 |
| 22683 | ac_status=$? |
| 22684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22685 | (exit $ac_status); }; }; then |
| 22686 | echo "$as_me:$LINENO: result: yes" >&5 |
| 22687 | echo "${ECHO_T}yes" >&6 |
| 22688 | |
| 22689 | cat >>confdefs.h <<\_ACEOF |
| 22690 | #define PY_FORMAT_SIZE_T "z" |
| 22691 | _ACEOF |
| 22692 | |
| 22693 | else |
| 22694 | echo "$as_me: program exited with status $ac_status" >&5 |
| 22695 | echo "$as_me: failed program was:" >&5 |
| 22696 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22697 | |
| 22698 | ( exit $ac_status ) |
| 22699 | echo "$as_me:$LINENO: result: no" >&5 |
| 22700 | echo "${ECHO_T}no" >&6 |
| 22701 | fi |
| 22702 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 22703 | fi |
| 22704 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22705 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 22706 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
| 22707 | if test "${ac_cv_type_socklen_t+set}" = set; then |
| 22708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 22709 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22710 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22711 | /* confdefs.h. */ |
| 22712 | _ACEOF |
| 22713 | cat confdefs.h >>conftest.$ac_ext |
| 22714 | cat >>conftest.$ac_ext <<_ACEOF |
| 22715 | /* end confdefs.h. */ |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 22716 | |
| 22717 | #ifdef HAVE_SYS_TYPES_H |
| 22718 | #include <sys/types.h> |
| 22719 | #endif |
| 22720 | #ifdef HAVE_SYS_SOCKET_H |
| 22721 | #include <sys/socket.h> |
| 22722 | #endif |
| 22723 | |
| 22724 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22725 | int |
| 22726 | main () |
| 22727 | { |
| 22728 | if ((socklen_t *) 0) |
| 22729 | return 0; |
| 22730 | if (sizeof (socklen_t)) |
| 22731 | return 0; |
| 22732 | ; |
| 22733 | return 0; |
| 22734 | } |
| 22735 | _ACEOF |
| 22736 | rm -f conftest.$ac_objext |
| 22737 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22738 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22739 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22740 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22741 | rm -f conftest.er1 |
| 22742 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22744 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22745 | { ac_try='test -z "$ac_c_werror_flag" |
| 22746 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22748 | (eval $ac_try) 2>&5 |
| 22749 | ac_status=$? |
| 22750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22751 | (exit $ac_status); }; } && |
| 22752 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22754 | (eval $ac_try) 2>&5 |
| 22755 | ac_status=$? |
| 22756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22757 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 22758 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 22759 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22760 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22761 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22762 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22763 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 22764 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22765 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22766 | fi |
| 22767 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 22768 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 |
| 22769 | if test $ac_cv_type_socklen_t = yes; then |
| 22770 | : |
| 22771 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 22772 | |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 22773 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 22774 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22775 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 22776 | |
| 22777 | fi |
| 22778 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22779 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22780 | |
| 22781 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 22782 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 22783 | do |
| 22784 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 22785 | done |
| 22786 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22787 | |
Neal Norwitz | d24499d | 2005-12-18 21:36:39 +0000 | [diff] [blame] | 22788 | SRCDIRS="Parser Grammar Objects Python Modules Mac" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22789 | echo "$as_me:$LINENO: checking for build directories" >&5 |
| 22790 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 22791 | for dir in $SRCDIRS; do |
| 22792 | if test ! -d $dir; then |
| 22793 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 22794 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 22795 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22796 | echo "$as_me:$LINENO: result: done" >&5 |
| 22797 | echo "${ECHO_T}done" >&6 |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 22798 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22799 | # generate output files |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22800 | 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] | 22801 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22802 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22803 | # This file is a shell script that caches the results of configure |
| 22804 | # 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] | 22805 | # scripts and configure runs, see configure's option --config-cache. |
| 22806 | # It is not useful on other systems. If it contains results you don't |
| 22807 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22808 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22809 | # config.status only pays attention to the cache file if you give it |
| 22810 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22811 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22812 | # `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] | 22813 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 22814 | # following values. |
| 22815 | |
| 22816 | _ACEOF |
| 22817 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 22818 | # The following way of writing the cache mishandles newlines in values, |
| 22819 | # but we know of no workaround that is simple, portable, and efficient. |
| 22820 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 22821 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 22822 | # 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] | 22823 | { |
| 22824 | (set) 2>&1 | |
| 22825 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 22826 | *ac_space=\ *) |
| 22827 | # `set' does not quote correctly, so add quotes (double-quote |
| 22828 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 22829 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22830 | "s/'/'\\\\''/g; |
| 22831 | 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] | 22832 | ;; |
| 22833 | *) |
| 22834 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 22835 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22836 | "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] | 22837 | ;; |
| 22838 | esac; |
| 22839 | } | |
| 22840 | sed ' |
| 22841 | t clear |
| 22842 | : clear |
| 22843 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 22844 | t end |
| 22845 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 22846 | : end' >>confcache |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22847 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 22848 | if test -w $cache_file; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22849 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 22850 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 22851 | else |
| 22852 | echo "not updating unwritable cache $cache_file" |
| 22853 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22854 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 22855 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 22856 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22857 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 22858 | # Let make expand exec_prefix. |
| 22859 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 22860 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22861 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 22862 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 22863 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 22864 | # (actually we leave an empty line to preserve line numbers). |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22865 | if test "x$srcdir" = x.; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22866 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22867 | s/:*\$(srcdir):*/:/; |
| 22868 | s/:*\${srcdir}:*/:/; |
| 22869 | s/:*@srcdir@:*/:/; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22870 | s/^\([^=]*=[ ]*\):*/\1/; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22871 | s/:*$//; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22872 | s/^[^=]*=[ ]*$//; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22873 | }' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22874 | fi |
| 22875 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22876 | DEFS=-DHAVE_CONFIG_H |
| 22877 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22878 | ac_libobjs= |
| 22879 | ac_ltlibobjs= |
| 22880 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 22881 | # 1. Remove the extension, and $U if already installed. |
| 22882 | ac_i=`echo "$ac_i" | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22883 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 22884 | # 2. Add them. |
| 22885 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 22886 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22887 | done |
| 22888 | LIBOBJS=$ac_libobjs |
| 22889 | |
| 22890 | LTLIBOBJS=$ac_ltlibobjs |
| 22891 | |
| 22892 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22893 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22894 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22895 | ac_clean_files_save=$ac_clean_files |
| 22896 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 22897 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 22898 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 22899 | cat >$CONFIG_STATUS <<_ACEOF |
| 22900 | #! $SHELL |
| 22901 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22902 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22903 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22904 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22905 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22906 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22907 | ac_cs_recheck=false |
| 22908 | ac_cs_silent=false |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22909 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 22910 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 22911 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22912 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22913 | ## --------------------- ## |
| 22914 | ## M4sh Initialization. ## |
| 22915 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 22916 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22917 | # Be Bourne compatible |
| 22918 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 22919 | emulate sh |
| 22920 | NULLCMD=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22921 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 22922 | # is contrary to our usage. Disable this feature. |
| 22923 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22924 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 22925 | set -o posix |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22926 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22927 | DUALCASE=1; export DUALCASE # for MKS sh |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22928 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22929 | # Support unset when possible. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22930 | 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] | 22931 | as_unset=unset |
| 22932 | else |
| 22933 | as_unset=false |
| 22934 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22935 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22936 | |
| 22937 | # Work around bugs in pre-3.0 UWIN ksh. |
| 22938 | $as_unset ENV MAIL MAILPATH |
| 22939 | PS1='$ ' |
| 22940 | PS2='> ' |
| 22941 | PS4='+ ' |
| 22942 | |
| 22943 | # NLS nuisances. |
| 22944 | for as_var in \ |
| 22945 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 22946 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 22947 | LC_TELEPHONE LC_TIME |
| 22948 | do |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22949 | 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] | 22950 | eval $as_var=C; export $as_var |
| 22951 | else |
| 22952 | $as_unset $as_var |
| 22953 | fi |
| 22954 | done |
| 22955 | |
| 22956 | # Required to use basename. |
| 22957 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 22958 | as_expr=expr |
| 22959 | else |
| 22960 | as_expr=false |
| 22961 | fi |
| 22962 | |
| 22963 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 22964 | as_basename=basename |
| 22965 | else |
| 22966 | as_basename=false |
| 22967 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22968 | |
| 22969 | |
| 22970 | # Name of the executable. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22971 | as_me=`$as_basename "$0" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22972 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 22973 | X"$0" : 'X\(//\)$' \| \ |
| 22974 | X"$0" : 'X\(/\)$' \| \ |
| 22975 | . : '\(.\)' 2>/dev/null || |
| 22976 | echo X/"$0" | |
| 22977 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 22978 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 22979 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 22980 | s/.*/./; q'` |
| 22981 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22982 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22983 | # PATH needs CR, and LINENO needs CR and PATH. |
| 22984 | # Avoid depending upon Character Ranges. |
| 22985 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 22986 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 22987 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 22988 | as_cr_digits='0123456789' |
| 22989 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 22990 | |
| 22991 | # The user is always right. |
| 22992 | if test "${PATH_SEPARATOR+set}" != set; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22993 | echo "#! /bin/sh" >conf$$.sh |
| 22994 | echo "exit 0" >>conf$$.sh |
| 22995 | chmod +x conf$$.sh |
| 22996 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22997 | PATH_SEPARATOR=';' |
| 22998 | else |
| 22999 | PATH_SEPARATOR=: |
| 23000 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23001 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23002 | fi |
| 23003 | |
| 23004 | |
| 23005 | as_lineno_1=$LINENO |
| 23006 | as_lineno_2=$LINENO |
| 23007 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 23008 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 23009 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 23010 | # Find who we are. Look in the path if we contain no path at all |
| 23011 | # relative or not. |
| 23012 | case $0 in |
| 23013 | *[\\/]* ) as_myself=$0 ;; |
| 23014 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 23015 | for as_dir in $PATH |
| 23016 | do |
| 23017 | IFS=$as_save_IFS |
| 23018 | test -z "$as_dir" && as_dir=. |
| 23019 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 23020 | done |
| 23021 | |
| 23022 | ;; |
| 23023 | esac |
| 23024 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 23025 | # in which case we are not to be found in the path. |
| 23026 | if test "x$as_myself" = x; then |
| 23027 | as_myself=$0 |
| 23028 | fi |
| 23029 | if test ! -f "$as_myself"; then |
| 23030 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 23031 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 23032 | { (exit 1); exit 1; }; } |
| 23033 | fi |
| 23034 | case $CONFIG_SHELL in |
| 23035 | '') |
| 23036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 23037 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 23038 | do |
| 23039 | IFS=$as_save_IFS |
| 23040 | test -z "$as_dir" && as_dir=. |
| 23041 | for as_base in sh bash ksh sh5; do |
| 23042 | case $as_dir in |
| 23043 | /*) |
| 23044 | if ("$as_dir/$as_base" -c ' |
| 23045 | as_lineno_1=$LINENO |
| 23046 | as_lineno_2=$LINENO |
| 23047 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 23048 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 23049 | 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] | 23050 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 23051 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23052 | CONFIG_SHELL=$as_dir/$as_base |
| 23053 | export CONFIG_SHELL |
| 23054 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 23055 | fi;; |
| 23056 | esac |
| 23057 | done |
| 23058 | done |
| 23059 | ;; |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 23060 | esac |
| 23061 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23062 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 23063 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 23064 | # line-number line before each line; the second 'sed' does the real |
| 23065 | # work. The second script uses 'N' to pair each line-number line |
| 23066 | # with the numbered line, and appends trailing '-' during |
| 23067 | # substitution so that $LINENO is not a special case at line end. |
| 23068 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 23069 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 23070 | sed '=' <$as_myself | |
| 23071 | sed ' |
| 23072 | N |
| 23073 | s,$,-, |
| 23074 | : loop |
| 23075 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 23076 | t loop |
| 23077 | s,-$,, |
| 23078 | s,^['$as_cr_digits']*\n,, |
| 23079 | ' >$as_me.lineno && |
| 23080 | chmod +x $as_me.lineno || |
| 23081 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 23082 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 23083 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23084 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23085 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 23086 | # (the dirname of $[0] is not the place where we might find the |
| 23087 | # original and so on. Autoconf is especially sensible to this). |
| 23088 | . ./$as_me.lineno |
| 23089 | # Exit status is that of the last command. |
| 23090 | exit |
| 23091 | } |
| 23092 | |
| 23093 | |
| 23094 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 23095 | *c*,-n*) ECHO_N= ECHO_C=' |
| 23096 | ' ECHO_T=' ' ;; |
| 23097 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 23098 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 23099 | esac |
| 23100 | |
| 23101 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 23102 | as_expr=expr |
| 23103 | else |
| 23104 | as_expr=false |
| 23105 | fi |
| 23106 | |
| 23107 | rm -f conf$$ conf$$.exe conf$$.file |
| 23108 | echo >conf$$.file |
| 23109 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 23110 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 23111 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 23112 | if test -f conf$$.exe; then |
| 23113 | # Don't use ln at all; we don't have any links |
| 23114 | as_ln_s='cp -p' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23115 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23116 | as_ln_s='ln -s' |
| 23117 | fi |
| 23118 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 23119 | as_ln_s=ln |
| 23120 | else |
| 23121 | as_ln_s='cp -p' |
| 23122 | fi |
| 23123 | rm -f conf$$ conf$$.exe conf$$.file |
| 23124 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23125 | if mkdir -p . 2>/dev/null; then |
| 23126 | as_mkdir_p=: |
| 23127 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23128 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23129 | as_mkdir_p=false |
| 23130 | fi |
| 23131 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23132 | as_executable_p="test -f" |
| 23133 | |
| 23134 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23135 | 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] | 23136 | |
| 23137 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23138 | 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] | 23139 | |
| 23140 | |
| 23141 | # IFS |
| 23142 | # We need space, tab and new line, in precisely that order. |
| 23143 | as_nl=' |
| 23144 | ' |
| 23145 | IFS=" $as_nl" |
| 23146 | |
| 23147 | # CDPATH. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23148 | $as_unset CDPATH |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23149 | |
| 23150 | exec 6>&1 |
| 23151 | |
| 23152 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 23153 | # report actual input values of CONFIG_FILES etc. instead of their |
| 23154 | # values after options handling. Logging --version etc. is OK. |
| 23155 | exec 5>>config.log |
| 23156 | { |
| 23157 | echo |
| 23158 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 23159 | ## Running $as_me. ## |
| 23160 | _ASBOX |
| 23161 | } >&5 |
| 23162 | cat >&5 <<_CSEOF |
| 23163 | |
Neal Norwitz | 9be5732 | 2006-08-18 05:39:20 +0000 | [diff] [blame] | 23164 | This file was extended by python $as_me 2.6, which was |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23165 | generated by GNU Autoconf 2.59. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23166 | |
| 23167 | CONFIG_FILES = $CONFIG_FILES |
| 23168 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 23169 | CONFIG_LINKS = $CONFIG_LINKS |
| 23170 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 23171 | $ $0 $@ |
| 23172 | |
| 23173 | _CSEOF |
| 23174 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 23175 | echo >&5 |
| 23176 | _ACEOF |
| 23177 | |
| 23178 | # Files that config.status was made for. |
| 23179 | if test -n "$ac_config_files"; then |
| 23180 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 23181 | fi |
| 23182 | |
| 23183 | if test -n "$ac_config_headers"; then |
| 23184 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 23185 | fi |
| 23186 | |
| 23187 | if test -n "$ac_config_links"; then |
| 23188 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 23189 | fi |
| 23190 | |
| 23191 | if test -n "$ac_config_commands"; then |
| 23192 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 23193 | fi |
| 23194 | |
| 23195 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23196 | |
| 23197 | ac_cs_usage="\ |
| 23198 | \`$as_me' instantiates files from templates according to the |
| 23199 | current configuration. |
| 23200 | |
| 23201 | Usage: $0 [OPTIONS] [FILE]... |
| 23202 | |
| 23203 | -h, --help print this help, then exit |
| 23204 | -V, --version print version number, then exit |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23205 | -q, --quiet do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23206 | -d, --debug don't remove temporary files |
| 23207 | --recheck update $as_me by reconfiguring in the same conditions |
| 23208 | --file=FILE[:TEMPLATE] |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23209 | instantiate the configuration file FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23210 | --header=FILE[:TEMPLATE] |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23211 | instantiate the configuration header FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23212 | |
| 23213 | Configuration files: |
| 23214 | $config_files |
| 23215 | |
| 23216 | Configuration headers: |
| 23217 | $config_headers |
| 23218 | |
| 23219 | Report bugs to <bug-autoconf@gnu.org>." |
| 23220 | _ACEOF |
| 23221 | |
| 23222 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23223 | ac_cs_version="\\ |
Neal Norwitz | 9be5732 | 2006-08-18 05:39:20 +0000 | [diff] [blame] | 23224 | python config.status 2.6 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23225 | configured by $0, generated by GNU Autoconf 2.59, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23226 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 23227 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23228 | Copyright (C) 2003 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23229 | This config.status script is free software; the Free Software Foundation |
| 23230 | gives unlimited permission to copy, distribute and modify it." |
| 23231 | srcdir=$srcdir |
| 23232 | INSTALL="$INSTALL" |
| 23233 | _ACEOF |
| 23234 | |
| 23235 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23236 | # If no file are specified by the user, then we need to provide default |
| 23237 | # value. By we need to know if files were specified by the user. |
| 23238 | ac_need_defaults=: |
| 23239 | while test $# != 0 |
| 23240 | do |
| 23241 | case $1 in |
| 23242 | --*=*) |
| 23243 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 23244 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23245 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23246 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23247 | -*) |
| 23248 | ac_option=$1 |
| 23249 | ac_optarg=$2 |
| 23250 | ac_shift=shift |
| 23251 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23252 | *) # This is not an option, so the user has probably given explicit |
| 23253 | # arguments. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23254 | ac_option=$1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23255 | ac_need_defaults=false;; |
| 23256 | esac |
| 23257 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23258 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23259 | # Handling of the options. |
| 23260 | _ACEOF |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 23261 | cat >>$CONFIG_STATUS <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23262 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 23263 | ac_cs_recheck=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23264 | --version | --vers* | -V ) |
| 23265 | echo "$ac_cs_version"; exit 0 ;; |
| 23266 | --he | --h) |
| 23267 | # Conflict between --help and --header |
| 23268 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 23269 | Try \`$0 --help' for more information." >&5 |
| 23270 | echo "$as_me: error: ambiguous option: $1 |
| 23271 | Try \`$0 --help' for more information." >&2;} |
| 23272 | { (exit 1); exit 1; }; };; |
| 23273 | --help | --hel | -h ) |
| 23274 | echo "$ac_cs_usage"; exit 0 ;; |
| 23275 | --debug | --d* | -d ) |
| 23276 | debug=: ;; |
| 23277 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23278 | $ac_shift |
| 23279 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23280 | ac_need_defaults=false;; |
| 23281 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23282 | $ac_shift |
| 23283 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23284 | ac_need_defaults=false;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23285 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 23286 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 23287 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23288 | |
| 23289 | # This is an error. |
| 23290 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 23291 | Try \`$0 --help' for more information." >&5 |
| 23292 | echo "$as_me: error: unrecognized option: $1 |
| 23293 | Try \`$0 --help' for more information." >&2;} |
| 23294 | { (exit 1); exit 1; }; } ;; |
| 23295 | |
| 23296 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 23297 | |
| 23298 | esac |
| 23299 | shift |
| 23300 | done |
| 23301 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23302 | ac_configure_extra_args= |
| 23303 | |
| 23304 | if $ac_cs_silent; then |
| 23305 | exec 6>/dev/null |
| 23306 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 23307 | fi |
| 23308 | |
| 23309 | _ACEOF |
| 23310 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23311 | if \$ac_cs_recheck; then |
| 23312 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 23313 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 23314 | fi |
| 23315 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23316 | _ACEOF |
| 23317 | |
| 23318 | |
| 23319 | |
| 23320 | |
| 23321 | |
| 23322 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23323 | for ac_config_target in $ac_config_targets |
| 23324 | do |
| 23325 | case "$ac_config_target" in |
| 23326 | # Handling of arguments. |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 23327 | "Mac/Makefile" ) CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; |
| 23328 | "Mac/PythonLauncher/Makefile" ) CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; |
| 23329 | "Mac/IDLE/Makefile" ) CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23330 | "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 23331 | "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
| 23332 | "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 23333 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 23334 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 23335 | { (exit 1); exit 1; }; };; |
| 23336 | esac |
| 23337 | done |
| 23338 | |
| 23339 | # If the user did not use the arguments to specify the items to instantiate, |
| 23340 | # then the envvar interface is used. Set only those that are not. |
| 23341 | # We use the long form for the default assignment because of an extremely |
| 23342 | # bizarre bug on SunOS 4.1.3. |
| 23343 | if $ac_need_defaults; then |
| 23344 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 23345 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 23346 | fi |
| 23347 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23348 | # Have a temporary directory for convenience. Make it in the build tree |
| 23349 | # simply because there is no reason to put it here, and in addition, |
| 23350 | # creating and moving files from /tmp can sometimes cause problems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23351 | # Create a temporary directory, and hook for its removal unless debugging. |
| 23352 | $debug || |
| 23353 | { |
| 23354 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 23355 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 23356 | } |
| 23357 | |
| 23358 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23359 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23360 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23361 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23362 | test -n "$tmp" && test -d "$tmp" |
| 23363 | } || |
| 23364 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23365 | tmp=./confstat$$-$RANDOM |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23366 | (umask 077 && mkdir $tmp) |
| 23367 | } || |
| 23368 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23369 | echo "$me: cannot create a temporary directory in ." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23370 | { (exit 1); exit 1; } |
| 23371 | } |
| 23372 | |
| 23373 | _ACEOF |
| 23374 | |
| 23375 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23376 | |
| 23377 | # |
| 23378 | # CONFIG_FILES section. |
| 23379 | # |
| 23380 | |
| 23381 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 23382 | # This happens for instance when ./config.status config.h |
| 23383 | if test -n "\$CONFIG_FILES"; then |
| 23384 | # Protect against being on the right side of a sed subst in config.status. |
| 23385 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 23386 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 23387 | s,@SHELL@,$SHELL,;t t |
| 23388 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 23389 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 23390 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 23391 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 23392 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 23393 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 23394 | s,@exec_prefix@,$exec_prefix,;t t |
| 23395 | s,@prefix@,$prefix,;t t |
| 23396 | s,@program_transform_name@,$program_transform_name,;t t |
| 23397 | s,@bindir@,$bindir,;t t |
| 23398 | s,@sbindir@,$sbindir,;t t |
| 23399 | s,@libexecdir@,$libexecdir,;t t |
| 23400 | s,@datadir@,$datadir,;t t |
| 23401 | s,@sysconfdir@,$sysconfdir,;t t |
| 23402 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 23403 | s,@localstatedir@,$localstatedir,;t t |
| 23404 | s,@libdir@,$libdir,;t t |
| 23405 | s,@includedir@,$includedir,;t t |
| 23406 | s,@oldincludedir@,$oldincludedir,;t t |
| 23407 | s,@infodir@,$infodir,;t t |
| 23408 | s,@mandir@,$mandir,;t t |
| 23409 | s,@build_alias@,$build_alias,;t t |
| 23410 | s,@host_alias@,$host_alias,;t t |
| 23411 | s,@target_alias@,$target_alias,;t t |
| 23412 | s,@DEFS@,$DEFS,;t t |
| 23413 | s,@ECHO_C@,$ECHO_C,;t t |
| 23414 | s,@ECHO_N@,$ECHO_N,;t t |
| 23415 | s,@ECHO_T@,$ECHO_T,;t t |
| 23416 | s,@LIBS@,$LIBS,;t t |
| 23417 | s,@VERSION@,$VERSION,;t t |
| 23418 | s,@SOVERSION@,$SOVERSION,;t t |
| 23419 | s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 23420 | s,@UNIVERSALSDK@,$UNIVERSALSDK,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23421 | s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t |
| 23422 | s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t |
| 23423 | s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t |
| 23424 | s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 23425 | s,@FRAMEWORKINSTALLFIRST@,$FRAMEWORKINSTALLFIRST,;t t |
| 23426 | s,@FRAMEWORKINSTALLLAST@,$FRAMEWORKINSTALLLAST,;t t |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 23427 | s,@FRAMEWORKALTINSTALLFIRST@,$FRAMEWORKALTINSTALLFIRST,;t t |
| 23428 | s,@FRAMEWORKALTINSTALLLAST@,$FRAMEWORKALTINSTALLLAST,;t t |
| 23429 | s,@FRAMEWORKUNIXTOOLSPREFIX@,$FRAMEWORKUNIXTOOLSPREFIX,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23430 | s,@MACHDEP@,$MACHDEP,;t t |
| 23431 | s,@SGI_ABI@,$SGI_ABI,;t t |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 23432 | s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 23433 | s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 23434 | s,@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@,$CONFIGURE_MACOSX_DEPLOYMENT_TARGET,;t t |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 23435 | s,@EXPORT_MACOSX_DEPLOYMENT_TARGET@,$EXPORT_MACOSX_DEPLOYMENT_TARGET,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23436 | s,@CC@,$CC,;t t |
| 23437 | s,@CFLAGS@,$CFLAGS,;t t |
| 23438 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 23439 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 23440 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 23441 | s,@EXEEXT@,$EXEEXT,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23442 | s,@OBJEXT@,$OBJEXT,;t t |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 23443 | s,@CXX@,$CXX,;t t |
| 23444 | s,@MAINCC@,$MAINCC,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23445 | s,@CPP@,$CPP,;t t |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23446 | s,@EGREP@,$EGREP,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23447 | s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t |
| 23448 | s,@LIBRARY@,$LIBRARY,;t t |
| 23449 | s,@LDLIBRARY@,$LDLIBRARY,;t t |
| 23450 | s,@DLLLIBRARY@,$DLLLIBRARY,;t t |
| 23451 | s,@BLDLIBRARY@,$BLDLIBRARY,;t t |
| 23452 | s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t |
| 23453 | s,@INSTSONAME@,$INSTSONAME,;t t |
| 23454 | s,@RUNSHARED@,$RUNSHARED,;t t |
| 23455 | s,@LINKCC@,$LINKCC,;t t |
| 23456 | s,@RANLIB@,$RANLIB,;t t |
| 23457 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 23458 | s,@AR@,$AR,;t t |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 23459 | s,@SVNVERSION@,$SVNVERSION,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23460 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 23461 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 23462 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 23463 | s,@LN@,$LN,;t t |
| 23464 | s,@OPT@,$OPT,;t t |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 23465 | s,@BASECFLAGS@,$BASECFLAGS,;t t |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 23466 | s,@OTHER_LIBTOOL_OPT@,$OTHER_LIBTOOL_OPT,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23467 | s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t |
| 23468 | s,@SO@,$SO,;t t |
| 23469 | s,@LDSHARED@,$LDSHARED,;t t |
| 23470 | s,@BLDSHARED@,$BLDSHARED,;t t |
| 23471 | s,@CCSHARED@,$CCSHARED,;t t |
| 23472 | s,@LINKFORSHARED@,$LINKFORSHARED,;t t |
| 23473 | s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 23474 | s,@SHLIBS@,$SHLIBS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23475 | s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t |
| 23476 | s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t |
| 23477 | s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t |
| 23478 | s,@LDLAST@,$LDLAST,;t t |
| 23479 | s,@THREADOBJ@,$THREADOBJ,;t t |
| 23480 | s,@DLINCLDIR@,$DLINCLDIR,;t t |
| 23481 | s,@DYNLOADFILE@,$DYNLOADFILE,;t t |
| 23482 | s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 23483 | s,@TRUE@,$TRUE,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23484 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 23485 | s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t |
| 23486 | s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t |
| 23487 | s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t |
| 23488 | s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t |
| 23489 | s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t |
| 23490 | s,@LIBM@,$LIBM,;t t |
| 23491 | s,@LIBC@,$LIBC,;t t |
| 23492 | s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t |
| 23493 | s,@THREADHEADERS@,$THREADHEADERS,;t t |
| 23494 | s,@SRCDIRS@,$SRCDIRS,;t t |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23495 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23496 | CEOF |
| 23497 | |
| 23498 | _ACEOF |
| 23499 | |
| 23500 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23501 | # Split the substitutions into bite-sized pieces for seds with |
| 23502 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 23503 | ac_max_sed_lines=48 |
| 23504 | ac_sed_frag=1 # Number of current file. |
| 23505 | ac_beg=1 # First line for current file. |
| 23506 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 23507 | ac_more_lines=: |
| 23508 | ac_sed_cmds= |
| 23509 | while $ac_more_lines; do |
| 23510 | if test $ac_beg -gt 1; then |
| 23511 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 23512 | else |
| 23513 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 23514 | fi |
| 23515 | if test ! -s $tmp/subs.frag; then |
| 23516 | ac_more_lines=false |
| 23517 | else |
| 23518 | # The purpose of the label and of the branching condition is to |
| 23519 | # speed up the sed processing (if there are no `@' at all, there |
| 23520 | # is no need to browse any of the substitutions). |
| 23521 | # These are the two extra sed commands mentioned above. |
| 23522 | (echo ':t |
| 23523 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 23524 | if test -z "$ac_sed_cmds"; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23525 | 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] | 23526 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23527 | 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] | 23528 | fi |
| 23529 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 23530 | ac_beg=$ac_end |
| 23531 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 23532 | fi |
| 23533 | done |
| 23534 | if test -z "$ac_sed_cmds"; then |
| 23535 | ac_sed_cmds=cat |
| 23536 | fi |
| 23537 | fi # test -n "$CONFIG_FILES" |
| 23538 | |
| 23539 | _ACEOF |
| 23540 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23541 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 23542 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 23543 | case $ac_file in |
| 23544 | - | *:- | *:-:* ) # input from stdin |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23545 | cat >$tmp/stdin |
| 23546 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 23547 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23548 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23549 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23550 | * ) ac_file_in=$ac_file.in ;; |
| 23551 | esac |
| 23552 | |
| 23553 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 23554 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 23555 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23556 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 23557 | X"$ac_file" : 'X\(//\)$' \| \ |
| 23558 | X"$ac_file" : 'X\(/\)' \| \ |
| 23559 | . : '\(.\)' 2>/dev/null || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23560 | echo X"$ac_file" | |
| 23561 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 23562 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 23563 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 23564 | /^X\(\/\).*/{ s//\1/; q; } |
| 23565 | s/.*/./; q'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23566 | { if $as_mkdir_p; then |
| 23567 | mkdir -p "$ac_dir" |
| 23568 | else |
| 23569 | as_dir="$ac_dir" |
| 23570 | as_dirs= |
| 23571 | while test ! -d "$as_dir"; do |
| 23572 | as_dirs="$as_dir $as_dirs" |
| 23573 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 23574 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23575 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 23576 | X"$as_dir" : 'X\(//\)$' \| \ |
| 23577 | X"$as_dir" : 'X\(/\)' \| \ |
| 23578 | . : '\(.\)' 2>/dev/null || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23579 | echo X"$as_dir" | |
| 23580 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 23581 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 23582 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 23583 | /^X\(\/\).*/{ s//\1/; q; } |
| 23584 | s/.*/./; q'` |
| 23585 | done |
| 23586 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 23587 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 23588 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 23589 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23590 | |
| 23591 | ac_builddir=. |
| 23592 | |
| 23593 | if test "$ac_dir" != .; then |
| 23594 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 23595 | # A "../" for each directory in $ac_dir_suffix. |
| 23596 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 23597 | else |
| 23598 | ac_dir_suffix= ac_top_builddir= |
| 23599 | fi |
| 23600 | |
| 23601 | case $srcdir in |
| 23602 | .) # No --srcdir option. We are building in place. |
| 23603 | ac_srcdir=. |
| 23604 | if test -z "$ac_top_builddir"; then |
| 23605 | ac_top_srcdir=. |
| 23606 | else |
| 23607 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 23608 | fi ;; |
| 23609 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 23610 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 23611 | ac_top_srcdir=$srcdir ;; |
| 23612 | *) # Relative path. |
| 23613 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 23614 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 23615 | esac |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23616 | |
| 23617 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 23618 | # the directories may not exist. |
| 23619 | case `pwd` in |
| 23620 | .) ac_abs_builddir="$ac_dir";; |
| 23621 | *) |
| 23622 | case "$ac_dir" in |
| 23623 | .) ac_abs_builddir=`pwd`;; |
| 23624 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 23625 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 23626 | esac;; |
| 23627 | esac |
| 23628 | case $ac_abs_builddir in |
| 23629 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 23630 | *) |
| 23631 | case ${ac_top_builddir}. in |
| 23632 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 23633 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 23634 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 23635 | esac;; |
| 23636 | esac |
| 23637 | case $ac_abs_builddir in |
| 23638 | .) ac_abs_srcdir=$ac_srcdir;; |
| 23639 | *) |
| 23640 | case $ac_srcdir in |
| 23641 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 23642 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 23643 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 23644 | esac;; |
| 23645 | esac |
| 23646 | case $ac_abs_builddir in |
| 23647 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 23648 | *) |
| 23649 | case $ac_top_srcdir in |
| 23650 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 23651 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 23652 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 23653 | esac;; |
| 23654 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23655 | |
| 23656 | |
| 23657 | case $INSTALL in |
| 23658 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 23659 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 23660 | esac |
| 23661 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 23662 | if test x"$ac_file" != x-; then |
| 23663 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 23664 | echo "$as_me: creating $ac_file" >&6;} |
| 23665 | rm -f "$ac_file" |
| 23666 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23667 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 23668 | # use $as_me), people would be surprised to read: |
| 23669 | # /* config.h. Generated by config.status. */ |
| 23670 | if test x"$ac_file" = x-; then |
| 23671 | configure_input= |
| 23672 | else |
| 23673 | configure_input="$ac_file. " |
| 23674 | fi |
| 23675 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23676 | sed 's,.*/,,'` by configure." |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23677 | |
| 23678 | # First look for the input files in the build tree, otherwise in the |
| 23679 | # src tree. |
| 23680 | ac_file_inputs=`IFS=: |
| 23681 | for f in $ac_file_in; do |
| 23682 | case $f in |
| 23683 | -) echo $tmp/stdin ;; |
| 23684 | [\\/$]*) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23685 | # Absolute (can't be DOS-style, as IFS=:) |
| 23686 | 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] | 23687 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 23688 | { (exit 1); exit 1; }; } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23689 | echo "$f";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23690 | *) # Relative |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23691 | if test -f "$f"; then |
| 23692 | # Build tree |
| 23693 | echo "$f" |
| 23694 | elif test -f "$srcdir/$f"; then |
| 23695 | # Source tree |
| 23696 | echo "$srcdir/$f" |
| 23697 | else |
| 23698 | # /dev/null tree |
| 23699 | { { 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] | 23700 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 23701 | { (exit 1); exit 1; }; } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23702 | fi;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23703 | esac |
| 23704 | done` || { (exit 1); exit 1; } |
| 23705 | _ACEOF |
| 23706 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23707 | sed "$ac_vpsub |
| 23708 | $extrasub |
| 23709 | _ACEOF |
| 23710 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23711 | :t |
| 23712 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 23713 | s,@configure_input@,$configure_input,;t t |
| 23714 | s,@srcdir@,$ac_srcdir,;t t |
| 23715 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 23716 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 23717 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 23718 | s,@builddir@,$ac_builddir,;t t |
| 23719 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 23720 | s,@top_builddir@,$ac_top_builddir,;t t |
| 23721 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 23722 | s,@INSTALL@,$ac_INSTALL,;t t |
| 23723 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 23724 | rm -f $tmp/stdin |
| 23725 | if test x"$ac_file" != x-; then |
| 23726 | mv $tmp/out $ac_file |
| 23727 | else |
| 23728 | cat $tmp/out |
| 23729 | rm -f $tmp/out |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23730 | fi |
| 23731 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23732 | done |
| 23733 | _ACEOF |
| 23734 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23735 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23736 | # |
| 23737 | # CONFIG_HEADER section. |
| 23738 | # |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23739 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23740 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 23741 | # 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] | 23742 | # |
| 23743 | # ac_d sets the value in "#define NAME VALUE" lines. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23744 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 23745 | ac_dB='[ ].*$,\1#\2' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23746 | ac_dC=' ' |
| 23747 | ac_dD=',;t' |
| 23748 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23749 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23750 | ac_uB='$,\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23751 | ac_uC=' ' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23752 | ac_uD=',;t' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23753 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23754 | 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] | 23755 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23756 | case $ac_file in |
| 23757 | - | *:- | *:-:* ) # input from stdin |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23758 | cat >$tmp/stdin |
| 23759 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 23760 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23761 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23762 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23763 | * ) ac_file_in=$ac_file.in ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23764 | esac |
| 23765 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23766 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 23767 | echo "$as_me: creating $ac_file" >&6;} |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23768 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23769 | # First look for the input files in the build tree, otherwise in the |
| 23770 | # src tree. |
| 23771 | ac_file_inputs=`IFS=: |
| 23772 | for f in $ac_file_in; do |
| 23773 | case $f in |
| 23774 | -) echo $tmp/stdin ;; |
| 23775 | [\\/$]*) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23776 | # Absolute (can't be DOS-style, as IFS=:) |
| 23777 | 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] | 23778 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 23779 | { (exit 1); exit 1; }; } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23780 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 23781 | echo "$f";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23782 | *) # Relative |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23783 | if test -f "$f"; then |
| 23784 | # Build tree |
| 23785 | echo "$f" |
| 23786 | elif test -f "$srcdir/$f"; then |
| 23787 | # Source tree |
| 23788 | echo "$srcdir/$f" |
| 23789 | else |
| 23790 | # /dev/null tree |
| 23791 | { { 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] | 23792 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 23793 | { (exit 1); exit 1; }; } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23794 | fi;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23795 | esac |
| 23796 | done` || { (exit 1); exit 1; } |
| 23797 | # Remove the trailing spaces. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23798 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23799 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23800 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23801 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23802 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 23803 | # `conftest.undefs', that substitutes the proper values into |
| 23804 | # config.h.in to produce config.h. The first handles `#define' |
| 23805 | # templates, and the second `#undef' templates. |
| 23806 | # And first: Protect against being on the right side of a sed subst in |
| 23807 | # config.status. Protect against being in an unquoted here document |
| 23808 | # in config.status. |
| 23809 | rm -f conftest.defines conftest.undefs |
| 23810 | # Using a here document instead of a string reduces the quoting nightmare. |
| 23811 | # Putting comments in sed scripts is not portable. |
| 23812 | # |
| 23813 | # `end' is used to avoid that the second main sed command (meant for |
| 23814 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 23815 | # See the Autoconf documentation for `clear'. |
| 23816 | cat >confdef2sed.sed <<\_ACEOF |
| 23817 | s/[\\&,]/\\&/g |
| 23818 | s,[\\$`],\\&,g |
| 23819 | t clear |
| 23820 | : clear |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23821 | 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] | 23822 | t end |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23823 | 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] | 23824 | : end |
| 23825 | _ACEOF |
| 23826 | # If some macros were called several times there might be several times |
| 23827 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 23828 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 23829 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 23830 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 23831 | rm -f confdef2sed.sed |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23832 | |
| 23833 | # This sed command replaces #undef with comments. This is necessary, for |
| 23834 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 23835 | # 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] | 23836 | cat >>conftest.undefs <<\_ACEOF |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23837 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23838 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23839 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23840 | # Break up conftest.defines because some shells have a limit on the size |
| 23841 | # of here documents, and old seds have small limits too (100 cmds). |
| 23842 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23843 | 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] | 23844 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 23845 | echo ' :' >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 23846 | rm -f conftest.tail |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23847 | while grep . conftest.defines >/dev/null |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 23848 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23849 | # Write a limited-size here document to $tmp/defines.sed. |
| 23850 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 23851 | # Speed up: don't consider the non `#define' lines. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23852 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23853 | # Work around the forget-to-reset-the-flag bug. |
| 23854 | echo 't clr' >>$CONFIG_STATUS |
| 23855 | echo ': clr' >>$CONFIG_STATUS |
| 23856 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 23857 | echo 'CEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23858 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 23859 | rm -f $tmp/in |
| 23860 | mv $tmp/out $tmp/in |
| 23861 | ' >>$CONFIG_STATUS |
| 23862 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 23863 | rm -f conftest.defines |
| 23864 | mv conftest.tail conftest.defines |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 23865 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23866 | rm -f conftest.defines |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23867 | echo ' fi # grep' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23868 | echo >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 23869 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23870 | # Break up conftest.undefs because some shells have a limit on the size |
| 23871 | # of here documents, and old seds have small limits too (100 cmds). |
| 23872 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 23873 | rm -f conftest.tail |
| 23874 | while grep . conftest.undefs >/dev/null |
| 23875 | do |
| 23876 | # Write a limited-size here document to $tmp/undefs.sed. |
| 23877 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 23878 | # Speed up: don't consider the non `#undef' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23879 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23880 | # Work around the forget-to-reset-the-flag bug. |
| 23881 | echo 't clr' >>$CONFIG_STATUS |
| 23882 | echo ': clr' >>$CONFIG_STATUS |
| 23883 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 23884 | echo 'CEOF |
| 23885 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 23886 | rm -f $tmp/in |
| 23887 | mv $tmp/out $tmp/in |
| 23888 | ' >>$CONFIG_STATUS |
| 23889 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 23890 | rm -f conftest.undefs |
| 23891 | mv conftest.tail conftest.undefs |
| 23892 | done |
| 23893 | rm -f conftest.undefs |
| 23894 | |
| 23895 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23896 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 23897 | # use $as_me), people would be surprised to read: |
| 23898 | # /* config.h. Generated by config.status. */ |
| 23899 | if test x"$ac_file" = x-; then |
| 23900 | echo "/* Generated by configure. */" >$tmp/config.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23901 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23902 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 23903 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23904 | cat $tmp/in >>$tmp/config.h |
| 23905 | rm -f $tmp/in |
| 23906 | if test x"$ac_file" != x-; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23907 | 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] | 23908 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 23909 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 23910 | else |
| 23911 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 23912 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23913 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 23914 | X"$ac_file" : 'X\(//\)$' \| \ |
| 23915 | X"$ac_file" : 'X\(/\)' \| \ |
| 23916 | . : '\(.\)' 2>/dev/null || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23917 | echo X"$ac_file" | |
| 23918 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 23919 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 23920 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 23921 | /^X\(\/\).*/{ s//\1/; q; } |
| 23922 | s/.*/./; q'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23923 | { if $as_mkdir_p; then |
| 23924 | mkdir -p "$ac_dir" |
| 23925 | else |
| 23926 | as_dir="$ac_dir" |
| 23927 | as_dirs= |
| 23928 | while test ! -d "$as_dir"; do |
| 23929 | as_dirs="$as_dir $as_dirs" |
| 23930 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 23931 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23932 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 23933 | X"$as_dir" : 'X\(//\)$' \| \ |
| 23934 | X"$as_dir" : 'X\(/\)' \| \ |
| 23935 | . : '\(.\)' 2>/dev/null || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23936 | echo X"$as_dir" | |
| 23937 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 23938 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 23939 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 23940 | /^X\(\/\).*/{ s//\1/; q; } |
| 23941 | s/.*/./; q'` |
| 23942 | done |
| 23943 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 23944 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 23945 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 23946 | { (exit 1); exit 1; }; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23947 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23948 | rm -f $ac_file |
| 23949 | mv $tmp/config.h $ac_file |
| 23950 | fi |
| 23951 | else |
| 23952 | cat $tmp/config.h |
| 23953 | rm -f $tmp/config.h |
| 23954 | fi |
| 23955 | done |
| 23956 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23957 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23958 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23959 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23960 | { (exit 0); exit 0; } |
| 23961 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23962 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23963 | ac_clean_files=$ac_clean_files_save |
| 23964 | |
| 23965 | |
| 23966 | # configure is writing to config.log, and then calls config.status. |
| 23967 | # config.status does its own redirection, appending to config.log. |
| 23968 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 23969 | # by configure, so config.status won't be able to write to it; its |
| 23970 | # output is simply discarded. So we exec the FD to /dev/null, |
| 23971 | # effectively closing config.log, so it can be properly (re)opened and |
| 23972 | # appended to by config.status. When coming back to configure, we |
| 23973 | # need to make the FD available again. |
| 23974 | if test "$no_create" != yes; then |
| 23975 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23976 | ac_config_status_args= |
| 23977 | test "$silent" = yes && |
| 23978 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23979 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23980 | $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] | 23981 | exec 5>>config.log |
| 23982 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 23983 | # would make configure fail if this is the last instruction. |
| 23984 | $ac_cs_success || { (exit 1); exit 1; } |
| 23985 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23986 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 23987 | |
Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 23988 | echo "creating Modules/Setup" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 23989 | if test ! -f Modules/Setup |
| 23990 | then |
| 23991 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 23992 | fi |
| 23993 | |
Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 23994 | echo "creating Modules/Setup.local" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 23995 | if test ! -f Modules/Setup.local |
| 23996 | then |
| 23997 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 23998 | fi |
| 23999 | |
| 24000 | echo "creating Makefile" |
| 24001 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 24002 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 24003 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 24004 | mv config.c Modules |